commit 3b45ff7d46604c1ee64c841543c1930fa54561a9 Author: Melledy <52122272+Melledy@users.noreply.github.com> Date: Sun Apr 17 05:43:07 2022 -0700 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fc8d20d93 --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +# Compiled class file +*.class + +#idea +*.idea +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build + +# Eclipse +.project +.classpath +.settings +.metadata +.properties +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +.loadpath +.recommenders + +# Grasscutter +resources/* +data/AbilityEmbryos.json +data/OpenConfig.json +proto/auto/ +proto/protoc.exe +GM Handbook.txt +config.json diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..b09cd7856 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md new file mode 100644 index 000000000..f7b74cdd2 --- /dev/null +++ b/README.md @@ -0,0 +1,49 @@ +# Grasscutter +A WIP server emulator for Genshin Impact 2.3-2.6 + +# Current features +* Logging in +* Spawning monsters via console +* Combat +* Inventory features (recieving items/characters, upgrading items/characters, etc) +* Co-op does work, but movement is kind of buggy and some player ults do not spawn properly +* Friends list +* Gacha system + +# Running the server and client + +### Prerequisites +* Java 8 JDK +* Mongodb (recommended 4.0+) + +### Starting up the server +1. Compile the server with `./gradlew jar` +2. Create a folder named `resources` in your server directory, you will need to copy `BinData` and `ExcelBinOutput` folders which you can get from a repo like [https://github.com/Dimbreath/GenshinData](https://github.com/Dimbreath/GenshinData) into your resources folder. +3. Run the server with `java -jar grasscutter.jar`. Make sure mongodb is running as well. + +### Connecting with the client +1. If you are using the provided keystore, you will need to install and have [Fiddler](https://www.telerik.com/fiddler) running. Make sure fiddler is set to decrypt https traffic. +2. Set your hosts file to redirect at least `api-account-os.hoyoverse.com` and `dispatchosglobal.yuanshen.com` to your dispatch server ip. + +### Server console commands + +`/account create [username] {playerid}` - Creates an account with the specified username and the in-game uid for that account. The playerid parameter is optional and will be auto generated if not set. + +### In-Game commands +There is a dummy user named "Server" in every player's friends list that you can message to use commands. Commands also work in other chat rooms, such as private/team chats. + +`!spawn [monster id] [level] [amount]` + +`!give [item id] [amount]` + +`!drop [item id] [amount]` + +`!killall` + +`!godmode` - Prevents you from taking damage + +`!resetconst` - Resets the constellation level on your current active character, will need to relog after using the command to see any changes. + +`!sethp [hp]` + +`!clearartifacts` - Deletes all unequipped and unlocked level 0 artifacts, **including yellow rarity ones** from your inventory diff --git a/build.gradle b/build.gradle new file mode 100644 index 000000000..c7c9eae79 --- /dev/null +++ b/build.gradle @@ -0,0 +1,63 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * This generated file contains a sample Java project to get you started. + * For more details take a look at the Java Quickstart chapter in the Gradle + * User Manual available at https://docs.gradle.org/5.6.3/userguide/tutorial_java_projects.html + */ + +plugins { + // Apply the java plugin to add support for Java + id 'java' + + // Apply the application plugin to add support for building a CLI application + id 'application' +} + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + +repositories { + mavenCentral() + jcenter() +} + +dependencies { + compile fileTree(dir: 'lib', include: '*.jar') + + compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32' + compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.6' + compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.6' + compile group: 'io.netty', name: 'netty-all', version: '4.1.69.Final' + + compile group: 'com.google.code.gson', name: 'gson', version: '2.8.8' + compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.18.1' + + compile group: 'org.reflections', name: 'reflections', version: '0.9.12' + + compile group: 'dev.morphia.morphia', name: 'core', version: '1.6.1' +} + +application { + // Define the main class for the application + mainClassName = 'emu.grasscutter.Grasscutter' +} + +jar { + manifest { + attributes 'Main-Class': 'emu.grasscutter.Grasscutter' + } + + jar.baseName = 'grasscutter' + + from { + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } + + from('src/main/java') { + include '*.xml' + } + + destinationDir = file(".") +} + diff --git a/data/Banners.json b/data/Banners.json new file mode 100644 index 000000000..163319f5e --- /dev/null +++ b/data/Banners.json @@ -0,0 +1,64 @@ +[ + { + "gachaType": 200, + "scheduleId": 893, + "bannerType": "STANDARD", + "prefabPath": "GachaShowPanel_A022", + "previewPrefabPath": "UI_Tab_GachaShowPanel_A022", + "titlePath": "UI_GACHA_SHOW_PANEL_A022_TITLE", + "costItem": 224, + "beginTime": 0, + "endTime": 1924992000, + "sortId": 1000, + "rateUpItems1": [], + "rateUpItems2": [] + }, + { + "gachaType": 301, + "scheduleId": 903, + "bannerType": "EVENT", + "prefabPath": "GachaShowPanel_A076", + "previewPrefabPath": "UI_Tab_GachaShowPanel_A076", + "titlePath": "UI_GACHA_SHOW_PANEL_A076_TITLE", + "costItem": 223, + "beginTime": 0, + "endTime": 1924992000, + "sortId": 9998, + "maxItemType": 1, + "rateUpItems1": [1066], + "rateUpItems2": [1023, 1043, 1064] + }, + { + "gachaType": 400, + "scheduleId": 913, + "bannerType": "EVENT", + "prefabPath": "GachaShowPanel_A077", + "previewPrefabPath": "UI_Tab_GachaShowPanel_A077", + "titlePath": "UI_Tab_GachaShowPanel_A077", + "costItem": 223, + "beginTime": 0, + "endTime": 1924992000, + "sortId": 9998, + "maxItemType": 1, + "rateUpItems1": [1022], + "rateUpItems2": [1023, 1043, 1064] + }, + { + "gachaType": 302, + "scheduleId": 923, + "bannerType": "WEAPON", + "prefabPath": "GachaShowPanel_A078", + "previewPrefabPath": "UI_Tab_GachaShowPanel_A078", + "titlePath": "UI_GACHA_SHOW_PANEL_A078_TITLE", + "costItem": 223, + "beginTime": 0, + "endTime": 1924992000, + "sortId": 9997, + "minItemType": 2, + "eventChance": 75, + "softPity": 80, + "hardPity": 80, + "rateUpItems1": [11510, 15503], + "rateUpItems2": [11402, 12403, 13401, 14402, 15405] + } +] \ No newline at end of file diff --git a/data/query_cur_region.txt b/data/query_cur_region.txt new file mode 100644 index 000000000..427c13f45 --- /dev/null +++ b/data/query_cur_region.txt @@ -0,0 +1 @@ +GpgdCgw0Ny44OS4xNTIuNDcQ1awBGitodHRwczovL29zdXNhb2FzZXJ2ZXIueXVhbnNoZW4uY29tL3JlY2hhcmdlOgNVU0FCOWh0dHBzOi8vYXV0b3BhdGNoaGsueXVhbnNoZW4uY29tL2NsaWVudF9nYW1lX3Jlcy8yLjZfbGl2ZUo8aHR0cHM6Ly9hdXRvcGF0Y2hoay55dWFuc2hlbi5jb20vY2xpZW50X2Rlc2lnbl9kYXRhLzIuNl9saXZlUpIBaHR0cHM6Ly93ZWJzdGF0aWMtc2VhLmhveW92ZXJzZS5jb20veXMvZXZlbnQvaW0tc2VydmljZS9pbmRleC5odG1sP2ltX291dD1mYWxzZSZzaWduX3R5cGU9MiZhdXRoX2FwcGlkPWltX2NjcyZhdXRoa2V5X3Zlcj0xJndpbl9kaXJlY3Rpb249cG9ydHJhaXRiCDIuNl9saXZlcNnsmgOQAdnsmgOaAVx7InJlbW90ZU5hbWUiOiAiZGF0YV92ZXJzaW9ucyIsICJtZDUiOiAiMWE0NDVhZTQ4ZmJkYmUwMzgzMTJiZTg2OGYyODEzZDIiLCAiZmlsZVNpemUiOiA0NDE1faIBW3sicmVtb3RlTmFtZSI6ICJkYXRhX3ZlcnNpb25zIiwgIm1kNSI6ICIxNzU0MmM3YmJhYzQ5YjkxMWRlMjlhOTYyNzU0YmQ2MSIsICJmaWxlU2l6ZSI6IDUxNH2yAYEGCL23mQMa4AV7InJlbW90ZU5hbWUiOiAicmVzX3ZlcnNpb25zX2V4dGVybmFsIiwgIm1kNSI6ICI5ZjA5MmNhMTMwNjdjYWU0MzEzNDkzZWVkM2QzZTlhZSIsICJmaWxlU2l6ZSI6IDUyNjk2Nn0NCnsicmVtb3RlTmFtZSI6ICJyZXNfdmVyc2lvbnNfbWVkaXVtIiwgIm1kNSI6ICI3Yzk0MmU3MDRhODA0YzIxMjJmYzYzZWU5MjhlNzE0OCIsICJmaWxlU2l6ZSI6IDI4NTU1MH0NCnsicmVtb3RlTmFtZSI6ICJyZXNfdmVyc2lvbnNfc3RyZWFtaW5nIiwgIm1kNSI6ICJlMzVmNmQ4NTNkMDRjZTAyMmFjN2MzNmQ0M2Y0MGU3YyIsICJmaWxlU2l6ZSI6IDEyMjAzNn0NCnsicmVtb3RlTmFtZSI6ICJyZWxlYXNlX3Jlc192ZXJzaW9uc19leHRlcm5hbCIsICJtZDUiOiAiODc2NGIwZjJlZDgxNWNkNDQzMGUwODVjNDYxYTZmNGQiLCAiZmlsZVNpemUiOiA1MjY5NjZ9DQp7InJlbW90ZU5hbWUiOiAicmVsZWFzZV9yZXNfdmVyc2lvbnNfbWVkaXVtIiwgIm1kNSI6ICIxYmJlMzc0YzE2YmZmNDU5MTU5OWMyMTk3MzQyMDM0OCIsICJmaWxlU2l6ZSI6IDI4NTU1MH0NCnsicmVtb3RlTmFtZSI6ICJyZWxlYXNlX3Jlc192ZXJzaW9uc19zdHJlYW1pbmciLCAibWQ1IjogIjcyZmE3ZmY2NmQ1MTRmY2JhMzRhZjAwN2YyYjljMmY4IiwgImZpbGVTaXplIjogMTIyMDM2fQ0KeyJyZW1vdGVOYW1lIjogImJhc2VfcmV2aXNpb24iLCAibWQ1IjogImZiZmE2ZDZlMDcwMmQxYzc5ZTA1NjRmYjI4NjdlNzM4IiwgImZpbGVTaXplIjogMTh9IgEwKgo3YTM0YTM2YTZlMggyLjZfbGl2ZboBnBBFYzJiEAAAAJGCjvgHMrTsh3MtgsH5frMACAAAw460k//m++1MxIEXUCck/33uRkbXh2qC29/AivwLhKxa+XHVSAv0dKF5drsBoAKPy4OFKI9DJhCysPt3+RKmbXVvdgaktucaz4GU7/r1wurEHHyf+edEsopDvbCea4nbJVe9+qYHXwBPLepzFNymMWVp9eSkiySwB7aXOMLuWo7utTYk1t3BV+sc7C78f/aPIfGdD/s3XcTQzzEBPYu4FBG4D6PZ8oTGGvg0mWt5q/k2qmEcF8CdzUrJ38l/TiQuNSrWG3s/ALdDwXooplsCEl92sprxZswgpfKIsoPUuVSGUAIPOHY23+Yzx/j0AaMIUbeZB6mwGqffcNtW1qSbeeJWr/2HG9jbdBlr/wnPpDFdGn4oAzsuacaCYGMO8vkU20Lpwn7I3fce3H9zfmDqmroKE5d6tiB3+e212+jgft3b24tdudYGIbFVG7a3+DQYHtSDT5BOKQgbKs4Pw4Lks8vYprrIOHwfxHALjO6YlqkMJcbYPYYUCE3aitVgMFoLztZkVYEBSx6AQOEHG/PkpuDSnmhkDxvNzX8PvmwhEGWROY5kTaDm81bmLrMbf9AYBy5g2ZKP5Vvw6nLwfVrS7gesNPT30JZPHzrZCiUHB79eoWK6hSSlQX1b7z6/qkIFV06X+pgp2lqA4mauJYUm3sx6wmgeJaxDP/I6RpU1EiRFb3TzxkTGo3Wafp2PDg0q8sjj7A+xXREjf3WgsdwPXnCDByOLTV9u4Gd+7KwRZwK/9OChKNU5xXte4VQMf3TvNjBl07AQEtyBQ2swCO7YsiWx3EIv2oqy/zl1QEnVj8BVcfATwghu9vxY2oQ2J7ejxCEtIDRKJXFg8ziB7H1NaWknzlzDOC80UqfWKFCH8fC7KB3ysuAPpN4I0i1y8dRcZdiHK3aImhSs7GXDyr5BpG35RfZk1cBqIl1L8+mWZYKxXinKzKccYXl2JZFvkr+TWDjBoVIBDQBa1RjWPHGF3OT7KWiV6zsHchzVUe7re6WU7PhzRDTB/mw+kxsmcIuuMB2cTsbk29TgScQGd1IkQnzUPUtGYoQiv0i6JbAJFc0nMLl0tMds4xAPAefL2lqfTMIMbJufiohBBMvaEnchohkmDtrGGTuLvBWYSNtlSuSmC8GOlenCUG4bXMWM+ZHwnIA/GsmNsQR1wSlaXFNGnp/Qnw/q7I3Btyayp5Cf3PGLFMdho502/NcY5puROnctNAQKf4+5zUnfnhvqUK3DAWl9Ei5CtTUJ5Vopuh0HFTk0mEjgFutDHjQlXC3F3JWVpIUn22fZHlal2l/evB9sZVJxsMcEEoOrbMmHqmYd4JIdnLMhy9uPZCUoPc+LzrYFXXprNw0XPhFkI4ZtWM95Uz4NfuFWw3d+Ijd3szFMA3WvtZ9Hs1XbdI7sHrRGRIaGn9lNyygofOZhXHQC2ojbRyUOllJQYVUvRB18IxEIHitfD+Q6pUY7FM4TsYoSkoVIjJkQcIv4dsQLyG8StWSL4b4dJZEIi8tk9BQcY52/goO/FbvjB/Rz+cZd/r6J7akGskONwtUBlqe3i+PihvIUbfTA2AwRuaTgpvLwFkOxXRj4Uj0lTExB2to89IRkJ/eADa9eawoh0xswAUxHpmsiUoxRz3UF4gEzpVq4XmmOp2baE2+Uj4rtkzvH5dyODYO39FGudvwZwf6baOlFAKxyBfaVS+W4/udYnLKqoyT7fcuxOqx8cxxLZI6KuDs3nrOe/U9yxIgpvxZSZEejyWVvvRVTzKN3QzMorVXwoPyMlthJpFbAoRt+VPOwMUOAPo3Hhy/6iP03wmUUUBUf4SSSeYoOqXzvj60founyl3ugmpvdEMS2weyTUxq7gkR7xIfAnLzYsb1eLjy0oiRbHGu1QkwhKtqMwjuDfyOcUavzczbNizQHVVORfsiZTMuzLUufVkBug9LrmYkTkUgNs0dCkKQI3RsVP90Kix+gLYmbnIRAhlJbmgzbKULA9ipT3VU3aLXV5/o097pAvpKJGHsk8ibC3yCP2vf2mPLibBHIjGM1T0+sq682kjC1vsJWXl2JVMiDQbHW/zamNixPnU7uTriojCUYLTHt3M5D5d1IxIUIzWyTY6+9zFlO3BBZUCYOaqE0B4ncMfrV9rkuKLay69dPMQLuqF5MxD8oTA1HFDPUEvpFiUhNrxm2VSl7joxjf7TwYkLgDaDKzp5Cmbj4EdCvnRuZ8S+XtzremqnQkwfcbPxkS8GyQxVex9jxrBbz2dicI1hkfvi3hu8qqFJ87/Ozeg9RWjPpLd/Ax5tE6wCh6HO8FUMKO8gKMSFqaTM4i36AN8isOVm2jbKPfWm2Cx8Fwh4VdyKPJ/33FbPTn9dC9ox1/wcDHAta6wGqk224B3QJa6s+gKT1/qb+HObz1i9yRFEcneJkpkt6kTcws1kfoPeQUAwayy9p7Fj1l30TW9oIZwDdyA9746c/bR2dZt0zQtGXsynhjom87f9T2AfvK36EoWQA4hxiZvsKn6E+V4Q229t7FgP0j1oqF7iu+hlgl6IYkmzhf/LVdQJbGslS6Tpa/TpLsFXRnCX/rWBovU01jyvM0w7f7Yyc0S6NcCULtDH2Znqd3JKYAphuWOLWLQlDJg/CRSpK1x4V+hWNuTXETafVlk5ft9do6Et9krcFyHKzATI1SaapornUYv0rgL6hN9y+IZl1CyuL/uyWy9iqLmO5tjx9gitKlCT4Hcj6QWH6Wfg+zmAVraPVjvzCAU9odHRwczovL3dlYnN0YXRpYy1zZWEuaG95b3ZlcnNlLmNvbS95cy9ldmVudC9lMjAyMDA0MTBnb19jb21tdW5pdHkvaW5kZXguaHRtbCMv0gEKYWRmZWI4YmU3MdoBCmFkZmViOGJlNzH6AR1odHRwczovL2FjY291bnQuaG95b3ZlcnNlLmNvbYICcWh0dHBzOi8vaGs0ZS1hcGktb3MuaG95b3ZlcnNlLmNvbS9jb21tb24vYXBpY2RrZXkvYXBpL2V4Y2hhbmdlQ2RrZXk/c2lnbl90eXBlPTImYXV0aF9hcHBpZD1hcGljZGtleSZhdXRoa2V5X3Zlcj0xigJMaHR0cHM6Ly9hY2NvdW50LmhveW92ZXJzZS5jb20vIy9hYm91dC9wcml2YWN5SW5HYW1lP2FwcF9pZD00JmJpej1oazRlX2dsb2JhbFqcEEVjMmIQAAAAkYKO+AcytOyHcy2Cwfl+swAIAADDjrST/+b77UzEgRdQJyT/fe5GRteHaoLb38CK/AuErFr5cdVIC/R0oXl2uwGgAo/Lg4Uoj0MmELKw+3f5EqZtdW92BqS25xrPgZTv+vXC6sQcfJ/550SyikO9sJ5ridslV736pgdfAE8t6nMU3KYxZWn15KSLJLAHtpc4wu5aju61NiTW3cFX6xzsLvx/9o8h8Z0P+zddxNDPMQE9i7gUEbgPo9nyhMYa+DSZa3mr+TaqYRwXwJ3NSsnfyX9OJC41KtYbez8At0PBeiimWwISX3aymvFmzCCl8oiyg9S5VIZQAg84djbf5jPH+PQBowhRt5kHqbAap99w21bWpJt54lav/Ycb2Nt0GWv/Cc+kMV0afigDOy5pxoJgYw7y+RTbQunCfsjd9x7cf3N+YOqaugoTl3q2IHf57bXb6OB+3dvbi1251gYhsVUbtrf4NBge1INPkE4pCBsqzg/DguSzy9imusg4fB/EcAuM7piWqQwlxtg9hhQITdqK1WAwWgvO1mRVgQFLHoBA4Qcb8+Sm4NKeaGQPG83Nfw++bCEQZZE5jmRNoObzVuYusxt/0BgHLmDZko/lW/DqcvB9WtLuB6w09PfQlk8fOtkKJQcHv16hYrqFJKVBfVvvPr+qQgVXTpf6mCnaWoDiZq4lhSbezHrCaB4lrEM/8jpGlTUSJEVvdPPGRMajdZp+nY8ODSryyOPsD7FdESN/daCx3A9ecIMHI4tNX27gZ37srBFnAr/04KEo1TnFe17hVAx/dO82MGXTsBAS3IFDazAI7tiyJbHcQi/airL/OXVASdWPwFVx8BPCCG72/FjahDYnt6PEIS0gNEolcWDzOIHsfU1paSfOXMM4LzRSp9YoUIfx8LsoHfKy4A+k3gjSLXLx1Fxl2IcrdoiaFKzsZcPKvkGkbflF9mTVwGoiXUvz6ZZlgrFeKcrMpxxheXYlkW+Sv5NYOMGhUgENAFrVGNY8cYXc5PspaJXrOwdyHNVR7ut7pZTs+HNENMH+bD6TGyZwi64wHZxOxuTb1OBJxAZ3UiRCfNQ9S0ZihCK/SLolsAkVzScwuXS0x2zjEA8B58vaWp9Mwgxsm5+KiEEEy9oSdyGiGSYO2sYZO4u8FZhI22VK5KYLwY6V6cJQbhtcxYz5kfCcgD8ayY2xBHXBKVpcU0aen9CfD+rsjcG3JrKnkJ/c8YsUx2GjnTb81xjmm5E6dy00BAp/j7nNSd+eG+pQrcMBaX0SLkK1NQnlWim6HQcVOTSYSOAW60MeNCVcLcXclZWkhSfbZ9keVqXaX968H2xlUnGwxwQSg6tsyYeqZh3gkh2csyHL249kJSg9z4vOtgVdems3DRc+EWQjhm1Yz3lTPg1+4VbDd34iN3ezMUwDda+1n0ezVdt0juwetEZEhoaf2U3LKCh85mFcdALaiNtHJQ6WUlBhVS9EHXwjEQgeK18P5DqlRjsUzhOxihKShUiMmRBwi/h2xAvIbxK1ZIvhvh0lkQiLy2T0FBxjnb+Cg78Vu+MH9HP5xl3+vontqQayQ43C1QGWp7eL4+KG8hRt9MDYDBG5pOCm8vAWQ7FdGPhSPSVMTEHa2jz0hGQn94ANr15rCiHTGzABTEemayJSjFHPdQXiATOlWrheaY6nZtoTb5SPiu2TO8fl3I4Ng7f0Ua52/BnB/pto6UUArHIF9pVL5bj+51icsqqjJPt9y7E6rHxzHEtkjoq4Ozees579T3LEiCm/FlJkR6PJZW+9FVPMo3dDMyitVfCg/IyW2EmkVsChG35U87AxQ4A+jceHL/qI/TfCZRRQFR/hJJJ5ig6pfO+PrR+i6fKXe6Cam90QxLbB7JNTGruCRHvEh8CcvNixvV4uPLSiJFsca7VCTCEq2ozCO4N/I5xRq/NzNs2LNAdVU5F+yJlMy7MtS59WQG6D0uuZiRORSA2zR0KQpAjdGxU/3QqLH6AtiZuchECGUluaDNspQsD2KlPdVTdotdXn+jT3ukC+kokYeyTyJsLfII/a9/aY8uJsEciMYzVPT6yrrzaSMLW+wlZeXYlUyINBsdb/NqY2LE+dTu5OuKiMJRgtMe3czkPl3UjEhQjNbJNjr73MWU7cEFlQJg5qoTQHidwx+tX2uS4otrLr108xAu6oXkzEPyhMDUcUM9QS+kWJSE2vGbZVKXuOjGN/tPBiQuANoMrOnkKZuPgR0K+dG5nxL5e3Ot6aqdCTB9xs/GRLwbJDFV7H2PGsFvPZ2JwjWGR++LeG7yqoUnzv87N6D1FaM+kt38DHm0TrAKHoc7wVQwo7yAoxIWppMziLfoA3yKw5WbaNso99abYLHwXCHhV3Io8n/fcVs9Of10L2jHX/BwMcC1rrAaqTbbgHdAlrqz6ApPX+pv4c5vPWL3JEURyd4mSmS3qRNzCzWR+g95BQDBrLL2nsWPWXfRNb2ghnAN3ID3vjpz9tHZ1m3TNC0ZezKeGOibzt/1PYB+8rfoShZADiHGJm+wqfoT5XhDbb23sWA/SPWioXuK76GWCXohiSbOF/8tV1AlsayVLpOlr9OkuwVdGcJf+tYGi9TTWPK8zTDt/tjJzRLo1wJQu0MfZmep3ckpgCmG5Y4tYtCUMmD8JFKkrXHhX6FY25NcRNp9WWTl+312joS32StwXIcrMBMjVJpqmiudRi/SuAvqE33L4hmXULK4v+7JbL2KouY7m2PH2CK0qUJPgdyPpBYfpZ+D7OYBWto9WO/GLVArJ6MMs9QA4I3dIIwrylWFU1xRNtPj3ZUiooCQGiArlYzrMmLb09eDW0QedOr3CPLOlcmZroIV9XmnD9YYJSBxv5L8mbNaGWcZkxZM04GrPcOeDTN2pXq/DdB2cHRC0nT6YaQhvAnvVDFhnoBHnJS9B/aGcgHo3mVzWBi2jeeXNyLZaHhkADBRCPGmTwonHJPIig0hnMvCbLB7b5qHpN8uaQBDW4T6cqIZljsbbXUY1maAcu5vmLK8Tq7Vmu74TTQzghjgxVHB6vIS8vhqWKOKyGSrDGLDnGlcHFRlH/Omz49L2EBfYyDPKUBsi+VMP+cvIrky3XqoBUtTuQwXmcCF3LxPyf8SCVwFZSgDHMND7owHO90vRS60lwsO9QkfojEmbs0MTvFrB/FM1CeHxQeSBA74JVmDRNL4efGIopyTt6SltAxc0flyQzHwW4D8oWg6Tm/Na6 \ No newline at end of file diff --git a/data/query_region_list.txt b/data/query_region_list.txt new file mode 100644 index 000000000..b4681aaa7 --- /dev/null +++ b/data/query_region_list.txt @@ -0,0 +1 @@ +ElIKBm9zX3VzYRIHQW1lcmljYRoKREVWX1BVQkxJQyIzaHR0cHM6Ly9vc3VzYWRpc3BhdGNoLnl1YW5zaGVuLmNvbS9xdWVyeV9jdXJfcmVnaW9uElMKB29zX2V1cm8SBkV1cm9wZRoKREVWX1BVQkxJQyI0aHR0cHM6Ly9vc2V1cm9kaXNwYXRjaC55dWFuc2hlbi5jb20vcXVlcnlfY3VyX3JlZ2lvbhJRCgdvc19hc2lhEgRBc2lhGgpERVZfUFVCTElDIjRodHRwczovL29zYXNpYWRpc3BhdGNoLnl1YW5zaGVuLmNvbS9xdWVyeV9jdXJfcmVnaW9uElUKBm9zX2NodBIKVFcsIEhLLCBNTxoKREVWX1BVQkxJQyIzaHR0cHM6Ly9vc2NodGRpc3BhdGNoLnl1YW5zaGVuLmNvbS9xdWVyeV9jdXJfcmVnaW9uKpwQRWMyYhAAAABbrAvbhfIRHfaSCN24qQyVAAgAAMs68ZiMdPfEj41O2wBCYqGiC/WdovvJvaw4t3/m1zIYDrt3/ftK9GKFb7C+2E8FmaHqOnwjJYBg2wI1sXpGmuSxkeWw8Avr36wlNtQjhXNV9zoNKstuZYuheyLlpbPRbYZ3UA6/BzTVsjIhjR1lcqFrigQnpV6MgRR9KqxakCaffK6qIzMlodx4ZPKlqseQhCiyVAvLWQSRqCRcZipzotXsmgLQbpDFtRzhgukXPjfW5dAlzMwswPuu7ZQsf1AKipI34dVQLu6gtXthGgbjn89h/79VR5AokLCPGqIV7/2s+gHfykrjDtyp5rwCcmGQqwV3gHy5LGrHl8Zm12jNd7Qcng51ydqtX4xzet6J2iMF6Dw5nPd/hTyxn+i3Ttk6fop9rbCq3iNgEw3+0cSDal1I1ThYdVnMgPhZgQkZc5/SpTaR+8vfDzRIKbSSrrPSEgLnQvWZOOugXhNdyuiaBc8rJveno7vvktmnhDUF3xWi6osj75j2KghRrdHfDR3Zuh4COrGZDRBSKHft2AvfrxaMT9O8hPzzzYk0U2iicVCDlNP/8wqaT9Vqt1kHmruLxqh377iyp0mxKfNt0+SNRzLyRoyvOar/z3AT6TU9LRoCFrkcJpVsUN+2MVeT52PfMbv5O/Nw9sqsFDlofCJJ/EknY0wDc+tNarYOhDM67/ojn/p6W3ZPBJxb2wcF1TOh9dpAeZdCGJusqhMIj5lpoW8nENTFhkEgMUv2Lh5Z6WpeOAKAu9eDpBMhlRNCccDaNYUgo6TdVDtWxtPrS3NRYqtkvb2I2SEFP0apht954oKdG3ncxyOgHRUkwgtxbCMAngzWo9+VWV3H3OlqeEOv7DdO2o0y95EvlHYb/qtosXPI2jC+6FPa+yl4xmLqcENRTUrU23dsmX3SyBEmZvML4dNeyC53B+mh7DUFtPFJFndxj2tGO9mTSDgy8eCmKG90AiJOMoxaLB2HpnDXN1sTiIcd3WraiE6ZCt4E54hKXvXHPyN52CHkxq1y/TeXHEq4X4MyHyDSRLHmzVs9pnwHM0ZLthKFNyvGfTvjiYokAWtNEuh74syt+m6Wietb6JvgibnnDj6uFKI3BbH4GUT9blsnMgug323bJ6bFvV4iESvz1fNnnUSokWQy5+fWzxPDohULgFzhDCpwov78Bp0E3t6DXSWnrUdNqpLbYKmXO1Hdbn+QH4B90p85UB1V5eSZgxPpUvZbIO4GPScil8K+dkDLdsFa1zypWNmlUN0Ns5H/iuzMuJql2QFYz+SnV1R1T+qywwqCNP9oswcLiAR3XnSacs52vd3PI9+0PZuoF6tVMWlvutsQ34IFZaAwIkdKigZcHumLBt/0KyFASBfN674n8FnHrHOQHU6oCeXkQA9kC8MtkvMb7fOLdzbTsD6SVojzZ64i9mDXxF+iLR9o52OxjIFzwLGRy/ivT/aAnHLZ3AsbnvslDjlQl2ADBFvf7xjmvFu0xlfK58TUpfVEkScFFapWJyKVybB4CRz1wKKz6n/a9581LpCVOWRsJa5p+j0zYcS2PfhmRf3RzwsDHeBjEVlIARbhxNKvmjdZyIidSdMMcsJHDRLE3bvo9kKfag0vRVKmuPLPc9FrACsz3vlkApcVQvzieHWoiP+foEvfj9+7Ti2tLfKdzVkMUmugZiZ46+7PKvIciiiuBPlyld0CCPTtTFHUOMO5dUfrUblX8K3awWiaNQFBS0J3iK08t1bgWfLhsKzsS32fRWugaqecwO9Rji9oHn+UuN8Nz9SgNxodroq9q7y/KHFxbqjCl62g25HN9zUa/s5wnIRwVAiWgTuOe3qGqjwp5m/GR8YVSSK/8mV9EL4AaF8d1uifdVA6wWSH1e/1UB8vcdU83P8ne3u1ho+Y/57WB7KnQaGaiD/108+wiAxNqMb2ex8on01VxdLKV1makXV3gzsvWaRevW8t/K11ZwYfo9g+guWADsA0JO0jWooiaupq1kNWrEheBdSRXBO7Jnb+56cTjPGwLpp7ZOHe/bSCJ4MGzPF3lK66LXhVo+rxvNjhoKVRjhGYxN4T8+AiRo3r+1KwdIGSrtODp3ri3JWAy6Eajp1Ukp9GaCbHSJFnYml84nKew7zLLe//ExQpjd4QAjMTvnbm+Ff6a1jf69QEVo0I33gI7/buwqgjiuvjeL6EYaMolKrKlHZHf/HwWbFbdID8T9aoyZJuCUd6YHaMPRAS6n5nvTwkRLlJ/f6wgyypUGZ22Bb1qGIb9SoPgSgIJkifUoewQW2EexqfoAsHXJVABLy+jp/SC4xzHZOSh42zU1k80HIgrnSOmu6T56F6gqy4Y2cZuZU8LXbO/01u8ifEz8yaXfEFSFdxE0TWl92OLKFtJZr9nNOBQQQr5FDGf6zB1/0CziG/5+PrUDgG3irzho6+7wXkc2CpxlBKOLWdjs3V/Lab6cURz1QZY4HYgUkJtm4U5OKUeO2+murlhC7SrnwyUtGrsD8NbCmI4SRHKPoeLBJQO/m3dRze5Ltr8N9IS7/ukPeOYe1O2agrmhH/JjYfz/l8Gmq8PGY+oavYp8I+2yKvGLD9kCxEgKcTeRh9AW/xPTLGsacrGKQCY+M76DfyLKxCZDiDY9xkBIKchxsMsn7FqZvRMMyJBHbqa3AKQyAN73NCSuFF5f1qDjARU/xqJFhOaKoR64c78oqh1GqOqEFbfNQIRw6WeFCGyW6v6p10uLdR7KXnR7+wub9aG992MpIBk0+gru74yO/WcA0vLdDEQIBwc+M0lmLB53ylsPtde3nliaC5ROHR1IS4LO8Q+3o0BHMr0my0bqFwwCAvZVXOFBHxXyUgrrmUTnZYVSQXNV6+MALBmmRU5yOzhhyHoEdj9YHZeyPpZkYc6DkJWCRYbFfmczNIs133KB9rlfug40w/hHa8pXyRyLaKQUMIUYEvt3Y4AQ== \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 000000000..5c2d1cf01 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..f04d6a20a --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100644 index 000000000..83f2acfdc --- /dev/null +++ b/gradlew @@ -0,0 +1,188 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 000000000..9618d8d96 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,100 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/keys/dispatchKey.bin b/keys/dispatchKey.bin new file mode 100644 index 000000000..29b396f14 Binary files /dev/null and b/keys/dispatchKey.bin differ diff --git a/keys/dispatchSeed.bin b/keys/dispatchSeed.bin new file mode 100644 index 000000000..0100e2c86 Binary files /dev/null and b/keys/dispatchSeed.bin differ diff --git a/keys/secretKey.bin b/keys/secretKey.bin new file mode 100644 index 000000000..0ff2db51a Binary files /dev/null and b/keys/secretKey.bin differ diff --git a/keys/secretKeyBuffer.bin b/keys/secretKeyBuffer.bin new file mode 100644 index 000000000..d767aa912 --- /dev/null +++ b/keys/secretKeyBuffer.bin @@ -0,0 +1 @@ +lt1L ܟ.\pXP"ƀ(a \ No newline at end of file diff --git a/keystore.p12 b/keystore.p12 new file mode 100644 index 000000000..9fa5cf19c Binary files /dev/null and b/keystore.p12 differ diff --git a/lib/fastutil-mini-8.5.6.jar b/lib/fastutil-mini-8.5.6.jar new file mode 100644 index 000000000..cdc372c16 Binary files /dev/null and b/lib/fastutil-mini-8.5.6.jar differ diff --git a/lib/kcp-netty.jar b/lib/kcp-netty.jar new file mode 100644 index 000000000..29db985ff Binary files /dev/null and b/lib/kcp-netty.jar differ diff --git a/proto/AbilityAppliedAbility.proto b/proto/AbilityAppliedAbility.proto new file mode 100644 index 000000000..f9fd845da --- /dev/null +++ b/proto/AbilityAppliedAbility.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityScalarValueEntry.proto"; +import "AbilityString.proto"; + +message AbilityAppliedAbility { + AbilityString abilityName = 1; + AbilityString abilityOverride = 2; + repeated AbilityScalarValueEntry overrideMap = 3; + uint32 instancedAbilityId = 4; +} diff --git a/proto/AbilityAppliedModifier.proto b/proto/AbilityAppliedModifier.proto new file mode 100644 index 000000000..857fd8cf2 --- /dev/null +++ b/proto/AbilityAppliedModifier.proto @@ -0,0 +1,23 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityAttachedModifier.proto"; +import "AbilityString.proto"; +import "ModifierDurability.proto"; + +message AbilityAppliedModifier { + int32 modifierLocalId = 1; + uint32 parentAbilityEntityId = 2; + AbilityString parentAbilityName = 3; + AbilityString parentAbilityOverride = 4; + uint32 instancedAbilityId = 5; + uint32 instancedModifierId = 6; + float existDuration = 7; + AbilityAttachedModifier attachedInstancedModifier = 8; + uint32 applyEntityId = 9; + bool isAttachedParentAbility = 10; + ModifierDurability modifierDurability = 11; + uint32 sbuffUid = 12; + bool isServerbuffModifier = 13; +} diff --git a/proto/AbilityAttachedModifier.proto b/proto/AbilityAttachedModifier.proto new file mode 100644 index 000000000..c99cb84f5 --- /dev/null +++ b/proto/AbilityAttachedModifier.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityAttachedModifier { + bool isInvalid = 1; + uint32 ownerEntityId = 2; + uint32 instancedModifierId = 3; + bool isServerbuffModifier = 4; + int32 attachNameHash = 5; +} diff --git a/proto/AbilityChangeNotify.proto b/proto/AbilityChangeNotify.proto new file mode 100644 index 000000000..4a3a63e22 --- /dev/null +++ b/proto/AbilityChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityControlBlock.proto"; + +message AbilityChangeNotify { + uint32 entityId = 1; + AbilityControlBlock abilityControlBlock = 2; +} diff --git a/proto/AbilityControlBlock.proto b/proto/AbilityControlBlock.proto new file mode 100644 index 000000000..d47c3c9d8 --- /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 abilityEmbryoList = 1; +} diff --git a/proto/AbilityEmbryo.proto b/proto/AbilityEmbryo.proto new file mode 100644 index 000000000..edbb26b44 --- /dev/null +++ b/proto/AbilityEmbryo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityEmbryo { + uint32 abilityId = 1; + fixed32 abilityNameHash = 2; + fixed32 abilityOverrideNameHash = 3; +} diff --git a/proto/AbilityIdentifier.proto b/proto/AbilityIdentifier.proto new file mode 100644 index 000000000..f1ddecd09 --- /dev/null +++ b/proto/AbilityIdentifier.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityIdentifier { + uint32 instancedAbilityId = 1; + uint32 abilityCasterId = 2; + int32 localId = 3; + uint32 instancedModifierId = 4; + uint32 modifierOwnerId = 5; + bool isServerbuffModifier = 6; +} diff --git a/proto/AbilityInvocationsNotify.proto b/proto/AbilityInvocationsNotify.proto new file mode 100644 index 000000000..a38535403 --- /dev/null +++ b/proto/AbilityInvocationsNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message AbilityInvocationsNotify { + repeated AbilityInvokeEntry invokes = 1; +} diff --git a/proto/AbilityInvokeArgument.proto b/proto/AbilityInvokeArgument.proto new file mode 100644 index 000000000..a5698323a --- /dev/null +++ b/proto/AbilityInvokeArgument.proto @@ -0,0 +1,48 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AbilityInvokeArgument { + AbilityNone = 0; + AbilityMetaModifierChange = 1; + AbilityMetaCommandModifierChangeRequest = 2; + AbilityMetaSpecialFloatArgument = 3; + AbilityMetaOverrideParam = 4; + AbilityMetaClearOverrideParam = 5; + AbilityMetaReinitOverridemap = 6; + AbilityMetaGlobalFloatValue = 7; + AbilityMetaClearGlobalFloatValue = 8; + AbilityMetaAbilityElementStrength = 9; + AbilityMetaAddOrGetAbilityAndTrigger = 10; + AbilityMetaSetKilledSetate = 11; + AbilityMetaSetAbilityTrigger = 12; + AbilityMetaAddNewAbility = 13; + AbilityMetaRemoveAbility = 14; + AbilityMetaSetModifierApplyEntity = 15; + AbilityMetaModifierDurabilityChange = 16; + AbilityMetaElementReactionVisual = 17; + AbilityMetaSetPoseParameter = 18; + AbilityMetaUpdateBaseReactionDamage = 19; + AbilityActionTriggerAbility = 50; + AbilityActionSetCrashDamage = 51; + AbilityActionEffect = 52; + AbilityActionSummon = 53; + AbilityActionBlink = 54; + AbilityActionCreateGadget = 55; + AbilityActionApplyLevelModifier = 56; + AbilityActionGenerateElemBall = 57; + AbilityActionSetRandomOverrideMapValue = 58; + AbilityActionServerMonsterLog = 59; + AbilityMixinAvatarSteerByCamera = 100; + AbilityMixinMonsterDefend = 101; + AbilityMixinWindZone = 102; + AbilityMixinCostStamina = 103; + AbilityMixinEliteShield = 104; + AbilityMixinElementShield = 105; + AbilityMixinGlobalShield = 106; + AbilityMixinShieldBar = 107; + AbilityMixinWindSeedSpawner = 108; + AbilityMixinDoActionByElementReaction = 109; + AbilityMixinFieldEntityCountChange = 110; + AbilityMixinScenePropSync = 111; +} diff --git a/proto/AbilityInvokeEntry.proto b/proto/AbilityInvokeEntry.proto new file mode 100644 index 000000000..9a3104312 --- /dev/null +++ b/proto/AbilityInvokeEntry.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeArgument.proto"; +import "AbilityInvokeEntryHead.proto"; +import "ForwardType.proto"; + +message AbilityInvokeEntry { + AbilityInvokeEntryHead head = 1; + AbilityInvokeArgument argumentType = 2; + bytes abilityData = 3; + uint32 entityId = 4; + ForwardType forwardType = 5; + uint32 forwardPeer = 6; + uint32 eventId = 7; +} diff --git a/proto/AbilityInvokeEntryHead.proto b/proto/AbilityInvokeEntryHead.proto new file mode 100644 index 000000000..de7196cd1 --- /dev/null +++ b/proto/AbilityInvokeEntryHead.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AbilityInvokeEntryHead { + uint32 instancedAbilityId = 1; + uint32 instancedModifierId = 2; + int32 localId = 3; + int32 modifierConfigLocalId = 4; + uint32 targetId = 5; + bool isServerbuffModifier = 6; + uint32 serverBuffUid = 7; +} diff --git a/proto/AbilityMixinRecoverInfo.proto b/proto/AbilityMixinRecoverInfo.proto new file mode 100644 index 000000000..a23f0d401 --- /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 instancedAbilityId = 1; + uint32 instancedModifierId = 2; + } + uint32 localId = 3; + repeated uint32 dataList = 4; + bool isServerbuffModifier = 5; + repeated MassivePropSyncInfo massivePropList = 6; +} diff --git a/proto/AbilityScalarType.proto b/proto/AbilityScalarType.proto new file mode 100644 index 000000000..9f5ce167f --- /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 100644 index 000000000..7455d9901 --- /dev/null +++ b/proto/AbilityScalarValueEntry.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityScalarType.proto"; +import "AbilityString.proto"; + +message AbilityScalarValueEntry { + AbilityString key = 1; + AbilityScalarType valueType = 2; + oneof value { + float floatValue = 3; + string stringValue = 4; + int32 intValue = 5; + uint32 uintValue = 6; + } +} diff --git a/proto/AbilityString.proto b/proto/AbilityString.proto new file mode 100644 index 000000000..1e8254aa8 --- /dev/null +++ b/proto/AbilityString.proto @@ -0,0 +1,10 @@ +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 100644 index 000000000..ec103e22e --- /dev/null +++ b/proto/AbilitySyncStateInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityAppliedAbility.proto"; +import "AbilityAppliedModifier.proto"; +import "AbilityMixinRecoverInfo.proto"; +import "AbilityScalarValueEntry.proto"; + +message AbilitySyncStateInfo { + bool isInited = 1; + repeated AbilityScalarValueEntry dynamicValueMap = 2; + repeated AbilityAppliedAbility appliedAbilities = 3; + repeated AbilityAppliedModifier appliedModifiers = 4; + repeated AbilityMixinRecoverInfo mixinRecoverInfos = 5; +} diff --git a/proto/ActionReasonType.proto b/proto/ActionReasonType.proto new file mode 100644 index 000000000..29f2639e4 --- /dev/null +++ b/proto/ActionReasonType.proto @@ -0,0 +1,179 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ActionReasonType { + ActionReasonNone = 0; + ActionReasonQuestItem = 1; + ActionReasonQuestReward = 2; + ActionReasonTrifle = 3; + ActionReasonShop = 4; + ActionReasonPlayerUpgradeReward = 5; + ActionReasonAddAvatar = 6; + ActionReasonGadgetEnvAnimal = 7; + ActionReasonMonsterEnvAnimal = 8; + ActionReasonCompound = 9; + ActionReasonCook = 10; + ActionReasonGather = 11; + ActionReasonMailAttachment = 12; + ActionReasonCityLevelupReturn = 15; + ActionReasonCityLevelupReward = 17; + ActionReasonAreaExploreReward = 18; + ActionReasonUnlockPointReward = 19; + ActionReasonDungeonFirstPass = 20; + ActionReasonDungeonPass = 21; + ActionReasonChangeElemType = 23; + ActionReasonFetterOpen = 25; + ActionReasonDailyTaskScore = 26; + ActionReasonDailyTaskHost = 27; + ActionReasonRandTaskHost = 28; + ActionReasonExpedition = 29; + ActionReasonGacha = 30; + ActionReasonCombine = 31; + ActionReasonRandTaskGuest = 32; + ActionReasonDailyTaskGuest = 33; + ActionReasonForgeOutput = 34; + ActionReasonForgeReturn = 35; + ActionReasonInitAvatar = 36; + ActionReasonMonsterDie = 37; + ActionReasonGm = 38; + ActionReasonOpenChest = 39; + ActionReasonGadgetDie = 40; + ActionReasonMonsterChangeHp = 41; + ActionReasonSubfieldDrop = 42; + ActionReasonPushTipsReward = 43; + ActionReasonActivityMonsterDrop = 44; + ActionReasonActivityGather = 45; + ActionReasonActivitySubfieldDrop = 46; + ActionReasonTowerScheduleReward = 47; + ActionReasonTowerFloorStarReward = 48; + ActionReasonTowerFirstPassReward = 49; + ActionReasonTowerDailyReward = 50; + ActionReasonHitClientTrivialEntity = 51; + ActionReasonOpenWorldBossChest = 52; + ActionReasonMaterialDeleteReturn = 53; + ActionReasonSignInReward = 54; + ActionReasonOpenBlossomChest = 55; + ActionReasonRecharge = 56; + ActionReasonBonusActivityReward = 57; + ActionReasonTowerCommemorativeReward = 58; + ActionReasonTowerSkipFloorReward = 59; + ActionReasonRechargeBonus = 60; + ActionReasonRechargeCard = 61; + ActionReasonRechargeCardDaily = 62; + ActionReasonRechargeCardReplace = 63; + ActionReasonRechargeCardReplaceFree = 64; + ActionReasonRechargePlayReplace = 65; + ActionReasonMpPlayTakeReward = 66; + ActionReasonActivityWatcher = 67; + ActionReasonSalesmanDeliverItem = 68; + ActionReasonSalesmanReward = 69; + ActionReasonRebate = 70; + ActionReasonMcoinExchangeHcoin = 71; + ActionReasonDailyTaskExchangeLegendaryKey = 72; + ActionReasonUnlockPersonLine = 73; + ActionReasonFetterLevelReward = 74; + ActionReasonBuyResin = 75; + ActionReasonRechargePackage = 76; + ActionReasonDeliveryDailyReward = 77; + ActionReasonCityReputationLevel = 78; + ActionReasonCityReputationQuest = 79; + ActionReasonCityReputationRequest = 80; + ActionReasonCityReputationExplore = 81; + ActionReasonOffergingLevel = 82; + ActionReasonRoutineHost = 83; + ActionReasonRoutineGuest = 84; + ActionReasonTreasureMapSpotToken = 89; + ActionReasonTreasureMapBonusLevelReward = 90; + ActionReasonTreasureMapMpReward = 91; + ActionReasonConvert = 92; + ActionReasonOverflowTransform = 93; + ActionReasonActivityAvatarSelectionReward = 96; + ActionReasonActivityWatcherBatch = 97; + ActionReasonHitTreeDrop = 98; + ActionReasonGetHomeLevelupReward = 99; + ActionReasonHomeDefaultFurniture = 100; + ActionReasonActivityCond = 101; + ActionReasonBattlePassNotify = 102; + ActionReasonPlayerUseItem = 1001; + ActionReasonDropItem = 1002; + ActionReasonWeaponUpgrade = 1011; + ActionReasonWeaponPromote = 1012; + ActionReasonWeaponAwaken = 1013; + ActionReasonRelicUpgrade = 1014; + ActionReasonAbility = 1015; + ActionReasonDungeonStatueDrop = 1016; + ActionReasonOfflineMsg = 1017; + ActionReasonAvatarUpgrade = 1018; + ActionReasonAvatarPromote = 1019; + ActionReasonQuestAction = 1021; + ActionReasonCityLevelup = 1022; + ActionReasonUpgradeSkill = 1024; + ActionReasonUnlockTalent = 1025; + ActionReasonUpgradeProudSkill = 1026; + ActionReasonPlayerLevelLimitUp = 1027; + ActionReasonDungeonDaily = 1028; + ActionReasonItemGiving = 1030; + ActionReasonForgeCost = 1031; + ActionReasonInvestigationReward = 1032; + ActionReasonInvestigationTargetReward = 1033; + ActionReasonGadgetInteract = 1034; + ActionReasonSeaLampCiMaterial = 1036; + ActionReasonSeaLampContributionReward = 1037; + ActionReasonSeaLampPhaseReward = 1038; + ActionReasonSeaLampFlyLamp = 1039; + ActionReasonAutoRecover = 1040; + ActionReasonActivityExpireItem = 1041; + ActionReasonSubCoinNegative = 1042; + ActionReasonBargainDeduct = 1043; + ActionReasonBattlePassPaidReward = 1044; + ActionReasonBattlePassLevelReward = 1045; + ActionReasonTrialAvatarActivityFirstPassReward = 1046; + ActionReasonBuyBattlePassLevel = 1047; + ActionReasonGrantBirthdayBenefit = 1048; + ActionReasonAchievementReward = 1049; + ActionReasonAchievementGoalReward = 1050; + ActionReasonFirstShareToSocialNetwork = 1051; + ActionReasonDestroyMaterial = 1052; + ActionReasonCodexLevelupReward = 1053; + ActionReasonHuntingOfferReward = 1054; + ActionReasonUseWidgetAnchorPoint = 1055; + ActionReasonUseWidgetBonfire = 1056; + ActionReasonUngradeWeaponReturnMaterial = 1057; + ActionReasonUseWidgetOneoffGatherPointDetector = 1058; + ActionReasonUseWidgetClientCollector = 1059; + ActionReasonUseWidgetClientDetector = 1060; + ActionReasonTakeGeneralReward = 1061; + ActionReasonAsterTakeSpecialReward = 1062; + ActionReasonRemoveCodexBook = 1063; + ActionReasonOfferingItem = 1064; + ActionReasonUseWidgetGadgetBuilder = 1065; + ActionReasonEffigyFirstPassReward = 1066; + ActionReasonEffigyReward = 1067; + ActionReasonReunionFirstGiftReward = 1068; + ActionReasonReunionSignInReward = 1069; + ActionReasonReunionWatcherReward = 1070; + ActionReasonSalesmanMpReward = 1071; + ActionReasionAvatarPromoteReward = 1072; + ActionReasonBlessingRedeemReward = 1073; + ActionMiracleRingReward = 1074; + ActionReasonExpeditionReward = 1075; + ActionReasonTreasureMapRemoveDetector = 1076; + ActionReasonMechanicusDungeonTicket = 1077; + ActionReasonMechanicusLevelupGear = 1078; + ActionReasonMechanicusBattleSettle = 1079; + ActionReasonRegionSearchReward = 1080; + ActionReasonUnlockCoopChapter = 1081; + ActionReasonTakeCoopReward = 1082; + ActionReasonFleurFairDungeonReward = 1083; + ActionReasonActivityScore = 1084; + ActionReasonChannellerSlabOneoffDungeonReward = 1085; + ActionReasonFurnitureMakeStart = 1086; + ActionReasonFurnitureMakeTake = 1087; + ActionReasonFurnitureMakeCancel = 1088; + ActionReasonFurnitureMakeFastFinish = 1089; + ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090; + ActionReasonChannellerSlabLoopDungeonScoreReward = 1091; + ActionReasonHomeLimitedShopBuy = 1092; + ActionReasonHomeCoinCollect = 1093; +} diff --git a/proto/ActivityInfo.proto b/proto/ActivityInfo.proto new file mode 100644 index 000000000..836f7d126 --- /dev/null +++ b/proto/ActivityInfo.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityNullDetailInfo.proto"; +import "ActivityWatcherInfo.proto"; + +message ActivityInfo { + uint32 activityId = 1; + uint32 scheduleId = 2; + uint32 beginTime = 3; + uint32 endTime = 4; + uint32 activityType = 5; + bool isPlayOpenAnim = 6; + bool isFinished = 7; + bool isStarting = 8; + repeated ActivityWatcherInfo watcherInfoList = 9; + repeated uint32 meetCondList = 10; + repeated uint32 expireCondList = 15; + uint32 selectedAvatarRewardId = 17; + map activityCoinMap = 18; + uint32 scoreLimit = 19; + uint32 curScore = 20; + repeated uint32 takenRewardList = 24; + oneof detail { + ActivityNullDetailInfo samLampInfo = 11; + ActivityNullDetailInfo crucibleInfo = 12; + ActivityNullDetailInfo salesmanInfo = 13; + ActivityNullDetailInfo trialAvatarInfo = 14; + ActivityNullDetailInfo deliveryInfo = 16; + ActivityNullDetailInfo asterInfo = 21; + ActivityNullDetailInfo flightInfo = 25; + ActivityNullDetailInfo dragonSpineInfo = 31; + ActivityNullDetailInfo effigyInfo = 32; + ActivityNullDetailInfo treasureMapInfo = 35; + ActivityNullDetailInfo blessingInfo = 41; + ActivityNullDetailInfo seaLampInfo = 42; + ActivityNullDetailInfo expeditionInfo = 43; + ActivityNullDetailInfo arenaChallengeInfo = 44; + ActivityNullDetailInfo fleurFairInfo = 51; + ActivityNullDetailInfo waterSpiritInfo = 52; + ActivityNullDetailInfo challnelerSlabInfo = 61; + ActivityNullDetailInfo mistTrialActivityInfo = 62; + ActivityNullDetailInfo hideAndSeekInfo = 63; + ActivityNullDetailInfo findHilichurlInfo = 64; + } +} diff --git a/proto/ActivityNullDetailInfo.proto b/proto/ActivityNullDetailInfo.proto new file mode 100644 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 100644 index 000000000..eb4e0058f --- /dev/null +++ b/proto/ActivityWatcherInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ActivityWatcherInfo { + uint32 watcherId = 1; + uint32 curProgress = 2; + uint32 totalProgress = 3; + bool isTakenReward = 4; +} diff --git a/proto/AiSkillCdInfo.proto b/proto/AiSkillCdInfo.proto new file mode 100644 index 000000000..ad5f072df --- /dev/null +++ b/proto/AiSkillCdInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiSkillCdInfo { + map skillCdMap = 1; + map skillGroupCdMap = 2; +} diff --git a/proto/AiSyncInfo.proto b/proto/AiSyncInfo.proto new file mode 100644 index 000000000..1dc25b8fd --- /dev/null +++ b/proto/AiSyncInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiSyncInfo { + uint32 entityId = 1; + bool hasPathToTarget = 2; +} diff --git a/proto/AiThreatInfo.proto b/proto/AiThreatInfo.proto new file mode 100644 index 000000000..eb4ceeb46 --- /dev/null +++ b/proto/AiThreatInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AiThreatInfo { + map aiThreatMap = 1; +} diff --git a/proto/AnimatorParameterValueInfo.proto b/proto/AnimatorParameterValueInfo.proto new file mode 100644 index 000000000..0735f5154 --- /dev/null +++ b/proto/AnimatorParameterValueInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AnimatorParameterValueInfo { + uint32 paraType = 1; + int32 intVal = 2; + float floatVal = 3; + bool boolVal = 4; +} diff --git a/proto/AnimatorParameterValueInfoPair.proto b/proto/AnimatorParameterValueInfoPair.proto new file mode 100644 index 000000000..1ead0b9a7 --- /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 = 1; + AnimatorParameterValueInfo animatorPara = 2; +} diff --git a/proto/AskAddFriendNotify.proto b/proto/AskAddFriendNotify.proto new file mode 100644 index 000000000..ab5f6ef26 --- /dev/null +++ b/proto/AskAddFriendNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message AskAddFriendNotify { + uint32 targetUid = 1; + FriendBrief targetFriendBrief = 2; +} diff --git a/proto/AskAddFriendReq.proto b/proto/AskAddFriendReq.proto new file mode 100644 index 000000000..ac8a9083e --- /dev/null +++ b/proto/AskAddFriendReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AskAddFriendReq { + uint32 targetUid = 1; +} diff --git a/proto/AskAddFriendRsp.proto b/proto/AskAddFriendRsp.proto new file mode 100644 index 000000000..4893ea28a --- /dev/null +++ b/proto/AskAddFriendRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AskAddFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; + uint32 param = 3; +} diff --git a/proto/AttackHitEffectResult.proto b/proto/AttackHitEffectResult.proto new file mode 100644 index 000000000..d997b7ab3 --- /dev/null +++ b/proto/AttackHitEffectResult.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AttackHitEffectResult { + uint32 hitEffLevel = 1; + float retreatStrength = 2; + float airStrength = 3; + float hitHaltTime = 4; + float hitHaltTimeScale = 5; + uint32 originalHitEffLevel = 6; +} diff --git a/proto/AttackResult.proto b/proto/AttackResult.proto new file mode 100644 index 000000000..9b1498718 --- /dev/null +++ b/proto/AttackResult.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityIdentifier.proto"; +import "AttackHitEffectResult.proto"; +import "HitCollision.proto"; +import "Vector.proto"; + +message AttackResult { + uint32 attackerId = 1; + uint32 defenseId = 2; + string animEventId = 3; + AbilityIdentifier abilityIdentifier = 4; + float damage = 6; + bool isCrit = 7; + HitCollision hitCollision = 8; + uint32 hitPosType = 9; + uint32 endureBreak = 10; + Vector resolvedDir = 11; + int32 hitRetreatAngleCompat = 12; + AttackHitEffectResult hitEffResult = 13; + uint32 elementType = 14; + bool useGadgetDamageAction = 19; + uint32 gadgetDamageActionIdx = 20; + bool isResistText = 22; + uint32 criticalRand = 23; + float elementAmplifyRate = 24; + float damageShield = 26; + bool muteElementHurt = 27; + uint32 amplifyReactionType = 30; + uint32 addhurtReactionType = 31; + uint32 bulletFlyTimeMs = 32; + uint32 attackCount = 33; + uint32 hashedAnimEventId = 34; + uint32 attackTimestampMs = 36; + float endureDelta = 37; + uint32 targetType = 38; + float elementDurabilityAttenuation = 39; +} diff --git a/proto/AvatarAddNotify.proto b/proto/AvatarAddNotify.proto new file mode 100644 index 000000000..1bbd17d19 --- /dev/null +++ b/proto/AvatarAddNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; + +message AvatarAddNotify { + AvatarInfo avatar = 1; + bool isInTeam = 2; +} diff --git a/proto/AvatarChangeCostumeNotify.proto b/proto/AvatarChangeCostumeNotify.proto new file mode 100644 index 000000000..86a64ad1e --- /dev/null +++ b/proto/AvatarChangeCostumeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneEntityInfo.proto"; + +message AvatarChangeCostumeNotify { + SceneEntityInfo entity = 1; +} diff --git a/proto/AvatarChangeCostumeReq.proto b/proto/AvatarChangeCostumeReq.proto new file mode 100644 index 000000000..6a83f9497 --- /dev/null +++ b/proto/AvatarChangeCostumeReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarChangeCostumeReq { + uint64 avatarGuid = 1; + uint32 costumeId = 2; +} diff --git a/proto/AvatarChangeCostumeRsp.proto b/proto/AvatarChangeCostumeRsp.proto new file mode 100644 index 000000000..a5a3490c1 --- /dev/null +++ b/proto/AvatarChangeCostumeRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarChangeCostumeRsp { + uint32 retcode = 1; + uint64 avatarGuid = 2; + uint32 costumeId = 3; +} diff --git a/proto/AvatarDataNotify.proto b/proto/AvatarDataNotify.proto new file mode 100644 index 000000000..356d972bc --- /dev/null +++ b/proto/AvatarDataNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarInfo.proto"; +import "AvatarTeam.proto"; + +message AvatarDataNotify { + repeated AvatarInfo avatarList = 1; + map avatarTeamMap = 2; + uint32 curAvatarTeamId = 3; + fixed64 chooseAvatarGuid = 4; + repeated uint64 tempAvatarGuidList = 5; + repeated uint32 ownedFlycloakList = 6; + repeated uint32 ownedCostumeList = 7; +} diff --git a/proto/AvatarDieAnimationEndReq.proto b/proto/AvatarDieAnimationEndReq.proto new file mode 100644 index 000000000..06bb7b3a8 --- /dev/null +++ b/proto/AvatarDieAnimationEndReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message AvatarDieAnimationEndReq { + uint64 dieGuid = 1; + uint32 skillId = 2; + Vector rebornPos = 3; +} diff --git a/proto/AvatarDieAnimationEndRsp.proto b/proto/AvatarDieAnimationEndRsp.proto new file mode 100644 index 000000000..ac0f1eabb --- /dev/null +++ b/proto/AvatarDieAnimationEndRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarDieAnimationEndRsp { + int32 retcode = 1; + uint64 dieGuid = 2; + uint32 skillId = 3; +} diff --git a/proto/AvatarEnterSceneInfo.proto b/proto/AvatarEnterSceneInfo.proto new file mode 100644 index 000000000..c4f15d55b --- /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 avatarGuid = 1; + uint32 avatarEntityId = 2; + AbilitySyncStateInfo avatarAbilityInfo = 3; + repeated uint32 buffIdList = 4; + uint64 weaponGuid = 5; + uint32 weaponEntityId = 6; + AbilitySyncStateInfo weaponAbilityInfo = 7; + repeated ServerBuff serverBuffList = 8; +} diff --git a/proto/AvatarEquipAffixInfo.proto b/proto/AvatarEquipAffixInfo.proto new file mode 100644 index 000000000..7e05f57b2 --- /dev/null +++ b/proto/AvatarEquipAffixInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarEquipAffixInfo { + uint32 equipAffixId = 1; + uint32 leftCdTime = 2; +} diff --git a/proto/AvatarEquipChangeNotify.proto b/proto/AvatarEquipChangeNotify.proto new file mode 100644 index 000000000..bc6532fdb --- /dev/null +++ b/proto/AvatarEquipChangeNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneReliquaryInfo.proto"; +import "SceneWeaponInfo.proto"; + +message AvatarEquipChangeNotify { + uint64 avatarGuid = 1; + uint32 equipType = 2; + uint32 itemId = 3; + uint64 equipGuid = 4; + SceneWeaponInfo weapon = 5; + SceneReliquaryInfo reliquary = 6; +} diff --git a/proto/AvatarExpeditionState.proto b/proto/AvatarExpeditionState.proto new file mode 100644 index 000000000..0753dd618 --- /dev/null +++ b/proto/AvatarExpeditionState.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum AvatarExpeditionState { + AvatarExpeditionNone = 0; + AvatarExpeditionDoing = 1; + AvatarExpeditionFinishWaitReward = 2; + AvatarExpeditionCallbackWaitReward = 3; +} diff --git a/proto/AvatarFetterInfo.proto b/proto/AvatarFetterInfo.proto new file mode 100644 index 000000000..408e7acc4 --- /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 expNumber = 1; + uint32 expLevel = 2; + repeated uint32 openIdList = 3; + repeated uint32 finishIdList = 4; + repeated uint32 rewardedFetterLevelList = 5; + repeated FetterData fetterList = 6; +} diff --git a/proto/AvatarFightPropNotify.proto b/proto/AvatarFightPropNotify.proto new file mode 100644 index 000000000..8d24011b8 --- /dev/null +++ b/proto/AvatarFightPropNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFightPropNotify { + uint64 avatarGuid = 1; + map fightPropMap = 2; +} diff --git a/proto/AvatarFightPropUpdateNotify.proto b/proto/AvatarFightPropUpdateNotify.proto new file mode 100644 index 000000000..040c7d0c8 --- /dev/null +++ b/proto/AvatarFightPropUpdateNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFightPropUpdateNotify { + uint64 avatarGuid = 1; + map fightPropMap = 2; +} diff --git a/proto/AvatarFlycloakChangeNotify.proto b/proto/AvatarFlycloakChangeNotify.proto new file mode 100644 index 000000000..4d7d35347 --- /dev/null +++ b/proto/AvatarFlycloakChangeNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarFlycloakChangeNotify { + uint64 avatarGuid = 1; + uint32 flycloakId = 2; +} diff --git a/proto/AvatarGainCostumeNotify.proto b/proto/AvatarGainCostumeNotify.proto new file mode 100644 index 000000000..54ef728ee --- /dev/null +++ b/proto/AvatarGainCostumeNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarGainCostumeNotify { + uint32 costumeId = 1; +} diff --git a/proto/AvatarGainFlycloakNotify.proto b/proto/AvatarGainFlycloakNotify.proto new file mode 100644 index 000000000..d21a9cbe3 --- /dev/null +++ b/proto/AvatarGainFlycloakNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarGainFlycloakNotify { + uint32 flycloakId = 1; +} diff --git a/proto/AvatarInfo.proto b/proto/AvatarInfo.proto new file mode 100644 index 000000000..f3ab4ccc1 --- /dev/null +++ b/proto/AvatarInfo.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarEquipAffixInfo.proto"; +import "AvatarExpeditionState.proto"; +import "AvatarFetterInfo.proto"; +import "AvatarSkillInfo.proto"; +import "PropValue.proto"; +import "TrialAvatarInfo.proto"; + +message AvatarInfo { + uint32 avatarId = 1; + uint64 guid = 2; + map propMap = 3; + uint32 lifeState = 4; + repeated uint64 equipGuidList = 5; + repeated uint32 talentIdList = 6; + map fightPropMap = 7; + TrialAvatarInfo trialAvatarInfoField = 9; + map skillMap = 10; + uint32 skillDepotId = 11; + AvatarFetterInfo fetterInfo = 12; + uint32 coreProudSkillLevel = 13; + repeated uint32 inherentProudSkillList = 14; + map skillLevelMap = 15; + AvatarExpeditionState expeditionState = 16; + map proudSkillExtraLevel = 17; + bool isFocusFieldNumber = 18; + uint32 avatarType = 19; + repeated uint32 teamResonanceList = 20; + uint32 wearingFlycloakId = 21; + repeated AvatarEquipAffixInfo equipAffixList = 22; + uint32 bornTime = 23; + repeated uint32 pendingPromoteRewardListFieldNumber = 24; + uint32 costumeId = 25; +} diff --git a/proto/AvatarLifeStateChangeNotify.proto b/proto/AvatarLifeStateChangeNotify.proto new file mode 100644 index 000000000..0bf816006 --- /dev/null +++ b/proto/AvatarLifeStateChangeNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message AvatarLifeStateChangeNotify { + uint64 avatarGuid = 1; + uint32 lifeState = 2; + uint32 sourceEntityId = 3; + string attackTag = 4; + PlayerDieType dieType = 5; + uint32 moveReliableSeq = 6; +} diff --git a/proto/AvatarPromoteReq.proto b/proto/AvatarPromoteReq.proto new file mode 100644 index 000000000..863ab835c --- /dev/null +++ b/proto/AvatarPromoteReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPromoteReq { + uint64 guid = 1; +} diff --git a/proto/AvatarPromoteRsp.proto b/proto/AvatarPromoteRsp.proto new file mode 100644 index 000000000..e64b9c9bc --- /dev/null +++ b/proto/AvatarPromoteRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPromoteRsp { + int32 retcode = 1; + uint64 guid = 2; +} diff --git a/proto/AvatarPropNotify.proto b/proto/AvatarPropNotify.proto new file mode 100644 index 000000000..231008dd6 --- /dev/null +++ b/proto/AvatarPropNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarPropNotify { + uint64 avatarGuid = 1; + map propMap = 2; +} diff --git a/proto/AvatarSkillChangeNotify.proto b/proto/AvatarSkillChangeNotify.proto new file mode 100644 index 000000000..066412687 --- /dev/null +++ b/proto/AvatarSkillChangeNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillChangeNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 skillDepotId = 3; + uint32 avatarSkillId = 4; + uint32 oldLevel = 5; + uint32 curLevel = 6; +} diff --git a/proto/AvatarSkillInfo.proto b/proto/AvatarSkillInfo.proto new file mode 100644 index 000000000..27417caf4 --- /dev/null +++ b/proto/AvatarSkillInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillInfo { + uint32 passCdTime = 1; + repeated uint32 fullCdTimeList = 2; + uint32 maxChargeCount = 3; +} diff --git a/proto/AvatarSkillUpgradeReq.proto b/proto/AvatarSkillUpgradeReq.proto new file mode 100644 index 000000000..01e78e2b2 --- /dev/null +++ b/proto/AvatarSkillUpgradeReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillUpgradeReq { + uint64 avatarGuid = 1; + uint32 avatarSkillId = 2; + uint32 oldLevel = 3; +} diff --git a/proto/AvatarSkillUpgradeRsp.proto b/proto/AvatarSkillUpgradeRsp.proto new file mode 100644 index 000000000..a7942f5dd --- /dev/null +++ b/proto/AvatarSkillUpgradeRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarSkillUpgradeRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 avatarSkillId = 3; + uint32 oldLevel = 4; + uint32 curLevel = 5; +} diff --git a/proto/AvatarTeam.proto b/proto/AvatarTeam.proto new file mode 100644 index 000000000..0ca666f00 --- /dev/null +++ b/proto/AvatarTeam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarTeam { + repeated uint64 avatarGuidList = 1; + string teamName = 2; +} diff --git a/proto/AvatarTeamResonanceInfo.proto b/proto/AvatarTeamResonanceInfo.proto new file mode 100644 index 000000000..beae1d212 --- /dev/null +++ b/proto/AvatarTeamResonanceInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarTeamResonanceInfo { + uint32 entityId = 1; + uint64 avatarGuid = 2; + repeated uint32 addTeamResonanceIdList = 3; + repeated uint32 delTeamResonanceIdList = 4; +} diff --git a/proto/AvatarTeamUpdateNotify.proto b/proto/AvatarTeamUpdateNotify.proto new file mode 100644 index 000000000..b68f7ce78 --- /dev/null +++ b/proto/AvatarTeamUpdateNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeam.proto"; + +message AvatarTeamUpdateNotify { + map avatarTeamMap = 1; + repeated uint64 tempAvatarGuidList = 2; +} diff --git a/proto/AvatarUnlockTalentNotify.proto b/proto/AvatarUnlockTalentNotify.proto new file mode 100644 index 000000000..91500c3fe --- /dev/null +++ b/proto/AvatarUnlockTalentNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUnlockTalentNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 talentId = 3; + uint32 skillDepotId = 4; +} diff --git a/proto/AvatarUpgradeReq.proto b/proto/AvatarUpgradeReq.proto new file mode 100644 index 000000000..7ad936c07 --- /dev/null +++ b/proto/AvatarUpgradeReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUpgradeReq { + uint32 itemId = 1; + uint32 count = 2; + uint64 avatarGuid = 3; +} diff --git a/proto/AvatarUpgradeRsp.proto b/proto/AvatarUpgradeRsp.proto new file mode 100644 index 000000000..0d50cfab0 --- /dev/null +++ b/proto/AvatarUpgradeRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarUpgradeRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + map oldFightPropMap = 5; + map curFightPropMap = 6; +} diff --git a/proto/AvatarWearFlycloakReq.proto b/proto/AvatarWearFlycloakReq.proto new file mode 100644 index 000000000..92b067f98 --- /dev/null +++ b/proto/AvatarWearFlycloakReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarWearFlycloakReq { + uint64 avatarGuid = 1; + uint32 flycloakId = 2; +} diff --git a/proto/AvatarWearFlycloakRsp.proto b/proto/AvatarWearFlycloakRsp.proto new file mode 100644 index 000000000..78d179fa6 --- /dev/null +++ b/proto/AvatarWearFlycloakRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message AvatarWearFlycloakRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 flycloakId = 3; +} diff --git a/proto/Birthday.proto b/proto/Birthday.proto new file mode 100644 index 000000000..b360bcfd2 --- /dev/null +++ b/proto/Birthday.proto @@ -0,0 +1,8 @@ +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 100644 index 000000000..5905e3573 --- /dev/null +++ b/proto/BlockInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message BlockInfo { + uint32 blockId = 1; + uint32 dataVersion = 2; + bytes binData = 3; + bool isDirty = 4; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsReq.proto b/proto/CalcWeaponUpgradeReturnItemsReq.proto new file mode 100644 index 000000000..be6bcd98b --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsReq { + uint64 targetWeaponGuid = 1; + repeated uint64 foodWeaponGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/CalcWeaponUpgradeReturnItemsRsp.proto b/proto/CalcWeaponUpgradeReturnItemsRsp.proto new file mode 100644 index 000000000..5b0733d36 --- /dev/null +++ b/proto/CalcWeaponUpgradeReturnItemsRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message CalcWeaponUpgradeReturnItemsRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/ChangeAvatarReq.proto b/proto/ChangeAvatarReq.proto new file mode 100644 index 000000000..8ef593ea7 --- /dev/null +++ b/proto/ChangeAvatarReq.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message ChangeAvatarReq { + uint64 guid = 1; + uint32 skillId = 2; + bool isMove = 3; + Vector movePos = 4; +} diff --git a/proto/ChangeAvatarRsp.proto b/proto/ChangeAvatarRsp.proto new file mode 100644 index 000000000..08281c41a --- /dev/null +++ b/proto/ChangeAvatarRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeAvatarRsp { + uint32 retcode = 1; + uint64 currGuid = 2; + uint32 skillId = 3; +} diff --git a/proto/ChangeGameTimeReq.proto b/proto/ChangeGameTimeReq.proto new file mode 100644 index 000000000..474c964de --- /dev/null +++ b/proto/ChangeGameTimeReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeGameTimeReq { + uint32 gameTime = 1; + bool isForceSet = 2; +} diff --git a/proto/ChangeGameTimeRsp.proto b/proto/ChangeGameTimeRsp.proto new file mode 100644 index 000000000..75c94a366 --- /dev/null +++ b/proto/ChangeGameTimeRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeGameTimeRsp { + int32 retcode = 1; + uint32 curGameTime = 2; +} diff --git a/proto/ChangeHpReason.proto b/proto/ChangeHpReason.proto new file mode 100644 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/ChangeMpTeamAvatarReq.proto b/proto/ChangeMpTeamAvatarReq.proto new file mode 100644 index 000000000..8a90c871a --- /dev/null +++ b/proto/ChangeMpTeamAvatarReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMpTeamAvatarReq { + repeated uint64 avatarGuidList = 1; + uint64 curAvatarGuid = 2; +} diff --git a/proto/ChangeMpTeamAvatarRsp.proto b/proto/ChangeMpTeamAvatarRsp.proto new file mode 100644 index 000000000..ae0b49952 --- /dev/null +++ b/proto/ChangeMpTeamAvatarRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeMpTeamAvatarRsp { + int32 retcode = 1; + repeated uint64 avatarGuidList = 2; + uint64 curAvatarGuid = 3; +} diff --git a/proto/ChangeTeamNameReq.proto b/proto/ChangeTeamNameReq.proto new file mode 100644 index 000000000..87423b3dc --- /dev/null +++ b/proto/ChangeTeamNameReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeTeamNameReq { + int32 teamId = 1; + string teamName = 2; +} diff --git a/proto/ChangeTeamNameRsp.proto b/proto/ChangeTeamNameRsp.proto new file mode 100644 index 000000000..51607c66a --- /dev/null +++ b/proto/ChangeTeamNameRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChangeTeamNameRsp { + int32 teamId = 1; + string teamName = 2; + int32 retcode = 3; +} diff --git a/proto/ChatInfo.proto b/proto/ChatInfo.proto new file mode 100644 index 000000000..7b47d7f28 --- /dev/null +++ b/proto/ChatInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SystemHint.proto"; + +message ChatInfo { + uint32 time = 1; + uint32 uid = 2; + uint32 sequence = 3; + uint32 toUid = 4; + bool isRead = 5; + oneof content { + string text = 100; + uint32 icon = 101; + SystemHint systemHint = 102; + } +} diff --git a/proto/ChooseCurAvatarTeamReq.proto b/proto/ChooseCurAvatarTeamReq.proto new file mode 100644 index 000000000..bc9bd84c8 --- /dev/null +++ b/proto/ChooseCurAvatarTeamReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChooseCurAvatarTeamReq { + uint32 teamId = 1; +} diff --git a/proto/ChooseCurAvatarTeamRsp.proto b/proto/ChooseCurAvatarTeamRsp.proto new file mode 100644 index 000000000..2a168a763 --- /dev/null +++ b/proto/ChooseCurAvatarTeamRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ChooseCurAvatarTeamRsp { + int32 retcode = 1; + uint32 curTeamId = 2; +} diff --git a/proto/CityInfo.proto b/proto/CityInfo.proto new file mode 100644 index 000000000..8d6f31bf0 --- /dev/null +++ b/proto/CityInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CityInfo { + uint32 cityId = 1; + uint32 level = 2; + uint32 crystalNum = 3; +} diff --git a/proto/ClientAbilityChangeNotify.proto b/proto/ClientAbilityChangeNotify.proto new file mode 100644 index 000000000..19f1fd57b --- /dev/null +++ b/proto/ClientAbilityChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityChangeNotify { + uint32 entityId = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/ClientAbilityInitBeginNotify.proto b/proto/ClientAbilityInitBeginNotify.proto new file mode 100644 index 000000000..03bc7a630 --- /dev/null +++ b/proto/ClientAbilityInitBeginNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ClientAbilityInitBeginNotify { + uint32 entityId = 1; +} diff --git a/proto/ClientAbilityInitFinishNotify.proto b/proto/ClientAbilityInitFinishNotify.proto new file mode 100644 index 000000000..1078434be --- /dev/null +++ b/proto/ClientAbilityInitFinishNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityInvokeEntry.proto"; + +message ClientAbilityInitFinishNotify { + uint32 entityId = 1; + repeated AbilityInvokeEntry invokes = 2; +} diff --git a/proto/CombatInvocationsNotify.proto b/proto/CombatInvocationsNotify.proto new file mode 100644 index 000000000..8669d1a9a --- /dev/null +++ b/proto/CombatInvocationsNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CombatInvokeEntry.proto"; + +message CombatInvocationsNotify { + repeated CombatInvokeEntry invokeList = 1; +} diff --git a/proto/CombatInvokeEntry.proto b/proto/CombatInvokeEntry.proto new file mode 100644 index 000000000..43e2eedaa --- /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 argumentType = 1; + ForwardType forwardType = 2; + bytes combatData = 3; +} diff --git a/proto/CombatTypeArgument.proto b/proto/CombatTypeArgument.proto new file mode 100644 index 000000000..ab5eef088 --- /dev/null +++ b/proto/CombatTypeArgument.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum CombatTypeArgument { + CombatNone = 0; + CombatEvtBeingHit = 1; + CombatAnimatorStateChanged = 2; + CombatFaceToDir = 3; + CombatSetAttackTarget = 4; + CombatRushMove = 5; + CombatAnimatorParameterChanged = 6; + EntityMove = 7; + SyncEntityPosition = 8; + CombatSteerMotionInfo = 9; + CombatForceSetPosInfo = 10; + CombatCompensatePosDiff = 11; + CombatMonsterDoBlink = 12; + CombatFixedRushMove = 13; + CombatSyncTransform = 14; +} diff --git a/proto/CoopCg.proto b/proto/CoopCg.proto new file mode 100644 index 000000000..5702ac651 --- /dev/null +++ b/proto/CoopCg.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message CoopCg { + uint32 id = 1; + bool isUnlock = 2; +} diff --git a/proto/CoopChapter.proto b/proto/CoopChapter.proto new file mode 100644 index 000000000..817f23533 --- /dev/null +++ b/proto/CoopChapter.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopCg.proto"; +import "CoopChapterState.proto"; +import "CoopPoint.proto"; +import "CoopReward.proto"; + +message CoopChapter { + uint32 id = 1; + CoopChapterState state = 2; + repeated uint32 lockReasonList = 3; + repeated CoopPoint coopPointList = 4; + repeated CoopReward coopRewardList = 5; + repeated CoopCg coopCgList = 6; + uint32 totalEndCount = 7; + uint32 finishedEndCount = 8; + map seenEndingMap = 9; + repeated uint32 finishDialogList = 10; +} diff --git a/proto/CoopChapterState.proto b/proto/CoopChapterState.proto new file mode 100644 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 100644 index 000000000..ea1ee81e7 --- /dev/null +++ b/proto/CoopDataNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopChapter.proto"; + +message CoopDataNotify { + repeated CoopChapter chapterList = 1; + bool isHaveProgress = 2; + uint32 curCoopPoint = 3; + repeated uint32 viewedChapterList = 4; +} diff --git a/proto/CoopPoint.proto b/proto/CoopPoint.proto new file mode 100644 index 000000000..f5391440d --- /dev/null +++ b/proto/CoopPoint.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopPointState.proto"; + +message CoopPoint { + uint32 id = 1; + CoopPointState state = 2; + uint32 selfConfidence = 3; +} diff --git a/proto/CoopPointState.proto b/proto/CoopPointState.proto new file mode 100644 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 100644 index 000000000..47086cc76 --- /dev/null +++ b/proto/CoopReward.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CoopRewardState.proto"; + +message CoopReward { + uint32 id = 1; + CoopRewardState state = 2; +} diff --git a/proto/CoopRewardState.proto b/proto/CoopRewardState.proto new file mode 100644 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 100644 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/DateTimeDelete.proto b/proto/DateTimeDelete.proto new file mode 100644 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 100644 index 000000000..5a0fa0878 --- /dev/null +++ b/proto/DealAddFriendReq.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendReq { + uint32 targetUid = 1; + DealAddFriendResultType dealAddFriendResult = 2; +} diff --git a/proto/DealAddFriendResultType.proto b/proto/DealAddFriendResultType.proto new file mode 100644 index 000000000..d9516f5cc --- /dev/null +++ b/proto/DealAddFriendResultType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum DealAddFriendResultType { + DealAddFriendReject = 0; + DealAddFriendAccept = 1; +} diff --git a/proto/DealAddFriendRsp.proto b/proto/DealAddFriendRsp.proto new file mode 100644 index 000000000..330c3b3ed --- /dev/null +++ b/proto/DealAddFriendRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DealAddFriendResultType.proto"; + +message DealAddFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; + DealAddFriendResultType dealAddFriendResult = 3; +} diff --git a/proto/DelTeamEntityNotify.proto b/proto/DelTeamEntityNotify.proto new file mode 100644 index 000000000..a5fbda5c1 --- /dev/null +++ b/proto/DelTeamEntityNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DelTeamEntityNotify { + uint32 sceneId = 1; + repeated uint32 delEntityIdList = 2; +} diff --git a/proto/DelayWeekCountDownDelete.proto b/proto/DelayWeekCountDownDelete.proto new file mode 100644 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 100644 index 000000000..224e411f4 --- /dev/null +++ b/proto/DeleteFriendNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendNotify { + uint32 targetUid = 1; +} diff --git a/proto/DeleteFriendReq.proto b/proto/DeleteFriendReq.proto new file mode 100644 index 000000000..fa4b371a1 --- /dev/null +++ b/proto/DeleteFriendReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendReq { + uint32 targetUid = 1; +} diff --git a/proto/DeleteFriendRsp.proto b/proto/DeleteFriendRsp.proto new file mode 100644 index 000000000..666e670d1 --- /dev/null +++ b/proto/DeleteFriendRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DeleteFriendRsp { + int32 retcode = 1; + uint32 targetUid = 2; +} diff --git a/proto/DestroyMaterialReq.proto b/proto/DestroyMaterialReq.proto new file mode 100644 index 000000000..6dad136b3 --- /dev/null +++ b/proto/DestroyMaterialReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MaterialInfo.proto"; + +message DestroyMaterialReq { + repeated MaterialInfo materialList = 1; +} diff --git a/proto/DestroyMaterialRsp.proto b/proto/DestroyMaterialRsp.proto new file mode 100644 index 000000000..edbad052f --- /dev/null +++ b/proto/DestroyMaterialRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DestroyMaterialRsp { + int32 retcode = 1; + repeated uint32 itemIdList = 2; + repeated uint32 itemCountList = 3; +} diff --git a/proto/DoGachaReq.proto b/proto/DoGachaReq.proto new file mode 100644 index 000000000..b841b5358 --- /dev/null +++ b/proto/DoGachaReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DoGachaReq { + uint32 gachaType = 1; + uint32 gachaTimes = 2; + uint32 gachaRandom = 3; + uint32 gachaScheduleId = 4; + string gachaTag = 5; +} diff --git a/proto/DoGachaRsp.proto b/proto/DoGachaRsp.proto new file mode 100644 index 000000000..3aebde56c --- /dev/null +++ b/proto/DoGachaRsp.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaItem.proto"; + +message DoGachaRsp { + int32 retcode = 1; + uint32 gachaType = 2; + uint32 gachaTimes = 3; + uint32 gachaScheduleId = 4; + repeated GachaItem gachaItemList = 5; + uint32 newGachaRandom = 6; + uint32 costItemId = 7; + uint32 costItemNum = 8; + uint32 tenCostItemId = 9; + uint32 tenCostItemNum = 10; + uint32 leftGachaTimes = 11; + uint32 gachaTimesLimit = 12; +} diff --git a/proto/DropHintNotify.proto b/proto/DropHintNotify.proto new file mode 100644 index 000000000..e0d7cf515 --- /dev/null +++ b/proto/DropHintNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Vector.proto"; + +message DropHintNotify { + repeated uint32 itemIdList = 1; + Vector position = 2; +} diff --git a/proto/DungeonEntryInfo.proto b/proto/DungeonEntryInfo.proto new file mode 100644 index 000000000..0af679a1e --- /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 dungeonId = 1; + bool isPassed = 2; + uint32 leftTimes = 3; + uint32 startTime = 4; + uint32 endTime = 5; + uint32 maxBossChestNum = 6; + uint32 bossChestNum = 7; + uint32 nextRefreshTime = 8; + WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; +} diff --git a/proto/DungeonEntryInfoReq.proto b/proto/DungeonEntryInfoReq.proto new file mode 100644 index 000000000..12557f4de --- /dev/null +++ b/proto/DungeonEntryInfoReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message DungeonEntryInfoReq { + uint32 pointId = 1; +} diff --git a/proto/DungeonEntryInfoRsp.proto b/proto/DungeonEntryInfoRsp.proto new file mode 100644 index 000000000..d83bcefe3 --- /dev/null +++ b/proto/DungeonEntryInfoRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "DungeonEntryInfo.proto"; + +message DungeonEntryInfoRsp { + int32 retcode = 1; + uint32 pointId = 2; + repeated DungeonEntryInfo dungeonEntryList = 3; + uint32 recommendDungeonId = 4; +} diff --git a/proto/EnterSceneDoneRsp.proto b/proto/EnterSceneDoneRsp.proto new file mode 100644 index 000000000..df1556787 --- /dev/null +++ b/proto/EnterSceneDoneRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterSceneDoneRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/EnterScenePeerNotify.proto b/proto/EnterScenePeerNotify.proto new file mode 100644 index 000000000..17d5302e4 --- /dev/null +++ b/proto/EnterScenePeerNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterScenePeerNotify { + uint32 destSceneId = 1; + uint32 peerId = 2; + uint32 hostPeerId = 3; + uint32 EnterSceneToken = 4; +} diff --git a/proto/EnterSceneReadyRsp.proto b/proto/EnterSceneReadyRsp.proto new file mode 100644 index 000000000..6cde8d190 --- /dev/null +++ b/proto/EnterSceneReadyRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterSceneReadyRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/EnterType.proto b/proto/EnterType.proto new file mode 100644 index 000000000..6794046b2 --- /dev/null +++ b/proto/EnterType.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum EnterType { + EnterNone = 0; + EnterSelf = 1; + EnterGoto = 2; + EnterJump = 3; + EnterOther = 4; + EnterBack = 5; + EnterDungeon = 6; + EnterDungeonReplay = 7; + EnterGotoByPortal = 8; + EnterSelfHome = 9; + EnterOtherHome = 10; +} diff --git a/proto/EnterWorldAreaReq.proto b/proto/EnterWorldAreaReq.proto new file mode 100644 index 000000000..d367117a2 --- /dev/null +++ b/proto/EnterWorldAreaReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterWorldAreaReq { + uint32 areaType = 1; + uint32 areaId = 2; +} diff --git a/proto/EnterWorldAreaRsp.proto b/proto/EnterWorldAreaRsp.proto new file mode 100644 index 000000000..e2cf96709 --- /dev/null +++ b/proto/EnterWorldAreaRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EnterWorldAreaRsp { + uint32 areaType = 2; + uint32 areaId = 3; +} diff --git a/proto/EntityAiSyncNotify.proto b/proto/EntityAiSyncNotify.proto new file mode 100644 index 000000000..3e2040d8a --- /dev/null +++ b/proto/EntityAiSyncNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSyncInfo.proto"; + +message EntityAiSyncNotify { + repeated AiSyncInfo infoList = 1; + repeated uint32 localAvatarAlertedMonsterList = 2; +} diff --git a/proto/EntityAuthorityInfo.proto b/proto/EntityAuthorityInfo.proto new file mode 100644 index 000000000..649f9e37d --- /dev/null +++ b/proto/EntityAuthorityInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; +import "AnimatorParameterValueInfoPair.proto"; +import "EntityRendererChangedInfo.proto"; +import "SceneEntityAiInfo.proto"; +import "Vector.proto"; + +message EntityAuthorityInfo {; + AbilitySyncStateInfo abilityInfo = 1; + EntityRendererChangedInfo rendererChangedInfo = 2; + SceneEntityAiInfo aiInfo = 3; + Vector bornPos = 4; + repeated AnimatorParameterValueInfoPair poseParaList = 5; +} diff --git a/proto/EntityClientData.proto b/proto/EntityClientData.proto new file mode 100644 index 000000000..df639c9d9 --- /dev/null +++ b/proto/EntityClientData.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityClientData { + uint32 windChangeSceneTime = 1; + float windmillSyncAngle = 2; + int32 windChangeTargetLevel = 3; +} diff --git a/proto/EntityEnvironmentInfo.proto b/proto/EntityEnvironmentInfo.proto new file mode 100644 index 000000000..37ba46781 --- /dev/null +++ b/proto/EntityEnvironmentInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityEnvironmentInfo { + uint32 jsonClimateType = 1; + uint32 climateAreaId = 2; +} diff --git a/proto/EntityFightPropChangeReasonNotify.proto b/proto/EntityFightPropChangeReasonNotify.proto new file mode 100644 index 000000000..2bbda0603 --- /dev/null +++ b/proto/EntityFightPropChangeReasonNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChangeHpReason.proto"; +import "PropChangeReason.proto"; + +message EntityFightPropChangeReasonNotify { + uint32 entityId = 1; + uint32 propType = 2; + float propDelta = 3; + PropChangeReason reason = 4; + repeated uint32 paramList = 5; + ChangeHpReason changeHpReason = 6; +} diff --git a/proto/EntityFightPropUpdateNotify.proto b/proto/EntityFightPropUpdateNotify.proto new file mode 100644 index 000000000..d438a269a --- /dev/null +++ b/proto/EntityFightPropUpdateNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityFightPropUpdateNotify { + uint32 entityId = 1; + map fightPropMap = 2; +} diff --git a/proto/EntityMoveInfo.proto b/proto/EntityMoveInfo.proto new file mode 100644 index 000000000..008533456 --- /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 entityId = 1; + MotionInfo motionInfo = 2; + uint32 sceneTime = 3; + uint32 reliableSeq = 4; + bool isReliable = 5; +} diff --git a/proto/EntityPropNotify.proto b/proto/EntityPropNotify.proto new file mode 100644 index 000000000..b2175f3b4 --- /dev/null +++ b/proto/EntityPropNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message EntityPropNotify { + uint32 entityId = 1; + map propMap = 2; +} diff --git a/proto/EntityRendererChangedInfo.proto b/proto/EntityRendererChangedInfo.proto new file mode 100644 index 000000000..97141d9c2 --- /dev/null +++ b/proto/EntityRendererChangedInfo.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message EntityRendererChangedInfo { + map changedRenderers = 1; + uint32 visibilityCount = 2; + bool isCached = 3; +} diff --git a/proto/Equip.proto b/proto/Equip.proto new file mode 100644 index 000000000..2c57f6d2c --- /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 isLocked = 3; +} diff --git a/proto/EvtAiSyncCombatThreatInfoNotify.proto b/proto/EvtAiSyncCombatThreatInfoNotify.proto new file mode 100644 index 000000000..1ae707900 --- /dev/null +++ b/proto/EvtAiSyncCombatThreatInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiThreatInfo.proto"; + +message EvtAiSyncCombatThreatInfoNotify { + map combatThreatInfoMap = 1; +} diff --git a/proto/EvtAiSyncSkillCdNotify.proto b/proto/EvtAiSyncSkillCdNotify.proto new file mode 100644 index 000000000..2e33a7c1e --- /dev/null +++ b/proto/EvtAiSyncSkillCdNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AiSkillCdInfo.proto"; + +message EvtAiSyncSkillCdNotify { + map aiCdMap = 1; +} diff --git a/proto/EvtBeingHitInfo.proto b/proto/EvtBeingHitInfo.proto new file mode 100644 index 000000000..cbfbf78f1 --- /dev/null +++ b/proto/EvtBeingHitInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AttackResult.proto"; + +message EvtBeingHitInfo { + uint32 peerId = 1; + AttackResult attackResult = 2; +} diff --git a/proto/EvtBeingHitNotify.proto b/proto/EvtBeingHitNotify.proto new file mode 100644 index 000000000..5e27f02be --- /dev/null +++ b/proto/EvtBeingHitNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EvtBeingHitInfo.proto"; +import "ForwardType.proto"; + +message EvtBeingHitNotify { + ForwardType forwardType = 1; + EvtBeingHitInfo beingHitInfo = 2; +} diff --git a/proto/EvtBeingHitsCombineNotify.proto b/proto/EvtBeingHitsCombineNotify.proto new file mode 100644 index 000000000..40ee6738a --- /dev/null +++ b/proto/EvtBeingHitsCombineNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EvtBeingHitInfo.proto"; +import "ForwardType.proto"; + +message EvtBeingHitsCombineNotify { + ForwardType forwardType = 1; + repeated EvtBeingHitInfo evtBeingHitInfoList = 2; +} diff --git a/proto/EvtCreateGadgetNotify.proto b/proto/EvtCreateGadgetNotify.proto new file mode 100644 index 000000000..ab6eeea0f --- /dev/null +++ b/proto/EvtCreateGadgetNotify.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; +import "Vector.proto"; + +message EvtCreateGadgetNotify { + ForwardType forwardType = 1; + uint32 entityId = 2; + uint32 configId = 3; + uint32 campId = 4; + uint32 campType = 5; + Vector initPos = 6; + Vector initEulerAngles = 7; + uint64 guid = 8; + uint32 ownerEntityId = 9; + uint32 targetEntityId = 10; + bool isAsyncLoad = 11; + uint32 targetLockPointIndex = 12; + uint32 roomId = 13; + uint32 propOwnerEntityId = 14; + bool sightGroupWithOwner = 15; +} diff --git a/proto/EvtDestroyGadgetNotify.proto b/proto/EvtDestroyGadgetNotify.proto new file mode 100644 index 000000000..c1708617d --- /dev/null +++ b/proto/EvtDestroyGadgetNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ForwardType.proto"; + +message EvtDestroyGadgetNotify { + ForwardType forwardType = 1; + uint32 entityId = 2; +} diff --git a/proto/EvtHittingOtherInfo.proto b/proto/EvtHittingOtherInfo.proto new file mode 100644 index 000000000..f2dce261e --- /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 peerId = 1; + AttackResult attackResult = 2; +} diff --git a/proto/FeatureBlockInfo.proto b/proto/FeatureBlockInfo.proto new file mode 100644 index 000000000..8feafc83d --- /dev/null +++ b/proto/FeatureBlockInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FeatureBlockInfo { + uint32 featureType = 1; + uint32 endTime = 2; +} diff --git a/proto/FetterData.proto b/proto/FetterData.proto new file mode 100644 index 000000000..92ea23266 --- /dev/null +++ b/proto/FetterData.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FetterData { + uint32 fetterId = 1; + uint32 fetterState = 2; + repeated uint32 condIndexList = 3; +} diff --git a/proto/FightPropPair.proto b/proto/FightPropPair.proto new file mode 100644 index 000000000..fb6f0e3eb --- /dev/null +++ b/proto/FightPropPair.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message FightPropPair { + uint32 type = 1; + float propValue = 2; +} diff --git a/proto/ForwardType.proto b/proto/ForwardType.proto new file mode 100644 index 000000000..329e2ef6f --- /dev/null +++ b/proto/ForwardType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ForwardType { + ForwardLocal = 0; + ForwardToAll = 1; + ForwardToAllExceptCur = 2; + ForwardToHost = 3; + ForwardToAllGuest = 4; + ForwardToPeer = 5; + ForwardToPeers = 6; + ForwardOnlyServer = 7; + ForwardToAllExistExceptCur = 8; +} diff --git a/proto/FriendBrief.proto b/proto/FriendBrief.proto new file mode 100644 index 000000000..9b1819222 --- /dev/null +++ b/proto/FriendBrief.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendEnterHomeOption.proto"; +import "FriendOnlineState.proto"; +import "HeadImage.proto"; +import "SocialShowAvatarInfo.proto"; + +message FriendBrief { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + uint32 worldLevel = 5; + string signature = 6; + FriendOnlineState onlineState = 7; + uint32 param = 8; + bool isMpModeAvailable = 10; + string onlineId = 11; + uint32 lastActiveTime = 12; + uint32 nameCardId = 13; + uint32 mpPlayerNum = 14; + bool isChatNoDisturb = 15; + uint32 chatSequence = 16; + string remarkName = 17; + repeated SocialShowAvatarInfo showAvatarInfoList = 22; + FriendEnterHomeOption friendEnterHomeOption = 23; + HeadImage avatar = 24; + uint32 unk1 = 25; + uint32 unk2 = 27; +} diff --git a/proto/FriendEnterHomeOption.proto b/proto/FriendEnterHomeOption.proto new file mode 100644 index 000000000..2e3e6af25 --- /dev/null +++ b/proto/FriendEnterHomeOption.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendEnterHomeOption { + NeedConfirm = 0; + Refuse = 1; + Direct = 2; +} diff --git a/proto/FriendOnlineState.proto b/proto/FriendOnlineState.proto new file mode 100644 index 000000000..ea1f2ba86 --- /dev/null +++ b/proto/FriendOnlineState.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum FriendOnlineState { + FRIEND_DISCONNECT = 0; + FRIEND_ONLINE = 1; +} diff --git a/proto/Furniture.proto b/proto/Furniture.proto new file mode 100644 index 000000000..dc4a2a383 --- /dev/null +++ b/proto/Furniture.proto @@ -0,0 +1,7 @@ +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 100644 index 000000000..5399ab709 --- /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; +} diff --git a/proto/GachaItem.proto b/proto/GachaItem.proto new file mode 100644 index 000000000..7b39a9905 --- /dev/null +++ b/proto/GachaItem.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaTransferItem.proto"; +import "ItemParam.proto"; + +message GachaItem { + ItemParam gachaItem = 1; + repeated GachaTransferItem transferItems = 2; + bool isFlashCard = 3; + bool isGachaItemNew = 4; + repeated ItemParam tokenItemList = 5; +} diff --git a/proto/GachaTransferItem.proto b/proto/GachaTransferItem.proto new file mode 100644 index 000000000..715339da6 --- /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 isTransferItemNew = 2; +} diff --git a/proto/GachaUpInfo.proto b/proto/GachaUpInfo.proto new file mode 100644 index 000000000..df195cf56 --- /dev/null +++ b/proto/GachaUpInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GachaUpInfo { + uint32 itemParentType = 1; + repeated uint32 itemIdList = 2; +} diff --git a/proto/GadgetBornType.proto b/proto/GadgetBornType.proto new file mode 100644 index 000000000..beddb854a --- /dev/null +++ b/proto/GadgetBornType.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum GadgetBornType { + GadgetBornNone = 0; + GadgetBornInAir = 1; + GadgetBornPlayer = 2; + GadgetBornMonsterHit = 3; + GadgetBornMonsterDie = 4; + GadgetBornGadget = 5; + GadgetBornGround = 6; +} diff --git a/proto/GadgetClientParam.proto b/proto/GadgetClientParam.proto new file mode 100644 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 100644 index 000000000..766e4556e --- /dev/null +++ b/proto/GadgetCrucibleInfo.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GadgetCrucibleInfo { + +} diff --git a/proto/GadgetInteractReq.proto b/proto/GadgetInteractReq.proto new file mode 100644 index 000000000..fb3df4283 --- /dev/null +++ b/proto/GadgetInteractReq.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InterOpType.proto"; +import "ResinCostType.proto"; + +message GadgetInteractReq { + uint32 gadgetEntityId = 1; + InterOpType opType = 2; + uint32 gadgetId = 3; + bool isUseCondenseResin = 4; + ResinCostType resinCostType = 5; +} diff --git a/proto/GadgetInteractRsp.proto b/proto/GadgetInteractRsp.proto new file mode 100644 index 000000000..c08161b72 --- /dev/null +++ b/proto/GadgetInteractRsp.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "InterOpType.proto"; +import "InteractType.proto"; + +message GadgetInteractRsp { + int32 retcode = 1; + uint32 gadgetEntityId = 2; + InteractType interactType = 3; + InterOpType opType = 4; + uint32 gadgetId = 5; +} diff --git a/proto/GadgetPlayInfo.proto b/proto/GadgetPlayInfo.proto new file mode 100644 index 000000000..28fe9a79a --- /dev/null +++ b/proto/GadgetPlayInfo.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GadgetCrucibleInfo.proto"; + +message GadgetPlayInfo { + uint32 playType = 1; + uint32 duration = 2; + repeated uint32 progressStageList = 3; + uint32 startCd = 4; + uint32 startTime = 5; + uint32 progress = 6; + oneof playInfo { + GadgetCrucibleInfo crucibleInfo = 21; + } +} diff --git a/proto/GetActivityInfoRsp.proto b/proto/GetActivityInfoRsp.proto new file mode 100644 index 000000000..e44903a4f --- /dev/null +++ b/proto/GetActivityInfoRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ActivityInfo.proto"; + +message GetActivityInfoRsp { + int32 retcode = 1; + repeated ActivityInfo activityInfoList = 2; + repeated uint32 activatedSaleIdList = 3; +} diff --git a/proto/GetAllUnlockNameCardRsp.proto b/proto/GetAllUnlockNameCardRsp.proto new file mode 100644 index 000000000..1a9335085 --- /dev/null +++ b/proto/GetAllUnlockNameCardRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAllUnlockNameCardRsp { + int32 retcode = 1; + repeated uint32 nameCardList = 2; +} diff --git a/proto/GetAuthkeyReq.proto b/proto/GetAuthkeyReq.proto new file mode 100644 index 000000000..f4c212c23 --- /dev/null +++ b/proto/GetAuthkeyReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAuthkeyReq { + string authAppid = 1; + uint32 signType = 2; + uint32 authkeyVer = 3; +} diff --git a/proto/GetAuthkeyRsp.proto b/proto/GetAuthkeyRsp.proto new file mode 100644 index 000000000..584251a11 --- /dev/null +++ b/proto/GetAuthkeyRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetAuthkeyRsp { + int32 retcode = 1; + string authkey = 2; + string authAppid = 3; + uint32 signType = 4; + uint32 authkeyVer = 5; + string gameBiz = 6; +} diff --git a/proto/GetGachaInfoRsp.proto b/proto/GetGachaInfoRsp.proto new file mode 100644 index 000000000..c275f5666 --- /dev/null +++ b/proto/GetGachaInfoRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GachaInfo.proto"; + +message GetGachaInfoRsp { + int32 retcode = 1; + repeated GachaInfo gachaInfoList = 2; + uint32 gachaRandom = 3; +} diff --git a/proto/GetPlayerAskFriendListRsp.proto b/proto/GetPlayerAskFriendListRsp.proto new file mode 100644 index 000000000..c783f380f --- /dev/null +++ b/proto/GetPlayerAskFriendListRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerAskFriendListRsp { + int32 retcode = 1; + repeated FriendBrief askFriendList = 2; +} diff --git a/proto/GetPlayerBlacklistRsp.proto b/proto/GetPlayerBlacklistRsp.proto new file mode 100644 index 000000000..979e983fb --- /dev/null +++ b/proto/GetPlayerBlacklistRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerBlacklistRsp { + int32 retcode = 1; + repeated FriendBrief blacklist = 2; +} diff --git a/proto/GetPlayerFriendListRsp.proto b/proto/GetPlayerFriendListRsp.proto new file mode 100644 index 000000000..95f8c5e87 --- /dev/null +++ b/proto/GetPlayerFriendListRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "FriendBrief.proto"; + +message GetPlayerFriendListRsp { + int32 retcode = 1; + repeated FriendBrief friendList = 2; + repeated FriendBrief askFriendList = 3; +} diff --git a/proto/GetPlayerSocialDetailReq.proto b/proto/GetPlayerSocialDetailReq.proto new file mode 100644 index 000000000..490542654 --- /dev/null +++ b/proto/GetPlayerSocialDetailReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerSocialDetailReq { + uint32 uid = 1; +} diff --git a/proto/GetPlayerSocialDetailRsp.proto b/proto/GetPlayerSocialDetailRsp.proto new file mode 100644 index 000000000..95d9e893e --- /dev/null +++ b/proto/GetPlayerSocialDetailRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SocialDetail.proto"; + +message GetPlayerSocialDetailRsp { + int32 retcode = 1; + SocialDetail detailData = 2; +} diff --git a/proto/GetPlayerTokenReq.proto b/proto/GetPlayerTokenReq.proto new file mode 100644 index 000000000..083a0300b --- /dev/null +++ b/proto/GetPlayerTokenReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerTokenReq { + uint32 accountType = 1; + string accountUid = 2; + string accountToken = 3; + uint64 platformType = 7; + uint64 schannelId = 11; +} diff --git a/proto/GetPlayerTokenRsp.proto b/proto/GetPlayerTokenRsp.proto new file mode 100644 index 000000000..011e50041 --- /dev/null +++ b/proto/GetPlayerTokenRsp.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetPlayerTokenRsp { + uint32 playerUid = 3; + string accountToken = 4; + int32 accountType = 6; + bool isProficientPlayer = 8; + uint32 gmUid = 10; + uint64 secretKey = 11; + bytes secretKeyBuffer = 12; + uint64 platformType = 13; + uint32 channelId = 16; + string countryCode = 19; + string unk1 = 22; + uint32 unk3 = 23; + string clientIp = 24; +} diff --git a/proto/GetSceneAreaReq.proto b/proto/GetSceneAreaReq.proto new file mode 100644 index 000000000..c66483678 --- /dev/null +++ b/proto/GetSceneAreaReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetSceneAreaReq { + uint32 sceneId = 1; + uint32 belongUid = 2; +} diff --git a/proto/GetSceneAreaRsp.proto b/proto/GetSceneAreaRsp.proto new file mode 100644 index 000000000..b25ae29f3 --- /dev/null +++ b/proto/GetSceneAreaRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CityInfo.proto"; + +message GetSceneAreaRsp { + int32 retcode = 1; + uint32 sceneId = 2; + repeated uint32 areaIdList = 3; + repeated CityInfo cityInfoList = 4; +} diff --git a/proto/GetScenePointReq.proto b/proto/GetScenePointReq.proto new file mode 100644 index 000000000..42538a417 --- /dev/null +++ b/proto/GetScenePointReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetScenePointReq { + uint32 sceneId = 1; + uint32 belongUid = 2; +} diff --git a/proto/GetScenePointRsp.proto b/proto/GetScenePointRsp.proto new file mode 100644 index 000000000..7973829c5 --- /dev/null +++ b/proto/GetScenePointRsp.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetScenePointRsp { + int32 retcode = 1; + uint32 sceneId = 2; + repeated uint32 unlockedPointList = 3; + uint32 belongUid = 4; + repeated uint32 unlockAreaList = 5; + repeated uint32 lockedPointList = 6; + repeated uint32 toBeExploreDungeonEntryList = 7; + repeated uint32 notExploredDungeonEntryList = 8; + repeated uint32 groupUnlimitPointList = 9; + repeated uint32 notInteractDungeonEntryList = 10; +} diff --git a/proto/GetShopReq.proto b/proto/GetShopReq.proto new file mode 100644 index 000000000..298e6c065 --- /dev/null +++ b/proto/GetShopReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetShopReq { + uint32 shopType = 1; +} diff --git a/proto/GetShopRsp.proto b/proto/GetShopRsp.proto new file mode 100644 index 000000000..e7295dcdb --- /dev/null +++ b/proto/GetShopRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Shop.proto"; + +message GetShopRsp { + int32 retcode = 1; + Shop shop = 2; +} diff --git a/proto/GetShopmallDataRsp.proto b/proto/GetShopmallDataRsp.proto new file mode 100644 index 000000000..6db6d68d4 --- /dev/null +++ b/proto/GetShopmallDataRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetShopmallDataRsp { + int32 retcode = 1; + repeated uint32 shopTypeList = 2; +} diff --git a/proto/GetWorldMpInfoRsp.proto b/proto/GetWorldMpInfoRsp.proto new file mode 100644 index 000000000..c4bebe725 --- /dev/null +++ b/proto/GetWorldMpInfoRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message GetWorldMpInfoRsp { + int32 retcode = 1; + bool isInMpMode = 2; + uint32 quitMpValidTime = 3; +} diff --git a/proto/H5ActivityIdsNotify.proto b/proto/H5ActivityIdsNotify.proto new file mode 100644 index 000000000..59521ed66 --- /dev/null +++ b/proto/H5ActivityIdsNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message H5ActivityIdsNotify { + map h5ActivityMap = 1; +} diff --git a/proto/HeadImage.proto b/proto/HeadImage.proto new file mode 100644 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 100644 index 000000000..e06448729 --- /dev/null +++ b/proto/HitColliderType.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum HitColliderType { + HitColliderInvalid = 0; + HitColliderHitBox = 1; + HitColliderWetHitBox = 2; + HitColliderHeadBox = 3; +} diff --git a/proto/HitCollision.proto b/proto/HitCollision.proto new file mode 100644 index 000000000..b3766b047 --- /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 hitColliderType = 1; + int32 hitBoxIndex = 2; + Vector hitPoint = 3; + Vector hitDir = 4; + float attackeeHitForceAngle = 5; + float attackeeHitEntityAngle = 6; +} diff --git a/proto/HostPlayerNotify.proto b/proto/HostPlayerNotify.proto new file mode 100644 index 000000000..2659edc40 --- /dev/null +++ b/proto/HostPlayerNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message HostPlayerNotify { + uint32 hostUid = 1; + uint32 hostPeerId = 2; +} diff --git a/proto/InterOpType.proto b/proto/InterOpType.proto new file mode 100644 index 000000000..9ccecdb6f --- /dev/null +++ b/proto/InterOpType.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InterOpType { + InterOpFinish = 0; + InterOpStart = 1; +} diff --git a/proto/InteractType.proto b/proto/InteractType.proto new file mode 100644 index 000000000..6883ad361 --- /dev/null +++ b/proto/InteractType.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum InteractType { + InteractNone = 0; + InteractPickItem = 1; + InteractGather = 2; + InteractOpenChest = 3; + InteractOpenStatue = 4; + InteractConsum = 5; + InteractMpPlayReward = 6; + InteractView = 7; + InteractGeneralReward = 8; + InteractMiracleRing = 9; + InteractFoundation = 10; +} diff --git a/proto/Item.proto b/proto/Item.proto new file mode 100644 index 000000000..f0857bebd --- /dev/null +++ b/proto/Item.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Equip.proto"; +import "Furniture.proto"; +import "Material.proto"; + +message Item { + uint32 itemId = 1; + uint64 guid = 2; + oneof detail { + Material material = 5; + Equip equip = 6; + Furniture furniture = 7; + } +} diff --git a/proto/ItemAddHintNotify.proto b/proto/ItemAddHintNotify.proto new file mode 100644 index 000000000..ea4db2f14 --- /dev/null +++ b/proto/ItemAddHintNotify.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemHint.proto"; +import "Vector.proto"; + +message ItemAddHintNotify { + repeated ItemHint itemList = 1; + Vector position = 2; + bool isPositionValid = 3; + uint32 reason = 4; + uint32 questId = 5; + bool isTransferedFromAvatarCard = 6; + repeated ItemHint overflowTransformedItemList = 7; +} diff --git a/proto/ItemExceedLimitNotify.proto b/proto/ItemExceedLimitNotify.proto new file mode 100644 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 100644 index 000000000..f09b8c965 --- /dev/null +++ b/proto/ItemGivingReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ItemGivingReq { + uint32 givingId = 1; + repeated ItemParam itemParamList = 2; + map itemGuidCountMap = 3; +} diff --git a/proto/ItemGivingRsp.proto b/proto/ItemGivingRsp.proto new file mode 100644 index 000000000..ea3694b78 --- /dev/null +++ b/proto/ItemGivingRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemGivingRsp { + int32 retcode = 1; + uint32 givingId = 2; +} diff --git a/proto/ItemHint.proto b/proto/ItemHint.proto new file mode 100644 index 000000000..2d036175e --- /dev/null +++ b/proto/ItemHint.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemHint { + uint32 itemId = 1; + uint32 count = 2; + bool isNew = 3; +} diff --git a/proto/ItemParam.proto b/proto/ItemParam.proto new file mode 100644 index 000000000..2e48028b3 --- /dev/null +++ b/proto/ItemParam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ItemParam { + uint32 itemId = 1; + uint32 count = 2; +} diff --git a/proto/LifeStateChangeNotify.proto b/proto/LifeStateChangeNotify.proto new file mode 100644 index 000000000..4f16e936c --- /dev/null +++ b/proto/LifeStateChangeNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message LifeStateChangeNotify { + uint32 entityId = 1; + uint32 lifeState = 2; + uint32 sourceEntityId = 3; + string attackTag = 4; + PlayerDieType dieType = 5; + uint32 moveReliableSeq = 6; +} diff --git a/proto/MPLevelEntityInfo.proto b/proto/MPLevelEntityInfo.proto new file mode 100644 index 000000000..810e1d372 --- /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 entityId = 1; + uint32 authorityPeerId = 2; + AbilitySyncStateInfo abilityInfo = 3; +} diff --git a/proto/MapMarkFromType.proto b/proto/MapMarkFromType.proto new file mode 100644 index 000000000..5d31e1af5 --- /dev/null +++ b/proto/MapMarkFromType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkFromType { + None = 0; + MonsterType = 1; + QuestType = 2; +} diff --git a/proto/MapMarkPoint.proto b/proto/MapMarkPoint.proto new file mode 100644 index 000000000..fb244db4e --- /dev/null +++ b/proto/MapMarkPoint.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MapMarkFromType.proto"; +import "MapMarkPointType.proto"; +import "Vector.proto"; + +message MapMarkPoint { + uint32 sceneId = 1; + string name = 2; + Vector pos = 3; + MapMarkPointType pointType = 4; + uint32 monsterId = 5; + MapMarkFromType fromType = 6; + uint32 questId = 7; +} diff --git a/proto/MapMarkPointType.proto b/proto/MapMarkPointType.proto new file mode 100644 index 000000000..986d30876 --- /dev/null +++ b/proto/MapMarkPointType.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MapMarkPointType { + Npc = 0; + Quest = 1; + Special = 2; + Mine = 3; + Collection = 4; + Monster = 5; +} diff --git a/proto/MarkMapReq.proto b/proto/MarkMapReq.proto new file mode 100644 index 000000000..2e57ebb55 --- /dev/null +++ b/proto/MarkMapReq.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MapMarkPoint.proto"; +import "Operation.proto"; + +message MarkMapReq { + Operation op = 1; + MapMarkPoint old = 2; + MapMarkPoint mark = 3; +} diff --git a/proto/MassivePropParam.proto b/proto/MassivePropParam.proto new file mode 100644 index 000000000..bd30d4597 --- /dev/null +++ b/proto/MassivePropParam.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MassivePropParam { + int32 elementReactionType = 1; + uint32 casterId = 2; + repeated float paramList = 3; + uint32 syncFlag = 4; +} diff --git a/proto/MassivePropSyncInfo.proto b/proto/MassivePropSyncInfo.proto new file mode 100644 index 000000000..276f7a380 --- /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; + map propMap = 2; +} diff --git a/proto/Material.proto b/proto/Material.proto new file mode 100644 index 000000000..4fd76bc51 --- /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 deleteInfo = 2; +} diff --git a/proto/MaterialDeleteInfo.proto b/proto/MaterialDeleteInfo.proto new file mode 100644 index 000000000..9e5a310c0 --- /dev/null +++ b/proto/MaterialDeleteInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "CountDownDelete.proto"; +import "DateTimeDelete.proto"; +import "DelayWeekCountDownDelete.proto"; + +message MaterialDeleteInfo { + bool hasDeleteConfig = 1; + oneof deleteInfo { + CountDownDelete countDownDelete = 2; + DateTimeDelete dateDelete = 3; + DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + } +} diff --git a/proto/MaterialInfo.proto b/proto/MaterialInfo.proto new file mode 100644 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 100644 index 000000000..a3689667a --- /dev/null +++ b/proto/MathQuaternion.proto @@ -0,0 +1,10 @@ +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 100644 index 000000000..ed8d9e76a --- /dev/null +++ b/proto/ModifierDurability.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ModifierDurability { + float reduceRatio = 1; + float remainingDurability = 2; +} diff --git a/proto/MonsterBornType.proto b/proto/MonsterBornType.proto new file mode 100644 index 000000000..31aade84c --- /dev/null +++ b/proto/MonsterBornType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MonsterBornType { + MonsterBornNone = 0; + MonsterBornDefault = 1; + MonsterBornRandom = 2; +} diff --git a/proto/MonsterRoute.proto b/proto/MonsterRoute.proto new file mode 100644 index 000000000..ac98be7ce --- /dev/null +++ b/proto/MonsterRoute.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RoutePoint.proto"; + +message MonsterRoute { + RoutePoint routePoints = 1; + uint32 speedLevel = 2; + uint32 routeType = 3; + float arriveRange = 4; +} diff --git a/proto/MotionInfo.proto b/proto/MotionInfo.proto new file mode 100644 index 000000000..faddc14dc --- /dev/null +++ b/proto/MotionInfo.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionState.proto"; +import "Vector.proto"; + +message MotionInfo { + Vector pos = 1; + Vector rot = 2; + Vector speed = 3; + MotionState state = 4; + repeated Vector params = 5; + Vector refPos = 6; + uint32 refId = 7; + uint32 sceneTime = 8; + uint32 intervalVelocity = 9; +} diff --git a/proto/MotionState.proto b/proto/MotionState.proto new file mode 100644 index 000000000..91102eedf --- /dev/null +++ b/proto/MotionState.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MotionState { + MotionNone = 0; + MotionReset = 1; + MotionStandby = 2; + MotionStandbyMove = 3; + MotionWalk = 4; + MotionRun = 5; + MotionDash = 6; + MotionClimb = 7; + MotionClimbJump = 8; + MotionStandbyToClimb = 9; + MotionFight = 10; + MotionJump = 11; + MotionDrop = 12; + MotionFly = 13; + MotionSwimMove = 14; + MotionSwimIdle = 15; + MotionSwimDash = 16; + MotionSwimJump = 17; + MotionSlip = 18; + MotionGoUpstairs = 19; + MotionFallOnGround = 20; + MotionJumpUpWallForStandby = 21; + MotionJumpOffWall = 22; + MotionPoweredFly = 23; + MotionLadderIdle = 24; + MotionLadderMove = 25; + MotionLadderSlip = 26; + MotionStandbyToLadder = 27; + MotionLadderToStandby = 28; + MotionDangerStandby = 29; + MotionDangerStandbyMove = 30; + MotionDangerWalk = 31; + MotionDangerRun = 32; + MotionDangerDash = 33; + MotionCrouchIdle = 34; + MotionCrouchMove = 35; + MotionCrouchRoll = 36; + MotionNotify = 37; + MotionLandSpeed = 38; + MotionMoveFailAck = 39; + MotionWaterfall = 40; + MotionDashBeforeShake = 41; + MotionSitIdle = 42; + MotionForceSetPos = 43; + MotionQuestForceDrag = 44; + MotionFollowRoute = 45; + MotionNum = 46; +} diff --git a/proto/MovingPlatformType.proto b/proto/MovingPlatformType.proto new file mode 100644 index 000000000..f3861d117 --- /dev/null +++ b/proto/MovingPlatformType.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message MovingPlatformType { + +} diff --git a/proto/MpSettingType.proto b/proto/MpSettingType.proto new file mode 100644 index 000000000..f24083b21 --- /dev/null +++ b/proto/MpSettingType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum MpSettingType { + MpSettingNoEnter = 0; + MpSettingEnterFreely = 1; + MpSettingEnterAfterApply = 2; +} diff --git a/proto/OnlinePlayerInfo.proto b/proto/OnlinePlayerInfo.proto new file mode 100644 index 000000000..76ed24a06 --- /dev/null +++ b/proto/OnlinePlayerInfo.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HeadImage.proto"; +import "MpSettingType.proto"; + +message OnlinePlayerInfo { + uint32 uid = 1; + string nickname = 2; + uint32 playerLevel = 3; + MpSettingType mpSettingType = 5; + uint32 curPlayerNumInWorld = 6; + uint32 worldLevel = 7; + string onlineId = 8; + uint32 nameCardId = 9; + repeated uint32 blacklistUidList = 10; + string signature = 11; + HeadImage avatar = 12; +} diff --git a/proto/OpenStateUpdateNotify.proto b/proto/OpenStateUpdateNotify.proto new file mode 100644 index 000000000..91d1d2f11 --- /dev/null +++ b/proto/OpenStateUpdateNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message OpenStateUpdateNotify { + map openStateMap = 1; +} diff --git a/proto/Operation.proto b/proto/Operation.proto new file mode 100644 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 100644 index 000000000..a9e4e5201 --- /dev/null +++ b/proto/PacketHead.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PacketHead { + uint32 clientSequenceId = 3; + uint64 timestamp = 6; +} diff --git a/proto/PingReq.proto b/proto/PingReq.proto new file mode 100644 index 000000000..231ece4b1 --- /dev/null +++ b/proto/PingReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PingReq { + int32 seq = 1; + int32 clientTime = 2; +} diff --git a/proto/PingRsp.proto b/proto/PingRsp.proto new file mode 100644 index 000000000..3efd49701 --- /dev/null +++ b/proto/PingRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PingRsp { + int32 retcode = 1; + uint32 seq = 2; + uint32 clientTime = 3; +} diff --git a/proto/PlatformInfo.proto b/proto/PlatformInfo.proto new file mode 100644 index 000000000..c78b36bfe --- /dev/null +++ b/proto/PlatformInfo.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MathQuaternion.proto"; +import "MovingPlatformType.proto"; +import "Route.proto"; +import "Vector.proto"; + +message PlatformInfo { + uint32 routeId = 1; + int32 startIndex = 2; + uint32 startRouteTime = 3; + uint32 startSceneTime = 4; + Vector startPos = 7; + bool isStarted = 8; + MathQuaternion startRot = 9; + uint32 stopSceneTime = 10; + Vector posOffset = 11; + MathQuaternion rotOffset = 12; + MovingPlatformType movingPlatformType = 13; + bool isActive = 14; + Route route = 15; + uint32 pointId = 16; +} diff --git a/proto/PlayerApplyEnterMpNotify.proto b/proto/PlayerApplyEnterMpNotify.proto new file mode 100644 index 000000000..c5b3cc1e9 --- /dev/null +++ b/proto/PlayerApplyEnterMpNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message PlayerApplyEnterMpNotify { + OnlinePlayerInfo srcPlayerInfo = 1; + uint32 srcAppId = 2; +} diff --git a/proto/PlayerApplyEnterMpReason.proto b/proto/PlayerApplyEnterMpReason.proto new file mode 100644 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 100644 index 000000000..b4fc37221 --- /dev/null +++ b/proto/PlayerApplyEnterMpReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpReq { + uint32 targetUid = 1; +} diff --git a/proto/PlayerApplyEnterMpResultNotify.proto b/proto/PlayerApplyEnterMpResultNotify.proto new file mode 100644 index 000000000..2befeaf2e --- /dev/null +++ b/proto/PlayerApplyEnterMpResultNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerApplyEnterMpReason.proto"; + +message PlayerApplyEnterMpResultNotify { + uint32 targetUid = 1; + bool isAgreed = 2; + PlayerApplyEnterMpReason reason = 3; + string targetNickname = 4; +} diff --git a/proto/PlayerApplyEnterMpResultReq.proto b/proto/PlayerApplyEnterMpResultReq.proto new file mode 100644 index 000000000..6e151c968 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpResultReq { + uint32 applyUid = 1; + bool isAgreed = 2; +} diff --git a/proto/PlayerApplyEnterMpResultRsp.proto b/proto/PlayerApplyEnterMpResultRsp.proto new file mode 100644 index 000000000..b38555633 --- /dev/null +++ b/proto/PlayerApplyEnterMpResultRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpResultRsp { + int32 retcode = 1; + uint32 applyUid = 2; + bool isAgreed = 3; + uint32 param = 4; +} diff --git a/proto/PlayerApplyEnterMpRsp.proto b/proto/PlayerApplyEnterMpRsp.proto new file mode 100644 index 000000000..29148a025 --- /dev/null +++ b/proto/PlayerApplyEnterMpRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerApplyEnterMpRsp { + int32 retcode = 1; + uint32 targetUid = 2; + uint32 param = 3; +} diff --git a/proto/PlayerChatNotify.proto b/proto/PlayerChatNotify.proto new file mode 100644 index 000000000..e6844e8f4 --- /dev/null +++ b/proto/PlayerChatNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatNotify { + uint32 channelId = 1; + ChatInfo chatInfo = 2; +} diff --git a/proto/PlayerChatReq.proto b/proto/PlayerChatReq.proto new file mode 100644 index 000000000..37e37a17d --- /dev/null +++ b/proto/PlayerChatReq.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PlayerChatReq { + uint32 channelId = 1; + ChatInfo chatInfo = 2; +} diff --git a/proto/PlayerChatRsp.proto b/proto/PlayerChatRsp.proto new file mode 100644 index 000000000..01d9b31c1 --- /dev/null +++ b/proto/PlayerChatRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerChatRsp { + int32 retcode = 1; + uint32 chatForbiddenEndtime = 2; +} diff --git a/proto/PlayerDataNotify.proto b/proto/PlayerDataNotify.proto new file mode 100644 index 000000000..817cc4cb9 --- /dev/null +++ b/proto/PlayerDataNotify.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerDataNotify { + string nickName = 1; + uint64 clientTime = 2; + bool isFirstLoginToday = 3; + uint32 regionId = 4; + map propMap = 6; +} diff --git a/proto/PlayerDieType.proto b/proto/PlayerDieType.proto new file mode 100644 index 000000000..d26a55575 --- /dev/null +++ b/proto/PlayerDieType.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PlayerDieType { + PlayerDieNone = 0; + PlayerDieKillByMonster = 1; + PlayerDieKillByGear = 2; + PlayerDieFall = 3; + PlayerDieDrawn = 4; + PlayerDieAbyss = 5; + PlayerDieGm = 6; + PlayerDieClimateCold = 7; + PlayerDieStormLighting = 8; +} diff --git a/proto/PlayerEnterSceneInfoNotify.proto b/proto/PlayerEnterSceneInfoNotify.proto new file mode 100644 index 000000000..77e952eca --- /dev/null +++ b/proto/PlayerEnterSceneInfoNotify.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarEnterSceneInfo.proto"; +import "MPLevelEntityInfo.proto"; +import "TeamEnterSceneInfo.proto"; + +message PlayerEnterSceneInfoNotify { + uint32 curAvatarEntityId = 1; + repeated AvatarEnterSceneInfo avatarEnterInfo = 2; + TeamEnterSceneInfo teamEnterInfo = 3; + MPLevelEntityInfo mpLevelEntityInfo = 4; + uint32 enterSceneToken = 5; +} diff --git a/proto/PlayerEnterSceneNotify.proto b/proto/PlayerEnterSceneNotify.proto new file mode 100644 index 000000000..1302e05a9 --- /dev/null +++ b/proto/PlayerEnterSceneNotify.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "EnterType.proto"; +import "Vector.proto"; + +message PlayerEnterSceneNotify { + uint32 sceneId = 1; + Vector pos = 2; + uint64 sceneBeginTime = 3; + EnterType type = 4; + uint32 targetUid = 6; + uint32 prevSceneId = 9; + Vector prevPos = 10; + uint32 dungeonId = 11; + uint32 worldLevel = 12; + uint32 enterSceneToken = 13; + bool isFirstLoginEnterScene = 14; + repeated uint32 sceneTagIdList = 15; + bool isSkipUi = 16; + uint32 enterReason = 17; + uint32 unk1 = 18; + string unk2 = 19; +} diff --git a/proto/PlayerGameTimeNotify.proto b/proto/PlayerGameTimeNotify.proto new file mode 100644 index 000000000..c8292aab0 --- /dev/null +++ b/proto/PlayerGameTimeNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerGameTimeNotify { + uint32 gameTime = 1; + uint32 uid = 2; +} diff --git a/proto/PlayerGetForceQuitBanInfoRsp.proto b/proto/PlayerGetForceQuitBanInfoRsp.proto new file mode 100644 index 000000000..35de4f448 --- /dev/null +++ b/proto/PlayerGetForceQuitBanInfoRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerGetForceQuitBanInfoRsp { + int32 retcode = 1; + uint32 matchId = 2; + uint32 expireTime = 3; +} diff --git a/proto/PlayerLocationInfo.proto b/proto/PlayerLocationInfo.proto new file mode 100644 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 100644 index 000000000..9d206ed5c --- /dev/null +++ b/proto/PlayerLoginReq.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TrackingIOInfo.proto"; + +message PlayerLoginReq { + string token = 1; + string clientVersion = 2; + string systemVersion = 3; + string deviceName = 4; + string deviceUuid = 5; + uint32 targetUid = 6; + uint64 loginRand = 7; + bool isEditor = 8; + uint32 languageType = 9; + uint32 accountType = 10; + string accountUid = 11; + string platform = 12; + string deviceInfo = 13; + uint32 platformType = 14; + bool isGuest = 15; + uint32 cloudClientIp = 16; + uint32 gmUid = 17; + string checksum = 18; + string onlineId = 19; + uint32 clientToken = 20; + bytes securityCmdReply = 21; + bytes extraBinData = 22; + string cps = 23; + uint32 channelId = 24; + uint32 subChannelId = 25; + string checksumClientVersion = 26; + uint32 tag = 27; + TrackingIOInfo trackingIoInfo = 28; + string countryCode = 29; + uint32 clientDataVersion = 30; + bytes environmentErrorCode = 31; + uint32 targetHomeOwnerUid = 32; + string psnId = 33; +} diff --git a/proto/PlayerLoginRsp.proto b/proto/PlayerLoginRsp.proto new file mode 100644 index 000000000..d11fd44f0 --- /dev/null +++ b/proto/PlayerLoginRsp.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "BlockInfo.proto"; +import "FeatureBlockInfo.proto"; +import "ResVersionConfig.proto"; +import "ShortAbilityHashPair.proto"; + +message PlayerLoginRsp { + int32 retcode = 1; + bytes playerData = 2; + bool isNewPlayer = 3; + uint32 targetUid = 4; + uint64 loginRand = 5; + bool isUseAbilityHash = 6; + int32 abilityHashCode = 7; + map abilityHashMap = 8; + uint32 clientDataVersion = 9; + bool isRelogin = 11; + uint32 clientSilenceDataVersion = 13; + string gameBiz = 14; + uint32 playerDataVersion = 15; + string clientMd5 = 16; + string clientSilenceMd5 = 17; + ResVersionConfig resVersionConfig = 20; + map blockInfoMap = 21; + string clientVersionSuffix = 24; + string clientSilenceVersionSuffix = 25; + repeated ShortAbilityHashPair shortAbilityHashMap = 27; + bytes scInfo = 28; + bool isAudit = 29; + bool isScOpen = 30; + string registerCps = 31; + repeated FeatureBlockInfo featureBlockInfoList = 32; + bool isDataNeedRelogin = 33; + string countryCode = 34; + ResVersionConfig nextResVersionConfig = 35; + string nextResourceUrl = 36; + uint32 targetHomeOwnerUid = 37; +} diff --git a/proto/PlayerPropNotify.proto b/proto/PlayerPropNotify.proto new file mode 100644 index 000000000..7341b4df1 --- /dev/null +++ b/proto/PlayerPropNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message PlayerPropNotify { + map propMap = 1; +} diff --git a/proto/PlayerRTTInfo.proto b/proto/PlayerRTTInfo.proto new file mode 100644 index 000000000..2ed543319 --- /dev/null +++ b/proto/PlayerRTTInfo.proto @@ -0,0 +1,8 @@ +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 100644 index 000000000..984c2f863 --- /dev/null +++ b/proto/PlayerSetPauseReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerSetPauseReq { + bool isPaused = 1; +} diff --git a/proto/PlayerStoreNotify.proto b/proto/PlayerStoreNotify.proto new file mode 100644 index 000000000..0202dcd93 --- /dev/null +++ b/proto/PlayerStoreNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "StoreType.proto"; + +message PlayerStoreNotify { + StoreType storeType = 1; + repeated Item itemList = 2; + uint32 weightLimit = 3; +} diff --git a/proto/PlayerTimeNotify.proto b/proto/PlayerTimeNotify.proto new file mode 100644 index 000000000..5085127e8 --- /dev/null +++ b/proto/PlayerTimeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PlayerTimeNotify { + bool isPaused = 1; + uint64 playerTime = 2; + uint64 serverTime = 3; +} diff --git a/proto/PostEnterSceneRsp.proto b/proto/PostEnterSceneRsp.proto new file mode 100644 index 000000000..ec362f0fa --- /dev/null +++ b/proto/PostEnterSceneRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PostEnterSceneRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/PrivateChatNotify.proto b/proto/PrivateChatNotify.proto new file mode 100644 index 000000000..84457efac --- /dev/null +++ b/proto/PrivateChatNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PrivateChatNotify { + ChatInfo chatInfo = 1; +} diff --git a/proto/PrivateChatReq.proto b/proto/PrivateChatReq.proto new file mode 100644 index 000000000..356aee67e --- /dev/null +++ b/proto/PrivateChatReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PrivateChatReq { + uint32 targetUid = 1; + oneof content { + string text = 2; + uint32 icon = 3; + } +} diff --git a/proto/PrivateChatRsp.proto b/proto/PrivateChatRsp.proto new file mode 100644 index 000000000..09e427ae8 --- /dev/null +++ b/proto/PrivateChatRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PrivateChatRsp { + int32 retcode = 1; + uint32 chatForbiddenEndtime = 2; +} diff --git a/proto/PropChangeReason.proto b/proto/PropChangeReason.proto new file mode 100644 index 000000000..123b1d6a7 --- /dev/null +++ b/proto/PropChangeReason.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum PropChangeReason { + PropChangeNone = 0; + PropChangeStatueRecover = 1; + PropChangeEnergyBall = 2; + PropChangeAbility = 3; + PropChangeLevelup = 4; + PropChangeItem = 5; + PropChangeAvatarCard = 6; + PropChangeCityLevelup = 7; + PropChangeAvatarUpgrade = 8; + PropChangeAvatarPromote = 9; + PropChangePlayerAddExp = 10; + PropChangeFinishQuest = 11; + PropChangeGm = 12; + PropChangeManualAdjustWorldLevel = 13; +} diff --git a/proto/PropPair.proto b/proto/PropPair.proto new file mode 100644 index 000000000..4a5ac0ee7 --- /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 propValue = 2; +} diff --git a/proto/PropValue.proto b/proto/PropValue.proto new file mode 100644 index 000000000..6d905517d --- /dev/null +++ b/proto/PropValue.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PropValue { + uint32 type = 1; + oneof value { + uint32 ival = 2; + float fval = 3; + } + uint32 val = 4; +} diff --git a/proto/ProtEntityType.proto b/proto/ProtEntityType.proto new file mode 100644 index 000000000..9512f7d35 --- /dev/null +++ b/proto/ProtEntityType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ProtEntityType { + ProtEntityNone = 0; + ProtEntityAvatar = 1; + ProtEntityMonster = 2; + ProtEntityNpc = 3; + ProtEntityGadget = 4; + ProtEntityRegion = 5; + ProtEntityWeapon = 6; + ProtEntityWeather = 7; + ProtEntityScene = 8; + ProtEntityTeam = 9; + ProtEntityMassiveEntity = 10; + ProtEntityMpLevel = 11; + ProtEntityPlayTeamEntity = 12; + ProtEntityEyePoint = 13; + ProtEntityMax = 14; +} diff --git a/proto/ProudSkillChangeNotify.proto b/proto/ProudSkillChangeNotify.proto new file mode 100644 index 000000000..fa5ca0bf5 --- /dev/null +++ b/proto/ProudSkillChangeNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ProudSkillChangeNotify { + uint64 avatarGuid = 1; + uint32 entityId = 2; + uint32 skillDepotId = 3; + repeated uint32 proudSkillList = 4; +} diff --git a/proto/ProudSkillExtraLevelNotify.proto b/proto/ProudSkillExtraLevelNotify.proto new file mode 100644 index 000000000..4d612d33b --- /dev/null +++ b/proto/ProudSkillExtraLevelNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ProudSkillExtraLevelNotify { + uint64 avatarGuid = 1; + uint32 talentType = 2; + uint32 talentIndex = 3; + uint32 extraLevel = 4; +} diff --git a/proto/PullPrivateChatReq.proto b/proto/PullPrivateChatReq.proto new file mode 100644 index 000000000..e7d48092b --- /dev/null +++ b/proto/PullPrivateChatReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message PullPrivateChatReq { + uint32 targetUid = 1; + uint32 fromSequence = 2; + uint32 pullNum = 3; +} diff --git a/proto/PullPrivateChatRsp.proto b/proto/PullPrivateChatRsp.proto new file mode 100644 index 000000000..076ef87cf --- /dev/null +++ b/proto/PullPrivateChatRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullPrivateChatRsp { + int32 retcode = 1; + repeated ChatInfo chatInfo = 2; +} diff --git a/proto/PullRecentChatRsp.proto b/proto/PullRecentChatRsp.proto new file mode 100644 index 000000000..1aafd001d --- /dev/null +++ b/proto/PullRecentChatRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ChatInfo.proto"; + +message PullRecentChatRsp { + int32 retcode = 1; + repeated ChatInfo chatInfo = 2; +} diff --git a/proto/QueryCurrRegionHttpRsp.proto b/proto/QueryCurrRegionHttpRsp.proto new file mode 100644 index 000000000..58c2c8be6 --- /dev/null +++ b/proto/QueryCurrRegionHttpRsp.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RegionInfo.proto"; + +message QueryCurrRegionHttpRsp { + int32 retcode = 1; + string message = 2; + RegionInfo regionInfo = 3; + bytes clientSecretKey = 11; + bytes regionCustomConfigEncrypted = 12; + bytes clientRegionCustomConfigEncrypted = 13; +} diff --git a/proto/QueryRegionListHttpRsp.proto b/proto/QueryRegionListHttpRsp.proto new file mode 100644 index 000000000..934634f5d --- /dev/null +++ b/proto/QueryRegionListHttpRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "RegionSimpleInfo.proto"; + +message QueryRegionListHttpRsp { + uint32 retcode = 1; + repeated RegionSimpleInfo servers = 2; + bytes clientSecretKey = 5; + bytes clientCustomConfigEncrypted = 6; + bool enableLoginPc = 7; +} diff --git a/proto/RegionInfo.proto b/proto/RegionInfo.proto new file mode 100644 index 000000000..6cad3cb23 --- /dev/null +++ b/proto/RegionInfo.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResVersionConfig.proto"; + +message RegionInfo { + string ip = 1; + int32 port = 2; + string payCallbackUrl = 3; + string areaType = 7; + string resourceUrl = 8; + string dataUrl = 9; + string feedbackUrl = 10; + string bulletinUrl = 11; + string version = 12; + int32 clientDataVersion = 14; + int32 clientSilenceDataVersion = 18; + string clientDataMd5 = 19; + string clientSilenceDataMd5 = 20; + ResVersionConfig config = 22; + bytes secretKey = 23; + string communityUrl = 24; + string clientVersionSuffix = 26; + string clientSilenceVersionSuffix = 27; + string accountUrl = 31; + string cdkeyUrl = 32; + string privacyUrl = 33; + } diff --git a/proto/RegionSimpleInfo.proto b/proto/RegionSimpleInfo.proto new file mode 100644 index 000000000..093818fbc --- /dev/null +++ b/proto/RegionSimpleInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message RegionSimpleInfo { + string name = 1; + string title = 2; + string type = 3; + string dispatchUrl = 4; +} diff --git a/proto/Reliquary.proto b/proto/Reliquary.proto new file mode 100644 index 000000000..2801a5e42 --- /dev/null +++ b/proto/Reliquary.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Reliquary { + uint32 level = 1; + uint32 exp = 2; + uint32 promoteLevel = 3; + uint32 mainPropId = 4; + repeated uint32 appendPropIdList = 5; +} diff --git a/proto/ReliquaryPromoteReq.proto b/proto/ReliquaryPromoteReq.proto new file mode 100644 index 000000000..1841ed866 --- /dev/null +++ b/proto/ReliquaryPromoteReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryPromoteReq { + uint64 targetGuid = 1; + uint64 itemGuid = 2; +} diff --git a/proto/ReliquaryPromoteRsp.proto b/proto/ReliquaryPromoteRsp.proto new file mode 100644 index 000000000..053b51e83 --- /dev/null +++ b/proto/ReliquaryPromoteRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryPromoteRsp { + int32 retcode = 1; + uint64 targetReliquaryGuid = 2; + uint32 oldPromoteLevel = 3; + uint32 curPromoteLevel = 4; + repeated uint32 oldAppendPropList = 5; + repeated uint32 curAppendPropList = 6; +} diff --git a/proto/ReliquaryUpgradeReq.proto b/proto/ReliquaryUpgradeReq.proto new file mode 100644 index 000000000..468eeb98a --- /dev/null +++ b/proto/ReliquaryUpgradeReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ReliquaryUpgradeReq { + uint64 targetReliquaryGuid = 1; + repeated uint64 foodReliquaryGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/ReliquaryUpgradeRsp.proto b/proto/ReliquaryUpgradeRsp.proto new file mode 100644 index 000000000..4bcdbed46 --- /dev/null +++ b/proto/ReliquaryUpgradeRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ReliquaryUpgradeRsp { + int32 retcode = 1; + uint64 targetReliquaryGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + uint32 powerUpRate = 5; + repeated uint32 oldAppendPropList = 6; + repeated uint32 curAppendPropList = 7; +} diff --git a/proto/ResVersionConfig.proto b/proto/ResVersionConfig.proto new file mode 100644 index 000000000..71c053f3f --- /dev/null +++ b/proto/ResVersionConfig.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ResVersionConfig { + int32 version = 1; + string md5 = 2; + string size = 3; + string versionSuffix = 4; + string branch = 5; +} diff --git a/proto/ResinCard.proto b/proto/ResinCard.proto new file mode 100644 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 100644 index 000000000..bf938b424 --- /dev/null +++ b/proto/ResinChangeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ResinChangeNotify { + int32 currValue = 1; + int32 nextAddTimestamp = 2; + int32 curBuyCount = 3; +} diff --git a/proto/ResinCostType.proto b/proto/ResinCostType.proto new file mode 100644 index 000000000..1c9ac3ff3 --- /dev/null +++ b/proto/ResinCostType.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ResinCostType { + CostNone = 0; + CostNormal = 1; + CostCondense = 2; + CostReunionPrivilege = 3; + CostOpActivity = 4; + CostMaterial = 5; +} diff --git a/proto/Route.proto b/proto/Route.proto new file mode 100644 index 000000000..3394a9970 --- /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 routePoints = 1; + uint32 routeType = 2; +} diff --git a/proto/RoutePoint.proto b/proto/RoutePoint.proto new file mode 100644 index 000000000..f4cb198be --- /dev/null +++ b/proto/RoutePoint.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MathQuaternion.proto"; +import "Vector.proto"; + +message RoutePoint { + Vector position = 1; + oneof moveParams { + float velocity = 11; + float time = 12; + } + oneof rotateParams { + Vector rotation = 21; + MathQuaternion rotationSpeed = 22; + MathQuaternion axisSpeed = 23; + } +} diff --git a/proto/SceneAreaWeatherNotify.proto b/proto/SceneAreaWeatherNotify.proto new file mode 100644 index 000000000..4d26db635 --- /dev/null +++ b/proto/SceneAreaWeatherNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneAreaWeatherNotify { + uint32 weatherGadgetId = 1; + map weatherValueMap = 2; + uint32 weatherAreaId = 3; + uint32 climateType = 4; + float transDuration = 5; +} diff --git a/proto/SceneAvatarInfo.proto b/proto/SceneAvatarInfo.proto new file mode 100644 index 000000000..5ce71c9f5 --- /dev/null +++ b/proto/SceneAvatarInfo.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneReliquaryInfo.proto"; +import "SceneWeaponInfo.proto"; +import "ServerBuff.proto"; + +message SceneAvatarInfo { + uint32 playerId = 1; + uint32 avatarId = 2; + uint64 guid = 3; + uint32 peerId = 4; + repeated uint32 equipIdList = 5; + uint32 skillDepotId = 6; + repeated uint32 talentIdList = 7; + SceneWeaponInfo weapon = 8; + repeated SceneReliquaryInfo reliquaryList = 9; + uint32 coreProudSkillLevel = 11; + repeated uint32 inherentProudSkillList = 12; + map skillLevelMap = 13; + map proudSkillExtraLevelMap = 14; + repeated ServerBuff serverBuffList = 15; + repeated uint32 teamResonanceList = 16; + uint32 wearingFlycloakId = 17; + uint32 bornTime = 18; + uint32 costumeId = 19; +} diff --git a/proto/SceneEntityAiInfo.proto b/proto/SceneEntityAiInfo.proto new file mode 100644 index 000000000..b4754bd11 --- /dev/null +++ b/proto/SceneEntityAiInfo.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ServantInfo.proto"; +import "Vector.proto"; + +message SceneEntityAiInfo { + bool isAiOpen = 1; + Vector bornPos = 2; + map skillCdMap = 3; + ServantInfo servantInfo = 4; + map aiThreatMap = 5; + map skillGroupCdMap = 6; + uint32 curTactic = 7; +} diff --git a/proto/SceneEntityAppearNotify.proto b/proto/SceneEntityAppearNotify.proto new file mode 100644 index 000000000..0694f1676 --- /dev/null +++ b/proto/SceneEntityAppearNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneEntityInfo.proto"; +import "VisionType.proto"; + +message SceneEntityAppearNotify { + repeated SceneEntityInfo entityList = 1; + VisionType appearType = 2; + uint32 param = 3; +} diff --git a/proto/SceneEntityDisappearNotify.proto b/proto/SceneEntityDisappearNotify.proto new file mode 100644 index 000000000..02871b5a4 --- /dev/null +++ b/proto/SceneEntityDisappearNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "VisionType.proto"; + +message SceneEntityDisappearNotify { + repeated uint32 entityList = 1; + VisionType disappearType = 2; +} diff --git a/proto/SceneEntityInfo.proto b/proto/SceneEntityInfo.proto new file mode 100644 index 000000000..d79fe4f58 --- /dev/null +++ b/proto/SceneEntityInfo.proto @@ -0,0 +1,39 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AnimatorParameterValueInfoPair.proto"; +import "EntityAuthorityInfo.proto"; +import "EntityClientData.proto"; +import "EntityEnvironmentInfo.proto"; +import "FightPropPair.proto"; +import "MotionInfo.proto"; +import "PropPair.proto"; +import "ProtEntityType.proto"; +import "SceneAvatarInfo.proto"; +import "SceneGadgetInfo.proto"; +import "SceneMonsterInfo.proto"; +import "SceneNpcInfo.proto"; + +message SceneEntityInfo { + ProtEntityType entityType = 1; + uint32 entityId = 2; + string name = 3; + MotionInfo motionInfo = 4; + repeated PropPair propList = 5; + repeated FightPropPair fightPropList = 6; + uint32 lifeState = 7; + repeated AnimatorParameterValueInfoPair animatorParaList = 9; + oneof entity { + SceneAvatarInfo avatar = 10; + SceneMonsterInfo monster = 11; + SceneNpcInfo npc = 12; + SceneGadgetInfo gadget = 13; + } + uint32 lastMoveSceneTimeMs = 17; + uint32 lastMoveReliableSeq = 18; + EntityClientData entityClientData = 19; + repeated EntityEnvironmentInfo entityEnvironmentInfoList = 20; + EntityAuthorityInfo entityAuthorityInfo = 21; + repeated string tagList = 22; +} diff --git a/proto/SceneEntityMoveNotify.proto b/proto/SceneEntityMoveNotify.proto new file mode 100644 index 000000000..8e5016d75 --- /dev/null +++ b/proto/SceneEntityMoveNotify.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MotionInfo.proto"; + +message SceneEntityMoveNotify { + uint32 entityId = 1; + MotionInfo motionInfo = 2; + uint32 sceneTime = 3; + uint32 reliableSeq = 4; +} diff --git a/proto/SceneForceUnlockNotify.proto b/proto/SceneForceUnlockNotify.proto new file mode 100644 index 000000000..c78e2dd61 --- /dev/null +++ b/proto/SceneForceUnlockNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneForceUnlockNotify { + repeated uint32 forceIdList = 1; + bool isAdd = 2; +} diff --git a/proto/SceneGadgetInfo.proto b/proto/SceneGadgetInfo.proto new file mode 100644 index 000000000..b4430fa0c --- /dev/null +++ b/proto/SceneGadgetInfo.proto @@ -0,0 +1,43 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "GadgetBornType.proto"; +import "GadgetClientParam.proto"; +import "GadgetPlayInfo.proto"; +import "Item.proto"; +import "PlatformInfo.proto"; + +message SceneGadgetInfo { + uint32 gadgetId = 1; + uint32 groupId = 2; + uint32 configId = 3; + uint32 ownerEntityId = 4; + GadgetBornType bornType = 5; + uint32 gadgetState = 6; + uint32 gadgetType = 7; + bool isShowCutscene = 8; + uint32 authorityPeerId = 9; + bool isEnableInteract = 10; + uint32 interactId = 11; + Item trifleItem = 12; + uint32 gatherGadget = 13; + uint32 worktop = 14; + GadgetClientParam clientGadget = 15; + uint32 weather = 17; + uint32 abilityGadget = 18; + uint32 statueGadget = 19; + uint32 bossChest = 20; + uint32 blossomChest = 41; + uint32 mpPlayReward = 42; + uint32 generalReward = 43; + uint32 offeringInfo = 44; + uint32 foundationInfo = 45; + uint32 markFlag = 21; + uint32 propOwnerEntityId = 22; + PlatformInfo platform = 23; + repeated uint32 interactUidList = 24; + uint32 draftId = 25; + uint32 gadgetTalkState = 26; + GadgetPlayInfo playInfo = 100; +} diff --git a/proto/SceneInitFinishRsp.proto b/proto/SceneInitFinishRsp.proto new file mode 100644 index 000000000..1dfc6a2a9 --- /dev/null +++ b/proto/SceneInitFinishRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneInitFinishRsp { + int32 retcode = 1; + uint32 enterSceneToken = 2; +} diff --git a/proto/SceneKickPlayerNotify.proto b/proto/SceneKickPlayerNotify.proto new file mode 100644 index 000000000..6a400ae6f --- /dev/null +++ b/proto/SceneKickPlayerNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerNotify { + uint32 kickerUid = 1; + uint32 targetUid = 2; +} diff --git a/proto/SceneKickPlayerReq.proto b/proto/SceneKickPlayerReq.proto new file mode 100644 index 000000000..fe7e371b7 --- /dev/null +++ b/proto/SceneKickPlayerReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerReq { + uint32 targetUid = 1; +} diff --git a/proto/SceneKickPlayerRsp.proto b/proto/SceneKickPlayerRsp.proto new file mode 100644 index 000000000..81100890d --- /dev/null +++ b/proto/SceneKickPlayerRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneKickPlayerRsp { + int32 retcode = 1; + uint32 targetUid = 2; +} diff --git a/proto/SceneMonsterInfo.proto b/proto/SceneMonsterInfo.proto new file mode 100644 index 000000000..f96c6c202 --- /dev/null +++ b/proto/SceneMonsterInfo.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "MonsterBornType.proto"; +import "MonsterRoute.proto"; +import "SceneWeaponInfo.proto"; + +message SceneMonsterInfo { + uint32 monsterId = 1; + uint32 groupId = 2; + uint32 configId = 3; + SceneWeaponInfo weaponList = 4; + uint32 authorityPeerId = 5; + repeated uint32 affixList = 6; + bool isElite = 7; + uint32 ownerEntityId = 8; + uint32 summonedTag = 9; + map summonTagMap = 10; + uint32 poseId = 11; + MonsterBornType bornType = 12; + uint32 blockId = 13; + uint32 markFlag = 14; + uint32 titleId = 15; + uint32 specialNameId = 16; + uint32 attackTargetId = 17; + MonsterRoute monsterRoute = 18; + uint32 aiConfigId = 19; + uint32 unk1 = 21; +} diff --git a/proto/SceneNpcInfo.proto b/proto/SceneNpcInfo.proto new file mode 100644 index 000000000..22e811801 --- /dev/null +++ b/proto/SceneNpcInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneNpcInfo { + uint32 npcId = 1; + uint32 roomId = 2; + uint32 parentQuestId = 3; + uint32 blockId = 4; +} diff --git a/proto/ScenePlayerInfo.proto b/proto/ScenePlayerInfo.proto new file mode 100644 index 000000000..d1dae174f --- /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 peerId = 2; + string name = 3; + bool isConnected = 4; + uint32 sceneId = 5; + OnlinePlayerInfo onlinePlayerInfo = 6; +} diff --git a/proto/ScenePlayerInfoNotify.proto b/proto/ScenePlayerInfoNotify.proto new file mode 100644 index 000000000..2c10873a5 --- /dev/null +++ b/proto/ScenePlayerInfoNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ScenePlayerInfo.proto"; + +message ScenePlayerInfoNotify { + repeated ScenePlayerInfo playerInfoList = 1; +} diff --git a/proto/ScenePlayerLocationNotify.proto b/proto/ScenePlayerLocationNotify.proto new file mode 100644 index 000000000..6eccf373b --- /dev/null +++ b/proto/ScenePlayerLocationNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message ScenePlayerLocationNotify { + uint32 sceneId = 1; + repeated PlayerLocationInfo playerLocList = 2; +} diff --git a/proto/SceneReliquaryInfo.proto b/proto/SceneReliquaryInfo.proto new file mode 100644 index 000000000..122ca88b2 --- /dev/null +++ b/proto/SceneReliquaryInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneReliquaryInfo { + uint32 itemId = 1; + uint64 guid = 2; + uint32 level = 3; + uint32 promoteLevel = 4; +} diff --git a/proto/SceneTeamAvatar.proto b/proto/SceneTeamAvatar.proto new file mode 100644 index 000000000..0b4683910 --- /dev/null +++ b/proto/SceneTeamAvatar.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilityControlBlock.proto"; +import "AbilitySyncStateInfo.proto"; +import "AvatarInfo.proto"; +import "SceneAvatarInfo.proto"; +import "SceneEntityInfo.proto"; +import "ServerBuff.proto"; + +message SceneTeamAvatar { + uint32 playerId = 1; + uint64 avatarGuid = 2; + uint32 sceneId = 3; + uint32 entityId = 4; + AvatarInfo avatarInfo = 5; + SceneAvatarInfo sceneAvatarInfo = 6; + AbilitySyncStateInfo avatarAbilityInfo = 7; + repeated ServerBuff serverBuffList = 8; + SceneEntityInfo sceneEntityInfo = 9; + uint64 weaponGuid = 10; + uint32 weaponEntityId = 11; + AbilitySyncStateInfo weaponAbilityInfo = 12; + AbilityControlBlock abilityControlBlock = 13; + bool isReconnect = 14; + bool isPlayerCurAvatar = 15; + bool isOnScene = 16; +} diff --git a/proto/SceneTeamUpdateNotify.proto b/proto/SceneTeamUpdateNotify.proto new file mode 100644 index 000000000..6aa586ccc --- /dev/null +++ b/proto/SceneTeamUpdateNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SceneTeamAvatar.proto"; + +message SceneTeamUpdateNotify { + repeated SceneTeamAvatar sceneTeamAvatarList = 1; + bool isInMp = 3; +} diff --git a/proto/SceneTimeNotify.proto b/proto/SceneTimeNotify.proto new file mode 100644 index 000000000..cafe00ad7 --- /dev/null +++ b/proto/SceneTimeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SceneTimeNotify { + uint32 sceneId = 1; + bool isPaused = 2; + uint64 sceneTime = 3; +} diff --git a/proto/SceneWeaponInfo.proto b/proto/SceneWeaponInfo.proto new file mode 100644 index 000000000..5b823b9f5 --- /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 entityId = 1; + uint32 gadgetId = 2; + uint32 itemId = 3; + uint64 guid = 4; + uint32 level = 5; + uint32 promoteLevel = 6; + AbilitySyncStateInfo abilityInfo = 7; + map affixMap = 8; +} diff --git a/proto/ServantInfo.proto b/proto/ServantInfo.proto new file mode 100644 index 000000000..e4c04e33f --- /dev/null +++ b/proto/ServantInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServantInfo { + uint32 masterEntityId = 1; + uint32 bornSlotIndex = 2; +} diff --git a/proto/ServerBuff.proto b/proto/ServerBuff.proto new file mode 100644 index 000000000..0de4768e2 --- /dev/null +++ b/proto/ServerBuff.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServerBuff { + uint32 serverBuffUid = 1; + uint32 serverBuffId = 2; + uint32 serverBuffType = 3; + uint32 instancedModifierId = 4; + repeated uint32 doneOnaddedActionList = 5; + bool isOnaddedActionAllow = 6; +} diff --git a/proto/ServerTimeNotify.proto b/proto/ServerTimeNotify.proto new file mode 100644 index 000000000..9452ef804 --- /dev/null +++ b/proto/ServerTimeNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ServerTimeNotify { + uint64 serverTime = 1; +} diff --git a/proto/SetEquipLockStateReq.proto b/proto/SetEquipLockStateReq.proto new file mode 100644 index 000000000..55f3f9373 --- /dev/null +++ b/proto/SetEquipLockStateReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetEquipLockStateReq { + uint64 targetEquipGuid = 1; + bool isLocked = 2; +} diff --git a/proto/SetEquipLockStateRsp.proto b/proto/SetEquipLockStateRsp.proto new file mode 100644 index 000000000..fe70b22dd --- /dev/null +++ b/proto/SetEquipLockStateRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetEquipLockStateRsp { + int32 retcode = 1; + uint64 targetEquipGuid = 2; + bool isLocked = 3; +} diff --git a/proto/SetNameCardReq.proto b/proto/SetNameCardReq.proto new file mode 100644 index 000000000..4452d3bf6 --- /dev/null +++ b/proto/SetNameCardReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetNameCardReq { + uint32 nameCardId = 1; +} diff --git a/proto/SetNameCardRsp.proto b/proto/SetNameCardRsp.proto new file mode 100644 index 000000000..821c019cd --- /dev/null +++ b/proto/SetNameCardRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetNameCardRsp { + int32 retcode = 1; + uint32 nameCardId = 2; +} diff --git a/proto/SetPlayerBornDataReq.proto b/proto/SetPlayerBornDataReq.proto new file mode 100644 index 000000000..56b6fd3cf --- /dev/null +++ b/proto/SetPlayerBornDataReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerBornDataReq { + uint32 avatarId = 1; + string nickName = 2; +} diff --git a/proto/SetPlayerHeadImageReq.proto b/proto/SetPlayerHeadImageReq.proto new file mode 100644 index 000000000..90016ced6 --- /dev/null +++ b/proto/SetPlayerHeadImageReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerHeadImageReq { + uint32 avatarId = 1; +} diff --git a/proto/SetPlayerHeadImageRsp.proto b/proto/SetPlayerHeadImageRsp.proto new file mode 100644 index 000000000..6a2ea445f --- /dev/null +++ b/proto/SetPlayerHeadImageRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "HeadImage.proto"; + +message SetPlayerHeadImageRsp { + int32 retcode = 1; + HeadImage avatar = 3; +} diff --git a/proto/SetPlayerNameReq.proto b/proto/SetPlayerNameReq.proto new file mode 100644 index 000000000..558eb0fbd --- /dev/null +++ b/proto/SetPlayerNameReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerNameReq { + string nickName = 1; +} diff --git a/proto/SetPlayerNameRsp.proto b/proto/SetPlayerNameRsp.proto new file mode 100644 index 000000000..b4b02e63f --- /dev/null +++ b/proto/SetPlayerNameRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerNameRsp { + int32 retcode = 1; + string nickName = 2; +} diff --git a/proto/SetPlayerPropReq.proto b/proto/SetPlayerPropReq.proto new file mode 100644 index 000000000..d08c2a50f --- /dev/null +++ b/proto/SetPlayerPropReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message SetPlayerPropReq { + repeated PropValue propList = 1; +} diff --git a/proto/SetPlayerPropRsp.proto b/proto/SetPlayerPropRsp.proto new file mode 100644 index 000000000..62d231e96 --- /dev/null +++ b/proto/SetPlayerPropRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerPropRsp { + int32 retcode = 1; +} diff --git a/proto/SetPlayerSignatureReq.proto b/proto/SetPlayerSignatureReq.proto new file mode 100644 index 000000000..595345bcd --- /dev/null +++ b/proto/SetPlayerSignatureReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerSignatureReq { + string signature = 1; +} diff --git a/proto/SetPlayerSignatureRsp.proto b/proto/SetPlayerSignatureRsp.proto new file mode 100644 index 000000000..ca09cd1b2 --- /dev/null +++ b/proto/SetPlayerSignatureRsp.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetPlayerSignatureRsp { + int32 retcode = 1; + string signature = 2; +} diff --git a/proto/SetUpAvatarTeamReq.proto b/proto/SetUpAvatarTeamReq.proto new file mode 100644 index 000000000..b950cb25a --- /dev/null +++ b/proto/SetUpAvatarTeamReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetUpAvatarTeamReq { + uint32 teamId = 1; + repeated uint64 avatarTeamGuidList = 2; + uint64 curAvatarGuid = 3; +} diff --git a/proto/SetUpAvatarTeamRsp.proto b/proto/SetUpAvatarTeamRsp.proto new file mode 100644 index 000000000..fdb634b8d --- /dev/null +++ b/proto/SetUpAvatarTeamRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SetUpAvatarTeamRsp { + int32 retcode = 1; + uint32 teamId = 2; + repeated uint64 avatarTeamGuidList = 3; + uint64 curAvatarGuid = 4; +} diff --git a/proto/Shop.proto b/proto/Shop.proto new file mode 100644 index 000000000..2172757b8 --- /dev/null +++ b/proto/Shop.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ShopCardProduct.proto"; +import "ShopGoods.proto"; +import "ShopMcoinProduct.proto"; + +message Shop { + uint32 shopType = 1; + repeated ShopGoods goodsList = 2; + repeated ShopMcoinProduct mcoinProductList = 3; + repeated ShopCardProduct cardProductList = 4; + uint32 nextRefreshTime = 6; + uint32 cityId = 7; + uint32 cityReputationLevel = 8; +} diff --git a/proto/ShopCardProduct.proto b/proto/ShopCardProduct.proto new file mode 100644 index 000000000..88b95f7b6 --- /dev/null +++ b/proto/ShopCardProduct.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ResinCard.proto"; + +message ShopCardProduct { + string productId = 1; + string priceTier = 2; + uint32 mcoinBase = 3; + uint32 hcoinPerDay = 4; + uint32 days = 5; + uint32 remainRewardDays = 6; + uint32 cardProductType = 7; + oneof extraCardData { + ResinCard resinCard = 101; + } +} diff --git a/proto/ShopGoods.proto b/proto/ShopGoods.proto new file mode 100644 index 000000000..672578c54 --- /dev/null +++ b/proto/ShopGoods.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message ShopGoods { + uint32 goodsId = 1; + ItemParam goodsItem = 2; + uint32 scoin = 3; + uint32 hcoin = 4; + repeated ItemParam costItemList = 5; + uint32 boughtNum = 6; + uint32 buyLimit = 7; + uint32 beginTime = 8; + uint32 endTime = 9; + uint32 nextRefreshTime = 10; + uint32 minLevel = 11; + uint32 maxLevel = 12; + repeated uint32 preGoodsIdList = 13; + uint32 mcoin = 14; + uint32 disableType = 15; + uint32 secondarySheetId = 16; +} diff --git a/proto/ShopGoodsDisableType.proto b/proto/ShopGoodsDisableType.proto new file mode 100644 index 000000000..2c1b19bd0 --- /dev/null +++ b/proto/ShopGoodsDisableType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum ShopGoodsDisableType { + ShopGoodsDisableNone = 0; + ShopGoodsDisableTalentFull = 1; + ShopGoodsDisableFurnitureFormulaUnlocked = 2; +} diff --git a/proto/ShopMcoinProduct.proto b/proto/ShopMcoinProduct.proto new file mode 100644 index 000000000..53f3dcbf3 --- /dev/null +++ b/proto/ShopMcoinProduct.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ShopMcoinProduct { + string productId = 1; + string priceTier = 2; + uint32 mcoinBase = 3; + uint32 mcoinNonFirst = 4; + uint32 mcoinFirst = 5; + uint32 boughtNum = 6; + bool isAudit = 7; +} diff --git a/proto/ShortAbilityHashPair.proto b/proto/ShortAbilityHashPair.proto new file mode 100644 index 000000000..0eaf10422 --- /dev/null +++ b/proto/ShortAbilityHashPair.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message ShortAbilityHashPair { + int32 abilityNameHash = 1; + int32 abilityConfigHash = 2; +} diff --git a/proto/SocialDetail.proto b/proto/SocialDetail.proto new file mode 100644 index 000000000..bc97aa184 --- /dev/null +++ b/proto/SocialDetail.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Birthday.proto"; +import "FriendEnterHomeOption.proto"; +import "HeadImage.proto"; +import "SocialShowAvatarInfo.proto"; + +message SocialDetail { + uint32 uid = 1; + string nickname = 2; + uint32 level = 3; + string signature = 5; + Birthday birthday = 6; + uint32 worldLevel = 7; + uint32 unk1 = 9; + //FriendOnlineState onlineState = 10; + //bool isMpModeAvailable = 10; + bool isFriend = 11; + uint32 unk3 = 12; + uint32 lastActiveTime = 13; + uint32 nameCardId = 14; + bool isInBlacklist = 15; + bool isChatNoDisturb = 16; + string remarkName = 17; + uint32 finishAchievementNum = 18; + uint32 towerFloorIndex = 19; + uint32 towerLevelIndex = 20; + bool isShowAvatar = 21; + repeated SocialShowAvatarInfo showAvatarInfoList = 22; + FriendEnterHomeOption friendEnterHomeOption = 23; + HeadImage avatar = 25; +} diff --git a/proto/SocialShowAvatarInfo.proto b/proto/SocialShowAvatarInfo.proto new file mode 100644 index 000000000..921cb298a --- /dev/null +++ b/proto/SocialShowAvatarInfo.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SocialShowAvatarInfo { + uint32 avatarId = 1; + uint32 level = 2; +} diff --git a/proto/StoreItemChangeNotify.proto b/proto/StoreItemChangeNotify.proto new file mode 100644 index 000000000..270d5e46f --- /dev/null +++ b/proto/StoreItemChangeNotify.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "StoreType.proto"; + +message StoreItemChangeNotify { + StoreType storeType = 1; + repeated Item itemList = 2; +} diff --git a/proto/StoreItemDelNotify.proto b/proto/StoreItemDelNotify.proto new file mode 100644 index 000000000..69a70a8e7 --- /dev/null +++ b/proto/StoreItemDelNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreItemDelNotify { + StoreType storeType = 1; + repeated uint64 guidList = 2; +} diff --git a/proto/StoreType.proto b/proto/StoreType.proto new file mode 100644 index 000000000..78e35b4c1 --- /dev/null +++ b/proto/StoreType.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum StoreType { + StoreNone = 0; + StorePack = 1; + StoreDepot = 2; +} diff --git a/proto/StoreWeightLimitNotify.proto b/proto/StoreWeightLimitNotify.proto new file mode 100644 index 000000000..236bacd59 --- /dev/null +++ b/proto/StoreWeightLimitNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "StoreType.proto"; + +message StoreWeightLimitNotify { + StoreType storeType = 1; + uint32 weightLimit = 3; + uint32 materialCountLimit = 4; + uint32 weaponCountLimit = 5; + uint32 reliquaryCountLimit = 6; + uint32 furnitureCountLimit = 7; +} diff --git a/proto/SyncScenePlayTeamEntityNotify.proto b/proto/SyncScenePlayTeamEntityNotify.proto new file mode 100644 index 000000000..1ffe7be6a --- /dev/null +++ b/proto/SyncScenePlayTeamEntityNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message SyncScenePlayTeamEntityNotify { + uint32 sceneId = 1; + //repeated PlayTeamEntityInfo entityInfoList = 2; +} diff --git a/proto/SyncTeamEntityNotify.proto b/proto/SyncTeamEntityNotify.proto new file mode 100644 index 000000000..1555e37e9 --- /dev/null +++ b/proto/SyncTeamEntityNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TeamEntityInfo.proto"; + +message SyncTeamEntityNotify { + uint32 sceneId = 1; + repeated TeamEntityInfo teamEntityInfoList = 2; +} diff --git a/proto/SystemHint.proto b/proto/SystemHint.proto new file mode 100644 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/TakeoffEquipReq.proto b/proto/TakeoffEquipReq.proto new file mode 100644 index 000000000..bcd6278af --- /dev/null +++ b/proto/TakeoffEquipReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TakeoffEquipReq { + uint64 avatarGuid = 1; + uint32 slot = 2; +} diff --git a/proto/TakeoffEquipRsp.proto b/proto/TakeoffEquipRsp.proto new file mode 100644 index 000000000..ded14965d --- /dev/null +++ b/proto/TakeoffEquipRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TakeoffEquipRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 slot = 3; +} diff --git a/proto/TeamEnterSceneInfo.proto b/proto/TeamEnterSceneInfo.proto new file mode 100644 index 000000000..d0144a81e --- /dev/null +++ b/proto/TeamEnterSceneInfo.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AbilitySyncStateInfo.proto"; + +message TeamEnterSceneInfo { + uint32 teamEntityId = 1; + AbilitySyncStateInfo teamAbilityInfo = 2; + AbilitySyncStateInfo unk = 3; +} diff --git a/proto/TeamEntityInfo.proto b/proto/TeamEntityInfo.proto new file mode 100644 index 000000000..5f0240ae5 --- /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 teamEntityId = 1; + uint32 authorityPeerId = 2; + AbilitySyncStateInfo teamAbilityInfo = 3; +} diff --git a/proto/TeamResonanceChangeNotify.proto b/proto/TeamResonanceChangeNotify.proto new file mode 100644 index 000000000..592fc8a98 --- /dev/null +++ b/proto/TeamResonanceChangeNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "AvatarTeamResonanceInfo.proto"; + +message TeamResonanceChangeNotify { + repeated AvatarTeamResonanceInfo infoList = 1; +} diff --git a/proto/TowerAllDataRsp.proto b/proto/TowerAllDataRsp.proto new file mode 100644 index 000000000..7fde18c16 --- /dev/null +++ b/proto/TowerAllDataRsp.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "TowerCurLevelRecord.proto"; +import "TowerFloorRecord.proto"; +import "TowerMonthlyBrief.proto"; + +message TowerAllDataRsp { + uint32 towerScheduleId = 1; + repeated TowerFloorRecord towerFloorRecordList = 2; + uint32 dailyFloorId = 3; + uint32 dailyLevelIndex = 4; + TowerCurLevelRecord curLevelRecord = 5; + uint32 nextScheduleChangeTime = 6; + map floorOpenTimeMap = 7; + bool isFirstInteract = 8; + TowerMonthlyBrief monthlyBrief = 9; + uint32 skipToFloorIndex = 10; + uint32 commemorativeRewardId = 11; + map skipFloorGrantedRewardItemMap = 12; + uint32 validTowerRecordNum = 13; + int32 retcode = 14; + bool isFinishedEntranceFloor = 15; + uint32 scheduleStartTime = 16; + TowerMonthlyBrief lastScheduleMonthlyBrief = 17; +} diff --git a/proto/TowerCurLevelRecord.proto b/proto/TowerCurLevelRecord.proto new file mode 100644 index 000000000..6c4a282f5 --- /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 curFloorId = 1; + uint32 curLevelIndex = 2; + repeated TowerTeam towerTeamList = 3; + repeated uint32 buffIdList = 4; + bool isEmpty = 5; +} diff --git a/proto/TowerFloorRecord.proto b/proto/TowerFloorRecord.proto new file mode 100644 index 000000000..7096d2b29 --- /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 floorId = 1; + map passedLevelMap = 2; + uint32 floorStarRewardProgress = 3; + repeated TowerLevelRecord passedLevelRecordList = 4; +} diff --git a/proto/TowerLevelRecord.proto b/proto/TowerLevelRecord.proto new file mode 100644 index 000000000..e0e5d95c1 --- /dev/null +++ b/proto/TowerLevelRecord.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerLevelRecord { + uint32 levelId = 1; + repeated uint32 satisfiedCondList = 2; +} diff --git a/proto/TowerMonthlyBrief.proto b/proto/TowerMonthlyBrief.proto new file mode 100644 index 000000000..69b0b90de --- /dev/null +++ b/proto/TowerMonthlyBrief.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerMonthlyBrief { + uint32 towerScheduleId = 1; + uint32 bestFloorIndex = 2; + uint32 bestLevelIndex = 3; + uint32 totalStarCount = 4; +} diff --git a/proto/TowerTeam.proto b/proto/TowerTeam.proto new file mode 100644 index 000000000..a478afe7e --- /dev/null +++ b/proto/TowerTeam.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TowerTeam { + uint32 towerTeamId = 1; + repeated uint64 avatarGuidList = 2; +} diff --git a/proto/TrackingIOInfo.proto b/proto/TrackingIOInfo.proto new file mode 100644 index 000000000..0b618cb99 --- /dev/null +++ b/proto/TrackingIOInfo.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TrackingIOInfo { + string appid = 1; + string deviceid = 2; + string mac = 3; + string rydevicetype = 4; + string clientTz = 5; + string currentCaid = 6; + string cachedCaid = 7; +} diff --git a/proto/TrialAvatarGrantRecord.proto b/proto/TrialAvatarGrantRecord.proto new file mode 100644 index 000000000..45dd737c4 --- /dev/null +++ b/proto/TrialAvatarGrantRecord.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message TrialAvatarGrantRecord { + uint32 grantReason = 1; + uint32 fromParentQuestId = 2; +} diff --git a/proto/TrialAvatarInfo.proto b/proto/TrialAvatarInfo.proto new file mode 100644 index 000000000..867c72369 --- /dev/null +++ b/proto/TrialAvatarInfo.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "Item.proto"; +import "TrialAvatarGrantRecord.proto"; + +message TrialAvatarInfo { + uint32 trialAvatarId = 1; + repeated Item trialEquipList = 2; + TrialAvatarGrantRecord grantRecord = 3; +} diff --git a/proto/UnionCmd.proto b/proto/UnionCmd.proto new file mode 100644 index 000000000..ed4747651 --- /dev/null +++ b/proto/UnionCmd.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnionCmd { + uint32 messageId = 1; + bytes body = 2; +} diff --git a/proto/UnionCmdNotify.proto b/proto/UnionCmdNotify.proto new file mode 100644 index 000000000..04ff8d910 --- /dev/null +++ b/proto/UnionCmdNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "UnionCmd.proto"; + +message UnionCmdNotify { + repeated UnionCmd cmdList = 1; +} diff --git a/proto/UnlockAvatarTalentReq.proto b/proto/UnlockAvatarTalentReq.proto new file mode 100644 index 000000000..b0cc42086 --- /dev/null +++ b/proto/UnlockAvatarTalentReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockAvatarTalentReq { + uint64 avatarGuid = 1; + uint32 talentId = 2; +} diff --git a/proto/UnlockAvatarTalentRsp.proto b/proto/UnlockAvatarTalentRsp.proto new file mode 100644 index 000000000..8bb323484 --- /dev/null +++ b/proto/UnlockAvatarTalentRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockAvatarTalentRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint32 talentId = 3; +} diff --git a/proto/UnlockNameCardNotify.proto b/proto/UnlockNameCardNotify.proto new file mode 100644 index 000000000..193be0551 --- /dev/null +++ b/proto/UnlockNameCardNotify.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UnlockNameCardNotify { + uint32 nameCardId = 1; +} diff --git a/proto/UseItemReq.proto b/proto/UseItemReq.proto new file mode 100644 index 000000000..227697ddb --- /dev/null +++ b/proto/UseItemReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UseItemReq { + uint64 guid = 1; + uint32 count = 2; + uint64 targetGuid = 3; + uint32 optionIdx = 4; + bool isEnterMpDungeonTeam = 5; +} diff --git a/proto/UseItemRsp.proto b/proto/UseItemRsp.proto new file mode 100644 index 000000000..03add18fd --- /dev/null +++ b/proto/UseItemRsp.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message UseItemRsp { + int32 retcode = 1; + uint64 guid = 2; + uint32 itemId = 3; + uint64 targetGuid = 4; + uint32 optionIdx = 5; +} diff --git a/proto/Vector.proto b/proto/Vector.proto new file mode 100644 index 000000000..562e7436a --- /dev/null +++ b/proto/Vector.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Vector { + float x = 1; + float y = 2; + float z = 3; +} diff --git a/proto/VisionType.proto b/proto/VisionType.proto new file mode 100644 index 000000000..c3c30492d --- /dev/null +++ b/proto/VisionType.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +enum VisionType { + VisionNone = 0; + VisionMeet = 1; + VisionReborn = 2; + VisionReplace = 3; + VisionWaypointReborn = 4; + VisionMiss = 5; + VisionDie = 6; + VisionGatherEscape = 7; + VisionRefresh = 8; + VisionTransport = 9; + VisionReplaceDie = 10; + VisionReplaceNoNotify = 11; + VisionBorn = 12; + VisionPickup = 13; + VisionRemove = 14; +} diff --git a/proto/Weapon.proto b/proto/Weapon.proto new file mode 100644 index 000000000..e199f58d6 --- /dev/null +++ b/proto/Weapon.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message Weapon { + uint32 level = 1; + uint32 exp = 2; + uint32 promoteLevel = 3; + map affixMap = 4; +} diff --git a/proto/WeaponAwakenReq.proto b/proto/WeaponAwakenReq.proto new file mode 100644 index 000000000..2775c8dbb --- /dev/null +++ b/proto/WeaponAwakenReq.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponAwakenReq { + uint64 targetWeaponGuid = 1; + uint64 itemGuid = 2; + map affixLevelMap = 3; +} diff --git a/proto/WeaponAwakenRsp.proto b/proto/WeaponAwakenRsp.proto new file mode 100644 index 000000000..2400cabb2 --- /dev/null +++ b/proto/WeaponAwakenRsp.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponAwakenRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 targetWeaponAwakenLevel = 3; + map oldAffixLevelMap = 4; + map curAffixLevelMap = 5; + uint64 avatarGuid = 6; +} diff --git a/proto/WeaponPromoteReq.proto b/proto/WeaponPromoteReq.proto new file mode 100644 index 000000000..dc47477fc --- /dev/null +++ b/proto/WeaponPromoteReq.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponPromoteReq { + uint64 targetWeaponGuid = 1; +} diff --git a/proto/WeaponPromoteRsp.proto b/proto/WeaponPromoteRsp.proto new file mode 100644 index 000000000..efd7bfb5d --- /dev/null +++ b/proto/WeaponPromoteRsp.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeaponPromoteRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 oldPromoteLevel = 3; + uint32 curPromoteLevel = 4; +} diff --git a/proto/WeaponUpgradeReq.proto b/proto/WeaponUpgradeReq.proto new file mode 100644 index 000000000..93e69622b --- /dev/null +++ b/proto/WeaponUpgradeReq.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeReq { + uint64 targetWeaponGuid = 1; + repeated uint64 foodWeaponGuidList = 2; + repeated ItemParam itemParamList = 3; +} diff --git a/proto/WeaponUpgradeRsp.proto b/proto/WeaponUpgradeRsp.proto new file mode 100644 index 000000000..77a71f24b --- /dev/null +++ b/proto/WeaponUpgradeRsp.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "ItemParam.proto"; + +message WeaponUpgradeRsp { + int32 retcode = 1; + uint64 targetWeaponGuid = 2; + uint32 oldLevel = 3; + uint32 curLevel = 4; + repeated ItemParam itemParamList = 5; +} diff --git a/proto/WearEquipReq.proto b/proto/WearEquipReq.proto new file mode 100644 index 000000000..805377d4d --- /dev/null +++ b/proto/WearEquipReq.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WearEquipReq { + uint64 avatarGuid = 1; + uint64 equipGuid = 2; +} diff --git a/proto/WearEquipRsp.proto b/proto/WearEquipRsp.proto new file mode 100644 index 000000000..61bb36666 --- /dev/null +++ b/proto/WearEquipRsp.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WearEquipRsp { + int32 retcode = 1; + uint64 avatarGuid = 2; + uint64 equipGuid = 3; +} diff --git a/proto/WeeklyBossResinDiscountInfo.proto b/proto/WeeklyBossResinDiscountInfo.proto new file mode 100644 index 000000000..2c9a85e04 --- /dev/null +++ b/proto/WeeklyBossResinDiscountInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WeeklyBossResinDiscountInfo { + uint32 discountNum = 1; + uint32 discountNumLimit = 2; + uint32 resinCost = 3; + uint32 originalResinCost = 4; +} diff --git a/proto/WorldDataNotify.proto b/proto/WorldDataNotify.proto new file mode 100644 index 000000000..9bb4e73be --- /dev/null +++ b/proto/WorldDataNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PropValue.proto"; + +message WorldDataNotify { + map worldPropMap = 1; +} diff --git a/proto/WorldPlayerDieNotify.proto b/proto/WorldPlayerDieNotify.proto new file mode 100644 index 000000000..36ecf0425 --- /dev/null +++ b/proto/WorldPlayerDieNotify.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerDieType.proto"; + +message WorldPlayerDieNotify { + PlayerDieType dieType = 1; + uint32 murdererEntityId = 2; + oneof entity { + uint32 monsterId = 3; + uint32 gadgetId = 4; + } +} diff --git a/proto/WorldPlayerInfoNotify.proto b/proto/WorldPlayerInfoNotify.proto new file mode 100644 index 000000000..e9266b666 --- /dev/null +++ b/proto/WorldPlayerInfoNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "OnlinePlayerInfo.proto"; + +message WorldPlayerInfoNotify { + repeated OnlinePlayerInfo playerInfoList = 1; + repeated uint32 playerUidList = 2; +} diff --git a/proto/WorldPlayerLocationNotify.proto b/proto/WorldPlayerLocationNotify.proto new file mode 100644 index 000000000..d43efba0c --- /dev/null +++ b/proto/WorldPlayerLocationNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerLocationInfo.proto"; + +message WorldPlayerLocationNotify { + repeated PlayerLocationInfo playerLocList = 1; +} diff --git a/proto/WorldPlayerRTTNotify.proto b/proto/WorldPlayerRTTNotify.proto new file mode 100644 index 000000000..56474c13e --- /dev/null +++ b/proto/WorldPlayerRTTNotify.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "PlayerRTTInfo.proto"; + +message WorldPlayerRTTNotify { + repeated PlayerRTTInfo playerRttList = 1; +} diff --git a/proto/WorldPlayerReviveRsp.proto b/proto/WorldPlayerReviveRsp.proto new file mode 100644 index 000000000..1c823e8b6 --- /dev/null +++ b/proto/WorldPlayerReviveRsp.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +message WorldPlayerReviveRsp { + int32 retcode = 1; +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 000000000..49cff6e14 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,10 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user manual at https://docs.gradle.org/5.6.3/userguide/multi_project_builds.html + */ + +rootProject.name = 'Grasscutter' diff --git a/src/main/java/emu/grasscutter/Config.java b/src/main/java/emu/grasscutter/Config.java new file mode 100644 index 000000000..1f5e6fd2e --- /dev/null +++ b/src/main/java/emu/grasscutter/Config.java @@ -0,0 +1,45 @@ +package emu.grasscutter; + +public class Config { + public String DispatchServerIp = "127.0.0.1"; + public int DispatchServerPort = 443; + public String DispatchServerKeystorePath = "./keystore.p12"; + public String DispatchServerKeystorePassword = ""; + + public String GameServerName = "Test"; + public String GameServerIp = "127.0.0.1"; + public int GameServerPort = 22102; + + public String DatabaseUrl = "mongodb://localhost:27017"; + public String DatabaseCollection = "grasscutter"; + + public String RESOURCE_FOLDER = "./resources/"; + public String DATA_FOLDER = "./data/"; + public String PACKETS_FOLDER = "./packets/"; + public String DUMPS_FOLDER = "./dumps/"; + public String KEY_FOLDER = "./keys/"; + public boolean LOG_PACKETS = false; + + public GameRates Game = new GameRates(); + public ServerOptions ServerOptions = new ServerOptions(); + + public GameRates getGameRates() { + return Game; + } + + public ServerOptions getServerOptions() { + return ServerOptions; + } + + public class GameRates { + public float ADVENTURE_EXP_RATE = 1.0f; + public float MORA_RATE = 1.0f; + public float DOMAIN_DROP_RATE = 1.0f; + } + + public class ServerOptions { + public int MaxEntityLimit = 1000; // Max entity limit per world. TODO Unenforced for now + public int[] WelcomeEmotes = {2007, 1002, 4010}; + public String WelcomeMotd = "Welcome to Grasscutter emu"; + } +} diff --git a/src/main/java/emu/grasscutter/GenshinConstants.java b/src/main/java/emu/grasscutter/GenshinConstants.java new file mode 100644 index 000000000..ff46eddb9 --- /dev/null +++ b/src/main/java/emu/grasscutter/GenshinConstants.java @@ -0,0 +1,37 @@ +package emu.grasscutter; + +import java.util.Arrays; + +import emu.grasscutter.game.props.OpenState; +import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.Utils; + +public class GenshinConstants { + public static String VERSION = "2.6.0"; + + public static final int MAX_TEAMS = 4; + public static final int MAX_AVATARS_IN_TEAM = 4; + + public static final int LIMIT_WEAPON = 2000; + public static final int LIMIT_RELIC = 2000; + public static final int LIMIT_MATERIAL = 2000; + public static final int LIMIT_FURNITURE = 2000; + public static final int LIMIT_ALL = 30000; + + public static final int MAIN_CHARACTER_MALE = 10000005; + public static final int MAIN_CHARACTER_FEMALE = 10000007; + public static final Position START_POSITION = new Position(2747, 194, -1719); + + public static final int MAX_FRIENDS = 45; + public static final int MAX_FRIEND_REQUESTS = 50; + + public static final int SERVER_CONSOLE_UID = 99; // uid of the fake player used for commands + + // Default entity ability hashes + public static final String[] DEFAULT_ABILITY_STRINGS = { + "Avatar_DefaultAbility_VisionReplaceDieInvincible", "Avatar_DefaultAbility_AvartarInShaderChange", "Avatar_SprintBS_Invincible", + "Avatar_Freeze_Duration_Reducer", "Avatar_Attack_ReviveEnergy", "Avatar_Component_Initializer", "Avatar_FallAnthem_Achievement_Listener" + }; + public static final int[] DEFAULT_ABILITY_HASHES = Arrays.stream(DEFAULT_ABILITY_STRINGS).mapToInt(Utils::abilityHash).toArray(); + public static final int DEFAULT_ABILITY_NAME = Utils.abilityHash("Default"); +} diff --git a/src/main/java/emu/grasscutter/Grasscutter.java b/src/main/java/emu/grasscutter/Grasscutter.java new file mode 100644 index 000000000..9102ba52f --- /dev/null +++ b/src/main/java/emu/grasscutter/Grasscutter.java @@ -0,0 +1,127 @@ +package emu.grasscutter; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.InputStreamReader; +import java.net.InetSocketAddress; +import java.util.Arrays; + +import org.slf4j.LoggerFactory; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; + +import ch.qos.logback.classic.Logger; +import emu.grasscutter.commands.ServerCommands; +import emu.grasscutter.data.ResourceLoader; +import emu.grasscutter.database.DatabaseManager; +import emu.grasscutter.server.dispatch.DispatchServer; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.tools.Tools; +import emu.grasscutter.utils.Crypto; + +public class Grasscutter { + private static Logger log = (Logger) LoggerFactory.getLogger(Grasscutter.class); + private static Config config; + + private static Gson gson = new GsonBuilder().setPrettyPrinting().create(); + private static File configFile = new File("./config.json"); + + public static RunMode MODE = RunMode.BOTH; + private static DispatchServer dispatchServer; + private static GameServer gameServer; + + public static void main(String[] args) throws Exception { + Grasscutter.loadConfig(); + Crypto.loadKeys(); + + for (String arg : args) { + switch (arg.toLowerCase()) { + case "-auth": + MODE = RunMode.AUTH; + break; + case "-game": + MODE = RunMode.GAME; + break; + case "-handbook": + Tools.createGmHandbook(); + return; + + } + } + + // Startup + Grasscutter.getLogger().info("Grasscutter Emu"); + + // Load resource files + ResourceLoader.loadAll(); + + // Database + DatabaseManager.initialize(); + + // Run servers + dispatchServer = new DispatchServer(); + dispatchServer.start(); + + gameServer = new GameServer(new InetSocketAddress(getConfig().GameServerIp, getConfig().GameServerPort)); + gameServer.start(); + + startConsole(); + } + + public static Config getConfig() { + return config; + } + + public static Logger getLogger() { + return log; + } + + public static Gson getGsonFactory() { + return gson; + } + + public static DispatchServer getDispatchServer() { + return dispatchServer; + } + + public static GameServer getGameServer() { + return gameServer; + } + + public static void loadConfig() { + try (FileReader file = new FileReader(configFile)) { + config = gson.fromJson(file, Config.class); + } catch (Exception e) { + Grasscutter.config = new Config(); + } + saveConfig(); + } + + public static void saveConfig() { + try (FileWriter file = new FileWriter(configFile)) { + file.write(gson.toJson(config)); + } catch (Exception e) { + Grasscutter.getLogger().error("Config save error"); + } + } + + public static void startConsole() { + String input; + try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { + while ((input = br.readLine()) != null) { + ServerCommands.handle(input); + } + } catch (Exception e) { + Grasscutter.getLogger().error("Console error:", e); + } + } + + public enum RunMode { + BOTH, + AUTH, + GAME + } +} diff --git a/src/main/java/emu/grasscutter/commands/Command.java b/src/main/java/emu/grasscutter/commands/Command.java new file mode 100644 index 000000000..77eb92e11 --- /dev/null +++ b/src/main/java/emu/grasscutter/commands/Command.java @@ -0,0 +1,13 @@ +package emu.grasscutter.commands; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Command { + public String[] aliases() default ""; + + public int gmLevel() default 1; + + public String helpText() default ""; +} diff --git a/src/main/java/emu/grasscutter/commands/PlayerCommands.java b/src/main/java/emu/grasscutter/commands/PlayerCommands.java new file mode 100644 index 000000000..366b5e2ee --- /dev/null +++ b/src/main/java/emu/grasscutter/commands/PlayerCommands.java @@ -0,0 +1,307 @@ +package emu.grasscutter.commands; + +import java.lang.reflect.Modifier; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.def.ItemData; +import emu.grasscutter.data.def.MonsterData; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.entity.EntityItem; +import emu.grasscutter.game.entity.EntityMonster; +import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.inventory.ItemType; +import emu.grasscutter.game.props.ActionReason; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; +import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; +import emu.grasscutter.utils.Position; + +public class PlayerCommands { + private static HashMap list = new HashMap(); + + static { + try { + // Look for classes + for (Class cls : PlayerCommands.class.getDeclaredClasses()) { + // Get non abstract classes + if (!Modifier.isAbstract(cls.getModifiers())) { + Command commandAnnotation = cls.getAnnotation(Command.class); + PlayerCommand command = (PlayerCommand) cls.newInstance(); + + if (commandAnnotation != null) { + command.setLevel(commandAnnotation.gmLevel()); + for (String alias : commandAnnotation.aliases()) { + if (alias.length() == 0) { + continue; + } + + String commandName = "!" + alias; + list.put(commandName, command); + commandName = "/" + alias; + list.put(commandName, command); + } + } + + String commandName = "!" + cls.getSimpleName().toLowerCase(); + list.put(commandName, command); + commandName = "/" + cls.getSimpleName().toLowerCase(); + list.put(commandName, command); + } + + } + } catch (Exception e) { + + } + } + + public static void handle(GenshinPlayer player, String msg) { + String[] split = msg.split(" "); + + // End if invalid + if (split.length == 0) { + return; + } + + // + String first = split[0].toLowerCase(); + PlayerCommand c = PlayerCommands.list.get(first); + + if (c != null) { + // Level check + if (player.getGmLevel() < c.getLevel()) { + return; + } + // Execute + int len = Math.min(first.length() + 1, msg.length()); + c.execute(player, msg.substring(len)); + } + } + + public static abstract class PlayerCommand { + // GM level required to use this command + private int level; + protected int getLevel() { return this.level; } + protected void setLevel(int minLevel) { this.level = minLevel; } + + // Main + public abstract void execute(GenshinPlayer player, String raw); + } + + // ================ Commands ================ + + @Command(aliases = {"g", "item", "additem"}, helpText = "/give [item id] [count] - Gives {count} amount of {item id}") + public static class Give extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + String[] split = raw.split(" "); + int itemId = 0, count = 1; + + try { + itemId = Integer.parseInt(split[0]); + } catch (Exception e) { + itemId = 0; + } + + try { + count = Math.max(Math.min(Integer.parseInt(split[1]), Integer.MAX_VALUE), 1); + } catch (Exception e) { + count = 1; + } + + // Give + ItemData itemData = GenshinData.getItemDataMap().get(itemId); + GenshinItem item; + + if (itemData == null) { + player.dropMessage("Error: Item data not found"); + return; + } + + if (itemData.isEquip()) { + List items = new LinkedList<>(); + for (int i = 0; i < count; i++) { + item = new GenshinItem(itemData); + items.add(item); + } + player.getInventory().addItems(items); + player.sendPacket(new PacketItemAddHintNotify(items, ActionReason.SubfieldDrop)); + } else { + item = new GenshinItem(itemData, count); + player.getInventory().addItem(item); + player.sendPacket(new PacketItemAddHintNotify(item, ActionReason.SubfieldDrop)); + } + } + } + + @Command(aliases = {"d"}, helpText = "/drop [item id] [count] - Drops {count} amount of {item id}") + public static class Drop extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + String[] split = raw.split(" "); + int itemId = 0, count = 1; + + try { + itemId = Integer.parseInt(split[0]); + } catch (Exception e) { + itemId = 0; + } + + try { + count = Math.max(Math.min(Integer.parseInt(split[1]), Integer.MAX_VALUE), 1); + } catch (Exception e) { + count = 1; + } + + // Give + ItemData itemData = GenshinData.getItemDataMap().get(itemId); + + if (itemData == null) { + player.dropMessage("Error: Item data not found"); + return; + } + + if (itemData.isEquip()) { + float range = (5f + (.1f * count)); + for (int i = 0; i < count; i++) { + Position pos = player.getPos().clone().addX((float) (Math.random() * range) - (range / 2)).addY(3f).addZ((float) (Math.random() * range) - (range / 2)); + EntityItem entity = new EntityItem(player.getWorld(), player, itemData, pos, 1); + player.getWorld().addEntity(entity); + } + } else { + EntityItem entity = new EntityItem(player.getWorld(), player, itemData, player.getPos().clone().addY(3f), count); + player.getWorld().addEntity(entity); + } + } + } + + @Command(helpText = "/spawn [monster id] [count] - Creates {count} amount of {item id}") + public static class Spawn extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + String[] split = raw.split(" "); + int monsterId = 0, count = 1, level = 1; + + try { + monsterId = Integer.parseInt(split[0]); + } catch (Exception e) { + monsterId = 0; + } + + try { + level = Math.max(Math.min(Integer.parseInt(split[1]), 200), 1); + } catch (Exception e) { + level = 1; + } + + try { + count = Math.max(Math.min(Integer.parseInt(split[2]), 1000), 1); + } catch (Exception e) { + count = 1; + } + + // Give + MonsterData monsterData = GenshinData.getMonsterDataMap().get(monsterId); + + if (monsterData == null) { + player.dropMessage("Error: Monster data not found"); + return; + } + + float range = (5f + (.1f * count)); + for (int i = 0; i < count; i++) { + Position pos = player.getPos().clone().addX((float) (Math.random() * range) - (range / 2)).addY(3f).addZ((float) (Math.random() * range) - (range / 2)); + EntityMonster entity = new EntityMonster(player.getWorld(), monsterData, pos, level); + player.getWorld().addEntity(entity); + } + } + } + + @Command(helpText = "/killall") + public static class KillAll extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + List toRemove = new LinkedList<>(); + for (GenshinEntity entity : player.getWorld().getEntities().values()) { + if (entity instanceof EntityMonster) { + toRemove.add(entity); + } + } + toRemove.forEach(e -> player.getWorld().killEntity(e, 0)); + } + } + + @Command(helpText = "/resetconst - Resets all constellations for the currently active character") + public static class ResetConst extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + EntityAvatar entity = player.getTeamManager().getCurrentAvatarEntity(); + + if (entity == null) { + return; + } + + GenshinAvatar avatar = entity.getAvatar(); + + avatar.getTalentIdList().clear(); + avatar.setCoreProudSkillLevel(0); + avatar.recalcStats(); + avatar.save(); + + player.dropMessage("Constellations for " + entity.getAvatar().getAvatarData().getName() + " have been reset. Please relogin to see changes."); + } + } + + @Command(helpText = "/godmode - Prevents you from taking damage") + public static class Godmode extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + player.setGodmode(!player.hasGodmode()); + player.dropMessage("Godmode is now " + (player.hasGodmode() ? "ON" : "OFF")); + } + } + + @Command(helpText = "/sethp [hp]") + public static class Sethp extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + String[] split = raw.split(" "); + int hp = 0; + + try { + hp = Math.max(Integer.parseInt(split[0]), 1); + } catch (Exception e) { + hp = 1; + } + + EntityAvatar entity = player.getTeamManager().getCurrentAvatarEntity(); + + if (entity == null) { + return; + } + + entity.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, hp); + entity.getWorld().broadcastPacket(new PacketEntityFightPropUpdateNotify(entity, FightProperty.FIGHT_PROP_CUR_HP)); + } + } + + @Command(aliases = {"clearart"}, helpText = "/clearartifacts") + public static class ClearArtifacts extends PlayerCommand { + @Override + public void execute(GenshinPlayer player, String raw) { + List toRemove = new LinkedList<>(); + for (GenshinItem item : player.getInventory().getItems().values()) { + if (item.getItemType() == ItemType.ITEM_RELIQUARY && item.getLevel() == 1 && item.getExp() == 0 && !item.isLocked() && !item.isEquipped()) { + toRemove.add(item); + } + } + + player.getInventory().removeItems(toRemove); + } + } +} diff --git a/src/main/java/emu/grasscutter/commands/ServerCommands.java b/src/main/java/emu/grasscutter/commands/ServerCommands.java new file mode 100644 index 000000000..94835d5bb --- /dev/null +++ b/src/main/java/emu/grasscutter/commands/ServerCommands.java @@ -0,0 +1,140 @@ +package emu.grasscutter.commands; + +import java.lang.reflect.Modifier; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.def.ItemData; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.utils.Crypto; +import emu.grasscutter.utils.Utils; + +public class ServerCommands { + private static HashMap list = new HashMap<>(); + + static { + try { + // Look for classes + for (Class cls : ServerCommands.class.getDeclaredClasses()) { + // Get non abstract classes + if (!Modifier.isAbstract(cls.getModifiers())) { + String commandName = cls.getSimpleName().toLowerCase(); + list.put(commandName, (ServerCommand) cls.newInstance()); + } + + } + } catch (Exception e) { + + } + } + + public static void handle(String msg) { + String[] split = msg.split(" "); + + // End if invalid + if (split.length == 0) { + return; + } + + // + String first = split[0].toLowerCase(); + ServerCommand c = ServerCommands.list.get(first); + + if (c != null) { + // Execute + int len = Math.min(first.length() + 1, msg.length()); + c.execute(msg.substring(len)); + } + } + + public static abstract class ServerCommand { + public abstract void execute(String raw); + } + + // ================ Commands ================ + + public static class Reload extends ServerCommand { + @Override + public void execute(String raw) { + Grasscutter.getLogger().info("Reloading config."); + Grasscutter.loadConfig(); + Grasscutter.getDispatchServer().loadQueries(); + Grasscutter.getLogger().info("Reload complete."); + } + } + + public static class Account extends ServerCommand { + @Override + public void execute(String raw) { + String[] split = raw.split(" "); + + if (split.length < 2) { + Grasscutter.getLogger().error("Invalid amount of args"); + return; + } + + String command = split[0].toLowerCase(); + String username = split[1]; + + switch (command) { + case "create": + if (split.length < 2) { + Grasscutter.getLogger().error("Invalid amount of args"); + return; + } + + int reservedId = 0; + try { + reservedId = Integer.parseInt(split[2]); + } catch (Exception e) { + reservedId = 0; + } + + emu.grasscutter.game.Account account = DatabaseHelper.createAccountWithId(username, reservedId); + if (account != null) { + Grasscutter.getLogger().info("Account created" + (reservedId > 0 ? " with an id of " + reservedId : "")); + } else { + Grasscutter.getLogger().error("Account already exists"); + } + break; + case "delete": + boolean success = DatabaseHelper.deleteAccount(username); + + if (success) { + Grasscutter.getLogger().info("Account deleted"); + } + break; + /* + case "setpw": + case "setpass": + case "setpassword": + if (split.length < 3) { + Grasscutter.getLogger().error("Invalid amount of args"); + return; + } + + account = DatabaseHelper.getAccountByName(username); + + if (account == null) { + Grasscutter.getLogger().error("No account found!"); + return; + } + + token = split[2]; + token = PasswordHelper.hashPassword(token); + + account.setPassword(token); + DatabaseHelper.saveAccount(account); + + Grasscutter.getLogger().info("Password set"); + break; + */ + } + } + } +} diff --git a/src/main/java/emu/grasscutter/data/GenshinData.java b/src/main/java/emu/grasscutter/data/GenshinData.java new file mode 100644 index 000000000..84614618a --- /dev/null +++ b/src/main/java/emu/grasscutter/data/GenshinData.java @@ -0,0 +1,212 @@ +package emu.grasscutter.data; + +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.Map; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.utils.Utils; +import emu.grasscutter.data.custom.AbilityEmbryoEntry; +import emu.grasscutter.data.custom.OpenConfigEntry; +import emu.grasscutter.data.def.*; +import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class GenshinData { + // BinOutputs + private static final Int2ObjectMap abilityHashes = new Int2ObjectOpenHashMap<>(); + private static final Map abilityEmbryos = new HashMap<>(); + private static final Map openConfigEntries = new HashMap<>(); + + // ExcelConfigs + private static final Int2ObjectMap playerLevelDataMap = new Int2ObjectOpenHashMap<>(); + + private static final Int2ObjectMap avatarDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap avatarLevelDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap avatarSkillDepotDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap avatarSkillDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap avatarCurveDataMap = new Int2ObjectLinkedOpenHashMap<>(); + private static final Int2ObjectMap avatarPromoteDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap avatarTalentDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap proudSkillDataMap = new Int2ObjectOpenHashMap<>(); + + private static final Int2ObjectMap itemDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap reliquaryLevelDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap reliquaryAffixDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap reliquaryMainPropDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap reliquarySetDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap weaponLevelDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap weaponPromoteDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap weaponCurveDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap equipAffixDataMap = new Int2ObjectOpenHashMap<>(); + + private static final Int2ObjectMap monsterDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap npcDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap gadgetDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap monsterCurveDataMap = new Int2ObjectOpenHashMap<>(); + private static final Int2ObjectMap monsterDescribeDataMap = new Int2ObjectOpenHashMap<>(); + + private static final Int2ObjectMap avatarFlycloakDataMap = new Int2ObjectLinkedOpenHashMap<>(); + private static final Int2ObjectMap avatarCostumeDataMap = new Int2ObjectLinkedOpenHashMap<>(); + private static final Int2ObjectMap avatarCostumeDataItemIdMap = new Int2ObjectLinkedOpenHashMap<>(); + + public static Int2ObjectMap getMapByResourceDef(Class resourceDefinition) { + Int2ObjectMap map = null; + + try { + Field field = GenshinData.class.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map"); + field.setAccessible(true); + + map = (Int2ObjectMap) field.get(null); + + field.setAccessible(false); + } catch (Exception e) { + Grasscutter.getLogger().error("Error fetching resource map for " + resourceDefinition.getSimpleName(), e); + } + + return map; + } + + public static Int2ObjectMap getAbilityHashes() { + return abilityHashes; + } + + public static Map getAbilityEmbryoInfo() { + return abilityEmbryos; + } + + public static Map getOpenConfigEntries() { + return openConfigEntries; + } + + public static Int2ObjectMap getAvatarDataMap() { + return avatarDataMap; + } + + public static Int2ObjectMap getItemDataMap() { + return itemDataMap; + } + + public static Int2ObjectMap getAvatarSkillDepotDataMap() { + return avatarSkillDepotDataMap; + } + + public static Int2ObjectMap getAvatarSkillDataMap() { + return avatarSkillDataMap; + } + + public static Int2ObjectMap getPlayerLevelDataMap() { + return playerLevelDataMap; + } + + public static Int2ObjectMap getAvatarLevelDataMap() { + return avatarLevelDataMap; + } + + public static Int2ObjectMap getWeaponLevelDataMap() { + return weaponLevelDataMap; + } + + public static Int2ObjectMap getReliquaryAffixDataMap() { + return reliquaryAffixDataMap; + } + + public static Int2ObjectMap getReliquaryMainPropDataMap() { + return reliquaryMainPropDataMap; + } + + public static Int2ObjectMap getWeaponPromoteDataMap() { + return weaponPromoteDataMap; + } + + public static Int2ObjectMap getWeaponCurveDataMap() { + return weaponCurveDataMap; + } + + public static Int2ObjectMap getAvatarCurveDataMap() { + return avatarCurveDataMap; + } + + public static int getRelicExpRequired(int rankLevel, int level) { + ReliquaryLevelData levelData = reliquaryLevelDataMap.get((rankLevel << 8) + level); + return levelData != null ? levelData.getExp() : 0; + } + + public static ReliquaryLevelData getRelicLevelData(int rankLevel, int level) { + return reliquaryLevelDataMap.get((rankLevel << 8) + level); + } + + public static WeaponPromoteData getWeaponPromoteData(int promoteId, int promoteLevel) { + return weaponPromoteDataMap.get((promoteId << 8) + promoteLevel); + } + + public static int getWeaponExpRequired(int rankLevel, int level) { + WeaponLevelData levelData = weaponLevelDataMap.get(level); + if (levelData == null) { + return 0; + } + try { + return levelData.getRequiredExps()[rankLevel - 1]; + } catch (Exception e) { + return 0; + } + } + + public static AvatarPromoteData getAvatarPromoteData(int promoteId, int promoteLevel) { + return avatarPromoteDataMap.get((promoteId << 8) + promoteLevel); + } + + public static int getAvatarLevelExpRequired(int level) { + AvatarLevelData levelData = avatarLevelDataMap.get(level); + return levelData != null ? levelData.getExp() : 0; + } + + public static Int2ObjectMap getProudSkillDataMap() { + return proudSkillDataMap; + } + + public static Int2ObjectMap getMonsterDataMap() { + return monsterDataMap; + } + + public static Int2ObjectMap getNpcDataMap() { + return npcDataMap; + } + + public static Int2ObjectMap getGadgetDataMap() { + return gadgetDataMap; + } + + public static Int2ObjectMap getReliquarySetDataMap() { + return reliquarySetDataMap; + } + + public static Int2ObjectMap getEquipAffixDataMap() { + return equipAffixDataMap; + } + + public static Int2ObjectMap getMonsterCurveDataMap() { + return monsterCurveDataMap; + } + + public static Int2ObjectMap getMonsterDescribeDataMap() { + return monsterDescribeDataMap; + } + + public static Int2ObjectMap getAvatarTalentDataMap() { + return avatarTalentDataMap; + } + + public static Int2ObjectMap getAvatarFlycloakDataMap() { + return avatarFlycloakDataMap; + } + + public static Int2ObjectMap getAvatarCostumeDataMap() { + return avatarCostumeDataMap; + } + + public static Int2ObjectMap getAvatarCostumeDataItemIdMap() { + return avatarCostumeDataItemIdMap; + } +} diff --git a/src/main/java/emu/grasscutter/data/GenshinDepot.java b/src/main/java/emu/grasscutter/data/GenshinDepot.java new file mode 100644 index 000000000..4f141269d --- /dev/null +++ b/src/main/java/emu/grasscutter/data/GenshinDepot.java @@ -0,0 +1,49 @@ +package emu.grasscutter.data; + +import java.util.ArrayList; +import java.util.List; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.def.ReliquaryAffixData; +import emu.grasscutter.data.def.ReliquaryMainPropData; +import emu.grasscutter.utils.WeightedList; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class GenshinDepot { + private static Int2ObjectMap> relicMainPropDepot = new Int2ObjectOpenHashMap<>(); + private static Int2ObjectMap> relicAffixDepot = new Int2ObjectOpenHashMap<>(); + + public static void load() { + for (ReliquaryMainPropData data : GenshinData.getReliquaryMainPropDataMap().values()) { + if (data.getWeight() <= 0 || data.getPropDepotId() <= 0) { + continue; + } + WeightedList list = relicMainPropDepot.computeIfAbsent(data.getPropDepotId(), k -> new WeightedList<>()); + list.add(data.getWeight(), data); + } + for (ReliquaryAffixData data : GenshinData.getReliquaryAffixDataMap().values()) { + if (data.getWeight() <= 0 || data.getDepotId() <= 0) { + continue; + } + List list = relicAffixDepot.computeIfAbsent(data.getDepotId(), k -> new ArrayList<>()); + list.add(data); + } + // Let the server owner know if theyre missing weights + if (relicMainPropDepot.size() == 0 || relicAffixDepot.size() == 0) { + Grasscutter.getLogger().error("Relic properties are missing weights! Please check your ReliquaryMainPropExcelConfigData or ReliquaryAffixExcelConfigData files in your ExcelBinOutput folder."); + } + } + + public static ReliquaryMainPropData getRandomRelicMainProp(int depot) { + WeightedList depotList = relicMainPropDepot.get(depot); + if (depotList == null) { + return null; + } + return depotList.next(); + } + + public static List getRandomRelicAffixList(int depot) { + return relicAffixDepot.get(depot); + } +} diff --git a/src/main/java/emu/grasscutter/data/GenshinResource.java b/src/main/java/emu/grasscutter/data/GenshinResource.java new file mode 100644 index 000000000..92e06354e --- /dev/null +++ b/src/main/java/emu/grasscutter/data/GenshinResource.java @@ -0,0 +1,12 @@ +package emu.grasscutter.data; + +public abstract class GenshinResource { + + public int getId() { + return 0; + } + + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/ResourceLoader.java b/src/main/java/emu/grasscutter/data/ResourceLoader.java new file mode 100644 index 000000000..dea19e022 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/ResourceLoader.java @@ -0,0 +1,281 @@ +package emu.grasscutter.data; + +import java.io.File; +import java.io.FileReader; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; +import java.util.Map.Entry; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.stream.Stream; + +import org.reflections.Reflections; + +import com.google.gson.reflect.TypeToken; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.custom.AbilityEmbryoEntry; +import emu.grasscutter.data.custom.OpenConfigEntry; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; + +public class ResourceLoader { + + public static List> getResourceDefClasses() { + Reflections reflections = new Reflections(ResourceLoader.class.getPackage().getName()); + Set classes = reflections.getSubTypesOf(GenshinResource.class); + + List> classList = new ArrayList<>(classes.size()); + classes.forEach(o -> { + Class c = (Class) o; + if (c.getAnnotation(ResourceType.class) != null) { + classList.add(c); + } + }); + + classList.sort((a, b) -> { + return b.getAnnotation(ResourceType.class).loadPriority().value() - a.getAnnotation(ResourceType.class).loadPriority().value(); + }); + + return classList; + } + + public static void loadAll() { + // Create resource folder if it doesnt exist + File resFolder = new File(Grasscutter.getConfig().RESOURCE_FOLDER); + if (!resFolder.exists()) { + resFolder.mkdir(); + } + // Load ability lists + loadAbilityEmbryos(); + loadOpenConfig(); + // Load resources + loadResources(); + // Process into depots + GenshinDepot.load(); + // Custom - TODO move this somewhere else + try { + GenshinData.getAvatarSkillDepotDataMap().get(504).setAbilities( + new AbilityEmbryoEntry( + "", + new String[] { + "Avatar_PlayerBoy_ExtraAttack_Wind", + "Avatar_Player_UziExplode_Mix", + "Avatar_Player_UziExplode", + "Avatar_Player_UziExplode_Strike_01", + "Avatar_Player_UziExplode_Strike_02", + "Avatar_Player_WindBreathe", + "Avatar_Player_WindBreathe_CameraController" + } + )); + GenshinData.getAvatarSkillDepotDataMap().get(704).setAbilities( + new AbilityEmbryoEntry( + "", + new String[] { + "Avatar_PlayerGirl_ExtraAttack_Wind", + "Avatar_Player_UziExplode_Mix", + "Avatar_Player_UziExplode", + "Avatar_Player_UziExplode_Strike_01", + "Avatar_Player_UziExplode_Strike_02", + "Avatar_Player_WindBreathe", + "Avatar_Player_WindBreathe_CameraController" + } + )); + } catch (Exception e) { + Grasscutter.getLogger().error("Error loading abilities", e); + } + } + + public static void loadResources() { + for (Class resourceDefinition : getResourceDefClasses()) { + ResourceType type = resourceDefinition.getAnnotation(ResourceType.class); + + if (type == null) { + continue; + } + + @SuppressWarnings("rawtypes") + Int2ObjectMap map = GenshinData.getMapByResourceDef(resourceDefinition); + + if (map == null) { + continue; + } + + try { + loadFromResource(resourceDefinition, type, map); + } catch (Exception e) { + Grasscutter.getLogger().error("Error loading resource file: " + type.name(), e); + } + } + } + + @SuppressWarnings("rawtypes") + protected static void loadFromResource(Class c, ResourceType type, Int2ObjectMap map) throws Exception { + for (String name : type.name()) { + loadFromResource(c, name, map); + } + Grasscutter.getLogger().info("Loaded " + map.size() + " " + c.getSimpleName() + "s."); + } + + @SuppressWarnings({"rawtypes", "unchecked"}) + protected static void loadFromResource(Class c, String fileName, Int2ObjectMap map) throws Exception { + try (FileReader fileReader = new FileReader(Grasscutter.getConfig().RESOURCE_FOLDER + "ExcelBinOutput/" + fileName)) { + List list = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, c).getType()); + + for (Object o : list) { + GenshinResource res = (GenshinResource) o; + res.onLoad(); + map.put(res.getId(), res); + } + } + } + + private static void loadAbilityEmbryos() { + // Read from cached file if exists + File embryoCache = new File(Grasscutter.getConfig().DATA_FOLDER + "AbilityEmbryos.json"); + List embryoList = null; + + if (embryoCache.exists()) { + // Load from cache + try (FileReader fileReader = new FileReader(embryoCache)) { + embryoList = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, AbilityEmbryoEntry.class).getType()); + } catch (Exception e) { + e.printStackTrace(); + } + } else { + // Load from BinOutput + Pattern pattern = Pattern.compile("(?<=ConfigAvatar_)(.*?)(?=.json)"); + + embryoList = new LinkedList<>(); + File folder = new File(Grasscutter.getConfig().RESOURCE_FOLDER + "BinOutput\\Avatar\\"); + for (File file : folder.listFiles()) { + AvatarConfig config = null; + String avatarName = null; + + 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); + } + } + + if (embryoList == null || embryoList.isEmpty()) { + Grasscutter.getLogger().error("No embryos loaded!"); + return; + } + + for (AbilityEmbryoEntry entry : embryoList) { + GenshinData.getAbilityEmbryoInfo().put(entry.getName(), entry); + } + } + + private static void loadOpenConfig() { + // Read from cached file if exists + File openConfigCache = new File(Grasscutter.getConfig().DATA_FOLDER + "OpenConfig.json"); + List list = null; + + if (openConfigCache.exists()) { + try (FileReader fileReader = new FileReader(openConfigCache)) { + list = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, OpenConfigEntry.class).getType()); + } catch (Exception e) { + e.printStackTrace(); + } + } else { + Map map = new TreeMap<>(); + java.lang.reflect.Type type = new TypeToken>() {}.getType(); + String[] folderNames = {"BinOutput\\Talent\\EquipTalents\\", "BinOutput\\Talent\\AvatarTalents\\"}; + + for (String name : folderNames) { + File folder = new File(Grasscutter.getConfig().RESOURCE_FOLDER + name); + + for (File file : folder.listFiles()) { + if (!file.getName().endsWith(".json")) { + continue; + } + + Map config = null; + + try (FileReader fileReader = new FileReader(file)) { + config = Grasscutter.getGsonFactory().fromJson(fileReader, type); + } catch (Exception e) { + e.printStackTrace(); + continue; + } + + for (Entry e : config.entrySet()) { + List abilityList = new ArrayList<>(); + int extraTalentIndex = 0; + + for (OpenConfigData entry : e.getValue()) { + if (entry.$type.contains("AddAbility")) { + abilityList.add(entry.abilityName); + } else if (entry.talentIndex > 0) { + extraTalentIndex = entry.talentIndex; + } + } + + OpenConfigEntry entry = new OpenConfigEntry(e.getKey(), abilityList, extraTalentIndex); + map.put(entry.getName(), entry); + } + } + } + + list = new ArrayList<>(map.values()); + } + + if (list == null || list.isEmpty()) { + Grasscutter.getLogger().error("No openconfig entries loaded!"); + return; + } + + for (OpenConfigEntry entry : list) { + GenshinData.getOpenConfigEntries().put(entry.getName(), entry); + } + } + + // BinOutput configs + + private static class AvatarConfig { + public ArrayList abilities; + + private static class AvatarConfigAbility { + public String abilityName; + public String toString() { + return abilityName; + } + } + } + + private static class OpenConfig { + public OpenConfigData[] data; + } + + private static class OpenConfigData { + public String $type; + public String abilityName; + public int talentIndex; + } +} diff --git a/src/main/java/emu/grasscutter/data/ResourceType.java b/src/main/java/emu/grasscutter/data/ResourceType.java new file mode 100644 index 000000000..c77f61fc3 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/ResourceType.java @@ -0,0 +1,32 @@ +package emu.grasscutter.data; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface ResourceType { + + /** Names of the file that this Resource loads from */ + String[] name(); + + /** Load priority - dictates which order to load this resource, with "highest" being loaded first */ + LoadPriority loadPriority() default LoadPriority.NORMAL; + + public enum LoadPriority { + HIGHEST (4), + HIGH (3), + NORMAL (2), + LOW (1), + LOWEST (0); + + private final int value; + + LoadPriority(int value) { + this.value = value; + } + + public int value() { + return value; + } + } +} diff --git a/src/main/java/emu/grasscutter/data/common/CurveInfo.java b/src/main/java/emu/grasscutter/data/common/CurveInfo.java new file mode 100644 index 000000000..00c3de3f8 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/common/CurveInfo.java @@ -0,0 +1,17 @@ +package emu.grasscutter.data.common; + +public class CurveInfo { + private String Type; + private String Arith; + private float Value; + + public String getType() { + return Type; + } + public String getArith() { + return Arith; + } + public float getValue() { + return Value; + } +} diff --git a/src/main/java/emu/grasscutter/data/common/FightPropData.java b/src/main/java/emu/grasscutter/data/common/FightPropData.java new file mode 100644 index 000000000..aee15a6c5 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/common/FightPropData.java @@ -0,0 +1,25 @@ +package emu.grasscutter.data.common; + +import emu.grasscutter.game.props.FightProperty; + +public class FightPropData { + private String PropType; + private FightProperty prop; + private float Value; + + public String getPropType() { + return PropType; + } + + public float getValue() { + return Value; + } + + public FightProperty getProp() { + return prop; + } + + public void onLoad() { + this.prop = FightProperty.getPropByName(PropType); + } +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/data/common/ItemParamData.java b/src/main/java/emu/grasscutter/data/common/ItemParamData.java new file mode 100644 index 000000000..9ec70f00b --- /dev/null +++ b/src/main/java/emu/grasscutter/data/common/ItemParamData.java @@ -0,0 +1,14 @@ +package emu.grasscutter.data.common; + +public class ItemParamData { + private int Id; + private int Count; + + public int getId() { + return Id; + } + + public int getCount() { + return Count; + } +} diff --git a/src/main/java/emu/grasscutter/data/common/PropGrowCurve.java b/src/main/java/emu/grasscutter/data/common/PropGrowCurve.java new file mode 100644 index 000000000..b8f11233c --- /dev/null +++ b/src/main/java/emu/grasscutter/data/common/PropGrowCurve.java @@ -0,0 +1,13 @@ +package emu.grasscutter.data.common; + +public class PropGrowCurve { + private String Type; + private String GrowCurve; + + public String getType(){ + return this.Type; + } + public String getGrowCurve(){ + return this.GrowCurve; + } +} diff --git a/src/main/java/emu/grasscutter/data/custom/AbilityEmbryoEntry.java b/src/main/java/emu/grasscutter/data/custom/AbilityEmbryoEntry.java new file mode 100644 index 000000000..9c5510145 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/custom/AbilityEmbryoEntry.java @@ -0,0 +1,23 @@ +package emu.grasscutter.data.custom; + +public class AbilityEmbryoEntry { + private String name; + private String[] abilities; + + public AbilityEmbryoEntry() { + + } + + public AbilityEmbryoEntry(String avatarName, String[] array) { + this.name = avatarName; + this.abilities = array; + } + + public String getName() { + return name; + } + + public String[] getAbilities() { + return abilities; + } +} diff --git a/src/main/java/emu/grasscutter/data/custom/OpenConfigEntry.java b/src/main/java/emu/grasscutter/data/custom/OpenConfigEntry.java new file mode 100644 index 000000000..d01467637 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/custom/OpenConfigEntry.java @@ -0,0 +1,29 @@ +package emu.grasscutter.data.custom; + +import java.util.List; + +public class OpenConfigEntry { + private String name; + private String[] addAbilities; + private int extraTalentIndex; + + public OpenConfigEntry(String name, List abilityList, int extraTalentIndex) { + this.name = name; + this.extraTalentIndex = extraTalentIndex; + if (abilityList.size() > 0) { + this.addAbilities = abilityList.toArray(new String[0]); + } + } + + public String getName() { + return name; + } + + public String[] getAddAbilities() { + return addAbilities; + } + + public int getExtraTalentIndex() { + return extraTalentIndex; + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java b/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java new file mode 100644 index 000000000..b45bac9c7 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarCostumeData.java @@ -0,0 +1,30 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "AvatarCostumeExcelConfigData.json") +public class AvatarCostumeData extends GenshinResource { + private int CostumeId; + private int ItemId; + private int AvatarId; + + @Override + public int getId() { + return this.CostumeId; + } + + public int getItemId() { + return this.ItemId; + } + + public int getAvatarId() { + return AvatarId; + } + + @Override + public void onLoad() { + GenshinData.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 new file mode 100644 index 000000000..da560b2b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarCurveData.java @@ -0,0 +1,36 @@ +package emu.grasscutter.data.def; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.common.CurveInfo; + +@ResourceType(name = "AvatarCurveExcelConfigData.json") +public class AvatarCurveData extends GenshinResource { + private int Level; + private CurveInfo[] CurveInfos; + + private Map curveInfos; + + @Override + public int getId() { + return this.Level; + } + + public int getLevel() { + return Level; + } + + public Map getCurveInfos() { + return curveInfos; + } + + @Override + public void onLoad() { + this.curveInfos = new HashMap<>(); + Stream.of(this.CurveInfos).forEach(info -> this.curveInfos.put(info.getType(), info.getValue())); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarData.java b/src/main/java/emu/grasscutter/data/def/AvatarData.java new file mode 100644 index 000000000..dcc503994 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarData.java @@ -0,0 +1,246 @@ +package emu.grasscutter.data.def; + +import java.util.List; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.ResourceType.LoadPriority; +import emu.grasscutter.data.common.PropGrowCurve; +import emu.grasscutter.data.custom.AbilityEmbryoEntry; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.utils.Utils; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +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 { + + private String name; + private String IconName; + private String BodyType; + private String QualityType; + private int ChargeEfficiency; + private int InitialWeapon; + private String WeaponType; + private String ImageName; + private int AvatarPromoteId; + private String CutsceneShow; + private int SkillDepotId; + private int StaminaRecoverSpeed; + private List CandSkillDepotIds; + private long DescTextMapHash; + private String AvatarIdentityType; + private List AvatarPromoteRewardLevelList; + private List AvatarPromoteRewardIdList; + private int FeatureTagGroupID; + + private long NameTextMapHash; + private long GachaImageNameHashSuffix; + private long InfoDescTextMapHash; + + private float HpBase; + private float AttackBase; + private float DefenseBase; + private float Critical; + private float CriticalHurt; + + private List PropGrowCurves; + private int Id; + + private Int2ObjectMap growthCurveMap; + private float[] hpGrowthCurve; + private float[] attackGrowthCurve; + private float[] defenseGrowthCurve; + private AvatarSkillDepotData skillDepot; + private IntList abilities; + + @Override + public int getId(){ + return this.Id; + } + + public String getName() { + return name; + } + + public String getBodyType(){ + return this.BodyType; + } + + public String getQualityType(){ + return this.QualityType; + } + + public int getChargeEfficiency(){ + return this.ChargeEfficiency; + } + + public int getInitialWeapon(){ + return this.InitialWeapon; + } + + public String getWeaponType(){ + return this.WeaponType; + } + + public String getImageName(){ + return this.ImageName; + } + + public int getAvatarPromoteId(){ + return this.AvatarPromoteId; + } + + public long getGachaImageNameHashSuffix(){ + return this.GachaImageNameHashSuffix; + } + + public String getCutsceneShow(){ + return this.CutsceneShow; + } + + public int getSkillDepotId(){ + return this.SkillDepotId; + } + + public int getStaminaRecoverSpeed(){ + return this.StaminaRecoverSpeed; + } + + public List getCandSkillDepotIds(){ + return this.CandSkillDepotIds; + } + + public long getDescTextMapHash(){ + return this.DescTextMapHash; + } + + public String getAvatarIdentityType(){ + return this.AvatarIdentityType; + } + + public List getAvatarPromoteRewardLevelList(){ + return this.AvatarPromoteRewardLevelList; + } + + public List getAvatarPromoteRewardIdList(){ + return this.AvatarPromoteRewardIdList; + } + + public int getFeatureTagGroupID(){ + return this.FeatureTagGroupID; + } + + public long getInfoDescTextMapHash(){ + return this.InfoDescTextMapHash; + } + + public float getBaseHp(int level){ + try { + return this.HpBase * this.hpGrowthCurve[level - 1]; + } catch (Exception e) { + return this.HpBase; + } + } + + public float getBaseAttack(int level){ + try { + return this.AttackBase * this.attackGrowthCurve[level - 1]; + } catch (Exception e) { + return this.AttackBase; + } + } + + public float getBaseDefense(int level){ + try { + return this.DefenseBase * this.defenseGrowthCurve[level - 1]; + } catch (Exception e) { + return this.DefenseBase; + } + } + + public float getBaseCritical(){ + return this.Critical; + } + + public float getBaseCriticalHurt(){ + return this.CriticalHurt; + } + + public float getGrowthCurveById(int level, FightProperty prop) { + String growCurve = this.growthCurveMap.get(prop.getId()); + if (growCurve == null) { + return 1f; + } + AvatarCurveData curveData = GenshinData.getAvatarCurveDataMap().get(level); + if (curveData == null) { + return 1f; + } + return curveData.getCurveInfos().getOrDefault(growCurve, 1f); + } + + public long getNameTextMapHash(){ + return this.NameTextMapHash; + } + + public AvatarSkillDepotData getSkillDepot() { + return skillDepot; + } + + public IntList getAbilities() { + return abilities; + } + + @Override + public void onLoad() { + this.skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(this.SkillDepotId); + + int size = GenshinData.getAvatarCurveDataMap().size(); + this.hpGrowthCurve = new float[size]; + this.attackGrowthCurve = new float[size]; + this.defenseGrowthCurve = new float[size]; + for (AvatarCurveData curveData : GenshinData.getAvatarCurveDataMap().values()) { + int level = curveData.getLevel() - 1; + for (PropGrowCurve growCurve : this.PropGrowCurves) { + FightProperty prop = FightProperty.getPropByName(growCurve.getType()); + switch (prop) { + case FIGHT_PROP_BASE_HP: + this.hpGrowthCurve[level] = curveData.getCurveInfos().get(growCurve.getGrowCurve()); + break; + case FIGHT_PROP_BASE_ATTACK: + this.attackGrowthCurve[level] = curveData.getCurveInfos().get(growCurve.getGrowCurve()); + break; + case FIGHT_PROP_BASE_DEFENSE: + this.defenseGrowthCurve[level] = curveData.getCurveInfos().get(growCurve.getGrowCurve()); + break; + default: + break; + } + } + } + + /* + for (PropGrowCurve growCurve : this.PropGrowCurves) { + FightProperty prop = FightProperty.getPropByName(growCurve.getType()); + this.growthCurveMap.put(prop.getId(), growCurve.getGrowCurve()); + } + */ + + // Cache abilities + String[] split = this.IconName.split("_"); + if (split.length > 0) { + this.name = split[split.length - 1]; + + AbilityEmbryoEntry info = GenshinData.getAbilityEmbryoInfo().get(this.name); + if (info != null) { + this.abilities = new IntArrayList(info.getAbilities().length); + for (String ability : info.getAbilities()) { + this.abilities.add(Utils.abilityHash(ability)); + } + } + } + } +} + diff --git a/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java b/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java new file mode 100644 index 000000000..29d04cce5 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarFlycloakData.java @@ -0,0 +1,24 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "AvatarFlycloakExcelConfigData.json") +public class AvatarFlycloakData extends GenshinResource { + private int FlycloakId; + private long NameTextMapHash; + + @Override + public int getId() { + return this.FlycloakId; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java b/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java new file mode 100644 index 000000000..f7586f690 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarLevelData.java @@ -0,0 +1,23 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "AvatarLevelExcelConfigData.json") +public class AvatarLevelData extends GenshinResource { + private int Level; + private int Exp; + + @Override + public int getId() { + return this.Level; + } + + public int getLevel() { + return Level; + } + + public int getExp() { + return Exp; + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java b/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java new file mode 100644 index 000000000..2a40d44ad --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarPromoteData.java @@ -0,0 +1,74 @@ +package emu.grasscutter.data.def; + +import java.util.ArrayList; +import emu.grasscutter.data.GenshinResource; +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 { + + private int AvatarPromoteId; + private int PromoteLevel; + private int ScoinCost; + private ItemParamData[] CostItems; + private int UnlockMaxLevel; + private FightPropData[] AddProps; + private int RequiredPlayerLevel; + + @Override + public int getId() { + return (AvatarPromoteId << 8) + PromoteLevel; + } + + public int getAvatarPromoteId() { + return AvatarPromoteId; + } + + public int getPromoteLevel() { + return PromoteLevel; + } + + public ItemParamData[] getCostItems() { + return CostItems; + } + + public int getCoinCost() { + return ScoinCost; + } + + public FightPropData[] getAddProps() { + return AddProps; + } + + public int getUnlockMaxLevel() { + return UnlockMaxLevel; + } + + public int getRequiredPlayerLevel() { + return RequiredPlayerLevel; + } + + @Override + public void onLoad() { + // Trim item params + ArrayList trim = new ArrayList<>(getAddProps().length); + for (ItemParamData itemParam : getCostItems()) { + if (itemParam.getId() == 0) { + continue; + } + trim.add(itemParam); + } + this.CostItems = trim.toArray(new ItemParamData[trim.size()]); + // Trim fight prop data (just in case) + ArrayList parsed = new ArrayList<>(getAddProps().length); + for (FightPropData prop : getAddProps()) { + if (prop.getPropType() != null && prop.getValue() != 0f) { + prop.onLoad(); + parsed.add(prop); + } + } + this.AddProps = parsed.toArray(new FightPropData[parsed.size()]); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java b/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java new file mode 100644 index 000000000..147c22d10 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarSkillData.java @@ -0,0 +1,84 @@ +package emu.grasscutter.data.def; + +import java.util.List; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.ResourceType.LoadPriority; + +@ResourceType(name = "AvatarSkillExcelConfigData.json", loadPriority = LoadPriority.HIGHEST) +public class AvatarSkillData extends GenshinResource { + private int Id; + private float CdTime; + private int CostElemVal; + private int MaxChargeNum; + private int TriggerID; + private boolean IsAttackCameraLock; + private int ProudSkillGroupId; + private String CostElemType; + private List LockWeightParams; + + private long NameTextMapHash; + + private String AbilityName; + private String LockShape; + private String GlobalValueKey; + + @Override + public int getId(){ + return this.Id; + } + + public float getCdTime() { + return CdTime; + } + + public int getCostElemVal() { + return CostElemVal; + } + + public int getMaxChargeNum() { + return MaxChargeNum; + } + + public int getTriggerID() { + return TriggerID; + } + + public boolean isIsAttackCameraLock() { + return IsAttackCameraLock; + } + + public int getProudSkillGroupId() { + return ProudSkillGroupId; + } + + public String getCostElemType() { + return CostElemType; + } + + public List getLockWeightParams() { + return LockWeightParams; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public String getAbilityName() { + return AbilityName; + } + + public String getLockShape() { + return LockShape; + } + + public String getGlobalValueKey() { + return GlobalValueKey; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java b/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java new file mode 100644 index 000000000..4beb6ec8c --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarSkillDepotData.java @@ -0,0 +1,123 @@ +package emu.grasscutter.data.def; + +import java.util.List; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.ResourceType.LoadPriority; +import emu.grasscutter.data.custom.AbilityEmbryoEntry; +import emu.grasscutter.game.props.ElementType; +import emu.grasscutter.utils.Utils; +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 { + + private int Id; + private int EnergySkill; + private int AttackModeSkill; + + private List Skills; + private List SubSkills; + private List ExtraAbilities; + private List Talents; + private List InherentProudSkillOpens; + + private String TalentStarName; + private String SkillDepotAbilityGroup; + + private AvatarSkillData energySkillData; + private ElementType elementType; + private IntList abilities; + + @Override + public int getId(){ + return this.Id; + } + + public int getEnergySkill(){ + return this.EnergySkill; + } + + public List getSkills(){ + return this.Skills; + } + + public List getSubSkills(){ + return this.SubSkills; + } + + public int getAttackModeSkill(){ + return this.AttackModeSkill; + } + + public List getExtraAbilities(){ + return this.ExtraAbilities; + } + + public List getTalents(){ + return this.Talents; + } + + public String getTalentStarName(){ + return this.TalentStarName; + } + + public List getInherentProudSkillOpens(){ + return this.InherentProudSkillOpens; + } + + public String getSkillDepotAbilityGroup(){ + return this.SkillDepotAbilityGroup; + } + + public AvatarSkillData getEnergySkillData() { + return this.energySkillData; + } + + public ElementType getElementType() { + return elementType; + } + + public IntList getAbilities() { + return abilities; + } + + public void setAbilities(AbilityEmbryoEntry info) { + this.abilities = new IntArrayList(info.getAbilities().length); + for (String ability : info.getAbilities()) { + this.abilities.add(Utils.abilityHash(ability)); + } + } + + @Override + public void onLoad() { + this.energySkillData = GenshinData.getAvatarSkillDataMap().get(this.EnergySkill); + if (getEnergySkillData() != null) { + this.elementType = ElementType.getTypeByName(getEnergySkillData().getCostElemType()); + } else { + this.elementType = ElementType.None; + } + } + + public static class InherentProudSkillOpens { + private int ProudSkillGroupId; + + private int NeedAvatarPromoteLevel; + + public void setProudSkillGroupId(int ProudSkillGroupId){ + this.ProudSkillGroupId = ProudSkillGroupId; + } + public int getProudSkillGroupId(){ + return this.ProudSkillGroupId; + } + public void setNeedAvatarPromoteLevel(int NeedAvatarPromoteLevel){ + this.NeedAvatarPromoteLevel = NeedAvatarPromoteLevel; + } + public int getNeedAvatarPromoteLevel(){ + return this.NeedAvatarPromoteLevel; + } + } +} diff --git a/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java b/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java new file mode 100644 index 000000000..6708da8c8 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/AvatarTalentData.java @@ -0,0 +1,69 @@ +package emu.grasscutter.data.def; + +import java.util.ArrayList; +import emu.grasscutter.data.GenshinResource; +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 { + private int TalentId; + private int PrevTalent; + private long NameTextMapHash; + private String Icon; + private int MainCostItemId; + private int MainCostItemCount; + private String OpenConfig; + private FightPropData[] AddProps; + private float[] ParamList; + + @Override + public int getId(){ + return this.TalentId; + } + + public int PrevTalent() { + return PrevTalent; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public String getIcon() { + return Icon; + } + + public int getMainCostItemId() { + return MainCostItemId; + } + + public int getMainCostItemCount() { + return MainCostItemCount; + } + + public String getOpenConfig() { + return OpenConfig; + } + + public FightPropData[] getAddProps() { + return AddProps; + } + + public float[] getParamList() { + return ParamList; + } + + @Override + public void onLoad() { + ArrayList parsed = new ArrayList(getAddProps().length); + for (FightPropData prop : getAddProps()) { + if (prop.getPropType() != null || prop.getValue() == 0f) { + prop.onLoad(); + parsed.add(prop); + } + } + this.AddProps = parsed.toArray(new FightPropData[parsed.size()]); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/EquipAffixData.java b/src/main/java/emu/grasscutter/data/def/EquipAffixData.java new file mode 100644 index 000000000..af08276df --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/EquipAffixData.java @@ -0,0 +1,59 @@ +package emu.grasscutter.data.def; + +import java.util.ArrayList; +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.common.FightPropData; + +@ResourceType(name = "EquipAffixExcelConfigData.json") +public class EquipAffixData extends GenshinResource { + + private int AffixId; + private int Id; + private int Level; + private long NameTextMapHash; + private String OpenConfig; + private FightPropData[] AddProps; + private float[] ParamList; + + @Override + public int getId() { + return AffixId; + } + + public int getMainId() { + return Id; + } + + public int getLevel() { + return Level; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public String getOpenConfig() { + return OpenConfig; + } + + public FightPropData[] getAddProps() { + return AddProps; + } + + public float[] getParamList() { + return ParamList; + } + + @Override + public void onLoad() { + ArrayList parsed = new ArrayList(getAddProps().length); + for (FightPropData prop : getAddProps()) { + if (prop.getPropType() != null || prop.getValue() == 0f) { + prop.onLoad(); + parsed.add(prop); + } + } + this.AddProps = parsed.toArray(new FightPropData[parsed.size()]); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/GadgetData.java b/src/main/java/emu/grasscutter/data/def/GadgetData.java new file mode 100644 index 000000000..ec7754863 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/GadgetData.java @@ -0,0 +1,60 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "GadgetExcelConfigData.json") +public class GadgetData extends GenshinResource { + private int Id; + + private String Type; + private String JsonName; + private boolean IsInteractive; + private String[] Tags; + private String ItemJsonName; + private String InteeIconName; + private long NameTextMapHash; + private int CampID; + + @Override + public int getId() { + return this.Id; + } + + public String getType() { + return Type; + } + + public String getJsonName() { + return JsonName; + } + + public boolean isInteractive() { + return IsInteractive; + } + + public String[] getTags() { + return Tags; + } + + public String getItemJsonName() { + return ItemJsonName; + } + + public String getInteeIconName() { + return InteeIconName; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public int getCampID() { + return CampID; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ItemData.java b/src/main/java/emu/grasscutter/data/def/ItemData.java new file mode 100644 index 000000000..6c87afead --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ItemData.java @@ -0,0 +1,253 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +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 { + + private int Id; + private int StackLimit = 1; + private int MaxUseCount; + private int RankLevel; + private String EffectName; + private int[] SatiationParams; + private int Rank; + private int Weight; + private int GadgetId; + + private int[] DestroyReturnMaterial; + private int[] DestroyReturnMaterialCount; + + // Food + private String FoodQuality; + private String UseTarget; + private String[] UseParam; + + // String enums + private String ItemType; + private String MaterialType; + private String EquipType; + private String EffectType; + private String DestroyRule; + + // Relic + private int MainPropDepotId; + private int AppendPropDepotId; + private int AppendPropNum; + private int SetId; + private int[] AddPropLevels; + private int BaseConvExp; + private int MaxLevel; + + // Weapon + private int WeaponPromoteId; + private int WeaponBaseExp; + private int StoryId; + private int AvatarPromoteId; + private int[] AwakenCosts; + private int[] SkillAffix; + private WeaponProperty[] WeaponProp; + + // Hash + private String Icon; + private long NameTextMapHash; + + // Post load + private transient emu.grasscutter.game.inventory.MaterialType materialType; + private transient emu.grasscutter.game.inventory.ItemType itemType; + private transient emu.grasscutter.game.inventory.EquipType equipType; + + private IntSet addPropLevelSet; + + @Override + public int getId(){ + return this.Id; + } + + public String getMaterialTypeString(){ + return this.MaterialType; + } + + public int getStackLimit(){ + return this.StackLimit; + } + + public int getMaxUseCount(){ + return this.MaxUseCount; + } + + public String getUseTarget(){ + return this.UseTarget; + } + + public String[] getUseParam(){ + return this.UseParam; + } + + public int getRankLevel(){ + return this.RankLevel; + } + + public String getFoodQuality(){ + return this.FoodQuality; + } + + public String getEffectName(){ + return this.EffectName; + } + + public int[] getSatiationParams(){ + return this.SatiationParams; + } + + public int[] getDestroyReturnMaterial(){ + return this.DestroyReturnMaterial; + } + + public int[] getDestroyReturnMaterialCount(){ + return this.DestroyReturnMaterialCount; + } + + public long getNameTextMapHash(){ + return this.NameTextMapHash; + } + + public String getIcon(){ + return this.Icon; + } + + public String getItemTypeString(){ + return this.ItemType; + } + + public int getRank(){ + return this.Rank; + } + + public int getGadgetId() { + return GadgetId; + } + + public int getBaseConvExp() { + return BaseConvExp; + } + + public int getMainPropDepotId() { + return MainPropDepotId; + } + + public int getAppendPropDepotId() { + return AppendPropDepotId; + } + + public int getAppendPropNum() { + return AppendPropNum; + } + + public int getSetId() { + return SetId; + } + + public int getWeaponPromoteId() { + return WeaponPromoteId; + } + + public int getWeaponBaseExp() { + return WeaponBaseExp; + } + + public int[] getAwakenCosts() { + return AwakenCosts; + } + + public IntSet getAddPropLevelSet() { + return addPropLevelSet; + } + + public int[] getSkillAffix() { + return SkillAffix; + } + + public WeaponProperty[] getWeaponProperties() { + return WeaponProp; + } + + public int getMaxLevel() { + return MaxLevel; + } + + public emu.grasscutter.game.inventory.ItemType getItemType() { + return this.itemType; + } + + public emu.grasscutter.game.inventory.MaterialType getMaterialType() { + return this.materialType; + } + + public emu.grasscutter.game.inventory.EquipType getEquipType() { + return this.equipType; + } + + public boolean canAddRelicProp(int level) { + return this.addPropLevelSet != null & this.addPropLevelSet.contains(level); + } + + public boolean isEquip() { + return this.itemType == emu.grasscutter.game.inventory.ItemType.ITEM_RELIQUARY || this.itemType == emu.grasscutter.game.inventory.ItemType.ITEM_WEAPON; + } + + @Override + public void onLoad() { + this.itemType = emu.grasscutter.game.inventory.ItemType.getTypeByName(getItemTypeString()); + this.materialType = emu.grasscutter.game.inventory.MaterialType.getTypeByName(getMaterialTypeString()); + + if (this.itemType == emu.grasscutter.game.inventory.ItemType.ITEM_RELIQUARY) { + this.equipType = emu.grasscutter.game.inventory.EquipType.getTypeByName(this.EquipType); + if (this.AddPropLevels != null && this.AddPropLevels.length > 0) { + this.addPropLevelSet = new IntOpenHashSet(this.AddPropLevels); + } + } else if (this.itemType == emu.grasscutter.game.inventory.ItemType.ITEM_WEAPON) { + this.equipType = emu.grasscutter.game.inventory.EquipType.EQUIP_WEAPON; + } else { + this.equipType = emu.grasscutter.game.inventory.EquipType.EQUIP_NONE; + } + + if (this.getWeaponProperties() != null) { + for (WeaponProperty weaponProperty : this.getWeaponProperties()) { + weaponProperty.onLoad(); + } + } + } + + public static class WeaponProperty { + private FightProperty fightProp; + private String PropType; + private float InitValue; + private String Type; + + public String getPropType(){ + return this.PropType; + } + + public float getInitValue(){ + return this.InitValue; + } + + public String getType(){ + return this.Type; + } + + public FightProperty getFightProp() { + return fightProp; + } + + public void onLoad() { + this.fightProp = FightProperty.getPropByName(PropType); + } + + } +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java b/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java new file mode 100644 index 000000000..77a44bd6a --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/MonsterCurveData.java @@ -0,0 +1,32 @@ +package emu.grasscutter.data.def; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.common.CurveInfo; + +@ResourceType(name = "MonsterCurveExcelConfigData.json") +public class MonsterCurveData extends GenshinResource { + private int Level; + private CurveInfo[] CurveInfos; + + private Map curveInfos; + + @Override + public int getId() { + return Level; + } + + public float getMultByProp(String fightProp) { + return curveInfos.getOrDefault(fightProp, 1f); + } + + @Override + public void onLoad() { + this.curveInfos = new HashMap<>(); + Stream.of(this.CurveInfos).forEach(info -> this.curveInfos.put(info.getType(), info.getValue())); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/MonsterData.java b/src/main/java/emu/grasscutter/data/def/MonsterData.java new file mode 100644 index 000000000..2cf41bf7e --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/MonsterData.java @@ -0,0 +1,198 @@ +package emu.grasscutter.data.def; + +import java.util.List; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.GenshinResource; +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 { + private int Id; + + private String MonsterName; + private String Type; + private String ServerScript; + private List Affix; + private String Ai; + private int[] Equips; + private List HpDrops; + private int KillDropId; + private String ExcludeWeathers; + private int FeatureTagGroupID; + private int MpPropID; + private String Skin; + private int DescribeId; + private int CombatBGMLevel; + private int EntityBudgetLevel; + private float HpBase; + private float AttackBase; + private float DefenseBase; + private float FireSubHurt; + private float ElecSubHurt; + private float GrassSubHurt; + private float WaterSubHurt; + private float WindSubHurt; + private float RockSubHurt; + private float IceSubHurt; + private float PhysicalSubHurt; + private List PropGrowCurves; + private long NameTextMapHash; + private int CampID; + + private int weaponId; + private MonsterDescribeData describeData; + + @Override + public int getId() { + return this.Id; + } + + public String getMonsterName() { + return MonsterName; + } + + public String getType() { + return Type; + } + + public String getServerScript() { + return ServerScript; + } + + public List getAffix() { + return Affix; + } + + public String getAi() { + return Ai; + } + + public int[] getEquips() { + return Equips; + } + + public List getHpDrops() { + return HpDrops; + } + + public int getKillDropId() { + return KillDropId; + } + + public String getExcludeWeathers() { + return ExcludeWeathers; + } + + public int getFeatureTagGroupID() { + return FeatureTagGroupID; + } + + public int getMpPropID() { + return MpPropID; + } + + public String getSkin() { + return Skin; + } + + public int getDescribeId() { + return DescribeId; + } + + public int getCombatBGMLevel() { + return CombatBGMLevel; + } + + public int getEntityBudgetLevel() { + return EntityBudgetLevel; + } + + public float getBaseHp() { + return HpBase; + } + + public float getBaseAttack() { + return AttackBase; + } + + public float getBaseDefense() { + return DefenseBase; + } + + public float getElecSubHurt() { + return ElecSubHurt; + } + + public float getGrassSubHurt() { + return GrassSubHurt; + } + + public float getWaterSubHurt() { + return WaterSubHurt; + } + + public float getWindSubHurt() { + return WindSubHurt; + } + + public float getIceSubHurt() { + return IceSubHurt; + } + + public float getPhysicalSubHurt() { + return PhysicalSubHurt; + } + + public List getPropGrowCurves() { + return PropGrowCurves; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public int getCampID() { + return CampID; + } + + public MonsterDescribeData getDescribeData() { + return describeData; + } + + public int getWeaponId() { + return weaponId; + } + + @Override + public void onLoad() { + this.describeData = GenshinData.getMonsterDescribeDataMap().get(this.getDescribeId()); + + for (int id : this.Equips) { + if (id == 0) { + continue; + } + GadgetData gadget = GenshinData.getGadgetDataMap().get(id); + if (gadget == null) { + continue; + } + if (gadget.getItemJsonName().equals("Default_MonsterWeapon")) { + this.weaponId = id; + } + } + } + + public class HpDrops { + private int DropId; + private int HpPercent; + + public int getDropId(){ + return this.DropId; + } + public int getHpPercent(){ + return this.HpPercent; + } + } +} diff --git a/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java b/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java new file mode 100644 index 000000000..6d6271a77 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/MonsterDescribeData.java @@ -0,0 +1,40 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.ResourceType.LoadPriority; + +@ResourceType(name = "MonsterDescribeExcelConfigData.json", loadPriority = LoadPriority.HIGH) +public class MonsterDescribeData extends GenshinResource { + private int Id; + private long NameTextMapHash; + private int TitleID; + private int SpecialNameLabID; + private String Icon; + + @Override + public int getId() { + return Id; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public int getTitleID() { + return TitleID; + } + + public int getSpecialNameLabID() { + return SpecialNameLabID; + } + + public String getIcon() { + return Icon; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/NpcData.java b/src/main/java/emu/grasscutter/data/def/NpcData.java new file mode 100644 index 000000000..ad08ca9ee --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/NpcData.java @@ -0,0 +1,72 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "NpcExcelConfigData.json") +public class NpcData extends GenshinResource { + private int Id; + + private String JsonName; + private String Alias; + private String ScriptDataPath; + private String LuaDataPath; + + private boolean IsInteractive; + private boolean HasMove; + private String DyePart; + private String BillboardIcon; + + private long NameTextMapHash; + private int CampID; + + @Override + public int getId() { + return this.Id; + } + + public String getJsonName() { + return JsonName; + } + + public String getAlias() { + return Alias; + } + + public String getScriptDataPath() { + return ScriptDataPath; + } + + public String getLuaDataPath() { + return LuaDataPath; + } + + public boolean isIsInteractive() { + return IsInteractive; + } + + public boolean isHasMove() { + return HasMove; + } + + public String getDyePart() { + return DyePart; + } + + public String getBillboardIcon() { + return BillboardIcon; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + public int getCampID() { + return CampID; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java b/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java new file mode 100644 index 000000000..3735b7e59 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/PlayerLevelData.java @@ -0,0 +1,33 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "PlayerLevelExcelConfigData.json") +public class PlayerLevelData extends GenshinResource { + private int Level; + private int Exp; + private int RewardId; + private int UnlockWorldLevel; + + @Override + public int getId() { + return this.Level; + } + + public int getLevel() { + return Level; + } + + public int getExp() { + return Exp; + } + + public int getRewardId() { + return RewardId; + } + + public int getUnlockWorldLevel() { + return UnlockWorldLevel; + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ProudSkillData.java b/src/main/java/emu/grasscutter/data/def/ProudSkillData.java new file mode 100644 index 000000000..6ffb180d2 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ProudSkillData.java @@ -0,0 +1,101 @@ +package emu.grasscutter.data.def; + +import java.util.ArrayList; +import java.util.List; + +import emu.grasscutter.data.GenshinResource; +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 { + + private int ProudSkillId; + private int ProudSkillGroupId; + private int Level; + private int CoinCost; + private int BreakLevel; + private int ProudSkillType; + private String OpenConfig; + private List CostItems; + private List FilterConds; + private List LifeEffectParams; + private FightPropData[] AddProps; + private float[] ParamList; + private long[] ParamDescList; + private long NameTextMapHash; + + @Override + public int getId() { + return ProudSkillId; + } + + public int getProudSkillGroupId() { + return ProudSkillGroupId; + } + + public int getLevel() { + return Level; + } + + public int getCoinCost() { + return CoinCost; + } + + public int getBreakLevel() { + return BreakLevel; + } + + public int getProudSkillType() { + return ProudSkillType; + } + + public String getOpenConfig() { + return OpenConfig; + } + + public List getCostItems() { + return CostItems; + } + + public List getFilterConds() { + return FilterConds; + } + + public List getLifeEffectParams() { + return LifeEffectParams; + } + + public FightPropData[] getAddProps() { + return AddProps; + } + + public float[] getParamList() { + return ParamList; + } + + public long[] getParamDescList() { + return ParamDescList; + } + + public long getNameTextMapHash() { + return NameTextMapHash; + } + + @Override + public void onLoad() { + if (this.getOpenConfig() != null & this.getOpenConfig().length() > 0) { + this.OpenConfig = "Avatar_" + this.getOpenConfig(); + } + // Fight props + ArrayList parsed = new ArrayList(getAddProps().length); + for (FightPropData prop : getAddProps()) { + if (prop.getPropType() != null && prop.getValue() != 0f) { + prop.onLoad(); + parsed.add(prop); + } + } + this.AddProps = parsed.toArray(new FightPropData[parsed.size()]); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java new file mode 100644 index 000000000..25e7693c3 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryAffixData.java @@ -0,0 +1,48 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.game.props.FightProperty; + +@ResourceType(name = "ReliquaryAffixExcelConfigData.json") +public class ReliquaryAffixData extends GenshinResource { + private int Id; + + private int DepotId; + private int GroupId; + private String PropType; + private float PropValue; + private int Weight; + private int UpgradeWeight; + + private FightProperty fightProp; + + @Override + public int getId() { + return Id; + } + public int getDepotId() { + return DepotId; + } + public int getGroupId() { + return GroupId; + } + public float getPropValue() { + return PropValue; + } + public int getWeight() { + return Weight; + } + public int getUpgradeWeight() { + return UpgradeWeight; + } + + public FightProperty getFightProp() { + return fightProp; + } + + @Override + public void onLoad() { + this.fightProp = FightProperty.getPropByName(this.PropType); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java new file mode 100644 index 000000000..0217ff48b --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryLevelData.java @@ -0,0 +1,67 @@ +package emu.grasscutter.data.def; + +import java.util.List; + +import emu.grasscutter.data.GenshinResource; +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 { + private int id; + private Int2ObjectMap propMap; + + private int Rank; + private int Level; + private int Exp; + private List AddProps; + + @Override + public int getId() { + return this.id; + } + + public int getRank() { + return Rank; + } + + public int getLevel() { + return Level; + } + + public int getExp() { + return Exp; + } + + public float getPropValue(FightProperty prop) { + return getPropValue(prop.getId()); + } + + public float getPropValue(int id) { + return propMap.get(id); + } + + @Override + public void onLoad() { + this.id = (Rank << 8) + this.getLevel(); + this.propMap = new Int2ObjectOpenHashMap<>(); + for (RelicLevelProperty p : AddProps) { + this.propMap.put(FightProperty.getPropByName(p.getPropType()).getId(), (Float) p.getValue()); + } + } + + public class RelicLevelProperty { + private String PropType; + private float Value; + + public String getPropType() { + return PropType; + } + + public float getValue() { + return Value; + } + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java b/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java new file mode 100644 index 000000000..a67233f51 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ReliquaryMainPropData.java @@ -0,0 +1,37 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.game.props.FightProperty; + +@ResourceType(name = "ReliquaryMainPropExcelConfigData.json") +public class ReliquaryMainPropData extends GenshinResource { + private int Id; + + private int PropDepotId; + private String PropType; + private String AffixName; + private int Weight; + + private FightProperty fightProp; + + @Override + public int getId() { + return Id; + } + public int getPropDepotId() { + return PropDepotId; + } + public int getWeight() { + return Weight; + } + + public FightProperty getFightProp() { + return fightProp; + } + + @Override + public void onLoad() { + this.fightProp = FightProperty.getPropByName(this.PropType); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java b/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java new file mode 100644 index 000000000..85c3e3237 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/ReliquarySetData.java @@ -0,0 +1,39 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "ReliquarySetExcelConfigData.json") +public class ReliquarySetData extends GenshinResource { + private int SetId; + private int[] SetNeedNum; + private int EquipAffixId; + private int DisableFilter; + private int[] ContainsList; + + @Override + public int getId() { + return SetId; + } + + public int[] getSetNeedNum() { + return SetNeedNum; + } + + public int getEquipAffixId() { + return EquipAffixId; + } + + public int getDisableFilter() { + return DisableFilter; + } + + public int[] getContainsList() { + return ContainsList; + } + + @Override + public void onLoad() { + + } +} diff --git a/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java b/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java new file mode 100644 index 000000000..0bccd603a --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/WeaponCurveData.java @@ -0,0 +1,32 @@ +package emu.grasscutter.data.def; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; +import emu.grasscutter.data.common.CurveInfo; + +@ResourceType(name = "WeaponCurveExcelConfigData.json") +public class WeaponCurveData extends GenshinResource { + private int Level; + private CurveInfo[] CurveInfos; + + private Map curveInfos; + + @Override + public int getId() { + return Level; + } + + public float getMultByProp(String fightProp) { + return curveInfos.getOrDefault(fightProp, 1f); + } + + @Override + public void onLoad() { + this.curveInfos = new HashMap<>(); + Stream.of(this.CurveInfos).forEach(info -> this.curveInfos.put(info.getType(), info.getValue())); + } +} diff --git a/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java b/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java new file mode 100644 index 000000000..c3f415681 --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/WeaponLevelData.java @@ -0,0 +1,23 @@ +package emu.grasscutter.data.def; + +import emu.grasscutter.data.GenshinResource; +import emu.grasscutter.data.ResourceType; + +@ResourceType(name = "WeaponLevelExcelConfigData.json") +public class WeaponLevelData extends GenshinResource { + private int Level; + private int[] RequiredExps; + + @Override + public int getId() { + return this.Level; + } + + public int getLevel() { + return Level; + } + + public int[] getRequiredExps() { + return RequiredExps; + } +} diff --git a/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java b/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java new file mode 100644 index 000000000..ab008bfed --- /dev/null +++ b/src/main/java/emu/grasscutter/data/def/WeaponPromoteData.java @@ -0,0 +1,74 @@ +package emu.grasscutter.data.def; + +import java.util.ArrayList; +import emu.grasscutter.data.GenshinResource; +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 { + + private int WeaponPromoteId; + private int PromoteLevel; + private ItemParamData[] CostItems; + private int CoinCost; + private FightPropData[] AddProps; + private int UnlockMaxLevel; + private int RequiredPlayerLevel; + + @Override + public int getId() { + return (WeaponPromoteId << 8) + PromoteLevel; + } + + public int getWeaponPromoteId() { + return WeaponPromoteId; + } + + public int getPromoteLevel() { + return PromoteLevel; + } + + public ItemParamData[] getCostItems() { + return CostItems; + } + + public int getCoinCost() { + return CoinCost; + } + + public FightPropData[] getAddProps() { + return AddProps; + } + + public int getUnlockMaxLevel() { + return UnlockMaxLevel; + } + + public int getRequiredPlayerLevel() { + return RequiredPlayerLevel; + } + + @Override + public void onLoad() { + // Trim item params + ArrayList trim = new ArrayList<>(getAddProps().length); + for (ItemParamData itemParam : getCostItems()) { + if (itemParam.getId() == 0) { + continue; + } + trim.add(itemParam); + } + this.CostItems = trim.toArray(new ItemParamData[trim.size()]); + // Trim fight prop data + ArrayList parsed = new ArrayList<>(getAddProps().length); + for (FightPropData prop : getAddProps()) { + if (prop.getPropType() != null && prop.getValue() != 0f) { + prop.onLoad(); + parsed.add(prop); + } + } + this.AddProps = parsed.toArray(new FightPropData[parsed.size()]); + } +} diff --git a/src/main/java/emu/grasscutter/database/DatabaseCounter.java b/src/main/java/emu/grasscutter/database/DatabaseCounter.java new file mode 100644 index 000000000..37fa59d7c --- /dev/null +++ b/src/main/java/emu/grasscutter/database/DatabaseCounter.java @@ -0,0 +1,23 @@ +package emu.grasscutter.database; + +import dev.morphia.annotations.Entity; +import dev.morphia.annotations.Id; + +@Entity(value = "counters", noClassnameStored = true) +public class DatabaseCounter { + @Id + private String id; + private int count; + + public DatabaseCounter() {} + + public DatabaseCounter(String id) { + this.id = id; + this.count = 10000; + } + + public int getNextId() { + int id = ++count; + return id; + } +} diff --git a/src/main/java/emu/grasscutter/database/DatabaseHelper.java b/src/main/java/emu/grasscutter/database/DatabaseHelper.java new file mode 100644 index 000000000..6c622c2b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/database/DatabaseHelper.java @@ -0,0 +1,207 @@ +package emu.grasscutter.database; + +import java.util.List; + +import com.mongodb.WriteResult; + +import dev.morphia.query.FindOptions; +import dev.morphia.query.Query; +import dev.morphia.query.internal.MorphiaCursor; +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.Account; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.friends.Friendship; +import emu.grasscutter.game.inventory.GenshinItem; + +public class DatabaseHelper { + + protected static FindOptions FIND_ONE = new FindOptions().limit(1); + + public static Account createAccount(String username) { + return createAccountWithId(username, 0); + } + + public static Account createAccountWithId(String username, int reservedId) { + // Unique names only + Account exists = DatabaseHelper.getAccountByName(username); + if (exists != null) { + return null; + } + + // 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) { + return null; + } + exists = DatabaseHelper.getAccountByPlayerId(reservedId); + if (exists != null) { + return null; + } + } + + // Account + Account account = new Account(); + account.setUsername(username); + account.setId(Integer.toString(DatabaseManager.getNextId(account))); + + if (reservedId > 0) { + account.setPlayerId(reservedId); + } + + DatabaseHelper.saveAccount(account); + return account; + } + + @Deprecated + public static Account createAccountWithPassword(String username, String password) { + // Unique names only + Account exists = DatabaseHelper.getAccountByName(username); + if (exists != null) { + return null; + } + + // Account + Account account = new Account(); + account.setId(Integer.toString(DatabaseManager.getNextId(account))); + account.setUsername(username); + account.setPassword(password); + DatabaseHelper.saveAccount(account); + return account; + } + + public static void saveAccount(Account account) { + DatabaseManager.getDatastore().save(account); + } + + public static Account getAccountByName(String username) { + MorphiaCursor cursor = DatabaseManager.getDatastore().createQuery(Account.class).field("username").equalIgnoreCase(username).find(FIND_ONE); + if (!cursor.hasNext()) return null; + return cursor.next(); + } + + public static Account getAccountByToken(String token) { + if (token == null) return null; + MorphiaCursor cursor = DatabaseManager.getDatastore().createQuery(Account.class).field("token").equal(token).find(FIND_ONE); + if (!cursor.hasNext()) return null; + return cursor.next(); + } + + public static Account getAccountById(String uid) { + MorphiaCursor cursor = DatabaseManager.getDatastore().createQuery(Account.class).field("_id").equal(uid).find(FIND_ONE); + if (!cursor.hasNext()) return null; + return cursor.next(); + } + + private static Account getAccountByPlayerId(int playerId) { + MorphiaCursor cursor = DatabaseManager.getDatastore().createQuery(Account.class).field("playerId").equal(playerId).find(FIND_ONE); + if (!cursor.hasNext()) return null; + return cursor.next(); + } + + public static boolean deleteAccount(String username) { + Query q = DatabaseManager.getDatastore().createQuery(Account.class).field("username").equalIgnoreCase(username); + return DatabaseManager.getDatastore().findAndDelete(q) != null; + } + + public static GenshinPlayer getPlayerById(int id) { + Query query = DatabaseManager.getDatastore().createQuery(GenshinPlayer.class).field("_id").equal(id); + MorphiaCursor cursor = query.find(FIND_ONE); + if (!cursor.hasNext()) return null; + return cursor.next(); + } + + public static boolean checkPlayerExists(int id) { + MorphiaCursor query = DatabaseManager.getDatastore().createQuery(GenshinPlayer.class).field("_id").equal(id).find(FIND_ONE); + return query.hasNext(); + } + + public static synchronized GenshinPlayer createPlayer(GenshinPlayer character, int reservedId) { + // Check if reserved id + int id = 0; + if (reservedId > 0 && !checkPlayerExists(reservedId)) { + id = reservedId; + character.setId(id); + } else { + do { + id = DatabaseManager.getNextId(character); + } + while (checkPlayerExists(id)); + character.setId(id); + } + // Save to database + DatabaseManager.getDatastore().save(character); + return character; + } + + public static synchronized int getNextPlayerId(int reservedId) { + // Check if reserved id + int id = 0; + if (reservedId > 0 && !checkPlayerExists(reservedId)) { + id = reservedId; + } else { + do { + id = DatabaseManager.getNextId(GenshinPlayer.class); + } + while (checkPlayerExists(id)); + } + return id; + } + + public static void savePlayer(GenshinPlayer character) { + DatabaseManager.getDatastore().save(character); + } + + public static void saveAvatar(GenshinAvatar avatar) { + DatabaseManager.getDatastore().save(avatar); + } + + public static List getAvatars(GenshinPlayer player) { + Query query = DatabaseManager.getDatastore().createQuery(GenshinAvatar.class).filter("ownerId", player.getId()); + return query.find().toList(); + } + + public static void saveItem(GenshinItem item) { + DatabaseManager.getDatastore().save(item); + } + + public static boolean deleteItem(GenshinItem item) { + WriteResult result = DatabaseManager.getDatastore().delete(item); + return result.wasAcknowledged(); + } + + public static List getInventoryItems(GenshinPlayer player) { + Query query = DatabaseManager.getDatastore().createQuery(GenshinItem.class).filter("ownerId", player.getId()); + return query.find().toList(); + } + public static List getFriends(GenshinPlayer player) { + Query query = DatabaseManager.getDatastore().createQuery(Friendship.class).filter("ownerId", player.getId()); + return query.find().toList(); + } + + public static List getReverseFriends(GenshinPlayer player) { + Query query = DatabaseManager.getDatastore().createQuery(Friendship.class).filter("friendId", player.getId()); + return query.find().toList(); + } + + public static void saveFriendship(Friendship friendship) { + DatabaseManager.getDatastore().save(friendship); + } + + public static void deleteFriendship(Friendship friendship) { + DatabaseManager.getDatastore().delete(friendship); + } + + public static Friendship getReverseFriendship(Friendship friendship) { + Query query = DatabaseManager.getDatastore().createQuery(Friendship.class); + query.and( + query.criteria("ownerId").equal(friendship.getFriendId()), + query.criteria("friendId").equal(friendship.getOwnerId()) + ); + MorphiaCursor reverseFriendship = query.find(FIND_ONE); + if (!reverseFriendship.hasNext()) return null; + return reverseFriendship.next(); + } +} diff --git a/src/main/java/emu/grasscutter/database/DatabaseManager.java b/src/main/java/emu/grasscutter/database/DatabaseManager.java new file mode 100644 index 000000000..5098db3cc --- /dev/null +++ b/src/main/java/emu/grasscutter/database/DatabaseManager.java @@ -0,0 +1,95 @@ +package emu.grasscutter.database; + +import java.sql.Connection; +import java.sql.SQLException; + +import com.mongodb.MongoClient; +import com.mongodb.MongoClientURI; +import com.mongodb.MongoCommandException; +import com.mongodb.client.MongoDatabase; +import com.mongodb.client.MongoIterable; + +import dev.morphia.Datastore; +import dev.morphia.Morphia; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.Account; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.friends.Friendship; +import emu.grasscutter.game.inventory.GenshinItem; + +public class DatabaseManager { + private static MongoClient mongoClient; + private static Morphia morphia; + private static Datastore datastore; + + private static Class[] mappedClasses = new Class[] { + DatabaseCounter.class, Account.class, GenshinPlayer.class, GenshinAvatar.class, GenshinItem.class, Friendship.class + }; + + public static MongoClient getMongoClient() { + return mongoClient; + } + + public static Datastore getDatastore() { + return datastore; + } + + public static MongoDatabase getDatabase() { + return getDatastore().getDatabase(); + } + + public static Connection getConnection() throws SQLException { + return null; + } + + public static void initialize() { + // Initialize + mongoClient = new MongoClient(new MongoClientURI(Grasscutter.getConfig().DatabaseUrl)); + morphia = new Morphia(); + + // TODO Update when migrating to Morphia 2.0 + morphia.getMapper().getOptions().setStoreEmpties(true); + morphia.getMapper().getOptions().setStoreNulls(false); + morphia.getMapper().getOptions().setDisableEmbeddedIndexes(true); + + // Map + morphia.map(mappedClasses); + + // Build datastore + datastore = morphia.createDatastore(mongoClient, Grasscutter.getConfig().DatabaseCollection); + + // Ensure indexes + try { + datastore.ensureIndexes(); + } catch (MongoCommandException e) { + Grasscutter.getLogger().info("Mongo index error: ", e); + // Duplicate index error + if (e.getCode() == 85) { + // Drop all indexes and re add them + MongoIterable collections = datastore.getDatabase().listCollectionNames(); + for (String name : collections) { + datastore.getDatabase().getCollection(name).dropIndexes(); + } + // Add back indexes + datastore.ensureIndexes(); + } + } + } + + public static synchronized int getNextId(Class c) { + DatabaseCounter counter = getDatastore().createQuery(DatabaseCounter.class).field("_id").equal(c.getSimpleName()).find().tryNext(); + if (counter == null) { + counter = new DatabaseCounter(c.getSimpleName()); + } + try { + return counter.getNextId(); + } finally { + getDatastore().save(counter); + } + } + + public static synchronized int getNextId(Object o) { + return getNextId(o.getClass()); + } +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/game/Account.java b/src/main/java/emu/grasscutter/game/Account.java new file mode 100644 index 000000000..0bb2e9e0b --- /dev/null +++ b/src/main/java/emu/grasscutter/game/Account.java @@ -0,0 +1,98 @@ +package emu.grasscutter.game; + +import dev.morphia.annotations.Collation; +import dev.morphia.annotations.Entity; +import dev.morphia.annotations.Id; +import dev.morphia.annotations.Indexed; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.utils.Crypto; +import emu.grasscutter.utils.Utils; +import dev.morphia.annotations.IndexOptions; + +@Entity(value = "accounts", noClassnameStored = true) +public class Account { + @Id private String id; + + @Indexed(options = @IndexOptions(unique = true)) + @Collation(locale = "simple", caseLevel = true) + private String username; + private String password; // Unused for now + + private int playerId; + private String email; + + private String token; + private String sessionKey; // Session token for dispatch server + + @Deprecated + public Account() {} + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public int getPlayerId() { + return this.playerId; + } + + public void setPlayerId(int playerId) { + this.playerId = playerId; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getSessionKey() { + return this.sessionKey; + } + + public String generateSessionKey() { + this.sessionKey = Utils.bytesToHex(Crypto.createSessionKey(32)); + this.save(); + return this.sessionKey; + } + + // TODO make unique + public String generateLoginToken() { + this.token = Utils.bytesToHex(Crypto.createSessionKey(32)); + this.save(); + return this.token; + } + + public void save() { + DatabaseHelper.saveAccount(this); + } +} diff --git a/src/main/java/emu/grasscutter/game/CoopRequest.java b/src/main/java/emu/grasscutter/game/CoopRequest.java new file mode 100644 index 000000000..1e885672c --- /dev/null +++ b/src/main/java/emu/grasscutter/game/CoopRequest.java @@ -0,0 +1,29 @@ +package emu.grasscutter.game; + +public class CoopRequest { + private final GenshinPlayer requester; + private final long requestTime; + private final long expireTime; + + public CoopRequest(GenshinPlayer requester) { + this.requester = requester; + this.requestTime = System.currentTimeMillis(); + this.expireTime = this.requestTime + 10000; + } + + public GenshinPlayer getRequester() { + return requester; + } + + public long getRequestTime() { + return requestTime; + } + + public long getExpireTime() { + return expireTime; + } + + public boolean isExpired() { + return System.currentTimeMillis() > getExpireTime(); + } +} diff --git a/src/main/java/emu/grasscutter/game/GenshinPlayer.java b/src/main/java/emu/grasscutter/game/GenshinPlayer.java new file mode 100644 index 000000000..57a561289 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/GenshinPlayer.java @@ -0,0 +1,759 @@ +package emu.grasscutter.game; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Set; + +import dev.morphia.annotations.*; +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.GenshinData; +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.entity.EntityItem; +import emu.grasscutter.game.entity.GenshinEntity; +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.Inventory; +import emu.grasscutter.game.props.ActionReason; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry; +import emu.grasscutter.net.proto.BirthdayOuterClass.Birthday; +import emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry; +import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; +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.PlayerLocationInfoOuterClass.PlayerLocationInfo; +import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketAbilityInvocationsNotify; +import emu.grasscutter.server.packet.send.PacketAvatarAddNotify; +import emu.grasscutter.server.packet.send.PacketAvatarDataNotify; +import emu.grasscutter.server.packet.send.PacketAvatarGainCostumeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarGainFlycloakNotify; +import emu.grasscutter.server.packet.send.PacketCombatInvocationsNotify; +import emu.grasscutter.server.packet.send.PacketGadgetInteractRsp; +import emu.grasscutter.server.packet.send.PacketItemAddHintNotify; +import emu.grasscutter.server.packet.send.PacketOpenStateUpdateNotify; +import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpResultNotify; +import emu.grasscutter.server.packet.send.PacketPlayerDataNotify; +import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneNotify; +import emu.grasscutter.server.packet.send.PacketPlayerPropNotify; +import emu.grasscutter.server.packet.send.PacketPlayerStoreNotify; +import emu.grasscutter.server.packet.send.PacketPrivateChatNotify; +import emu.grasscutter.server.packet.send.PacketSetNameCardRsp; +import emu.grasscutter.server.packet.send.PacketStoreWeightLimitNotify; +import emu.grasscutter.server.packet.send.PacketUnlockNameCardNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerRTTNotify; +import emu.grasscutter.utils.Position; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +@Entity(value = "players", noClassnameStored = true) +public class GenshinPlayer { + @Id private int id; + @Indexed(options = @IndexOptions(unique = true)) private String accountId; + + @Transient private Account account; + private String nickname; + private String signature; + private int headImage; + private int nameCardId = 210001; + private Position pos; + private Position rotation; + + private Map properties; + private Set nameCardList; + private Set flyCloakList; + private Set costumeList; + + @Transient private long nextGuid = 0; + @Transient private int peerId; + @Transient private World world; + @Transient private GameSession session; + @Transient private AvatarStorage avatars; + @Transient private Inventory inventory; + @Transient private FriendsList friendsList; + + private TeamManager teamManager; + private PlayerGachaInfo gachaInfo; + private PlayerProfile playerProfile; + private MpSettingType mpSetting = MpSettingType.MpSettingEnterAfterApply; + private boolean showAvatar; + private ArrayList shownAvatars; + + private int sceneId; + private int regionId; + private int mainCharacterId; + private boolean godmode; + + @Transient private boolean paused; + @Transient private int enterSceneToken; + @Transient private SceneLoadState sceneState; + @Transient private boolean hasSentAvatarDataNotify; + + @Transient private final Int2ObjectMap coopRequests; + @Transient private final InvokeHandler combatInvokeHandler; + @Transient private final InvokeHandler abilityInvokeHandler; + + @Deprecated @SuppressWarnings({ "rawtypes", "unchecked" }) // Morphia only! + public GenshinPlayer() { + this.inventory = new Inventory(this); + this.avatars = new AvatarStorage(this); + this.friendsList = new FriendsList(this); + this.pos = new Position(); + this.rotation = new Position(); + this.properties = new HashMap<>(); + for (PlayerProperty prop : PlayerProperty.values()) { + if (prop.getId() < 10000) { + continue; + } + this.properties.put(prop.getId(), 0); + } + this.setSceneId(3); + this.setRegionId(1); + this.sceneState = SceneLoadState.NONE; + + this.coopRequests = new Int2ObjectOpenHashMap<>(); + this.combatInvokeHandler = new InvokeHandler(PacketCombatInvocationsNotify.class); + this.abilityInvokeHandler = new InvokeHandler(PacketAbilityInvocationsNotify.class); + } + + // On player creation + public GenshinPlayer(GameSession session) { + this(); + this.account = session.getAccount(); + this.accountId = this.getAccount().getId(); + this.session = session; + this.nickname = "Traveler"; + this.signature = ""; + this.teamManager = new TeamManager(this); + this.gachaInfo = new PlayerGachaInfo(); + this.playerProfile = new PlayerProfile(this); + this.nameCardList = new HashSet<>(); + this.flyCloakList = new HashSet<>(); + this.costumeList = new HashSet<>(); + this.setProperty(PlayerProperty.PROP_PLAYER_LEVEL, 1); + this.setProperty(PlayerProperty.PROP_IS_SPRING_AUTO_USE, 1); + this.setProperty(PlayerProperty.PROP_SPRING_AUTO_USE_PERCENT, 50); + this.setProperty(PlayerProperty.PROP_IS_FLYABLE, 1); + this.setProperty(PlayerProperty.PROP_IS_TRANSFERABLE, 1); + this.setProperty(PlayerProperty.PROP_MAX_STAMINA, 24000); + this.setProperty(PlayerProperty.PROP_CUR_PERSIST_STAMINA, 24000); + this.setProperty(PlayerProperty.PROP_PLAYER_RESIN, 160); + this.getFlyCloakList().add(140001); + this.getNameCardList().add(210001); + this.getPos().set(GenshinConstants.START_POSITION); + this.getRotation().set(0, 307, 0); + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public long getNextGuid() { + long nextId = ++this.nextGuid; + return ((long) this.getId() << 32) + nextId; + } + + public Account getAccount() { + return account; + } + + public void setAccount(Account account) { + this.account = account; + this.account.setPlayerId(getId()); + } + + public GameSession getSession() { + return session; + } + + public void setSession(GameSession session) { + this.session = session; + } + + public boolean isOnline() { + return this.getSession() != null && this.getSession().isActive(); + } + + public GameServer getServer() { + return this.getSession().getServer(); + } + + public synchronized World getWorld() { + return this.world; + } + + public synchronized void setWorld(World world) { + this.world = world; + } + + public int getGmLevel() { + return 1; + } + + public String getNickname() { + return nickname; + } + + public void setNickname(String nickName) { + this.nickname = nickName; + this.updateProfile(); + } + + public int getHeadImage() { + return headImage; + } + + public void setHeadImage(int picture) { + this.headImage = picture; + this.updateProfile(); + } + + public String getSignature() { + return signature; + } + + public void setSignature(String signature) { + this.signature = signature; + this.updateProfile(); + } + + public Position getPos() { + return pos; + } + + public Position getRotation() { + return rotation; + } + + public int getLevel() { + return this.getProperty(PlayerProperty.PROP_PLAYER_LEVEL); + } + + public int getExp() { + return this.getProperty(PlayerProperty.PROP_PLAYER_EXP); + } + + public int getWorldLevel() { + return this.getProperty(PlayerProperty.PROP_PLAYER_WORLD_LEVEL); + } + + public int getPrimogems() { + return this.getProperty(PlayerProperty.PROP_PLAYER_HCOIN); + } + + public void setPrimogems(int primogem) { + this.setProperty(PlayerProperty.PROP_PLAYER_HCOIN, primogem); + this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_HCOIN)); + } + + public int getMora() { + return this.getProperty(PlayerProperty.PROP_PLAYER_SCOIN); + } + + public void setMora(int mora) { + this.setProperty(PlayerProperty.PROP_PLAYER_SCOIN, mora); + this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_SCOIN)); + } + + private int getExpRequired(int level) { + PlayerLevelData levelData = GenshinData.getPlayerLevelDataMap().get(level); + return levelData != null ? levelData.getExp() : 0; + } + + private float getExpModifier() { + return Grasscutter.getConfig().getGameRates().ADVENTURE_EXP_RATE; + } + + // Affected by exp rate + public void earnExp(int exp) { + addExpDirectly((int) (exp * getExpModifier())); + } + + // Directly give player exp + public void addExpDirectly(int gain) { + boolean hasLeveledUp = false; + int level = getLevel(); + int exp = getExp(); + int reqExp = getExpRequired(level); + + exp += gain; + + while (exp >= reqExp && reqExp > 0) { + exp -= reqExp; + level += 1; + reqExp = getExpRequired(level); + hasLeveledUp = true; + } + + if (hasLeveledUp) { + // Set level property + this.setProperty(PlayerProperty.PROP_PLAYER_LEVEL, level); + // Update social status + this.updateProfile(); + // Update player with packet + this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_LEVEL)); + } + + // Set exp + this.setProperty(PlayerProperty.PROP_PLAYER_EXP, exp); + + // Update player with packet + this.sendPacket(new PacketPlayerPropNotify(this, PlayerProperty.PROP_PLAYER_EXP)); + } + + private void updateProfile() { + getProfile().syncWithCharacter(this); + } + + public boolean isFirstLoginEnterScene() { + return !this.hasSentAvatarDataNotify; + } + + public TeamManager getTeamManager() { + return this.teamManager; + } + + public PlayerGachaInfo getGachaInfo() { + return gachaInfo; + } + + public PlayerProfile getProfile() { + if (this.playerProfile == null) { + this.playerProfile = new PlayerProfile(this); + this.save(); + } + return playerProfile; + } + + public Map getProperties() { + return properties; + } + + public void setProperty(PlayerProperty prop, int value) { + getProperties().put(prop.getId(), value); + } + + public int getProperty(PlayerProperty prop) { + return getProperties().get(prop.getId()); + } + + public Set getFlyCloakList() { + return flyCloakList; + } + + public Set getCostumeList() { + return costumeList; + } + + public Set getNameCardList() { + return this.nameCardList; + } + + public MpSettingType getMpSetting() { + return mpSetting; + } + + public synchronized Int2ObjectMap getCoopRequests() { + return coopRequests; + } + + public InvokeHandler getCombatInvokeHandler() { + return this.combatInvokeHandler; + } + + public InvokeHandler getAbilityInvokeHandler() { + return this.abilityInvokeHandler; + } + + public void setMpSetting(MpSettingType mpSetting) { + this.mpSetting = mpSetting; + } + + public AvatarStorage getAvatars() { + return avatars; + } + + public Inventory getInventory() { + return inventory; + } + + public FriendsList getFriendsList() { + return this.friendsList; + } + + public int getEnterSceneToken() { + return enterSceneToken; + } + + public void setEnterSceneToken(int enterSceneToken) { + this.enterSceneToken = enterSceneToken; + } + + public int getNameCardId() { + return nameCardId; + } + + public void setNameCardId(int nameCardId) { + this.nameCardId = nameCardId; + this.updateProfile(); + } + + public int getMainCharacterId() { + return mainCharacterId; + } + + public void setMainCharacterId(int mainCharacterId) { + this.mainCharacterId = mainCharacterId; + } + + public int getPeerId() { + return peerId; + } + + public void setPeerId(int peerId) { + this.peerId = peerId; + } + + public int getClientTime() { + return session.getClientTime(); + } + + public long getLastPingTime() { + return session.getLastPingTime(); + } + + public boolean isPaused() { + return paused; + } + + public void setPaused(boolean newPauseState) { + boolean oldPauseState = this.paused; + this.paused = newPauseState; + + if (newPauseState && !oldPauseState) { + this.onPause(); + } else if (oldPauseState && !newPauseState) { + this.onUnpause(); + } + } + + public SceneLoadState getSceneLoadState() { + return sceneState; + } + + public void setSceneLoadState(SceneLoadState sceneState) { + this.sceneState = sceneState; + } + + public boolean isInMultiplayer() { + return this.getWorld() != null && this.getWorld().isMultiplayer(); + } + + public int getSceneId() { + return sceneId; + } + + public void setSceneId(int sceneId) { + this.sceneId = sceneId; + } + + public int getRegionId() { + return regionId; + } + + public void setRegionId(int regionId) { + this.regionId = regionId; + } + + public boolean hasGodmode() { + return godmode; + } + + public void setGodmode(boolean godmode) { + this.godmode = godmode; + } + + public boolean hasSentAvatarDataNotify() { + return hasSentAvatarDataNotify; + } + + public void setHasSentAvatarDataNotify(boolean hasSentAvatarDataNotify) { + this.hasSentAvatarDataNotify = hasSentAvatarDataNotify; + } + + public void addAvatar(GenshinAvatar avatar) { + boolean result = getAvatars().addAvatar(avatar); + + if (result) { + // Add starting weapon + getAvatars().addStartingWeapon(avatar); + + // Try adding to team if possible + //List 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)); + } + } else { + // Failed adding avatar + } + } + + public void addFlycloak(int flycloakId) { + this.getFlyCloakList().add(flycloakId); + this.sendPacket(new PacketAvatarGainFlycloakNotify(flycloakId)); + } + + public void addCostume(int costumeId) { + this.getCostumeList().add(costumeId); + this.sendPacket(new PacketAvatarGainCostumeNotify(costumeId)); + } + + public void addNameCard(int nameCardId) { + this.getNameCardList().add(nameCardId); + this.sendPacket(new PacketUnlockNameCardNotify(nameCardId)); + } + + public void setNameCard(int nameCardId) { + if (!this.getNameCardList().contains(nameCardId)) { + return; + } + + this.setNameCardId(nameCardId); + + this.sendPacket(new PacketSetNameCardRsp(nameCardId)); + } + + public void dropMessage(Object message) { + this.sendPacket(new PacketPrivateChatNotify(GenshinConstants.SERVER_CONSOLE_UID, getId(), message.toString())); + } + + public void interactWith(int gadgetEntityId) { + GenshinEntity entity = getWorld().getEntityById(gadgetEntityId); + + if (entity == null) { + return; + } + + // Delete + entity.getWorld().removeEntity(entity); + + // Handle + if (entity instanceof EntityItem) { + // Pick item + EntityItem drop = (EntityItem) entity; + GenshinItem item = new GenshinItem(drop.getItemData(), drop.getCount()); + // Add to inventory + boolean success = getInventory().addItem(item); + if (success) { + this.sendPacket(new PacketGadgetInteractRsp(drop, InteractType.InteractPickItem)); + this.sendPacket(new PacketItemAddHintNotify(item, ActionReason.SubfieldDrop)); + } + } + + return; + } + + public void onPause() { + + } + + public void onUnpause() { + + } + + public void sendPacket(GenshinPacket packet) { + if (this.hasSentAvatarDataNotify) { + this.getSession().send(packet); + } + } + + public OnlinePlayerInfo getOnlinePlayerInfo() { + OnlinePlayerInfo.Builder onlineInfo = OnlinePlayerInfo.newBuilder() + .setUid(this.getId()) + .setNickname(this.getNickname()) + .setPlayerLevel(this.getLevel()) + .setMpSettingType(this.getMpSetting()) + .setNameCardId(this.getNameCardId()) + .setSignature(this.getSignature()) + .setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage())); + + if (this.getWorld() != null) { + onlineInfo.setCurPlayerNumInWorld(this.getWorld().getPlayers().indexOf(this) + 1); + } else { + onlineInfo.setCurPlayerNumInWorld(1); + } + + return onlineInfo.build(); + } + + public SocialDetail.Builder getSocialDetail() { + SocialDetail.Builder social = SocialDetail.newBuilder() + .setUid(this.getId()) + .setAvatar(HeadImage.newBuilder().setAvatarId(this.getHeadImage())) + .setNickname(this.getNickname()) + .setSignature(this.getSignature()) + .setLevel(this.getLevel()) + .setBirthday(Birthday.newBuilder()) + .setWorldLevel(this.getWorldLevel()) + .setUnk1(1) + .setUnk3(1) + .setNameCardId(this.getNameCardId()) + .setFinishAchievementNum(0); + return social; + } + + public PlayerLocationInfo getPlayerLocationInfo() { + return PlayerLocationInfo.newBuilder() + .setUid(this.getId()) + .setPos(this.getPos().toProto()) + .setRot(this.getRotation().toProto()) + .build(); + } + + public synchronized void onTick() { + // Check ping + if (this.getLastPingTime() > System.currentTimeMillis() + 60000) { + this.getSession().close(); + return; + } + // Check co-op requests + Iterator it = this.getCoopRequests().values().iterator(); + while (it.hasNext()) { + CoopRequest req = it.next(); + if (req.isExpired()) { + req.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(this, false, PlayerApplyEnterMpReason.SystemJudge)); + it.remove(); + } + } + // Ping + if (this.getWorld() != null) { + this.sendPacket(new PacketWorldPlayerRTTNotify(this.getWorld())); // Player ping + } + } + + @PostLoad + private void onLoad() { + this.getTeamManager().setPlayer(this); + } + + public void save() { + DatabaseHelper.savePlayer(this); + } + + public void onLogin() { + // Make sure these exist + if (this.getTeamManager() == null) { + this.teamManager = new TeamManager(this); + } if (this.getGachaInfo() == null) { + this.gachaInfo = new PlayerGachaInfo(); + } if (this.nameCardList == null) { + this.nameCardList = new HashSet<>(); + } if (this.costumeList == null) { + this.costumeList = new HashSet<>(); + } + + // Check if player object exists in server + // TODO - optimize + GenshinPlayer exists = this.getServer().getPlayerById(getId()); + if (exists != null) { + exists.getSession().close(); + } + + // Load from db + this.getAvatars().loadFromDatabase(); + this.getInventory().loadFromDatabase(); + this.getAvatars().postLoad(); + + this.getFriendsList().loadFromDatabase(); + + // Create world + World world = new World(this); + world.addPlayer(this); + + // Add to gameserver + if (getSession().isActive()) { + getServer().registerPlayer(this); + getProfile().setPlayer(this); // Set online + } + + // Multiplayer setting + this.setProperty(PlayerProperty.PROP_PLAYER_MP_SETTING_TYPE, this.getMpSetting().getNumber()); + this.setProperty(PlayerProperty.PROP_IS_MP_MODE_AVAILABLE, 1); + + // Packets + session.send(new PacketPlayerDataNotify(this)); // Player data + session.send(new PacketStoreWeightLimitNotify()); + session.send(new PacketPlayerStoreNotify(this)); + session.send(new PacketAvatarDataNotify(this)); + + session.send(new PacketPlayerEnterSceneNotify(this)); // Enter game world + session.send(new PacketOpenStateUpdateNotify()); + + // First notify packets sent + this.setHasSentAvatarDataNotify(true); + } + + public void onLogout() { + // Leave world + if (this.getWorld() != null) { + this.getWorld().removePlayer(this); + } + + // Status stuff + this.getProfile().syncWithCharacter(this); + this.getProfile().setPlayer(null); // Set offline + + this.getCoopRequests().clear(); + + // Save to db + this.save(); + this.getTeamManager().saveAvatars(); + this.getFriendsList().save(); + } + + public enum SceneLoadState { + NONE (0), LOADING (1), INIT (2), LOADED (3); + + private final int value; + + private SceneLoadState(int value) { + this.value = value; + } + + public int getValue() { + return this.value; + } + } +} diff --git a/src/main/java/emu/grasscutter/game/InvokeHandler.java b/src/main/java/emu/grasscutter/game/InvokeHandler.java new file mode 100644 index 000000000..f94ea05f6 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/InvokeHandler.java @@ -0,0 +1,66 @@ +package emu.grasscutter.game; + +import java.util.ArrayList; +import java.util.List; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType; + +public class InvokeHandler { + private final List entryListForwardAll; + private final List entryListForwardAllExceptCur; + private final List entryListForwardHost; + private final Class packetClass; + + public InvokeHandler(Class packetClass) { + this.entryListForwardAll = new ArrayList<>(); + this.entryListForwardAllExceptCur = new ArrayList<>(); + this.entryListForwardHost = new ArrayList<>(); + this.packetClass = packetClass; + } + + 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; + } + } + + public synchronized void update(GenshinPlayer player) { + if (player.getWorld() == null) { + this.entryListForwardAll.clear(); + this.entryListForwardAllExceptCur.clear(); + this.entryListForwardHost.clear(); + return; + } + + try { + if (entryListForwardAll.size() > 0) { + GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAll); + player.getWorld().broadcastPacket(packet); + this.entryListForwardAll.clear(); + } + if (entryListForwardAllExceptCur.size() > 0) { + GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardAllExceptCur); + player.getWorld().broadcastPacketToOthers(player, packet); + this.entryListForwardAllExceptCur.clear(); + } + if (entryListForwardHost.size() > 0) { + GenshinPacket packet = packetClass.getDeclaredConstructor(List.class).newInstance(this.entryListForwardHost); + player.getWorld().getHost().sendPacket(packet); + this.entryListForwardHost.clear(); + } + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/emu/grasscutter/game/TeamInfo.java b/src/main/java/emu/grasscutter/game/TeamInfo.java new file mode 100644 index 000000000..304c06a66 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/TeamInfo.java @@ -0,0 +1,73 @@ +package emu.grasscutter.game; + +import java.util.ArrayList; +import java.util.List; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.game.avatar.GenshinAvatar; + +public class TeamInfo { + private String name; + private List avatars; + + public TeamInfo() { + this.name = ""; + this.avatars = new ArrayList<>(GenshinConstants.MAX_AVATARS_IN_TEAM); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getAvatars() { + return avatars; + } + + public int size() { + return avatars.size(); + } + + public boolean contains(GenshinAvatar avatar) { + return getAvatars().contains(avatar.getAvatarId()); + } + + public boolean addAvatar(GenshinAvatar avatar) { + if (size() >= GenshinConstants.MAX_AVATARS_IN_TEAM || contains(avatar)) { + return false; + } + + getAvatars().add(avatar.getAvatarId()); + + return true; + } + + public boolean removeAvatar(int slot) { + if (size() <= 1) { + return false; + } + + getAvatars().remove(slot); + + return true; + } + + public void copyFrom(TeamInfo team) { + copyFrom(team, GenshinConstants.MAX_AVATARS_IN_TEAM); + } + + public void copyFrom(TeamInfo team, int maxTeamSize) { + // Clear + this.getAvatars().clear(); + + // Copy from team + int len = Math.min(team.getAvatars().size(), maxTeamSize); + for (int i = 0; i < len; i++) { + int id = team.getAvatars().get(i); + this.getAvatars().add(id); + } + } +} diff --git a/src/main/java/emu/grasscutter/game/TeamManager.java b/src/main/java/emu/grasscutter/game/TeamManager.java new file mode 100644 index 000000000..bcbea7544 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/TeamManager.java @@ -0,0 +1,484 @@ +package emu.grasscutter.game; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Map; +import dev.morphia.annotations.Transient; +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.data.def.AvatarSkillDepotData; +import emu.grasscutter.game.avatar.GenshinAvatar; +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; +import emu.grasscutter.net.proto.MotionStateOuterClass.MotionState; +import emu.grasscutter.server.packet.send.PacketAvatarDieAnimationEndRsp; +import emu.grasscutter.server.packet.send.PacketAvatarFightPropUpdateNotify; +import emu.grasscutter.server.packet.send.PacketAvatarLifeStateChangeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarTeamUpdateNotify; +import emu.grasscutter.server.packet.send.PacketChangeAvatarRsp; +import emu.grasscutter.server.packet.send.PacketChangeMpTeamAvatarRsp; +import emu.grasscutter.server.packet.send.PacketChangeTeamNameRsp; +import emu.grasscutter.server.packet.send.PacketChooseCurAvatarTeamRsp; +import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneNotify; +import emu.grasscutter.server.packet.send.PacketSceneTeamUpdateNotify; +import emu.grasscutter.server.packet.send.PacketSetUpAvatarTeamRsp; +import emu.grasscutter.server.packet.send.PacketWorldPlayerDieNotify; +import it.unimi.dsi.fastutil.ints.Int2IntMap; +import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntOpenHashSet; +import it.unimi.dsi.fastutil.ints.IntSet; + +public class TeamManager { + @Transient private GenshinPlayer player; + + private Map teams; + private int currentTeamIndex; + private int currentCharacterIndex; + + @Transient private TeamInfo mpTeam; + @Transient private int entityId; + @Transient private final List avatars; + @Transient private final List gadgets; + @Transient private final IntSet teamResonances; + @Transient private final IntSet teamResonancesConfig; + + public TeamManager() { + this.mpTeam = new TeamInfo(); + this.avatars = new ArrayList<>(); + this.gadgets = new ArrayList<>(); + this.teamResonances = new IntOpenHashSet(); + this.teamResonancesConfig = new IntOpenHashSet(); + } + + public TeamManager(GenshinPlayer player) { + this(); + this.player = player; + + this.teams = new HashMap<>(); + this.currentTeamIndex = 1; + for (int i = 1; i <= GenshinConstants.MAX_TEAMS; i++) { + this.teams.put(i, new TeamInfo()); + } + } + + public GenshinPlayer getPlayer() { + return player; + } + + public World getWorld() { + return player.getWorld(); + } + + public void setPlayer(GenshinPlayer player) { + this.player = player; + } + + public Map getTeams() { + return this.teams; + } + + public TeamInfo getMpTeam() { + return mpTeam; + } + + public void setMpTeam(TeamInfo mpTeam) { + this.mpTeam = mpTeam; + } + + public int getCurrentTeamId() { + // Starts from 1 + return currentTeamIndex; + } + + private void setCurrentTeamId(int currentTeamIndex) { + this.currentTeamIndex = currentTeamIndex; + } + + public int getCurrentCharacterIndex() { + return currentCharacterIndex; + } + + public void setCurrentCharacterIndex(int currentCharacterIndex) { + this.currentCharacterIndex = currentCharacterIndex; + } + + public long getCurrentCharacterGuid() { + return getCurrentAvatarEntity().getAvatar().getGuid(); + } + + public TeamInfo getCurrentTeamInfo() { + if (this.getPlayer().isInMultiplayer()) { + return this.getMpTeam(); + } + return this.getTeams().get(this.currentTeamIndex); + } + + public TeamInfo getCurrentSinglePlayerTeamInfo() { + return this.getTeams().get(this.currentTeamIndex); + } + + public int getEntityId() { + return entityId; + } + + public void setEntityId(int entityId) { + this.entityId = entityId; + } + + public IntSet getTeamResonances() { + return teamResonances; + } + + public IntSet getTeamResonancesConfig() { + return teamResonancesConfig; + } + + public List getActiveTeam() { + return avatars; + } + + public EntityAvatar getCurrentAvatarEntity() { + return getActiveTeam().get(currentCharacterIndex); + } + + public boolean isSpawned() { + return getPlayer().getWorld() != null && getPlayer().getWorld().getEntities().containsKey(getCurrentAvatarEntity().getId()); + } + + public int getMaxTeamSize() { + if (getPlayer().isInMultiplayer()) { + if (getPlayer().getWorld().getHost() == this.getPlayer()) { + return Math.max(1, (int) Math.ceil(GenshinConstants.MAX_AVATARS_IN_TEAM / (double) getWorld().getPlayerCount())); + } + return Math.max(1, (int) Math.floor(GenshinConstants.MAX_AVATARS_IN_TEAM / (double) getWorld().getPlayerCount())); + } + return GenshinConstants.MAX_AVATARS_IN_TEAM; + } + + // Methods + + public void updateTeamResonances() { + Int2IntOpenHashMap map = new Int2IntOpenHashMap(); + + this.getTeamResonances().clear(); + this.getTeamResonancesConfig().clear(); + + for (EntityAvatar entity : getActiveTeam()) { + AvatarSkillDepotData skillData = entity.getAvatar().getAvatarData().getSkillDepot(); + if (skillData != null) { + map.addTo(skillData.getElementType().getValue(), 1); + } + } + + for (Int2IntMap.Entry e : map.int2IntEntrySet()) { + if (e.getIntValue() >= 2) { + ElementType element = ElementType.getTypeByValue(e.getIntKey()); + if (element.getTeamResonanceId() != 0) { + this.getTeamResonances().add(element.getTeamResonanceId()); + this.getTeamResonancesConfig().add(element.getConfigHash()); + } + } + } + + // No resonances + if (this.getTeamResonances().size() == 0) { + this.getTeamResonances().add(ElementType.Default.getTeamResonanceId()); + this.getTeamResonancesConfig().add(ElementType.Default.getTeamResonanceId()); + } + } + + private void updateTeamEntities(GenshinPacket responsePacket) { + // Sanity check - Should never happen + if (this.getCurrentTeamInfo().getAvatars().size() <= 0) { + return; + } + + // If current team has changed + EntityAvatar currentEntity = this.getCurrentAvatarEntity(); + Int2ObjectMap existingAvatars = new Int2ObjectOpenHashMap<>(); + int prevSelectedAvatarIndex = -1; + + for (EntityAvatar entity : getActiveTeam()) { + existingAvatars.put(entity.getAvatar().getAvatarId(), entity); + } + + // Clear active team entity list + this.getActiveTeam().clear(); + + // Add back entities into team + for (int i = 0; i < this.getCurrentTeamInfo().getAvatars().size(); i++) { + int avatarId = this.getCurrentTeamInfo().getAvatars().get(i); + EntityAvatar entity = null; + + if (existingAvatars.containsKey(avatarId)) { + entity = existingAvatars.get(avatarId); + existingAvatars.remove(avatarId); + if (entity == currentEntity) { + prevSelectedAvatarIndex = i; + } + } else { + entity = new EntityAvatar(getPlayer().getWorld(), getPlayer().getAvatars().getAvatarById(avatarId)); + } + + this.getActiveTeam().add(entity); + } + + // Unload removed entities + for (EntityAvatar entity : existingAvatars.values()) { + getPlayer().getWorld().removeEntity(entity); + entity.getAvatar().save(); + } + + // Set new selected character index + if (prevSelectedAvatarIndex == -1) { + // Previous selected avatar is not in the same spot, we will select the current one in the prev slot + prevSelectedAvatarIndex = Math.min(this.currentCharacterIndex, getCurrentTeamInfo().getAvatars().size() - 1); + } + this.currentCharacterIndex = prevSelectedAvatarIndex; + + // Update team resonances + updateTeamResonances(); + + // Packets + getPlayer().getWorld().broadcastPacket(new PacketSceneTeamUpdateNotify(getPlayer())); + + // Run callback + if (responsePacket != null) { + getPlayer().sendPacket(responsePacket); + } + + // Check if character changed + if (currentEntity != getCurrentAvatarEntity()) { + // Remove and Add + getWorld().replaceEntity(currentEntity, getCurrentAvatarEntity()); + } + } + + public synchronized void setupAvatarTeam(int teamId, List list) { + // Sanity checks + if (list.size() == 0 || list.size() > getMaxTeamSize() || getPlayer().isInMultiplayer()) { + return; + } + + // Get team + TeamInfo teamInfo = this.getTeams().get(teamId); + if (teamInfo == null) { + return; + } + + // Set team data + LinkedHashSet newTeam = new LinkedHashSet<>(); + for (int i = 0; i < list.size(); i++) { + GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); + if (avatar == null || newTeam.contains(avatar)) { + // Should never happen + return; + } + newTeam.add(avatar); + } + + // Clear current team info and add avatars from our new team + teamInfo.getAvatars().clear(); + for (GenshinAvatar avatar : newTeam) { + teamInfo.addAvatar(avatar); + } + + // Update packet + getPlayer().sendPacket(new PacketAvatarTeamUpdateNotify(getPlayer())); + + // Update entites + if (teamId == this.getCurrentTeamId()) { + this.updateTeamEntities(new PacketSetUpAvatarTeamRsp(getPlayer(), teamId, teamInfo)); + } else { + getPlayer().sendPacket(new PacketSetUpAvatarTeamRsp(getPlayer(), teamId, teamInfo)); + } + } + + public void setupMpTeam(List list) { + // Sanity checks + if (list.size() == 0 || list.size() > getMaxTeamSize() || !getPlayer().isInMultiplayer()) { + return; + } + + TeamInfo teamInfo = this.getMpTeam(); + + // Set team data + LinkedHashSet newTeam = new LinkedHashSet<>(); + for (int i = 0; i < list.size(); i++) { + GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(list.get(i)); + if (avatar == null || newTeam.contains(avatar)) { + // Should never happen + return; + } + newTeam.add(avatar); + } + + // Clear current team info and add avatars from our new team + teamInfo.getAvatars().clear(); + for (GenshinAvatar avatar : newTeam) { + teamInfo.addAvatar(avatar); + } + + // Packet + this.updateTeamEntities(new PacketChangeMpTeamAvatarRsp(getPlayer(), teamInfo)); + } + + public synchronized void setCurrentTeam(int teamId) { + // + if (getPlayer().isInMultiplayer()) { + return; + } + + // Get team + TeamInfo teamInfo = this.getTeams().get(teamId); + if (teamInfo == null || teamInfo.getAvatars().size() == 0) { + return; + } + + // Set + this.setCurrentTeamId(teamId); + this.updateTeamEntities(new PacketChooseCurAvatarTeamRsp(teamId)); + } + + public synchronized void setTeamName(int teamId, String teamName) { + // Get team + TeamInfo teamInfo = this.getTeams().get(teamId); + if (teamInfo == null) { + return; + } + + teamInfo.setName(teamName); + + // Packet + getPlayer().sendPacket(new PacketChangeTeamNameRsp(teamId, teamName)); + } + + public synchronized void changeAvatar(long guid) { + EntityAvatar oldEntity = this.getCurrentAvatarEntity(); + + if (guid == oldEntity.getAvatar().getGuid()) { + return; + } + + EntityAvatar newEntity = null; + int index = -1; + for (int i = 0; i < getActiveTeam().size(); i++) { + if (guid == getActiveTeam().get(i).getAvatar().getGuid()) { + index = i; + newEntity = getActiveTeam().get(i); + } + } + + if (index < 0 || newEntity == oldEntity) { + return; + } + + // Set index + this.setCurrentCharacterIndex(index); + + // Old entity motion state + oldEntity.setMotionState(MotionState.MotionStandby); + + // Remove and Add + getWorld().replaceEntity(oldEntity, newEntity); + getPlayer().sendPacket(new PacketChangeAvatarRsp(guid)); + } + + public void onAvatarDie(long dieGuid) { + EntityAvatar deadAvatar = this.getCurrentAvatarEntity(); + + if (deadAvatar.isAlive() || deadAvatar.getId() != dieGuid) { + return; + } + + // Replacement avatar + EntityAvatar replacement = null; + int replaceIndex = -1; + + for (int i = 0; i < this.getActiveTeam().size(); i++) { + EntityAvatar entity = this.getActiveTeam().get(i); + if (entity.isAlive()) { + replaceIndex = i; + replacement = entity; + break; + } + } + + if (replacement == null) { + // No more living team members... + getPlayer().sendPacket(new PacketWorldPlayerDieNotify(deadAvatar.getKilledType(), deadAvatar.getKilledBy())); + } else { + // Set index and spawn replacement member + this.setCurrentCharacterIndex(replaceIndex); + getWorld().addEntity(replacement); + } + + // Response packet + getPlayer().sendPacket(new PacketAvatarDieAnimationEndRsp(deadAvatar.getId(), 0)); + } + + public boolean reviveAvatar(GenshinAvatar avatar) { + for (EntityAvatar entity : getActiveTeam()) { + if (entity.getAvatar() == avatar) { + if (entity.isAlive()) { + return false; + } + + entity.setFightProperty( + FightProperty.FIGHT_PROP_CUR_HP, + entity.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * .1f + ); + getPlayer().sendPacket(new PacketAvatarFightPropUpdateNotify(entity.getAvatar(), FightProperty.FIGHT_PROP_CUR_HP)); + getPlayer().sendPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar())); + return true; + } + } + + return false; + } + + public void respawnTeam() { + // Make sure all team members are dead + for (EntityAvatar entity : getActiveTeam()) { + if (entity.isAlive()) { + return; + } + } + + // Revive all team members + for (EntityAvatar entity : getActiveTeam()) { + entity.setFightProperty( + FightProperty.FIGHT_PROP_CUR_HP, + entity.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * .4f + ); + getPlayer().sendPacket(new PacketAvatarFightPropUpdateNotify(entity.getAvatar(), FightProperty.FIGHT_PROP_CUR_HP)); + getPlayer().sendPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar())); + } + + // Teleport player + getPlayer().sendPacket(new PacketPlayerEnterSceneNotify(getPlayer(), EnterType.EnterSelf, EnterReason.Revival, 3, GenshinConstants.START_POSITION)); + + // Set player position + player.setSceneId(3); + player.getPos().set(GenshinConstants.START_POSITION); + + // Packets + getPlayer().sendPacket(new GenshinPacket(PacketOpcodes.WorldPlayerReviveRsp)); + } + + public void saveAvatars() { + // Save all avatars from active team + for (EntityAvatar entity : getActiveTeam()) { + entity.getAvatar().save(); + } + } +} diff --git a/src/main/java/emu/grasscutter/game/World.java b/src/main/java/emu/grasscutter/game/World.java new file mode 100644 index 000000000..2a5cb6b95 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/World.java @@ -0,0 +1,434 @@ +package emu.grasscutter.game; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.stream.Collectors; + +import emu.grasscutter.game.entity.GenshinEntity; +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.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.game.entity.EntityClientGadget; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult; +import emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType; +import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; +import emu.grasscutter.server.packet.send.PacketDelTeamEntityNotify; +import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify; +import emu.grasscutter.server.packet.send.PacketLifeStateChangeNotify; +import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneNotify; +import emu.grasscutter.server.packet.send.PacketSceneEntityAppearNotify; +import emu.grasscutter.server.packet.send.PacketSceneEntityDisappearNotify; +import emu.grasscutter.server.packet.send.PacketScenePlayerInfoNotify; +import emu.grasscutter.server.packet.send.PacketSceneTeamUpdateNotify; +import emu.grasscutter.server.packet.send.PacketSyncScenePlayTeamEntityNotify; +import emu.grasscutter.server.packet.send.PacketSyncTeamEntityNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerInfoNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerRTTNotify; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class World implements Iterable { + private final GenshinPlayer owner; + private final List players; + + private int levelEntityId; + private int nextEntityId = 0; + private int nextPeerId = 0; + private final Int2ObjectMap entities; + + private int worldLevel; + private int sceneId; + private int time; + private ClimateType climate; + private boolean isMultiplayer; + private boolean isDungeon; + + public World(GenshinPlayer player) { + this(player, false); + } + + public World(GenshinPlayer player, boolean isMultiplayer) { + this.owner = player; + this.players = Collections.synchronizedList(new ArrayList<>()); + this.entities = new Int2ObjectOpenHashMap<>(); + this.levelEntityId = getNextEntityId(EntityIdType.MPLEVEL); + this.sceneId = player.getSceneId(); + this.time = 8 * 60; + this.climate = ClimateType.CLIMATE_SUNNY; + this.worldLevel = player.getWorldLevel(); + this.isMultiplayer = isMultiplayer; + } + + public GenshinPlayer getHost() { + return owner; + } + + public int getLevelEntityId() { + return levelEntityId; + } + + public int getHostPeerId() { + if (this.getHost() == null) { + return 0; + } + return this.getHost().getPeerId(); + } + + public int getNextPeerId() { + return ++this.nextPeerId; + } + + public int getSceneId() { + return sceneId; + } + + public void setSceneId(int sceneId) { + this.sceneId = sceneId; + } + + public int getTime() { + return time; + } + + public void changeTime(int time) { + this.time = time % 1440; + } + + public int getWorldLevel() { + return worldLevel; + } + + public void setWorldLevel(int worldLevel) { + this.worldLevel = worldLevel; + } + + public ClimateType getClimate() { + return climate; + } + + public void setClimate(ClimateType climate) { + this.climate = climate; + } + + public List getPlayers() { + return players; + } + + public int getPlayerCount() { + return getPlayers().size(); + } + + public Int2ObjectMap getEntities() { + return this.entities; + } + + public boolean isInWorld(GenshinEntity entity) { + return this.entities.containsKey(entity.getId()); + } + + public boolean isMultiplayer() { + return isMultiplayer; + } + + public boolean isDungeon() { + return isDungeon; + } + + public int getNextEntityId(EntityIdType idType) { + return (idType.getId() << 24) + ++this.nextEntityId; + } + + public GenshinEntity getEntityById(int id) { + return this.entities.get(id); + } + + public synchronized void addPlayer(GenshinPlayer player) { + // Check if player already in + if (getPlayers().contains(player)) { + return; + } + + // Remove player from prev world + if (player.getWorld() != null) { + player.getWorld().removePlayer(player); + } + + // Register + player.setWorld(this); + getPlayers().add(player); + + player.setPeerId(this.getNextPeerId()); + player.getTeamManager().setEntityId(getNextEntityId(EntityIdType.TEAM)); + + // TODO Update team of all players + this.setupPlayerAvatars(player); + + // Info packet for other players + if (this.getPlayers().size() > 1) { + this.updatePlayerInfos(player); + } + } + + public synchronized void removePlayer(GenshinPlayer player) { + // Remove team entities + player.sendPacket( + new PacketDelTeamEntityNotify( + player.getSceneId(), + getPlayers().stream().map(p -> p.getTeamManager().getEntityId()).collect(Collectors.toList()) + ) + ); + + // Deregister + getPlayers().remove(player); + player.setWorld(null); + + this.removePlayerAvatars(player); + + // Info packet for other players + if (this.getPlayers().size() > 0) { + this.updatePlayerInfos(player); + } + + // Disband world if host leaves + if (getHost() == player) { + List kicked = new ArrayList<>(this.getPlayers()); + for (GenshinPlayer victim : kicked) { + World world = new World(victim); + world.addPlayer(victim); + + victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.EnterSelf, EnterReason.TeamKick, victim.getWorld().getSceneId(), victim.getPos())); + } + } + } + + private void updatePlayerInfos(GenshinPlayer paramPlayer) { + for (GenshinPlayer player : getPlayers()) { + // Dont send packets if player is loading in + if (!player.hasSentAvatarDataNotify() || player.getSceneLoadState().getValue() < SceneLoadState.INIT.getValue() || player == paramPlayer) { + continue; + } + + // World player info packets + player.getSession().send(new PacketWorldPlayerInfoNotify(this)); + player.getSession().send(new PacketScenePlayerInfoNotify(this)); + player.getSession().send(new PacketWorldPlayerRTTNotify(this)); + + // Team packets + player.getSession().send(new PacketSceneTeamUpdateNotify(player)); + player.getSession().send(new PacketSyncTeamEntityNotify(player)); + player.getSession().send(new PacketSyncScenePlayTeamEntityNotify(player)); + } + } + + private void addEntityDirectly(GenshinEntity entity) { + getEntities().put(entity.getId(), entity); + } + + public synchronized void addEntity(GenshinEntity entity) { + this.addEntityDirectly(entity); + this.broadcastPacket(new PacketSceneEntityAppearNotify(entity)); + } + + public synchronized void addEntities(Collection entities) { + for (GenshinEntity entity : entities) { + this.addEntityDirectly(entity); + } + + this.broadcastPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VisionBorn)); + } + + private GenshinEntity removeEntityDirectly(GenshinEntity entity) { + return getEntities().remove(entity.getId()); + } + + public void removeEntity(GenshinEntity entity) { + this.removeEntity(entity, VisionType.VisionDie); + } + + public synchronized void removeEntity(GenshinEntity entity, VisionType visionType) { + GenshinEntity removed = this.removeEntityDirectly(entity); + if (removed != null) { + this.broadcastPacket(new PacketSceneEntityDisappearNotify(removed, visionType)); + } + } + + 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())); + } + + private void setupPlayerAvatars(GenshinPlayer player) { + // Copy main team to mp team + if (this.isMultiplayer()) { + player.getTeamManager().getMpTeam().copyFrom(player.getTeamManager().getCurrentSinglePlayerTeamInfo(), player.getTeamManager().getMaxTeamSize()); + } + + // Clear entities from old team + player.getTeamManager().getActiveTeam().clear(); + + // Add new entities for player + TeamInfo teamInfo = player.getTeamManager().getCurrentTeamInfo(); + for (int avatarId : teamInfo.getAvatars()) { + EntityAvatar entity = new EntityAvatar(this, player.getAvatars().getAvatarById(avatarId)); + player.getTeamManager().getActiveTeam().add(entity); + } + } + + private void removePlayerAvatars(GenshinPlayer player) { + Iterator it = player.getTeamManager().getActiveTeam().iterator(); + while (it.hasNext()) { + this.removeEntity(it.next(), VisionType.VisionRemove); + it.remove(); + } + } + + public void spawnPlayer(GenshinPlayer player) { + if (isInWorld(player.getTeamManager().getCurrentAvatarEntity())) { + return; + } + + if (player.getTeamManager().getCurrentAvatarEntity().getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) <= 0f) { + player.getTeamManager().getCurrentAvatarEntity().setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, 1f); + } + + this.addEntity(player.getTeamManager().getCurrentAvatarEntity()); + } + + public void showOtherEntities(GenshinPlayer player) { + List entities = new LinkedList<>(); + GenshinEntity currentEntity = player.getTeamManager().getCurrentAvatarEntity(); + + for (GenshinEntity entity : this.getEntities().values()) { + if (entity == currentEntity) { + continue; + } + entities.add(entity); + } + + player.sendPacket(new PacketSceneEntityAppearNotify(entities, VisionType.VisionMeet)); + } + + public void handleAttack(AttackResult result) { + //GenshinEntity attacker = getEntityById(result.getAttackerId()); + GenshinEntity target = getEntityById(result.getDefenseId()); + + if (target == null) { + return; + } + + // Godmode check + if (target instanceof EntityAvatar) { + if (((EntityAvatar) target).getPlayer().hasGodmode()) { + return; + } + } + + // Lose hp + target.addFightProperty(FightProperty.FIGHT_PROP_CUR_HP, -result.getDamage()); + + // Check if dead + boolean isDead = false; + if (target.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) <= 0f) { + target.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, 0f); + isDead = true; + } + + // Packets + this.broadcastPacket(new PacketEntityFightPropUpdateNotify(target, FightProperty.FIGHT_PROP_CUR_HP)); + + // Check if dead + if (isDead) { + this.killEntity(target, result.getAttackerId()); + } + } + + public void killEntity(GenshinEntity target, int attackerId) { + // Packet + this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD)); + this.removeEntity(target); + + // Death event + target.onDeath(attackerId); + } + + // Gadgets + + public void onPlayerCreateGadget(EntityClientGadget gadget) { + // Directly add + this.addEntityDirectly(gadget); + + // Add to owner's gadget list TODO + + // Optimization + if (this.getPlayerCount() == 1 && this.getPlayers().get(0) == gadget.getOwner()) { + return; + } + + this.broadcastPacketToOthers(gadget.getOwner(), new PacketSceneEntityAppearNotify(gadget)); + } + + public void onPlayerDestroyGadget(int entityId) { + GenshinEntity entity = getEntities().get(entityId); + + if (entity == null || !(entity instanceof EntityClientGadget)) { + return; + } + + // Get and remove entity + EntityClientGadget gadget = (EntityClientGadget) entity; + this.removeEntityDirectly(gadget); + + // Remove from owner's gadget list TODO + + // Optimization + if (this.getPlayerCount() == 1 && this.getPlayers().get(0) == gadget.getOwner()) { + return; + } + + this.broadcastPacketToOthers(gadget.getOwner(), new PacketSceneEntityDisappearNotify(gadget, VisionType.VisionDie)); + } + + // Broadcasting + + public void broadcastPacket(GenshinPacket packet) { + // Send to all players - might have to check if player has been sent data packets + for (GenshinPlayer player : this.getPlayers()) { + player.getSession().send(packet); + } + } + + public void broadcastPacketToOthers(GenshinPlayer excludedPlayer, GenshinPacket 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()) { + if (player == excludedPlayer) { + continue; + } + // Send + player.getSession().send(packet); + } + } + + public void close() { + + } + + @Override + public Iterator iterator() { + return getPlayers().iterator(); + } +} diff --git a/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java b/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java new file mode 100644 index 000000000..5458c1752 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/avatar/AvatarProfileData.java @@ -0,0 +1,23 @@ +package emu.grasscutter.game.avatar; + +public class AvatarProfileData { + private int avatarId; + private int level; + + public AvatarProfileData(GenshinAvatar avatar) { + this.update(avatar); + } + + public int getAvatarId() { + return avatarId; + } + + public int getLevel() { + return level; + } + + public void update(GenshinAvatar avatar) { + this.avatarId = avatar.getAvatarId(); + this.level = avatar.getLevel(); + } +} diff --git a/src/main/java/emu/grasscutter/game/avatar/AvatarStat.java b/src/main/java/emu/grasscutter/game/avatar/AvatarStat.java new file mode 100644 index 000000000..fc20d00d3 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/avatar/AvatarStat.java @@ -0,0 +1,124 @@ +package emu.grasscutter.game.avatar; + +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum AvatarStat { + FIGHT_PROP_NONE(0), + FIGHT_PROP_BASE_HP(1), + FIGHT_PROP_HP(2), + FIGHT_PROP_HP_PERCENT(3), + FIGHT_PROP_BASE_ATTACK(4), + FIGHT_PROP_ATTACK(5), + FIGHT_PROP_ATTACK_PERCENT(6), + FIGHT_PROP_BASE_DEFENSE(7), + FIGHT_PROP_DEFENSE(8), + FIGHT_PROP_DEFENSE_PERCENT(9), + FIGHT_PROP_BASE_SPEED(10), + FIGHT_PROP_SPEED_PERCENT(11), + FIGHT_PROP_HP_MP_PERCENT(12), + FIGHT_PROP_ATTACK_MP_PERCENT(13), + FIGHT_PROP_CRITICAL(20), + FIGHT_PROP_ANTI_CRITICAL(21), + FIGHT_PROP_CRITICAL_HURT(22), + FIGHT_PROP_CHARGE_EFFICIENCY(23), + FIGHT_PROP_ADD_HURT(24), + FIGHT_PROP_SUB_HURT(25), + FIGHT_PROP_HEAL_ADD(26), + FIGHT_PROP_HEALED_ADD(27), + FIGHT_PROP_ELEMENT_MASTERY(28), + FIGHT_PROP_PHYSICAL_SUB_HURT(29), + FIGHT_PROP_PHYSICAL_ADD_HURT(30), + FIGHT_PROP_DEFENCE_IGNORE_RATIO(31), + FIGHT_PROP_DEFENCE_IGNORE_DELTA(32), + FIGHT_PROP_FIRE_ADD_HURT(40), + FIGHT_PROP_ELEC_ADD_HURT(41), + FIGHT_PROP_WATER_ADD_HURT(42), + FIGHT_PROP_GRASS_ADD_HURT(43), + FIGHT_PROP_WIND_ADD_HURT(44), + FIGHT_PROP_ROCK_ADD_HURT(45), + FIGHT_PROP_ICE_ADD_HURT(46), + FIGHT_PROP_HIT_HEAD_ADD_HURT(47), + FIGHT_PROP_FIRE_SUB_HURT(50), + FIGHT_PROP_ELEC_SUB_HURT(51), + FIGHT_PROP_WATER_SUB_HURT(52), + FIGHT_PROP_GRASS_SUB_HURT(53), + FIGHT_PROP_WIND_SUB_HURT(54), + FIGHT_PROP_ROCK_SUB_HURT(55), + FIGHT_PROP_ICE_SUB_HURT(56), + FIGHT_PROP_EFFECT_HIT(60), + FIGHT_PROP_EFFECT_RESIST(61), + FIGHT_PROP_FREEZE_RESIST(62), + FIGHT_PROP_TORPOR_RESIST(63), + FIGHT_PROP_DIZZY_RESIST(64), + FIGHT_PROP_FREEZE_SHORTEN(65), + FIGHT_PROP_TORPOR_SHORTEN(66), + FIGHT_PROP_DIZZY_SHORTEN(67), + FIGHT_PROP_MAX_FIRE_ENERGY(70), + FIGHT_PROP_MAX_ELEC_ENERGY(71), + FIGHT_PROP_MAX_WATER_ENERGY(72), + FIGHT_PROP_MAX_GRASS_ENERGY(73), + FIGHT_PROP_MAX_WIND_ENERGY(74), + FIGHT_PROP_MAX_ICE_ENERGY(75), + FIGHT_PROP_MAX_ROCK_ENERGY(76), + FIGHT_PROP_SKILL_CD_MINUS_RATIO(80), + FIGHT_PROP_SHIELD_COST_MINUS_RATIO(81), + FIGHT_PROP_CUR_FIRE_ENERGY(1000), + FIGHT_PROP_CUR_ELEC_ENERGY(1001), + FIGHT_PROP_CUR_WATER_ENERGY(1002), + FIGHT_PROP_CUR_GRASS_ENERGY(1003), + FIGHT_PROP_CUR_WIND_ENERGY(1004), + FIGHT_PROP_CUR_ICE_ENERGY(1005), + FIGHT_PROP_CUR_ROCK_ENERGY(1006), + FIGHT_PROP_CUR_HP(1010), + FIGHT_PROP_MAX_HP(2000), + FIGHT_PROP_CUR_ATTACK(2001), + FIGHT_PROP_CUR_DEFENSE(2002), + FIGHT_PROP_CUR_SPEED(2003), + FIGHT_PROP_NONEXTRA_ATTACK(3000), + FIGHT_PROP_NONEXTRA_DEFENSE(3001), + FIGHT_PROP_NONEXTRA_CRITICAL(3002), + FIGHT_PROP_NONEXTRA_ANTI_CRITICAL(3003), + FIGHT_PROP_NONEXTRA_CRITICAL_HURT(3004), + FIGHT_PROP_NONEXTRA_CHARGE_EFFICIENCY(3005), + FIGHT_PROP_NONEXTRA_ELEMENT_MASTERY(3006), + FIGHT_PROP_NONEXTRA_PHYSICAL_SUB_HURT(3007), + FIGHT_PROP_NONEXTRA_FIRE_ADD_HURT(3008), + FIGHT_PROP_NONEXTRA_ELEC_ADD_HURT(3009), + FIGHT_PROP_NONEXTRA_WATER_ADD_HURT(3010), + FIGHT_PROP_NONEXTRA_GRASS_ADD_HURT(3011), + FIGHT_PROP_NONEXTRA_WIND_ADD_HURT(3012), + FIGHT_PROP_NONEXTRA_ROCK_ADD_HURT(3013), + FIGHT_PROP_NONEXTRA_ICE_ADD_HURT(3014), + FIGHT_PROP_NONEXTRA_FIRE_SUB_HURT(3015), + FIGHT_PROP_NONEXTRA_ELEC_SUB_HURT(3016), + FIGHT_PROP_NONEXTRA_WATER_SUB_HURT(3017), + FIGHT_PROP_NONEXTRA_GRASS_SUB_HURT(3018), + FIGHT_PROP_NONEXTRA_WIND_SUB_HURT(3019), + FIGHT_PROP_NONEXTRA_ROCK_SUB_HURT(3020), + FIGHT_PROP_NONEXTRA_ICE_SUB_HURT(3021), + FIGHT_PROP_NONEXTRA_SKILL_CD_MINUS_RATIO(3022), + FIGHT_PROP_NONEXTRA_SHIELD_COST_MINUS_RATIO(3023), + FIGHT_PROP_NONEXTRA_PHYSICAL_ADD_HURT(3024); + + private final int id; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + + static { + Stream.of(values()).forEach(e -> map.put(e.getId(), e)); + } + + private AvatarStat(int id) { + this.id = id; + } + + public int getId() { + return id; + } + + public static AvatarStat getStatById(int value) { + return map.getOrDefault(value, FIGHT_PROP_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java b/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java new file mode 100644 index 000000000..a0be0b275 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/avatar/AvatarStorage.java @@ -0,0 +1,174 @@ +package emu.grasscutter.game.avatar; + +import java.util.Iterator; +import java.util.List; + +import emu.grasscutter.data.GenshinData; +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.server.packet.send.PacketAvatarChangeCostumeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarFlycloakChangeNotify; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +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 { + private final GenshinPlayer player; + private final Int2ObjectMap avatars; + private final Long2ObjectMap avatarsGuid; + + public AvatarStorage(GenshinPlayer player) { + this.player = player; + this.avatars = new Int2ObjectOpenHashMap<>(); + this.avatarsGuid = new Long2ObjectOpenHashMap<>(); + } + + public GenshinPlayer getPlayer() { + return player; + } + + public Int2ObjectMap getAvatars() { + return avatars; + } + + public int getAvatarCount() { + return this.avatars.size(); + } + + public GenshinAvatar getAvatarById(int id) { + return getAvatars().get(id); + } + + public GenshinAvatar getAvatarByGuid(long id) { + return avatarsGuid.get(id); + } + + public boolean hasAvatar(int id) { + return getAvatars().containsKey(id); + } + + public boolean addAvatar(GenshinAvatar avatar) { + if (avatar.getAvatarData() == null || this.hasAvatar(avatar.getAvatarId())) { + return false; + } + + // Set owner first + avatar.setOwner(getPlayer()); + + // Put into maps + this.avatars.put(avatar.getAvatarId(), avatar); + this.avatarsGuid.put(avatar.getGuid(), avatar); + + avatar.save(); + + return true; + } + + public void addStartingWeapon(GenshinAvatar avatar) { + // Make sure avatar owner is this player + if (avatar.getPlayer() != this.getPlayer()) { + return; + } + + // Create weapon + GenshinItem weapon = new GenshinItem(avatar.getAvatarData().getInitialWeapon()); + + if (weapon.getItemData() != null) { + this.getPlayer().getInventory().addItem(weapon); + + avatar.equipItem(weapon, true); + } + } + + public boolean wearFlycloak(long avatarGuid, int flycloakId) { + GenshinAvatar avatar = this.getAvatarByGuid(avatarGuid); + + if (avatar == null || !getPlayer().getFlyCloakList().contains(flycloakId)) { + return false; + } + + avatar.setFlyCloak(flycloakId); + avatar.save(); + + // Update + getPlayer().sendPacket(new PacketAvatarFlycloakChangeNotify(avatar)); + + return true; + } + + public boolean changeCostume(long avatarGuid, int costumeId) { + GenshinAvatar avatar = this.getAvatarByGuid(avatarGuid); + + if (avatar == null) { + return false; + } + + if (costumeId != 0 && !getPlayer().getCostumeList().contains(costumeId)) { + return false; + } + + // TODO make sure avatar can wear costume + + avatar.setCostume(costumeId); + avatar.save(); + + // Update entity + EntityAvatar entity = avatar.getAsEntity(); + if (entity == null) { + entity = new EntityAvatar(avatar); + getPlayer().sendPacket(new PacketAvatarChangeCostumeNotify(entity)); + } else { + getPlayer().getWorld().broadcastPacket(new PacketAvatarChangeCostumeNotify(entity)); + } + + // Done + return true; + } + + public void loadFromDatabase() { + List avatars = DatabaseHelper.getAvatars(getPlayer()); + + for (GenshinAvatar avatar : avatars) { + // Should never happen + if (avatar.getObjectId() == null) { + continue; + } + + AvatarData avatarData = GenshinData.getAvatarDataMap().get(avatar.getAvatarId()); + if (avatarData == null) { + continue; + } + + // Set ownerships + avatar.setAvatarData(avatarData); + avatar.setOwner(getPlayer()); + + // Force recalc of const boosted skills + avatar.recalcProudSkillBonusMap(); + + // Add to avatar storage + this.avatars.put(avatar.getAvatarId(), avatar); + this.avatarsGuid.put(avatar.getGuid(), avatar); + } + } + + public void postLoad() { + for (GenshinAvatar avatar : this) { + // Weapon check + if (avatar.getWeapon() == null) { + this.addStartingWeapon(avatar); + } + // Recalc stats + avatar.recalcStats(); + } + } + + @Override + public Iterator iterator() { + return getAvatars().values().iterator(); + } +} diff --git a/src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java b/src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java new file mode 100644 index 000000000..414c73cfa --- /dev/null +++ b/src/main/java/emu/grasscutter/game/avatar/GenshinAvatar.java @@ -0,0 +1,695 @@ +package emu.grasscutter.game.avatar; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +import org.bson.types.ObjectId; + +import dev.morphia.annotations.Entity; +import dev.morphia.annotations.Id; +import dev.morphia.annotations.Indexed; +import dev.morphia.annotations.PostLoad; +import dev.morphia.annotations.PrePersist; +import dev.morphia.annotations.Transient; +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.common.FightPropData; +import emu.grasscutter.data.custom.OpenConfigEntry; +import emu.grasscutter.data.def.AvatarData; +import emu.grasscutter.data.def.AvatarPromoteData; +import emu.grasscutter.data.def.AvatarSkillData; +import emu.grasscutter.data.def.AvatarSkillDepotData; +import emu.grasscutter.data.def.AvatarSkillDepotData.InherentProudSkillOpens; +import emu.grasscutter.data.def.AvatarTalentData; +import emu.grasscutter.data.def.EquipAffixData; +import emu.grasscutter.data.def.ReliquaryAffixData; +import emu.grasscutter.data.def.ReliquaryLevelData; +import emu.grasscutter.data.def.ReliquaryMainPropData; +import emu.grasscutter.data.def.ReliquarySetData; +import emu.grasscutter.data.def.WeaponCurveData; +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.props.ElementType; +import emu.grasscutter.game.props.EntityIdType; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo; +import emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo; +import emu.grasscutter.server.packet.send.PacketAvatarEquipChangeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarFightPropNotify; +import emu.grasscutter.utils.ProtoHelper; +import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +@Entity(value = "avatars", noClassnameStored = true) +public class GenshinAvatar { + @Id private ObjectId id; + @Indexed private int ownerId; // Id of player that this avatar belongs to + + @Transient private GenshinPlayer owner; + @Transient private AvatarData data; + @Transient private long guid; // Player unique id + private int avatarId; // Id of avatar + + private int level = 1; + private int exp; + private int promoteLevel; + private int satiation; // ? + private int satiationPenalty; // ? + private float currentHp; + + @Transient private final Int2ObjectMap equips; + @Transient private final Int2FloatOpenHashMap fightProp; + @Transient private final Set bonusAbilityList; + + private Map skillLevelMap; // Talent levels + private Map proudSkillBonusMap; // Talent bonus levels (from const) + private int skillDepotId; + private int coreProudSkillLevel; // Constellation level + private Set talentIdList; // Constellation id list + private Set proudSkillList; // Character passives + + private int flyCloak; + private int costume; + private int bornTime; + + public GenshinAvatar() { + // Morhpia only! + this.equips = new Int2ObjectOpenHashMap<>(); + this.fightProp = new Int2FloatOpenHashMap(); + this.bonusAbilityList = new HashSet<>(); + this.proudSkillBonusMap = new HashMap<>(); // TODO Move to genshin avatar + } + + // On creation + public GenshinAvatar(int avatarId) { + this(GenshinData.getAvatarDataMap().get(avatarId)); + } + + public GenshinAvatar(AvatarData data) { + this(); + this.avatarId = data.getId(); + this.data = data; + this.bornTime = (int) (System.currentTimeMillis() / 1000); + this.flyCloak = 140001; + + this.skillLevelMap = new HashMap<>(); + this.talentIdList = new HashSet<>(); + this.proudSkillList = new HashSet<>(); + + // Combat properties + for (FightProperty prop : FightProperty.values()) { + if (prop.getId() <= 0 || prop.getId() >= 3000) { + continue; + } + this.setFightProperty(prop, 0f); + } + + // Skill depot + this.setSkillDepot(getAvatarData().getSkillDepot()); + + // Set stats + this.recalcStats(); + this.currentHp = getFightProperty(FightProperty.FIGHT_PROP_MAX_HP); + setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, this.currentHp); + + // Load handler + this.onLoad(); + } + + public GenshinPlayer getPlayer() { + return this.owner; + } + + public ObjectId getObjectId() { + return id; + } + + public AvatarData getAvatarData() { + return data; + } + + protected void setAvatarData(AvatarData data) { + this.data = data; + } + + public int getOwnerId() { + return ownerId; + } + + public void setOwner(GenshinPlayer player) { + this.owner = player; + this.ownerId = player.getId(); + this.guid = player.getNextGuid(); + } + + public int getSatiation() { + return satiation; + } + + public void setSatiation(int satiation) { + this.satiation = satiation; + } + + public int getSatiationPenalty() { + return satiationPenalty; + } + + public void setSatiationPenalty(int satiationPenalty) { + this.satiationPenalty = satiationPenalty; + } + + public AvatarData getData() { + return data; + } + + public long getGuid() { + return guid; + } + + public int getAvatarId() { + return avatarId; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public int getExp() { + return exp; + } + + public void setExp(int exp) { + this.exp = exp; + } + + public int getPromoteLevel() { + return promoteLevel; + } + + public void setPromoteLevel(int promoteLevel) { + this.promoteLevel = promoteLevel; + } + + public Int2ObjectMap getEquips() { + return equips; + } + + public GenshinItem getEquipBySlot(EquipType slot) { + return this.getEquips().get(slot.getValue()); + } + + private GenshinItem getEquipBySlot(int slotId) { + return this.getEquips().get(slotId); + } + + public GenshinItem getWeapon() { + return this.getEquipBySlot(EquipType.EQUIP_WEAPON); + } + + public int getSkillDepotId() { + return skillDepotId; + } + + public void setSkillDepot(AvatarSkillDepotData skillDepot) { + // Set id + this.skillDepotId = skillDepot.getId(); + // Clear, then add skills + getSkillLevelMap().clear(); + if (skillDepot.getEnergySkill() > 0) { + getSkillLevelMap().put(skillDepot.getEnergySkill(), 1); + } + for (int skillId : skillDepot.getSkills()) { + if (skillId > 0) { + getSkillLevelMap().put(skillId, 1); + } + } + // Add proud skills + this.getProudSkillList().clear(); + for (InherentProudSkillOpens openData : skillDepot.getInherentProudSkillOpens()) { + if (openData.getProudSkillGroupId() == 0) { + continue; + } + if (openData.getNeedAvatarPromoteLevel() <= this.getPromoteLevel()) { + int proudSkillId = (openData.getProudSkillGroupId() * 100) + 1; + if (GenshinData.getProudSkillDataMap().containsKey(proudSkillId)) { + this.getProudSkillList().add(proudSkillId); + } + } + } + } + + public Map getSkillLevelMap() { + return skillLevelMap; + } + + public Map getProudSkillBonusMap() { + return proudSkillBonusMap; + } + + public Set getBonusAbilityList() { + return bonusAbilityList; + } + + public float getCurrentHp() { + return currentHp; + } + + public void setCurrentHp(float currentHp) { + this.currentHp = currentHp; + } + + public Int2FloatOpenHashMap getFightProperties() { + return fightProp; + } + + public void setFightProperty(FightProperty prop, float value) { + this.getFightProperties().put(prop.getId(), value); + } + + private void setFightProperty(int id, float value) { + this.getFightProperties().put(id, value); + } + + public void addFightProperty(FightProperty prop, float value) { + this.getFightProperties().put(prop.getId(), getFightProperty(prop) + value); + } + + public float getFightProperty(FightProperty prop) { + return getFightProperties().getOrDefault(prop.getId(), 0f); + } + + public Set getTalentIdList() { + return talentIdList; + } + + public int getCoreProudSkillLevel() { + return coreProudSkillLevel; + } + + public void setCoreProudSkillLevel(int constLevel) { + this.coreProudSkillLevel = constLevel; + } + + public Set getProudSkillList() { + return proudSkillList; + } + + public int getFlyCloak() { + return flyCloak; + } + + public void setFlyCloak(int flyCloak) { + this.flyCloak = flyCloak; + } + + public int getCostume() { + return costume; + } + + public void setCostume(int costume) { + this.costume = costume; + } + + public int getBornTime() { + return bornTime; + } + + public boolean equipItem(GenshinItem item, boolean shouldRecalc) { + EquipType itemEquipType = item.getItemData().getEquipType(); + if (itemEquipType == EquipType.EQUIP_NONE) { + return false; + } + + if (getEquips().containsKey(itemEquipType.getValue())) { + unequipItem(itemEquipType); + } + + getEquips().put(itemEquipType.getValue(), item); + + if (itemEquipType == EquipType.EQUIP_WEAPON && getPlayer().getWorld() != null) { + item.setWeaponEntityId(this.getPlayer().getWorld().getNextEntityId(EntityIdType.WEAPON)); + } + + item.setEquipCharacter(this.getAvatarId()); + item.save(); + + if (shouldRecalc) { + this.recalcStats(); + } + + if (this.getPlayer().hasSentAvatarDataNotify()) { + this.getPlayer().sendPacket(new PacketAvatarEquipChangeNotify(this, item)); + } + + return true; + } + + public boolean unequipItem(EquipType slot) { + GenshinItem item = getEquips().remove(slot.getValue()); + + if (item != null) { + item.setEquipCharacter(0); + item.save(); + return true; + } + + return false; + } + + public void recalcStats() { + // Setup + AvatarData data = this.getAvatarData(); + AvatarPromoteData promoteData = GenshinData.getAvatarPromoteData(data.getAvatarPromoteId(), this.getPromoteLevel()); + Int2IntOpenHashMap setMap = new Int2IntOpenHashMap(); + this.getBonusAbilityList().clear(); + + // Get hp percent, set to 100% if none + float hpPercent = this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) <= 0 ? 1f : this.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) / this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP); + + // Clear properties + this.getFightProperties().clear(); + + // Base stats + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_HP, data.getBaseHp(this.getLevel())); + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_ATTACK, data.getBaseAttack(this.getLevel())); + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_DEFENSE, data.getBaseDefense(this.getLevel())); + this.setFightProperty(FightProperty.FIGHT_PROP_CRITICAL, data.getBaseCritical()); + this.setFightProperty(FightProperty.FIGHT_PROP_CRITICAL_HURT, data.getBaseCriticalHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_CHARGE_EFFICIENCY, 1f); + + if (promoteData != null) { + for (FightPropData fightPropData : promoteData.getAddProps()) { + this.addFightProperty(fightPropData.getProp(), fightPropData.getValue()); + } + } + + // Set energy usage + if (data.getSkillDepot() != null && data.getSkillDepot().getEnergySkillData() != null) { + ElementType element = data.getSkillDepot().getElementType(); + this.setFightProperty(element.getEnergyProperty(), data.getSkillDepot().getEnergySkillData().getCostElemVal()); + this.setFightProperty((element.getEnergyProperty().getId() % 70) + 1000, data.getSkillDepot().getEnergySkillData().getCostElemVal()); + } + + // Artifacts + for (int slotId = 1; slotId <= 5; slotId++) { + // Get artifact + GenshinItem equip = this.getEquipBySlot(slotId); + if (equip == null) { + continue; + } + // Artifact main stat + ReliquaryMainPropData mainPropData = GenshinData.getReliquaryMainPropDataMap().get(equip.getMainPropId()); + if (mainPropData != null) { + ReliquaryLevelData levelData = GenshinData.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); + if (affixData != null) { + this.addFightProperty(affixData.getFightProp(), affixData.getPropValue()); + } + } + // Set bonus + if (equip.getItemData().getSetId() > 0) { + setMap.addTo(equip.getItemData().getSetId(), 1); + } + } + + // Set stuff + for (Int2IntOpenHashMap.Entry e : setMap.int2IntEntrySet()) { + ReliquarySetData setData = GenshinData.getReliquarySetDataMap().get(e.getIntKey()); + if (setData == null) { + continue; + } + + // Calculate how many items are from the set + int amount = e.getIntValue(); + + // Add affix data from set bonus + for (int setIndex = 0; setIndex < setData.getSetNeedNum().length; setIndex++) { + if (amount >= setData.getSetNeedNum()[setIndex]) { + int affixId = (setData.getEquipAffixId() * 10) + setIndex; + + EquipAffixData affix = GenshinData.getEquipAffixDataMap().get(affixId); + if (affix == null) { + continue; + } + + // Add properties from this affix to our avatar + for (FightPropData prop : affix.getAddProps()) { + this.addFightProperty(prop.getProp(), prop.getValue()); + } + + // Add any skill strings from this affix + this.addToAbilityList(affix.getOpenConfig(), true); + } else { + break; + } + } + } + + // Weapon + GenshinItem weapon = this.getWeapon(); + if (weapon != null) { + // Add stats + WeaponCurveData curveData = GenshinData.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()); + if (wepPromoteData != null) { + for (FightPropData prop : wepPromoteData.getAddProps()) { + if (prop.getValue() == 0f || prop.getProp() == null) { + continue; + } + this.addFightProperty(prop.getProp(), prop.getValue()); + } + } + // Add weapon skill from affixes + if (weapon.getAffixes() != null && weapon.getAffixes().size() > 0) { + // Weapons usually dont have more than one affix but just in case... + for (int af : weapon.getAffixes()) { + if (af == 0) { + continue; + } + // Calculate affix id + int affixId = (af * 10) + weapon.getRefinement(); + EquipAffixData affix = GenshinData.getEquipAffixDataMap().get(affixId); + if (affix == null) { + continue; + } + + // Add properties from this affix to our avatar + for (FightPropData prop : affix.getAddProps()) { + this.addFightProperty(prop.getProp(), prop.getValue()); + } + + // Add any skill strings from this affix + this.addToAbilityList(affix.getOpenConfig(), true); + } + } + } + + // Proud skills + for (int proudSkillId : this.getProudSkillList()) { + ProudSkillData proudSkillData = GenshinData.getProudSkillDataMap().get(proudSkillId); + if (proudSkillData == null) { + continue; + } + + // Add properties from this proud skill to our avatar + for (FightPropData prop : proudSkillData.getAddProps()) { + this.addFightProperty(prop.getProp(), prop.getValue()); + } + + // Add any skill strings from this proud skill + this.addToAbilityList(proudSkillData.getOpenConfig(), true); + } + + // Constellations + if (this.getTalentIdList().size() > 0) { + for (int talentId : this.getTalentIdList()) { + AvatarTalentData avatarTalentData = GenshinData.getAvatarTalentDataMap().get(talentId); + if (avatarTalentData == null) { + return; + } + + // Add any skill strings from this constellation + this.addToAbilityList(avatarTalentData.getOpenConfig(), false); + } + } + + // Set % stats + this.setFightProperty( + FightProperty.FIGHT_PROP_MAX_HP, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_HP) * (1f + getFightProperty(FightProperty.FIGHT_PROP_HP_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_HP) + ); + this.setFightProperty( + FightProperty.FIGHT_PROP_CUR_ATTACK, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_ATTACK) * (1f + getFightProperty(FightProperty.FIGHT_PROP_ATTACK_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_ATTACK) + ); + this.setFightProperty( + FightProperty.FIGHT_PROP_CUR_DEFENSE, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_DEFENSE) * (1f + getFightProperty(FightProperty.FIGHT_PROP_DEFENSE_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_DEFENSE) + ); + + // Set current hp + this.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * hpPercent); + + // Packet + if (getPlayer() != null && getPlayer().hasSentAvatarDataNotify()) { + getPlayer().sendPacket(new PacketAvatarFightPropNotify(this)); + } + } + + public void addToAbilityList(String openConfig, boolean forceAdd) { + if (openConfig == null || openConfig.length() == 0) { + return; + } + + OpenConfigEntry entry = GenshinData.getOpenConfigEntries().get(openConfig); + if (entry == null) { + if (forceAdd) { + // Add config string to ability skill list anyways + this.getBonusAbilityList().add(openConfig); + } + return; + } + + if (entry.getAddAbilities() != null) { + for (String ability : entry.getAddAbilities()) { + this.getBonusAbilityList().add(ability); + } + } + } + + public void recalcProudSkillBonusMap() { + // Clear first + this.getProudSkillBonusMap().clear(); + + // Sanity checks + if (getData() == null || getData().getSkillDepot() == null) { + return; + } + + if (this.getTalentIdList().size() > 0) { + for (int talentId : this.getTalentIdList()) { + AvatarTalentData avatarTalentData = GenshinData.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()); + if (entry == null) { + continue; + } + + int skillId = 0; + + if (entry.getExtraTalentIndex() == 2 && this.getData().getSkillDepot().getSkills().size() >= 2) { + // E skill + skillId = this.getData().getSkillDepot().getSkills().get(1); + } else if (entry.getExtraTalentIndex() == 9) { + // Ult skill + skillId = this.getData().getSkillDepot().getEnergySkill(); + } + + // Sanity check + if (skillId == 0) { + continue; + } + + // Get proud skill group id + AvatarSkillData skillData = GenshinData.getAvatarSkillDataMap().get(skillId); + + if (skillData == null) { + continue; + } + + // Add to bonus list + this.getProudSkillBonusMap().put(skillData.getProudSkillGroupId(), 3); + } + } + } + + public EntityAvatar getAsEntity() { + for (EntityAvatar entity : getPlayer().getTeamManager().getActiveTeam()) { + if (entity.getAvatar() == this) { + return entity; + } + } + return null; + } + + public int getEntityId() { + EntityAvatar entity = getAsEntity(); + return entity != null ? entity.getId() : 0; + } + + public void save() { + DatabaseHelper.saveAvatar(this); + } + + public AvatarInfo toProto() { + AvatarInfo.Builder avatarInfo = AvatarInfo.newBuilder() + .setAvatarId(this.getAvatarId()) + .setGuid(this.getGuid()) + .setLifeState(1) + .addAllTalentIdList(this.getTalentIdList()) + .putAllFightPropMap(this.getFightProperties()) + .setSkillDepotId(this.getSkillDepotId()) + .setCoreProudSkillLevel(this.getCoreProudSkillLevel()) + .putAllSkillLevelMap(this.getSkillLevelMap()) + .addAllInherentProudSkillList(this.getProudSkillList()) + .putAllProudSkillExtraLevel(getProudSkillBonusMap()) + .setAvatarType(1) + .setBornTime(this.getBornTime()) + .setFetterInfo(AvatarFetterInfo.newBuilder().setExpLevel(1)) + .setWearingFlycloakId(this.getFlyCloak()) + .setCostumeId(this.getCostume()); + + for (GenshinItem item : this.getEquips().values()) { + avatarInfo.addEquipGuidList(item.getGuid()); + } + + avatarInfo.putPropMap(PlayerProperty.PROP_LEVEL.getId(), ProtoHelper.newPropValue(PlayerProperty.PROP_LEVEL, this.getLevel())); + avatarInfo.putPropMap(PlayerProperty.PROP_EXP.getId(), ProtoHelper.newPropValue(PlayerProperty.PROP_EXP, this.getExp())); + avatarInfo.putPropMap(PlayerProperty.PROP_BREAK_LEVEL.getId(), ProtoHelper.newPropValue(PlayerProperty.PROP_BREAK_LEVEL, this.getPromoteLevel())); + avatarInfo.putPropMap(PlayerProperty.PROP_SATIATION_VAL.getId(), ProtoHelper.newPropValue(PlayerProperty.PROP_SATIATION_VAL, 0)); + avatarInfo.putPropMap(PlayerProperty.PROP_SATIATION_PENALTY_TIME.getId(), ProtoHelper.newPropValue(PlayerProperty.PROP_SATIATION_PENALTY_TIME, 0)); + + return avatarInfo.build(); + } + + @PostLoad + private void onLoad() { + + } + + @PrePersist + private void prePersist() { + this.currentHp = this.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP); + } +} diff --git a/src/main/java/emu/grasscutter/game/dungeons/DungeonManager.java b/src/main/java/emu/grasscutter/game/dungeons/DungeonManager.java new file mode 100644 index 000000000..33bac7d09 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/dungeons/DungeonManager.java @@ -0,0 +1,15 @@ +package emu.grasscutter.game.dungeons; + +import emu.grasscutter.server.game.GameServer; + +public class DungeonManager { + private final GameServer server; + + public DungeonManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java new file mode 100644 index 000000000..a46fc26ce --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/EntityAvatar.java @@ -0,0 +1,239 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.def.AvatarData; +import emu.grasscutter.data.def.AvatarSkillDepotData; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.World; +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.inventory.EquipType; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.props.EntityIdType; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock; +import emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo; +import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; +import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; +import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; +import emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData; +import emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo; +import emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair; +import emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType; +import emu.grasscutter.net.proto.PropPairOuterClass.PropPair; +import emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType; +import emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo; +import emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo; +import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; +import emu.grasscutter.net.proto.VectorOuterClass.Vector; +import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.ProtoHelper; +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; + + private PlayerDieType killedType; + private int killedBy; + + public EntityAvatar(World world, GenshinAvatar avatar) { + super(world); + this.avatar = avatar; + this.id = world.getNextEntityId(EntityIdType.AVATAR); + + GenshinItem weapon = this.getAvatar().getWeapon(); + if (weapon != null) { + weapon.setWeaponEntityId(world.getNextEntityId(EntityIdType.WEAPON)); + } + } + + public EntityAvatar(GenshinAvatar avatar) { + super(null); + this.avatar = avatar; + } + + public GenshinPlayer getPlayer() { + return avatar.getPlayer(); + } + + @Override + public Position getPosition() { + return getPlayer().getPos(); + } + + @Override + public Position getRotation() { + return getPlayer().getRotation(); + } + + public GenshinAvatar getAvatar() { + return avatar; + } + + public int getKilledBy() { + return killedBy; + } + + public PlayerDieType getKilledType() { + return killedType; + } + + @Override + public boolean isAlive() { + return this.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) > 0f; + } + + @Override + public Int2FloatOpenHashMap getFightProperties() { + return getAvatar().getFightProperties(); + } + + public int getWeaponEntityId() { + if (getAvatar().getWeapon() != null) { + return getAvatar().getWeapon().getWeaponEntityId(); + } + return 0; + } + + @Override + public void onDeath(int killerId) { + this.killedType = PlayerDieType.PlayerDieKillByMonster; + this.killedBy = killerId; + } + + public SceneAvatarInfo getSceneAvatarInfo() { + SceneAvatarInfo.Builder avatarInfo = SceneAvatarInfo.newBuilder() + .setPlayerId(this.getPlayer().getId()) + .setAvatarId(this.getAvatar().getAvatarId()) + .setGuid(this.getAvatar().getGuid()) + .setPeerId(this.getPlayer().getPeerId()) + .addAllTalentIdList(this.getAvatar().getTalentIdList()) + .setCoreProudSkillLevel(this.getAvatar().getCoreProudSkillLevel()) + .putAllSkillLevelMap(this.getAvatar().getSkillLevelMap()) + .setSkillDepotId(this.getAvatar().getSkillDepotId()) + .addAllInherentProudSkillList(this.getAvatar().getProudSkillList()) + .putAllProudSkillExtraLevelMap(this.getAvatar().getProudSkillBonusMap()) + .addAllTeamResonanceList(this.getAvatar().getPlayer().getTeamManager().getTeamResonances()) + .setWearingFlycloakId(this.getAvatar().getFlyCloak()) + .setCostumeId(this.getAvatar().getCostume()) + .setBornTime(this.getAvatar().getBornTime()); + + for (GenshinItem item : avatar.getEquips().values()) { + if (item.getItemData().getEquipType() == EquipType.EQUIP_WEAPON) { + avatarInfo.setWeapon(item.createSceneWeaponInfo()); + } else { + avatarInfo.addReliquaryList(item.createSceneReliquaryInfo()); + } + avatarInfo.addEquipIdList(item.getItemId()); + } + + return avatarInfo.build(); + } + + @Override + public SceneEntityInfo toProto() { + EntityAuthorityInfo authority = EntityAuthorityInfo.newBuilder() + .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setRendererChangedInfo(EntityRendererChangedInfo.newBuilder()) + .setAiInfo(SceneEntityAiInfo.newBuilder().setIsAiOpen(true).setBornPos(Vector.newBuilder())) + .setBornPos(Vector.newBuilder()) + .build(); + + SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() + .setEntityId(getId()) + .setEntityType(ProtEntityType.ProtEntityAvatar) + .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) + .setEntityClientData(EntityClientData.newBuilder()) + .setEntityAuthorityInfo(authority) + .setLastMoveSceneTimeMs(this.getLastMoveSceneTimeMs()) + .setLastMoveReliableSeq(this.getLastMoveReliableSeq()) + .setLifeState(this.getLifeState().getValue()); + + if (this.getWorld() != null) { + entityInfo.setMotionInfo(this.getMotionInfo()); + } + + for (Int2FloatMap.Entry entry : getFightProperties().int2FloatEntrySet()) { + if (entry.getIntKey() == 0) { + continue; + } + FightPropPair fightProp = FightPropPair.newBuilder().setType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); + entityInfo.addFightPropList(fightProp); + } + + PropPair pair = PropPair.newBuilder() + .setType(PlayerProperty.PROP_LEVEL.getId()) + .setPropValue(ProtoHelper.newPropValue(PlayerProperty.PROP_LEVEL, getAvatar().getLevel())) + .build(); + entityInfo.addPropList(pair); + + entityInfo.setAvatar(this.getSceneAvatarInfo()); + + return entityInfo.build(); + } + + public AbilityControlBlock getAbilityControlBlock() { + AvatarData data = this.getAvatar().getAvatarData(); + AbilityControlBlock.Builder abilityControlBlock = AbilityControlBlock.newBuilder(); + int embryoId = 0; + + // Add avatar abilities + if (data.getAbilities() != null) { + for (int id : data.getAbilities()) { + AbilityEmbryo emb = AbilityEmbryo.newBuilder() + .setAbilityId(++embryoId) + .setAbilityNameHash(id) + .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .build(); + abilityControlBlock.addAbilityEmbryoList(emb); + } + } + // Add default abilities + for (int id : GenshinConstants.DEFAULT_ABILITY_HASHES) { + AbilityEmbryo emb = AbilityEmbryo.newBuilder() + .setAbilityId(++embryoId) + .setAbilityNameHash(id) + .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .build(); + abilityControlBlock.addAbilityEmbryoList(emb); + } + // Add team resonances + for (int id : this.getPlayer().getTeamManager().getTeamResonancesConfig()) { + AbilityEmbryo emb = AbilityEmbryo.newBuilder() + .setAbilityId(++embryoId) + .setAbilityNameHash(id) + .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .build(); + abilityControlBlock.addAbilityEmbryoList(emb); + } + // Add skill depot abilities + AvatarSkillDepotData skillDepot = GenshinData.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) + .build(); + abilityControlBlock.addAbilityEmbryoList(emb); + } + } + // Add equip abilities + if (this.getAvatar().getBonusAbilityList().size() > 0) { + for (String skill : this.getAvatar().getBonusAbilityList()) { + AbilityEmbryo emb = AbilityEmbryo.newBuilder() + .setAbilityId(++embryoId) + .setAbilityNameHash(Utils.abilityHash(skill)) + .setAbilityOverrideNameHash(GenshinConstants.DEFAULT_ABILITY_NAME) + .build(); + abilityControlBlock.addAbilityEmbryoList(emb); + } + } + + // + return abilityControlBlock.build(); + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java b/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java new file mode 100644 index 000000000..4abd982f2 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/EntityClientGadget.java @@ -0,0 +1,147 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.World; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; +import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; +import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; +import emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData; +import emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo; +import emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify; +import emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam; +import emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo; +import emu.grasscutter.net.proto.PropPairOuterClass.PropPair; +import emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType; +import emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo; +import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; +import emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo; +import emu.grasscutter.net.proto.VectorOuterClass.Vector; +import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.ProtoHelper; +import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; + +public class EntityClientGadget extends EntityGadget { + private final GenshinPlayer owner; + + private final Position pos; + private final Position rot; + + private int configId; + private int campId; + private int campType; + private int ownerEntityId; + private int targetEntityId; + private boolean asyncLoad; + + public EntityClientGadget(World world, GenshinPlayer player, EvtCreateGadgetNotify notify) { + super(world); + this.owner = player; + this.id = notify.getEntityId(); + this.pos = new Position(notify.getInitPos()); + this.rot = new Position(notify.getInitEulerAngles()); + this.configId = notify.getConfigId(); + this.campId = notify.getCampId(); + this.campType = notify.getCampType(); + this.ownerEntityId = notify.getPropOwnerEntityId(); + this.targetEntityId = notify.getTargetEntityId(); + this.asyncLoad = notify.getIsAsyncLoad(); + } + + @Override + public int getGadgetId() { + return configId; + } + + public GenshinPlayer getOwner() { + return owner; + } + + public int getCampId() { + return campId; + } + + public int getCampType() { + return campType; + } + + public int getOwnerEntityId() { + return ownerEntityId; + } + + public int getTargetEntityId() { + return targetEntityId; + } + + public boolean isAsyncLoad() { + return this.asyncLoad; + } + + @Override + public void onDeath(int killerId) { + + } + + @Override + public Int2FloatOpenHashMap getFightProperties() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Position getPosition() { + // TODO Auto-generated method stub + return this.pos; + } + + @Override + public Position getRotation() { + // TODO Auto-generated method stub + return this.rot; + } + + @Override + public SceneEntityInfo toProto() { + EntityAuthorityInfo authority = EntityAuthorityInfo.newBuilder() + .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setRendererChangedInfo(EntityRendererChangedInfo.newBuilder()) + .setAiInfo(SceneEntityAiInfo.newBuilder().setIsAiOpen(true).setBornPos(Vector.newBuilder())) + .setBornPos(Vector.newBuilder()) + .build(); + + SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() + .setEntityId(getId()) + .setEntityType(ProtEntityType.ProtEntityGadget) + .setMotionInfo(MotionInfo.newBuilder().setPos(getPosition().toProto()).setRot(getRotation().toProto()).setSpeed(Vector.newBuilder())) + .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) + .setEntityClientData(EntityClientData.newBuilder()) + .setEntityAuthorityInfo(authority) + .setLifeState(1); + + PropPair pair = PropPair.newBuilder() + .setType(PlayerProperty.PROP_LEVEL.getId()) + .setPropValue(ProtoHelper.newPropValue(PlayerProperty.PROP_LEVEL, 1)) + .build(); + entityInfo.addPropList(pair); + + GadgetClientParam clientGadget = GadgetClientParam.newBuilder() + .setCampId(this.getCampId()) + .setCampType(this.getCampType()) + .setOwnerEntityId(this.getOwnerEntityId()) + .setTargetEntityId(this.getTargetEntityId()) + .setAsyncLoad(this.isAsyncLoad()) + .build(); + + SceneGadgetInfo.Builder gadgetInfo = SceneGadgetInfo.newBuilder() + .setGadgetId(this.getGadgetId()) + .setOwnerEntityId(this.getOwnerEntityId()) + .setIsEnableInteract(true) + .setClientGadget(clientGadget) + .setPropOwnerEntityId(this.getOwnerEntityId()) + .setAuthorityPeerId(this.getOwner().getPeerId()); + + entityInfo.setGadget(gadgetInfo); + + return entityInfo.build(); + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/EntityGadget.java b/src/main/java/emu/grasscutter/game/entity/EntityGadget.java new file mode 100644 index 000000000..da7040b13 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/EntityGadget.java @@ -0,0 +1,17 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.game.World; + +public abstract class EntityGadget extends GenshinEntity { + + public EntityGadget(World world) { + super(world); + } + + public abstract int getGadgetId(); + + @Override + public void onDeath(int killerId) { + + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/EntityItem.java b/src/main/java/emu/grasscutter/game/entity/EntityItem.java new file mode 100644 index 000000000..b1938c75b --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/EntityItem.java @@ -0,0 +1,118 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.data.def.ItemData; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.World; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.props.EntityIdType; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; +import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; +import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; +import emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData; +import emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo; +import emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType; +import emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo; +import emu.grasscutter.net.proto.PropPairOuterClass.PropPair; +import emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType; +import emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo; +import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; +import emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo; +import emu.grasscutter.net.proto.VectorOuterClass.Vector; +import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.ProtoHelper; +import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; + +public class EntityItem extends EntityGadget { + private final Position pos; + private final Position rot; + + private final GenshinItem item; + private final long guid; + + public EntityItem(World world, GenshinPlayer player, ItemData itemData, Position pos, int count) { + super(world); + this.id = world.getNextEntityId(EntityIdType.GADGET); + this.pos = new Position(pos); + this.rot = new Position(); + this.guid = player.getNextGuid(); + this.item = new GenshinItem(itemData, count); + } + + @Override + public int getId() { + return this.id; + } + + private GenshinItem getItem() { + return this.item; + } + + public ItemData getItemData() { + return this.getItem().getItemData(); + } + + public long getGuid() { + return guid; + } + + public int getCount() { + return this.getItem().getCount(); + } + + @Override + public int getGadgetId() { + return this.getItemData().getGadgetId(); + } + + @Override + public Position getPosition() { + return this.pos; + } + + @Override + public Position getRotation() { + return this.rot; + } + + @Override + public Int2FloatOpenHashMap getFightProperties() { + return null; + } + + @Override + public SceneEntityInfo toProto() { + EntityAuthorityInfo authority = EntityAuthorityInfo.newBuilder() + .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setRendererChangedInfo(EntityRendererChangedInfo.newBuilder()) + .setAiInfo(SceneEntityAiInfo.newBuilder().setIsAiOpen(true).setBornPos(Vector.newBuilder())) + .setBornPos(Vector.newBuilder()) + .build(); + + SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() + .setEntityId(getId()) + .setEntityType(ProtEntityType.ProtEntityGadget) + .setMotionInfo(MotionInfo.newBuilder().setPos(getPosition().toProto()).setRot(getRotation().toProto()).setSpeed(Vector.newBuilder())) + .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) + .setEntityClientData(EntityClientData.newBuilder()) + .setEntityAuthorityInfo(authority) + .setLifeState(1); + + PropPair pair = PropPair.newBuilder() + .setType(PlayerProperty.PROP_LEVEL.getId()) + .setPropValue(ProtoHelper.newPropValue(PlayerProperty.PROP_LEVEL, 1)) + .build(); + entityInfo.addPropList(pair); + + SceneGadgetInfo.Builder gadgetInfo = SceneGadgetInfo.newBuilder() + .setGadgetId(this.getItemData().getGadgetId()) + .setTrifleItem(this.getItem().toProto()) + .setBornType(GadgetBornType.GadgetBornInAir) + .setAuthorityPeerId(this.getWorld().getHostPeerId()) + .setIsEnableInteract(true); + + entityInfo.setGadget(gadgetInfo); + + return entityInfo.build(); + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/EntityMonster.java b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java new file mode 100644 index 000000000..9dd4810b7 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/EntityMonster.java @@ -0,0 +1,219 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.common.PropGrowCurve; +import emu.grasscutter.data.def.MonsterCurveData; +import emu.grasscutter.data.def.MonsterData; +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.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; +import emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair; +import emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo; +import emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData; +import emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo; +import emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair; +import emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType; +import emu.grasscutter.net.proto.PropPairOuterClass.PropPair; +import emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType; +import emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo; +import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; +import emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo; +import emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo; +import emu.grasscutter.utils.Position; +import emu.grasscutter.utils.ProtoHelper; +import it.unimi.dsi.fastutil.ints.Int2FloatMap; +import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; + +public class EntityMonster extends GenshinEntity { + private final MonsterData monsterData; + private final Int2FloatOpenHashMap fightProp; + + private final Position pos; + private final Position rot; + private final Position bornPos; + private final int level; + private int weaponEntityId; + + public EntityMonster(World world, MonsterData monsterData, Position pos, int level) { + super(world); + this.id = world.getNextEntityId(EntityIdType.MONSTER); + this.monsterData = monsterData; + this.fightProp = new Int2FloatOpenHashMap(); + this.pos = new Position(pos); + this.rot = new Position(); + this.bornPos = getPosition().clone(); + this.level = level; + + // Monster weapon + if (getMonsterWeaponId() > 0) { + this.weaponEntityId = world.getNextEntityId(EntityIdType.WEAPON); + } + + this.recalcStats(); + } + + @Override + public int getId() { + return this.id; + } + + public MonsterData getMonsterData() { + return monsterData; + } + + public int getMonsterWeaponId() { + return getMonsterData().getWeaponId(); + } + + private int getMonsterId() { + return this.getMonsterData().getId(); + } + + public int getLevel() { + return level; + } + + @Override + public Position getPosition() { + return this.pos; + } + + @Override + public Position getRotation() { + return this.rot; + } + + public Position getBornPos() { + return bornPos; + } + + @Override + public Int2FloatOpenHashMap getFightProperties() { + return fightProp; + } + + @Override + public boolean isAlive() { + return this.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) > 0f; + } + + @Override + public void onDeath(int killerId) { + + } + + public void recalcStats() { + // Monster data + MonsterData data = this.getMonsterData(); + + // Get hp percent, set to 100% if none + float hpPercent = this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) <= 0 ? 1f : this.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) / this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP); + + // Clear properties + this.getFightProperties().clear(); + + // Base stats + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_HP, data.getBaseHp()); + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_ATTACK, data.getBaseAttack()); + this.setFightProperty(FightProperty.FIGHT_PROP_BASE_DEFENSE, data.getBaseDefense()); + + this.setFightProperty(FightProperty.FIGHT_PROP_PHYSICAL_SUB_HURT, data.getPhysicalSubHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_FIRE_SUB_HURT, .1f); + this.setFightProperty(FightProperty.FIGHT_PROP_ELEC_SUB_HURT, data.getElecSubHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_WATER_SUB_HURT, data.getWaterSubHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_GRASS_SUB_HURT, data.getGrassSubHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_WIND_SUB_HURT, data.getWindSubHurt()); + this.setFightProperty(FightProperty.FIGHT_PROP_ROCK_SUB_HURT, .1f); + this.setFightProperty(FightProperty.FIGHT_PROP_ICE_SUB_HURT, data.getIceSubHurt()); + + // Level curve + MonsterCurveData curve = GenshinData.getMonsterCurveDataMap().get(this.getLevel()); + if (curve != null) { + for (PropGrowCurve growCurve : data.getPropGrowCurves()) { + FightProperty prop = FightProperty.getPropByName(growCurve.getType()); + this.setFightProperty(prop, this.getFightProperty(prop) * curve.getMultByProp(growCurve.getGrowCurve())); + } + } + + // Set % stats + this.setFightProperty( + FightProperty.FIGHT_PROP_MAX_HP, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_HP) * (1f + getFightProperty(FightProperty.FIGHT_PROP_HP_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_HP) + ); + this.setFightProperty( + FightProperty.FIGHT_PROP_CUR_ATTACK, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_ATTACK) * (1f + getFightProperty(FightProperty.FIGHT_PROP_ATTACK_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_ATTACK) + ); + this.setFightProperty( + FightProperty.FIGHT_PROP_CUR_DEFENSE, + (getFightProperty(FightProperty.FIGHT_PROP_BASE_DEFENSE) * (1f + getFightProperty(FightProperty.FIGHT_PROP_DEFENSE_PERCENT))) + getFightProperty(FightProperty.FIGHT_PROP_DEFENSE) + ); + + // Set current hp + this.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * hpPercent); + } + + @Override + public SceneEntityInfo toProto() { + EntityAuthorityInfo authority = EntityAuthorityInfo.newBuilder() + .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setRendererChangedInfo(EntityRendererChangedInfo.newBuilder()) + .setAiInfo(SceneEntityAiInfo.newBuilder().setIsAiOpen(true).setBornPos(this.getBornPos().toProto())) + .setBornPos(this.getBornPos().toProto()) + .build(); + + SceneEntityInfo.Builder entityInfo = SceneEntityInfo.newBuilder() + .setEntityId(getId()) + .setEntityType(ProtEntityType.ProtEntityMonster) + .setMotionInfo(this.getMotionInfo()) + .addAnimatorParaList(AnimatorParameterValueInfoPair.newBuilder()) + .setEntityClientData(EntityClientData.newBuilder()) + .setEntityAuthorityInfo(authority) + .setLifeState(this.getLifeState().getValue()); + + for (Int2FloatMap.Entry entry : getFightProperties().int2FloatEntrySet()) { + if (entry.getIntKey() == 0) { + continue; + } + FightPropPair fightProp = FightPropPair.newBuilder().setType(entry.getIntKey()).setPropValue(entry.getFloatValue()).build(); + entityInfo.addFightPropList(fightProp); + } + + PropPair pair = PropPair.newBuilder() + .setType(PlayerProperty.PROP_LEVEL.getId()) + .setPropValue(ProtoHelper.newPropValue(PlayerProperty.PROP_LEVEL, getLevel())) + .build(); + entityInfo.addPropList(pair); + + SceneMonsterInfo.Builder monsterInfo = SceneMonsterInfo.newBuilder() + .setMonsterId(getMonsterId()) + .setGroupId(133003095) + .setConfigId(95001) + .addAllAffixList(getMonsterData().getAffix()) + .setAuthorityPeerId(getWorld().getHostPeerId()) + .setPoseId(0) + .setBlockId(3001) + .setBornType(MonsterBornType.MonsterBornDefault) + .setSpecialNameId(40); + + if (getMonsterData().getDescribeData() != null) { + monsterInfo.setTitleId(getMonsterData().getDescribeData().getTitleID()); + } + + if (this.getMonsterWeaponId() > 0) { + SceneWeaponInfo weaponInfo = SceneWeaponInfo.newBuilder() + .setEntityId(this.weaponEntityId) + .setGadgetId(this.getMonsterWeaponId()) + .setAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .build(); + + monsterInfo.setWeaponList(weaponInfo); + } + + entityInfo.setMonster(monsterInfo); + + return entityInfo.build(); + } +} diff --git a/src/main/java/emu/grasscutter/game/entity/GenshinEntity.java b/src/main/java/emu/grasscutter/game/entity/GenshinEntity.java new file mode 100644 index 000000000..c3de3069b --- /dev/null +++ b/src/main/java/emu/grasscutter/game/entity/GenshinEntity.java @@ -0,0 +1,102 @@ +package emu.grasscutter.game.entity; + +import emu.grasscutter.game.World; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.game.props.LifeState; +import emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo; +import emu.grasscutter.net.proto.MotionStateOuterClass.MotionState; +import emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo; +import emu.grasscutter.net.proto.VectorOuterClass.Vector; +import emu.grasscutter.utils.Position; +import it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap; + +public abstract class GenshinEntity { + protected int id; + private final World world; + + private MotionState moveState; + private int lastMoveSceneTimeMs; + private int lastMoveReliableSeq; + + public GenshinEntity(World world) { + this.world = world; + this.moveState = MotionState.MotionNone; + } + + public int getId() { + return this.id; + } + + public World getWorld() { + return world; + } + + public boolean isAlive() { + return true; + } + + public LifeState getLifeState() { + return isAlive() ? LifeState.LIFE_ALIVE : LifeState.LIFE_DEAD; + } + + public abstract Int2FloatOpenHashMap getFightProperties(); + + public abstract Position getPosition(); + + public abstract Position getRotation(); + + public MotionState getMotionState() { + return moveState; + } + + public void setMotionState(MotionState moveState) { + this.moveState = moveState; + } + + public int getLastMoveSceneTimeMs() { + return lastMoveSceneTimeMs; + } + + public void setLastMoveSceneTimeMs(int lastMoveSceneTimeMs) { + this.lastMoveSceneTimeMs = lastMoveSceneTimeMs; + } + + public int getLastMoveReliableSeq() { + return lastMoveReliableSeq; + } + + public void setLastMoveReliableSeq(int lastMoveReliableSeq) { + this.lastMoveReliableSeq = lastMoveReliableSeq; + } + + public abstract SceneEntityInfo toProto(); + + public abstract void onDeath(int killerId); + + public void setFightProperty(FightProperty prop, float value) { + this.getFightProperties().put(prop.getId(), value); + } + + private void setFightProperty(int id, float value) { + this.getFightProperties().put(id, value); + } + + public void addFightProperty(FightProperty prop, float value) { + this.getFightProperties().put(prop.getId(), getFightProperty(prop) + value); + } + + public float getFightProperty(FightProperty prop) { + return getFightProperties().getOrDefault(prop.getId(), 0f); + } + + protected MotionInfo getMotionInfo() { + MotionInfo proto = MotionInfo.newBuilder() + .setPos(getPosition().toProto()) + .setRot(getRotation().toProto()) + .setSpeed(Vector.newBuilder()) + .setState(this.getMotionState()) + .build(); + + return proto; + } +} diff --git a/src/main/java/emu/grasscutter/game/friends/FriendsList.java b/src/main/java/emu/grasscutter/game/friends/FriendsList.java new file mode 100644 index 000000000..26c65f26a --- /dev/null +++ b/src/main/java/emu/grasscutter/game/friends/FriendsList.java @@ -0,0 +1,262 @@ +package emu.grasscutter.game.friends; + +import java.util.List; + +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType; +import emu.grasscutter.server.packet.send.PacketAskAddFriendNotify; +import emu.grasscutter.server.packet.send.PacketAskAddFriendRsp; +import emu.grasscutter.server.packet.send.PacketDealAddFriendRsp; +import emu.grasscutter.server.packet.send.PacketDeleteFriendNotify; +import emu.grasscutter.server.packet.send.PacketDeleteFriendRsp; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class FriendsList { + private final GenshinPlayer player; + + private final Int2ObjectMap friends; + private final Int2ObjectMap pendingFriends; + + private boolean loaded = false; + + public FriendsList(GenshinPlayer player) { + this.player = player; + this.friends = new Int2ObjectOpenHashMap(); + this.pendingFriends = new Int2ObjectOpenHashMap(); + } + + public GenshinPlayer getPlayer() { + return player; + } + + public boolean hasLoaded() { + return loaded; + } + + public synchronized Int2ObjectMap getFriends() { + return friends; + } + + public synchronized Int2ObjectMap getPendingFriends() { + return this.pendingFriends; + } + + public synchronized boolean isFriendsWith(int uid) { + return this.getFriends().containsKey(uid); + } + + private synchronized Friendship getFriendshipById(int id) { + Friendship friendship = this.getFriends().get(id); + if (friendship == null) { + friendship = this.getPendingFriendById(id); + } + return friendship; + } + + private synchronized Friendship getFriendById(int id) { + return this.getFriends().get(id); + } + + private synchronized Friendship getPendingFriendById(int id) { + return this.getPendingFriends().get(id); + } + + public void addFriend(Friendship friendship) { + getFriends().put(friendship.getFriendId(), friendship); + } + + public void addPendingFriend(Friendship friendship) { + getPendingFriends().put(friendship.getFriendId(), friendship); + } + + public synchronized void handleFriendRequest(int targetUid, DealAddFriendResultType result) { + // Check if player has sent friend request + Friendship myFriendship = this.getPendingFriendById(targetUid); + if (myFriendship == null) { + return; + } + + // Make sure asker cant do anything + if (myFriendship.getAskerId() == this.getPlayer().getId()) { + return; + } + + GenshinPlayer target = getPlayer().getSession().getServer().forceGetPlayerById(targetUid); + if (target == null) { + return; // Should never happen + } + + // Get target's friendship + Friendship theirFriendship = null; + if (target.isOnline()) { + theirFriendship = target.getFriendsList().getPendingFriendById(this.getPlayer().getId()); + } else { + theirFriendship = DatabaseHelper.getReverseFriendship(myFriendship); + } + + if (theirFriendship == null) { + // They dont have us on their friends list anymore, rip + this.getPendingFriends().remove(myFriendship.getOwnerId()); + myFriendship.delete(); + return; + } + + // Handle + if (result == DealAddFriendResultType.DealAddFriendAccept) { // Request accepted + myFriendship.setIsFriend(true); + theirFriendship.setIsFriend(true); + + this.getPendingFriends().remove(myFriendship.getOwnerId()); + this.addFriend(myFriendship); + + if (target.isOnline()) { + target.getFriendsList().getPendingFriends().remove(this.getPlayer().getId()); + target.getFriendsList().addFriend(theirFriendship); + } + + myFriendship.save(); + theirFriendship.save(); + } else { // Request declined + // Delete from my pending friends + this.getPendingFriends().remove(myFriendship.getOwnerId()); + myFriendship.delete(); + // Delete from target uid + if (target.isOnline()) { + theirFriendship = target.getFriendsList().getPendingFriendById(this.getPlayer().getId()); + } + theirFriendship.delete(); + } + + // Packet + this.getPlayer().sendPacket(new PacketDealAddFriendRsp(targetUid, result)); + } + + public synchronized void deleteFriend(int targetUid) { + Friendship myFriendship = this.getFriendById(targetUid); + if (myFriendship == null) { + return; + } + + this.getFriends().remove(targetUid); + myFriendship.delete(); + + Friendship theirFriendship = null; + GenshinPlayer friend = myFriendship.getFriendProfile().getPlayer(); + if (friend != null) { + // Friend online + theirFriendship = friend.getFriendsList().getFriendById(this.getPlayer().getId()); + if (theirFriendship != null) { + friend.getFriendsList().getFriends().remove(theirFriendship.getFriendId()); + theirFriendship.delete(); + friend.sendPacket(new PacketDeleteFriendNotify(theirFriendship.getFriendId())); + } + } else { + // Friend offline + theirFriendship = DatabaseHelper.getReverseFriendship(myFriendship); + if (theirFriendship != null) { + theirFriendship.delete(); + } + } + + // Packet + this.getPlayer().sendPacket(new PacketDeleteFriendRsp(targetUid)); + } + + public synchronized void sendFriendRequest(int targetUid) { + GenshinPlayer target = getPlayer().getSession().getServer().forceGetPlayerById(targetUid); + + if (target == null || target == this.getPlayer()) { + return; + } + + // Check if friend already exists + if (this.getPendingFriends().containsKey(targetUid) || this.getFriends().containsKey(targetUid)) { + return; + } + + // Create friendships + Friendship myFriendship = new Friendship(getPlayer(), target, getPlayer()); + Friendship theirFriendship = new Friendship(target, getPlayer(), getPlayer()); + + // Add pending lists + this.addPendingFriend(myFriendship); + + if (target.isOnline() && target.getFriendsList().hasLoaded()) { + target.getFriendsList().addPendingFriend(theirFriendship); + target.sendPacket(new PacketAskAddFriendNotify(theirFriendship)); + } + + // Save + myFriendship.save(); + theirFriendship.save(); + + // Packets + this.getPlayer().sendPacket(new PacketAskAddFriendRsp(targetUid)); + } + + /** Gets total amount of potential friends + * */ + public int getFullFriendCount() { + return this.getPendingFriends().size() + this.getFriends().size(); + } + + public synchronized void loadFromDatabase() { + if (this.hasLoaded()) { + return; + } + + // Get friendships from the db + List friendships = DatabaseHelper.getFriends(player); + friendships.forEach(this::loadFriendFromDatabase); + + // Set loaded flag + this.loaded = true; + } + + private void loadFriendFromDatabase(Friendship friendship) { + // Set friendship owner + friendship.setOwner(getPlayer()); + + // Check if friend is online + GenshinPlayer friend = getPlayer().getSession().getServer().getPlayerById(friendship.getFriendProfile().getId()); + if (friend != null) { + // Set friend to online mode + friendship.setFriendProfile(friend); + + // Update our status on friend's client if theyre online + if (friend.getFriendsList().hasLoaded()) { + Friendship theirFriendship = friend.getFriendsList().getFriendshipById(getPlayer().getId()); + if (theirFriendship != null) { + // Update friend profile + theirFriendship.setFriendProfile(getPlayer()); + } else { + // They dont have us on their friends list anymore, rip + friendship.delete(); + return; + } + } + } + + // Finally, load to our friends list + if (friendship.isFriend()) { + getFriends().put(friendship.getFriendId(), friendship); + } else { + getPendingFriends().put(friendship.getFriendId(), friendship); + // TODO - Hacky fix to force client to see a notification for a friendship + if (getPendingFriends().size() == 1) { + getPlayer().getSession().send(new PacketAskAddFriendNotify(friendship)); + } + } + } + + public void save() { + // Update all our friends + List friendships = DatabaseHelper.getReverseFriends(getPlayer()); + for (Friendship friend : friendships) { + friend.setFriendProfile(this.getPlayer()); + friend.save(); + } + } +} diff --git a/src/main/java/emu/grasscutter/game/friends/Friendship.java b/src/main/java/emu/grasscutter/game/friends/Friendship.java new file mode 100644 index 000000000..954ab318c --- /dev/null +++ b/src/main/java/emu/grasscutter/game/friends/Friendship.java @@ -0,0 +1,108 @@ +package emu.grasscutter.game.friends; + +import org.bson.types.ObjectId; + +import dev.morphia.annotations.*; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief; +import emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState; +import emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage; + +@Entity(value = "friendships", noClassnameStored = true) +public class Friendship { + @Id private ObjectId id; + + @Transient private GenshinPlayer owner; + + @Indexed private int ownerId; + @Indexed private int friendId; + private boolean isFriend; + private int askerId; + + private PlayerProfile profile; + + @Deprecated // Morphia use only + public Friendship() { } + + public Friendship(GenshinPlayer owner, GenshinPlayer friend, GenshinPlayer asker) { + this.setOwner(owner); + this.ownerId = owner.getId(); + this.friendId = friend.getId(); + this.profile = friend.getProfile(); + this.askerId = asker.getId(); + } + + public GenshinPlayer getOwner() { + return owner; + } + + public void setOwner(GenshinPlayer owner) { + this.owner = owner; + } + + public boolean isFriend() { + return isFriend; + } + + public void setIsFriend(boolean b) { + this.isFriend = b; + } + + public int getOwnerId() { + return ownerId; + } + + public int getFriendId() { + return friendId; + } + + public int getAskerId() { + return askerId; + } + + public void setAskerId(int askerId) { + this.askerId = askerId; + } + + public PlayerProfile getFriendProfile() { + return profile; + } + + public void setFriendProfile(GenshinPlayer character) { + if (character == null || this.friendId != character.getId()) return; + this.profile = character.getProfile(); + } + + public boolean isOnline() { + return getFriendProfile().getPlayer() != null; + } + + public void save() { + DatabaseHelper.saveFriendship(this); + } + + public void delete() { + DatabaseHelper.deleteFriendship(this); + } + + public FriendBrief toProto() { + FriendBrief proto = FriendBrief.newBuilder() + .setUid(getFriendProfile().getId()) + .setNickname(getFriendProfile().getName()) + .setLevel(getFriendProfile().getPlayerLevel()) + .setAvatar(HeadImage.newBuilder().setAvatarId(getFriendProfile().getAvatarId())) + .setWorldLevel(getFriendProfile().getWorldLevel()) + .setSignature(getFriendProfile().getSignature()) + .setOnlineState(getFriendProfile().isOnline() ? FriendOnlineState.FRIEND_ONLINE : FriendOnlineState.FRIEND_DISCONNECT) + .setIsMpModeAvailable(true) + .setLastActiveTime(getFriendProfile().getLastActiveTime()) + .setNameCardId(getFriendProfile().getNameCard()) + .setParam(getFriendProfile().getDaysSinceLogin()) + .setUnk1(1) + .setUnk2(3) + .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 new file mode 100644 index 000000000..647557e0c --- /dev/null +++ b/src/main/java/emu/grasscutter/game/friends/PlayerProfile.java @@ -0,0 +1,99 @@ +package emu.grasscutter.game.friends; + +import dev.morphia.annotations.*; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.utils.Utils; + +public class PlayerProfile { + @Transient private GenshinPlayer player; + + private int id; + private int nameCard; + private int avatarId; + private String name; + private String signature; + private int achievements; + + private int playerLevel; + private int worldLevel; + private int lastActiveTime; + + @Deprecated // Morphia only + public PlayerProfile() { } + + public PlayerProfile(GenshinPlayer player) { + this.id = player.getId(); + this.syncWithCharacter(player); + } + + public int getId() { + return id; + } + + public GenshinPlayer getPlayer() { + return player; + } + + public synchronized void setPlayer(GenshinPlayer player) { + this.player = player; + } + + public String getName() { + return name; + } + + public int getNameCard() { + return nameCard; + } + + public int getAvatarId() { + return avatarId; + } + + public String getSignature() { + return signature; + } + + public int getAchievements() { + return achievements; + } + + public int getPlayerLevel() { + return playerLevel; + } + + public int getWorldLevel() { + return worldLevel; + } + + public int getLastActiveTime() { + return lastActiveTime; + } + + public void updateLastActiveTime() { + this.lastActiveTime = Utils.getCurrentSeconds(); + } + + public int getDaysSinceLogin() { + return (int) Math.floor((Utils.getCurrentSeconds() - getLastActiveTime()) / 86400.0); + } + + public boolean isOnline() { + return this.getPlayer() != null; + } + + public void syncWithCharacter(GenshinPlayer player) { + if (player == null) { + return; + } + + this.name = player.getNickname(); + this.avatarId = player.getHeadImage(); + this.signature = player.getSignature(); + this.nameCard = player.getNameCardId(); + this.playerLevel = player.getLevel(); + this.worldLevel = player.getWorldLevel(); + //this.achievements = 0; + this.updateLastActiveTime(); + } +} diff --git a/src/main/java/emu/grasscutter/game/gacha/GachaBanner.java b/src/main/java/emu/grasscutter/game/gacha/GachaBanner.java new file mode 100644 index 000000000..43e9e120e --- /dev/null +++ b/src/main/java/emu/grasscutter/game/gacha/GachaBanner.java @@ -0,0 +1,150 @@ +package emu.grasscutter.game.gacha; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo; +import emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo; + +public class GachaBanner { + private int gachaType; + private int scheduleId; + private String prefabPath; + private String previewPrefabPath; + private String titlePath; + private int costItem; + private int beginTime; + private int endTime; + private int sortId; + private int[] rateUpItems1; + private int[] rateUpItems2; + private int minItemType = 1; + private int maxItemType = 2; + private int eventChance = 50; // Chance to win a featured event item + private int softPity = 75; + private int hardPity = 90; + private BannerType bannerType = BannerType.STANDARD; + + public int getGachaType() { + return gachaType; + } + + public BannerType getBannerType() { + return bannerType; + } + + public int getScheduleId() { + return scheduleId; + } + + public String getPrefabPath() { + return prefabPath; + } + + public String getPreviewPrefabPath() { + return previewPrefabPath; + } + + public String getTitlePath() { + return titlePath; + } + + public int getCostItem() { + return costItem; + } + + public int getBeginTime() { + return beginTime; + } + + public int getEndTime() { + return endTime; + } + + public int getSortId() { + return sortId; + } + + public int[] getRateUpItems1() { + return rateUpItems1; + } + + public int[] getRateUpItems2() { + return rateUpItems2; + } + + public int getMinItemType() { + return minItemType; + } + + public int getMaxItemType() { + return maxItemType; + } + + public int getSoftPity() { + return softPity - 1; + } + + public int getHardPity() { + return hardPity - 1; + } + + public int getEventChance() { + return eventChance; + } + + public GachaInfo toProto() { + String record = "http://" + Grasscutter.getConfig().DispatchServerIp + "/gacha"; + + GachaInfo.Builder info = GachaInfo.newBuilder() + .setGachaType(this.getGachaType()) + .setScheduleId(this.getScheduleId()) + .setBeginTime(this.getBeginTime()) + .setEndTime(this.getEndTime()) + .setCostItemId(this.getCostItem()) + .setCostItemNum(1) + .setGachaPrefabPath(this.getPrefabPath()) + .setGachaPreviewPrefabPath(this.getPreviewPrefabPath()) + .setGachaProbUrl(record) + .setGachaProbUrlOversea(record) + .setGachaRecordUrl(record) + .setGachaRecordUrlOversea(record) + .setTenCostItemId(this.getCostItem()) + .setTenCostItemNum(10) + .setLeftGachaTimes(Integer.MAX_VALUE) + .setGachaTimesLimit(Integer.MAX_VALUE) + .setGachaSortId(this.getSortId()); + + if (this.getTitlePath() != null) { + info.setGachaTitlePath(this.getTitlePath()); + } + + if (this.getRateUpItems1().length > 0) { + GachaUpInfo.Builder upInfo = GachaUpInfo.newBuilder().setItemParentType(1); + + for (int id : getRateUpItems1()) { + upInfo.addItemIdList(id); + info.addMainNameId(id); + } + + info.addGachaUpInfoList(upInfo); + } + + if (this.getRateUpItems2().length > 0) { + GachaUpInfo.Builder upInfo = GachaUpInfo.newBuilder().setItemParentType(2); + + for (int id : getRateUpItems2()) { + upInfo.addItemIdList(id); + if (info.getSubNameIdCount() == 0) { + info.addSubNameId(id); + } + } + + info.addGachaUpInfoList(upInfo); + } + + return info.build(); + } + + public enum BannerType { + STANDARD, EVENT, WEAPON; + } +} diff --git a/src/main/java/emu/grasscutter/game/gacha/GachaManager.java b/src/main/java/emu/grasscutter/game/gacha/GachaManager.java new file mode 100644 index 000000000..692e09264 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/gacha/GachaManager.java @@ -0,0 +1,287 @@ +package emu.grasscutter.game.gacha; + +import java.io.FileReader; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.ThreadLocalRandom; + +import com.google.gson.reflect.TypeToken; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.GenshinData; +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.inventory.ItemType; +import emu.grasscutter.game.inventory.MaterialType; +import emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem; +import emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem; +import emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.server.packet.send.PacketDoGachaRsp; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; +import it.unimi.dsi.fastutil.ints.IntArrayList; +import it.unimi.dsi.fastutil.ints.IntList; + +public class GachaManager { + private final GameServer server; + private final Int2ObjectMap gachaBanners; + private GetGachaInfoRsp cachedProto; + + private int[] yellowAvatars = new int[] {1003, 1016, 1042, 1035, 1041}; + private int[] yellowWeapons = new int[] {11501, 11502, 12501, 12502, 13502, 13505, 14501, 14502, 15501, 15502}; + private int[] purpleAvatars = new int[] {1006, 1014, 1015, 1020, 1021, 1023, 1024, 1025, 1027, 1031, 1032, 1034, 1036, 1039, 1043, 1044, 1045, 1048, 1053, 1055, 1056, 1064}; + private int[] purpleWeapons = new int[] {11401, 11402, 11403, 11405, 12401, 12402, 12403, 12405, 13401, 13407, 14401, 14402, 14403, 14409, 15401, 15402, 15403, 15405}; + private int[] blueWeapons = new int[] {11301, 11302, 11306, 12301, 12302, 12305, 13303, 14301, 14302, 14304, 15301, 15302, 15304}; + + private static int starglitterId = 221; + private static int stardustId = 222; + + public GachaManager(GameServer server) { + this.server = server; + this.gachaBanners = new Int2ObjectOpenHashMap<>(); + this.load(); + } + + public GameServer getServer() { + return server; + } + + public Int2ObjectMap getGachaBanners() { + return gachaBanners; + } + + public int randomRange(int min, int max) { + return ThreadLocalRandom.current().nextInt(max - min + 1) + min; + } + + public int getRandom(int[] array) { + return array[randomRange(0, array.length - 1)]; + } + + public synchronized void load() { + try (FileReader fileReader = new FileReader(Grasscutter.getConfig().DATA_FOLDER + "Banners.json")) { + List banners = Grasscutter.getGsonFactory().fromJson(fileReader, TypeToken.getParameterized(Collection.class, GachaBanner.class).getType()); + for (GachaBanner banner : banners) { + getGachaBanners().put(banner.getGachaType(), banner); + } + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + public synchronized void doPulls(GenshinPlayer player, int gachaType, int times) { + // Sanity check + if (times != 10 && times != 1) { + return; + } + if (player.getInventory().getInventoryTab(ItemType.ITEM_WEAPON).getSize() + times > player.getInventory().getInventoryTab(ItemType.ITEM_WEAPON).getMaxCapacity()) { + player.sendPacket(new PacketDoGachaRsp()); + return; + } + + // Get banner + GachaBanner banner = this.getGachaBanners().get(gachaType); + if (banner == null) { + player.sendPacket(new PacketDoGachaRsp()); + return; + } + + // Spend currency + if (banner.getCostItem() > 0) { + GenshinItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(banner.getCostItem()); + if (costItem == null || costItem.getCount() < times) { + return; + } + + player.getInventory().removeItem(costItem, times); + } + + // Roll + PlayerGachaBannerInfo gachaInfo = player.getGachaInfo().getBannerInfo(banner); + IntList wonItems = new IntArrayList(times); + + for (int i = 0; i < times; i++) { + int random = this.randomRange(1, 10000); + int itemId = 0; + + int bonusYellowChance = gachaInfo.getPity5() >= banner.getSoftPity() ? 100 * (gachaInfo.getPity5() - banner.getSoftPity() - 1): 0; + int yellowChance = 60 + (int) Math.floor(100f * (gachaInfo.getPity5() / (banner.getSoftPity() - 1D))) + bonusYellowChance; + int purpleChance = 10000 - (510 + (int) Math.floor(790f * (gachaInfo.getPity4() / 8f))); + + if (random <= yellowChance || gachaInfo.getPity5() >= banner.getHardPity()) { + if (banner.getRateUpItems1().length > 0) { + int eventChance = this.randomRange(1, 100); + + if (eventChance >= banner.getEventChance() || gachaInfo.getFailedFeaturedItemPulls() >= 1) { + itemId = getRandom(banner.getRateUpItems1()); + gachaInfo.setFailedFeaturedItemPulls(0); + } else { + // Lost the 50/50... rip + gachaInfo.addFailedFeaturedItemPulls(1); + } + } + + if (itemId == 0) { + int typeChance = this.randomRange(banner.getMinItemType(), banner.getMaxItemType()); + if (typeChance == 1) { + itemId = getRandom(this.yellowAvatars); + } else { + itemId = getRandom(this.yellowWeapons); + } + } + + // Pity + gachaInfo.addPity4(1); + gachaInfo.setPity5(0); + } else if (random >= purpleChance || gachaInfo.getPity4() >= 9) { + if (banner.getRateUpItems2().length > 0) { + int eventChance = this.randomRange(1, 100); + + if (eventChance >= 50) { + itemId = getRandom(banner.getRateUpItems2()); + } + } + + if (itemId == 0) { + int typeChance = this.randomRange(banner.getMinItemType(), banner.getMaxItemType()); + if (typeChance == 1) { + itemId = getRandom(this.purpleAvatars); + } else { + itemId = getRandom(this.purpleWeapons); + } + } + + // Pity + gachaInfo.addPity5(1); + gachaInfo.setPity4(0); + } else { + itemId = getRandom(this.blueWeapons); + + // Pity + gachaInfo.addPity4(1); + gachaInfo.addPity5(1); + } + + // Add winning item + wonItems.add(itemId); + } + + // Add to character + List list = new ArrayList<>(); + int stardust = 0, starglitter = 0; + + for (int itemId : wonItems) { + ItemData itemData = GenshinData.getItemDataMap().get(itemId); + if (itemData == null) { + continue; + } + + // Create gacha item + GachaItem.Builder gachaItem = GachaItem.newBuilder(); + int addStardust = 0, addStarglitter = 0; + boolean isTransferItem = false; + + // Const check + if (itemData.getMaterialType() == MaterialType.MATERIAL_AVATAR) { + int avatarId = (itemData.getId() % 1000) + 10000000; + GenshinAvatar 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); + if (constItem != null) { + constLevel += constItem.getCount(); + } + + if (constLevel < 6) { + // Not max const + addStarglitter = 2; + // Add 1 const + gachaItem.addTransferItems(GachaTransferItem.newBuilder().setItem(ItemParam.newBuilder().setItemId(constItemId).setCount(1)).setIsTransferItemNew(constItem == null)); + gachaItem.addTokenItemList(ItemParam.newBuilder().setItemId(constItemId).setCount(1)); + player.getInventory().addItem(constItemId, 1); + } else { + // Is max const + addStarglitter = 5; + } + + if (itemData.getRankLevel() == 5) { + addStarglitter *= 5; + } + + isTransferItem = true; + } else { + // New + gachaItem.setIsGachaItemNew(true); + } + } else { + // Is weapon + switch (itemData.getRankLevel()) { + case 5: + addStarglitter = 10; + break; + case 4: + addStarglitter = 2; + break; + case 3: + addStardust = 15; + break; + } + } + + // Create item + GenshinItem item = new GenshinItem(itemData); + gachaItem.setGachaItem(item.toItemParam()); + player.getInventory().addItem(item); + + stardust += addStardust; + starglitter += addStarglitter; + + if (addStardust > 0) { + gachaItem.addTokenItemList(ItemParam.newBuilder().setItemId(stardustId).setCount(addStardust)); + } if (addStarglitter > 0) { + ItemParam starglitterParam = ItemParam.newBuilder().setItemId(starglitterId).setCount(addStarglitter).build(); + if (isTransferItem) { + gachaItem.addTransferItems(GachaTransferItem.newBuilder().setItem(starglitterParam)); + } + gachaItem.addTokenItemList(starglitterParam); + } + + list.add(gachaItem.build()); + } + + // Add stardust/starglitter + if (stardust > 0) { + player.getInventory().addItem(stardustId, stardust); + } if (starglitter > 0) { + player.getInventory().addItem(starglitterId, starglitter); + } + + // Packets + player.sendPacket(new PacketDoGachaRsp(banner, list)); + } + + private synchronized GetGachaInfoRsp createProto() { + GetGachaInfoRsp.Builder proto = GetGachaInfoRsp.newBuilder().setGachaRandom(12345); + + for (GachaBanner banner : getGachaBanners().values()) { + proto.addGachaInfoList(banner.toProto()); + } + + return proto.build(); + } + + public GetGachaInfoRsp toProto() { + if (this.cachedProto == null) { + this.cachedProto = createProto(); + } + + return this.cachedProto; + } +} diff --git a/src/main/java/emu/grasscutter/game/gacha/PlayerGachaBannerInfo.java b/src/main/java/emu/grasscutter/game/gacha/PlayerGachaBannerInfo.java new file mode 100644 index 000000000..2e144226e --- /dev/null +++ b/src/main/java/emu/grasscutter/game/gacha/PlayerGachaBannerInfo.java @@ -0,0 +1,43 @@ +package emu.grasscutter.game.gacha; + +public class PlayerGachaBannerInfo { + private int pity5 = 0; + private int pity4 = 0; + private int failedFeaturedItemPulls = 0; + + public int getPity5() { + return pity5; + } + + public void setPity5(int pity5) { + this.pity5 = pity5; + } + + public void addPity5(int amount) { + this.pity5 += amount; + } + + public int getPity4() { + return pity4; + } + + public void setPity4(int pity4) { + this.pity4 = pity4; + } + + public void addPity4(int amount) { + this.pity4 += amount; + } + + public int getFailedFeaturedItemPulls() { + return failedFeaturedItemPulls; + } + + public void setFailedFeaturedItemPulls(int failedEventCharacterPulls) { + this.failedFeaturedItemPulls = failedEventCharacterPulls; + } + + public void addFailedFeaturedItemPulls(int amount) { + failedFeaturedItemPulls += amount; + } +} diff --git a/src/main/java/emu/grasscutter/game/gacha/PlayerGachaInfo.java b/src/main/java/emu/grasscutter/game/gacha/PlayerGachaInfo.java new file mode 100644 index 000000000..c3aabcb76 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/gacha/PlayerGachaInfo.java @@ -0,0 +1,37 @@ +package emu.grasscutter.game.gacha; + +public class PlayerGachaInfo { + private PlayerGachaBannerInfo standardBanner; + private PlayerGachaBannerInfo eventCharacterBanner; + private PlayerGachaBannerInfo eventWeaponBanner; + + public PlayerGachaInfo() { + this.standardBanner = new PlayerGachaBannerInfo(); + this.eventCharacterBanner = new PlayerGachaBannerInfo(); + this.eventWeaponBanner = new PlayerGachaBannerInfo(); + } + + public PlayerGachaBannerInfo getStandardBanner() { + return standardBanner; + } + + public PlayerGachaBannerInfo getEventCharacterBanner() { + return eventCharacterBanner; + } + + public PlayerGachaBannerInfo getEventWeaponBanner() { + return eventWeaponBanner; + } + + public PlayerGachaBannerInfo getBannerInfo(GachaBanner banner) { + switch (banner.getBannerType()) { + case EVENT: + return this.eventCharacterBanner; + case WEAPON: + return this.eventWeaponBanner; + case STANDARD: + default: + return this.standardBanner; + } + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java b/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java new file mode 100644 index 000000000..af33558c8 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/EquipInventoryTab.java @@ -0,0 +1,39 @@ +package emu.grasscutter.game.inventory; + +import java.util.HashSet; +import java.util.Set; + +public class EquipInventoryTab implements InventoryTab { + private final Set items; + private final int maxCapacity; + + public EquipInventoryTab(int maxCapacity) { + this.items = new HashSet(); + this.maxCapacity = maxCapacity; + } + + @Override + public GenshinItem getItemById(int id) { + return null; + } + + @Override + public void onAddItem(GenshinItem item) { + this.items.add(item); + } + + @Override + public void onRemoveItem(GenshinItem item) { + this.items.remove(item); + } + + @Override + public int getSize() { + return this.items.size(); + } + + @Override + public int getMaxCapacity() { + return this.maxCapacity; + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/EquipType.java b/src/main/java/emu/grasscutter/game/inventory/EquipType.java new file mode 100644 index 000000000..a2de82d5d --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/EquipType.java @@ -0,0 +1,45 @@ +package emu.grasscutter.game.inventory; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum EquipType { + EQUIP_NONE (0), + EQUIP_BRACER (1), + EQUIP_NECKLACE (2), + EQUIP_SHOES (3), + EQUIP_RING (4), + EQUIP_DRESS (5), + EQUIP_WEAPON (6); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private EquipType(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static EquipType getTypeByValue(int value) { + return map.getOrDefault(value, EQUIP_NONE); + } + + public static EquipType getTypeByName(String name) { + return stringMap.getOrDefault(name, EQUIP_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/GenshinItem.java b/src/main/java/emu/grasscutter/game/inventory/GenshinItem.java new file mode 100644 index 000000000..b9914644d --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/GenshinItem.java @@ -0,0 +1,430 @@ +package emu.grasscutter.game.inventory; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.bson.types.ObjectId; + +import dev.morphia.annotations.Entity; +import dev.morphia.annotations.Id; +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.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.props.FightProperty; +import emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo; +import emu.grasscutter.net.proto.EquipOuterClass.Equip; +import emu.grasscutter.net.proto.FurnitureOuterClass.Furniture; +import emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint; +import emu.grasscutter.net.proto.ItemOuterClass.Item; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.net.proto.MaterialOuterClass.Material; +import emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary; +import emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo; +import emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo; +import emu.grasscutter.net.proto.WeaponOuterClass.Weapon; +import emu.grasscutter.utils.WeightedList; + +@Entity(value = "items", noClassnameStored = true) +public class GenshinItem { + @Id private ObjectId id; + @Indexed private int ownerId; + private int itemId; + private int count; + + @Transient private long guid; // Player unique id + @Transient private ItemData itemData; + + // Equips + private int level; + private int exp; + private int totalExp; + private int promoteLevel; + private boolean locked; + + // Weapon + private List affixes; + private int refinement = 0; + + // Relic + private int mainPropId; + private List appendPropIdList; + + private int equipCharacter; + @Transient private int weaponEntityId; + + public GenshinItem() { + // Morphia only + } + + public GenshinItem(int itemId) { + this(GenshinData.getItemDataMap().get(itemId)); + } + + public GenshinItem(int itemId, int count) { + this(GenshinData.getItemDataMap().get(itemId), count); + } + + public GenshinItem(ItemData data) { + this(data, 1); + } + + public GenshinItem(ItemData data, int count) { + this.itemId = data.getId(); + this.itemData = data; + + if (data.getItemType() == ItemType.ITEM_VIRTUAL) { + this.count = count; + } else { + this.count = Math.min(count, data.getStackLimit()); + } + + // Equip data + if (getItemType() == ItemType.ITEM_WEAPON) { + this.level = 1; + this.affixes = new ArrayList<>(2); + if (getItemData().getSkillAffix() != null) { + for (int skillAffix : getItemData().getSkillAffix()) { + if (skillAffix > 0) { + this.affixes.add(skillAffix); + } + } + } + } else if (getItemType() == ItemType.ITEM_RELIQUARY) { + this.level = 1; + this.appendPropIdList = new ArrayList<>(); + // Create main property + ReliquaryMainPropData mainPropData = GenshinDepot.getRandomRelicMainProp(getItemData().getMainPropDepotId()); + if (mainPropData != null) { + this.mainPropId = mainPropData.getId(); + } + // Create extra stats + if (getItemData().getAppendPropNum() > 0) { + for (int i = 0; i < getItemData().getAppendPropNum(); i++) { + this.addAppendProp(); + } + } + } + } + + public ObjectId getObjectId() { + return id; + } + + public int getOwnerId() { + return ownerId; + } + + public void setOwner(GenshinPlayer player) { + this.ownerId = player.getId(); + this.guid = player.getNextGuid(); + } + public int getItemId() { + return itemId; + } + + public void setItemId(int itemId) { + this.itemId = itemId; + } + + public long getGuid() { + return guid; + } + + public ItemType getItemType() { + return this.itemData.getItemType(); + } + + public ItemData getItemData() { + return itemData; + } + + public void setItemData(ItemData materialData) { + this.itemData = materialData; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public int getLevel() { + return level; + } + + public void setLevel(int level) { + this.level = level; + } + + public int getExp() { + return exp; + } + + public void setExp(int exp) { + this.exp = exp; + } + + public int getTotalExp() { + return totalExp; + } + + public void setTotalExp(int totalExp) { + this.totalExp = totalExp; + } + + public int getPromoteLevel() { + return promoteLevel; + } + + public void setPromoteLevel(int promoteLevel) { + this.promoteLevel = promoteLevel; + } + + public int getEquipSlot() { + return this.getItemData().getEquipType().getValue(); + } + + public int getEquipCharacter() { + return equipCharacter; + } + + public void setEquipCharacter(int equipCharacter) { + this.equipCharacter = equipCharacter; + } + + public boolean isEquipped() { + return this.getEquipCharacter() > 0; + } + + public boolean isLocked() { + return locked; + } + + public void setLocked(boolean locked) { + this.locked = locked; + } + + public boolean isDestroyable() { + return !this.isLocked() && !this.isEquipped(); + } + + public int getWeaponEntityId() { + return weaponEntityId; + } + + public void setWeaponEntityId(int weaponEntityId) { + this.weaponEntityId = weaponEntityId; + } + + public List getAffixes() { + return affixes; + } + + public int getRefinement() { + return refinement; + } + + public void setRefinement(int refinement) { + this.refinement = refinement; + } + + public int getMainPropId() { + return mainPropId; + } + + public List getAppendPropIdList() { + return appendPropIdList; + } + + public void addAppendProp() { + if (this.getAppendPropIdList() == null) { + this.appendPropIdList = new ArrayList<>(); + } + + if (this.getAppendPropIdList().size() < 4) { + addNewAppendProp(); + } else { + upgradeRandomAppendProp(); + } + } + + private void addNewAppendProp() { + List affixList = GenshinDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); + + if (affixList == null) { + return; + } + + // Build blacklist - Dont add same stat as main/sub stat + Set blacklist = new HashSet<>(); + ReliquaryMainPropData mainPropData = GenshinData.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)); + if (affixData != null) { + blacklist.add(affixData.getFightProp()); + } + } + + // Build random list + WeightedList randomList = new WeightedList<>(); + for (ReliquaryAffixData affix : affixList) { + if (!blacklist.contains(affix.getFightProp())) { + randomList.add(affix.getWeight(), affix); + } + } + + if (randomList.size() == 0) { + return; + } + + // Add random stat + ReliquaryAffixData affixData = randomList.next(); + this.getAppendPropIdList().add(affixData.getId()); + } + + private void upgradeRandomAppendProp() { + List affixList = GenshinDepot.getRandomRelicAffixList(getItemData().getAppendPropDepotId()); + + if (affixList == null) { + return; + } + + // Build whitelist + Set 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)); + if (affixData != null) { + whitelist.add(affixData.getFightProp()); + } + } + + // Build random list + WeightedList randomList = new WeightedList<>(); + for (ReliquaryAffixData affix : affixList) { + if (whitelist.contains(affix.getFightProp())) { + randomList.add(affix.getUpgradeWeight(), affix); + } + } + + // Add random stat + ReliquaryAffixData affixData = randomList.next(); + this.getAppendPropIdList().add(affixData.getId()); + } + + @PostLoad + public void onLoad() { + if (this.itemData == null) { + this.itemData = GenshinData.getItemDataMap().get(getItemId()); + } + } + + public void save() { + if (this.count > 0 && this.ownerId > 0) { + DatabaseHelper.saveItem(this); + } else if (this.getObjectId() != null) { + DatabaseHelper.deleteItem(this); + } + } + + public SceneWeaponInfo createSceneWeaponInfo() { + SceneWeaponInfo.Builder weaponInfo = SceneWeaponInfo.newBuilder() + .setEntityId(this.getWeaponEntityId()) + .setItemId(this.getItemId()) + .setGuid(this.getGuid()) + .setLevel(this.getLevel()) + .setGadgetId(this.getItemData().getGadgetId()) + .setAbilityInfo(AbilitySyncStateInfo.newBuilder().setIsInited(getAffixes().size() > 0)); + + if (this.getAffixes() != null && this.getAffixes().size() > 0) { + for (int affix : this.getAffixes()) { + weaponInfo.putAffixMap(affix, this.getRefinement()); + } + } + + return weaponInfo.build(); + } + + public SceneReliquaryInfo createSceneReliquaryInfo() { + SceneReliquaryInfo relicInfo = SceneReliquaryInfo.newBuilder() + .setItemId(this.getItemId()) + .setGuid(this.getGuid()) + .setLevel(this.getLevel()) + .build(); + + return relicInfo; + } + + public Item toProto() { + Item.Builder proto = Item.newBuilder() + .setGuid(this.getGuid()) + .setItemId(this.getItemId()); + + switch (getItemType()) { + case ITEM_WEAPON: + Weapon.Builder weapon = Weapon.newBuilder() + .setLevel(this.getLevel()) + .setExp(this.getExp()) + .setPromoteLevel(this.getPromoteLevel()); + + if (this.getAffixes() != null && this.getAffixes().size() > 0) { + for (int affix : this.getAffixes()) { + weapon.putAffixMap(affix, this.getRefinement()); + } + } + + proto.setEquip(Equip.newBuilder().setWeapon(weapon).setIsLocked(this.isLocked()).build()); + break; + case ITEM_RELIQUARY: + Reliquary relic = Reliquary.newBuilder() + .setLevel(this.getLevel()) + .setExp(this.getExp()) + .setPromoteLevel(this.getPromoteLevel()) + .setMainPropId(this.getMainPropId()) + .addAllAppendPropIdList(this.getAppendPropIdList()) + .build(); + proto.setEquip(Equip.newBuilder().setReliquary(relic).setIsLocked(this.isLocked()).build()); + break; + case ITEM_MATERIAL: + Material material = Material.newBuilder() + .setCount(getCount()) + .build(); + proto.setMaterial(material); + break; + case ITEM_FURNITURE: + Furniture furniture = Furniture.newBuilder() + .setCount(getCount()) + .build(); + proto.setFurniture(furniture); + break; + default: + break; + } + + return proto.build(); + } + + public ItemHint toItemHintProto() { + return ItemHint.newBuilder().setItemId(getItemId()).setCount(getCount()).setIsNew(false).build(); + } + + public ItemParam toItemParam() { + return ItemParam.newBuilder().setItemId(this.getItemId()).setCount(this.getCount()).build(); + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/Inventory.java b/src/main/java/emu/grasscutter/game/inventory/Inventory.java new file mode 100644 index 000000000..0bd888e7c --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/Inventory.java @@ -0,0 +1,353 @@ +package emu.grasscutter.game.inventory; + +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.data.GenshinData; +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.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.server.packet.send.PacketAvatarEquipChangeNotify; +import emu.grasscutter.server.packet.send.PacketStoreItemChangeNotify; +import emu.grasscutter.server.packet.send.PacketStoreItemDelNotify; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +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 { + private final GenshinPlayer player; + + private final Long2ObjectMap store; + private final Int2ObjectMap inventoryTypes; + + public Inventory(GenshinPlayer player) { + this.player = player; + this.store = new Long2ObjectOpenHashMap<>(); + this.inventoryTypes = new Int2ObjectOpenHashMap<>(); + + this.createInventoryTab(ItemType.ITEM_WEAPON, new EquipInventoryTab(GenshinConstants.LIMIT_WEAPON)); + this.createInventoryTab(ItemType.ITEM_RELIQUARY, new EquipInventoryTab(GenshinConstants.LIMIT_RELIC)); + this.createInventoryTab(ItemType.ITEM_MATERIAL, new MaterialInventoryTab(GenshinConstants.LIMIT_MATERIAL)); + this.createInventoryTab(ItemType.ITEM_FURNITURE, new MaterialInventoryTab(GenshinConstants.LIMIT_FURNITURE)); + } + + public GenshinPlayer getPlayer() { + return player; + } + + public AvatarStorage getAvatarStorage() { + return this.getPlayer().getAvatars(); + } + + public Long2ObjectMap getItems() { + return store; + } + + public Int2ObjectMap getInventoryTypes() { + return inventoryTypes; + } + + public InventoryTab getInventoryTab(ItemType type) { + return getInventoryTypes().get(type.getValue()); + } + + public void createInventoryTab(ItemType type, InventoryTab tab) { + this.getInventoryTypes().put(type.getValue(), tab); + } + + public GenshinItem getItemByGuid(long id) { + return this.getItems().get(id); + } + + public boolean addItem(int itemId) { + return addItem(itemId, 1); + } + + public boolean addItem(int itemId, int count) { + ItemData itemData = GenshinData.getItemDataMap().get(itemId); + + if (itemData == null) { + return false; + } + + GenshinItem item = new GenshinItem(itemData, count); + + return addItem(item); + } + + public boolean addItem(GenshinItem item) { + GenshinItem result = putItem(item); + + if (result != null) { + getPlayer().sendPacket(new PacketStoreItemChangeNotify(result)); + return true; + } + + return false; + } + + public void addItems(Collection items) { + List changedItems = new LinkedList<>(); + + for (GenshinItem item : items) { + GenshinItem result = putItem(item); + if (result != null) { + changedItems.add(result); + } + } + + getPlayer().sendPacket(new PacketStoreItemChangeNotify(changedItems)); + } + + public void addItemParams(Collection items) { + List 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)); + } + + private synchronized GenshinItem putItem(GenshinItem item) { + // Dont add items that dont have a valid item definition. + if (item.getItemData() == null) { + return null; + } + + // Add item to inventory store + ItemType type = item.getItemData().getItemType(); + InventoryTab tab = getInventoryTab(type); + + // Add + if (type == ItemType.ITEM_WEAPON || type == ItemType.ITEM_RELIQUARY) { + if (tab.getSize() >= tab.getMaxCapacity()) { + return null; + } + putItem(item, tab); + } else if (type == ItemType.ITEM_VIRTUAL) { + // Handle + this.addVirtualItem(item.getItemId(), item.getCount()); + return null; + } else if (item.getItemData().getMaterialType() == MaterialType.MATERIAL_AVATAR) { + // 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) { + return null; + } + // Add avatar + AvatarData avatarData = GenshinData.getAvatarDataMap().get(avatarId); + if (avatarData != null && !player.getAvatars().hasAvatar(avatarId)) { + this.getPlayer().addAvatar(new GenshinAvatar(avatarData)); + } + return null; + } else if (item.getItemData().getMaterialType() == MaterialType.MATERIAL_FLYCLOAK) { + AvatarFlycloakData flycloakData = GenshinData.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()); + if (costumeData != null && !player.getCostumeList().contains(costumeData.getId())) { + getPlayer().addCostume(costumeData.getId()); + } + return null; + } else if (item.getItemData().getMaterialType() == MaterialType.MATERIAL_NAMECARD) { + if (!player.getNameCardList().contains(item.getItemId())) { + getPlayer().addNameCard(item.getItemId()); + } + return null; + } else if (tab != null) { + GenshinItem 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()) { + return null; + } + putItem(item, tab); + } else { + // Add count + existingItem.setCount(Math.min(existingItem.getCount() + item.getCount(), item.getItemData().getStackLimit())); + existingItem.save(); + return existingItem; + } + } + + // Set ownership and save to db + item.save(); + + return item; + } + + private synchronized void putItem(GenshinItem item, InventoryTab tab) { + // Set owner and guid FIRST! + item.setOwner(getPlayer()); + // Put in item store + getItems().put(item.getGuid(), item); + if (tab != null) { + tab.onAddItem(item); + } + } + + private void addVirtualItem(int itemId, int count) { + switch (itemId) { + case 102: // Adventure exp + getPlayer().addExpDirectly(count); + break; + case 201: // Primogem + getPlayer().setPrimogems(player.getPrimogems() + count); + break; + case 202: // Mora + getPlayer().setMora(player.getMora() + count); + break; + } + } + + public void removeItems(List items) { + // TODO Bulk delete + for (GenshinItem item : items) { + this.removeItem(item, item.getCount()); + } + } + + public boolean removeItem(long guid) { + return removeItem(guid, 1); + } + + public synchronized boolean removeItem(long guid, int count) { + GenshinItem item = this.getItemByGuid(guid); + + if (item == null) { + return false; + } + + return removeItem(item, count); + } + + public synchronized boolean removeItem(GenshinItem item) { + return removeItem(item, item.getCount()); + } + + public synchronized boolean removeItem(GenshinItem item, int count) { + // Sanity check + if (count <= 0 || item == null) { + return false; + } + + item.setCount(item.getCount() - count); + + if (item.getCount() <= 0) { + // Remove from inventory tab too + InventoryTab tab = null; + if (item.getItemData() != null) { + tab = getInventoryTab(item.getItemData().getItemType()); + } + // Remove if less than 0 + deleteItem(item, tab); + // + getPlayer().sendPacket(new PacketStoreItemDelNotify(item)); + } else { + getPlayer().sendPacket(new PacketStoreItemChangeNotify(item)); + } + + // Update in db + item.save(); + + // Returns true on success + return true; + } + + private void deleteItem(GenshinItem item, InventoryTab tab) { + getItems().remove(item.getGuid()); + if (tab != null) { + tab.onRemoveItem(item); + } + } + + public boolean equipItem(long avatarGuid, long equipGuid) { + GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); + GenshinItem item = this.getItemByGuid(equipGuid); + + if (avatar != null && item != null) { + return avatar.equipItem(item, true); + } + + return false; + } + + public boolean unequipItem(long avatarGuid, int slot) { + GenshinAvatar avatar = getPlayer().getAvatars().getAvatarByGuid(avatarGuid); + EquipType equipType = EquipType.getTypeByValue(slot); + + if (avatar != null && equipType != EquipType.EQUIP_WEAPON) { + if (avatar.unequipItem(equipType)) { + getPlayer().sendPacket(new PacketAvatarEquipChangeNotify(avatar, equipType)); + avatar.recalcStats(); + return true; + } + } + + return false; + } + + public void loadFromDatabase() { + List items = DatabaseHelper.getInventoryItems(getPlayer()); + + for (GenshinItem item : items) { + // Should never happen + if (item.getObjectId() == null) { + continue; + } + + ItemData itemData = GenshinData.getItemDataMap().get(item.getItemId()); + if (itemData == null) { + continue; + } + + item.setItemData(itemData); + + InventoryTab tab = null; + if (item.getItemData() != null) { + tab = getInventoryTab(item.getItemData().getItemType()); + } + + putItem(item, tab); + + // Equip to a character if possible + if (item.isEquipped()) { + GenshinAvatar avatar = getPlayer().getAvatars().getAvatarById(item.getEquipCharacter()); + boolean hasEquipped = false; + + if (avatar != null) { + hasEquipped = avatar.equipItem(item, false); + } + + if (!hasEquipped) { + item.setEquipCharacter(0); + item.save(); + } + } + } + } + + @Override + public Iterator 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 new file mode 100644 index 000000000..72099642b --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/InventoryTab.java @@ -0,0 +1,13 @@ +package emu.grasscutter.game.inventory; + +public interface InventoryTab { + public GenshinItem getItemById(int id); + + public void onAddItem(GenshinItem item); + + public void onRemoveItem(GenshinItem item); + + public int getSize(); + + public int getMaxCapacity(); +} diff --git a/src/main/java/emu/grasscutter/game/inventory/ItemDef.java b/src/main/java/emu/grasscutter/game/inventory/ItemDef.java new file mode 100644 index 000000000..eabda5028 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/ItemDef.java @@ -0,0 +1,27 @@ +package emu.grasscutter.game.inventory; + +public class ItemDef { + private int itemId; + private int count; + + public ItemDef(int itemId, int count) { + this.itemId = itemId; + this.count = count; + } + + public int getItemId() { + return itemId; + } + + public void setItemId(int itemId) { + this.itemId = itemId; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/ItemQuality.java b/src/main/java/emu/grasscutter/game/inventory/ItemQuality.java new file mode 100644 index 000000000..298fc86cf --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/ItemQuality.java @@ -0,0 +1,45 @@ +package emu.grasscutter.game.inventory; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum ItemQuality { + QUALITY_NONE(0), + QUALITY_WHITE(1), + QUALITY_GREEN(2), + QUALITY_BLUE(3), + QUALITY_PURPLE(4), + QUALITY_ORANGE(5), + QUALITY_ORANGE_SP(105); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private ItemQuality(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static ItemQuality getTypeByValue(int value) { + return map.getOrDefault(value, QUALITY_NONE); + } + + public static ItemQuality getTypeByName(String name) { + return stringMap.getOrDefault(name, QUALITY_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/ItemType.java b/src/main/java/emu/grasscutter/game/inventory/ItemType.java new file mode 100644 index 000000000..5ea6d1b78 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/ItemType.java @@ -0,0 +1,45 @@ +package emu.grasscutter.game.inventory; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum ItemType { + ITEM_NONE (0), + ITEM_VIRTUAL (1), + ITEM_MATERIAL (2), + ITEM_RELIQUARY (3), + ITEM_WEAPON (4), + ITEM_DISPLAY (5), + ITEM_FURNITURE (6); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private ItemType(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static ItemType getTypeByValue(int value) { + return map.getOrDefault(value, ITEM_NONE); + } + + public static ItemType getTypeByName(String name) { + return stringMap.getOrDefault(name, ITEM_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java b/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java new file mode 100644 index 000000000..f5ebfc5d7 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/MaterialInventoryTab.java @@ -0,0 +1,39 @@ +package emu.grasscutter.game.inventory; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class MaterialInventoryTab implements InventoryTab { + private final Int2ObjectMap items; + private final int maxCapacity; + + public MaterialInventoryTab(int maxCapacity) { + this.items = new Int2ObjectOpenHashMap<>(); + this.maxCapacity = maxCapacity; + } + + @Override + public GenshinItem getItemById(int id) { + return this.items.get(id); + } + + @Override + public void onAddItem(GenshinItem item) { + this.items.put(item.getItemId(), item); + } + + @Override + public void onRemoveItem(GenshinItem item) { + this.items.remove(item.getItemId()); + } + + @Override + public int getSize() { + return this.items.size(); + } + + @Override + public int getMaxCapacity() { + return this.maxCapacity; + } +} diff --git a/src/main/java/emu/grasscutter/game/inventory/MaterialType.java b/src/main/java/emu/grasscutter/game/inventory/MaterialType.java new file mode 100644 index 000000000..e65cb09aa --- /dev/null +++ b/src/main/java/emu/grasscutter/game/inventory/MaterialType.java @@ -0,0 +1,67 @@ +package emu.grasscutter.game.inventory; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum MaterialType { + MATERIAL_NONE (0), + MATERIAL_FOOD (1), + MATERIAL_QUEST (2), + MATERIAL_EXCHANGE (4), + MATERIAL_CONSUME (5), + MATERIAL_EXP_FRUIT (6), + MATERIAL_AVATAR (7), + MATERIAL_ADSORBATE (8), + MATERIAL_CRICKET (9), + MATERIAL_ELEM_CRYSTAL (10), + MATERIAL_WEAPON_EXP_STONE (11), + MATERIAL_CHEST (12), + MATERIAL_RELIQUARY_MATERIAL (13), + MATERIAL_AVATAR_MATERIAL (14), + MATERIAL_NOTICE_ADD_HP (15), + MATERIAL_SEA_LAMP (16), + MATERIAL_SELECTABLE_CHEST (17), + MATERIAL_FLYCLOAK (18), + MATERIAL_NAMECARD (19), + MATERIAL_TALENT (20), + MATERIAL_WIDGET (21), + MATERIAL_CHEST_BATCH_USE (22), + MATERIAL_FAKE_ABSORBATE (23), + MATERIAL_CONSUME_BATCH_USE (24), + MATERIAL_WOOD (25), + MATERIAL_FURNITURE_FORMULA (27), + MATERIAL_CHANNELLER_SLAB_BUFF (28), + MATERIAL_FURNITURE_SUITE_FORMULA (29), + MATERIAL_COSTUME (30); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private MaterialType(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static MaterialType getTypeByValue(int value) { + return map.getOrDefault(value, MATERIAL_NONE); + } + + public static MaterialType getTypeByName(String name) { + return stringMap.getOrDefault(name, MATERIAL_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/AccountManager.java b/src/main/java/emu/grasscutter/game/managers/AccountManager.java new file mode 100644 index 000000000..68173dc1e --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/AccountManager.java @@ -0,0 +1,15 @@ +package emu.grasscutter.game.managers; + +import emu.grasscutter.server.game.GameServer; + +public class AccountManager { + private final GameServer server; + + public AccountManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/ChatManager.java b/src/main/java/emu/grasscutter/game/managers/ChatManager.java new file mode 100644 index 000000000..a896006b7 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/ChatManager.java @@ -0,0 +1,82 @@ +package emu.grasscutter.game.managers; + +import emu.grasscutter.commands.PlayerCommands; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.server.packet.send.PacketPlayerChatNotify; +import emu.grasscutter.server.packet.send.PacketPrivateChatNotify; + +public class ChatManager { + private final GameServer server; + + public ChatManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } + + public void sendPrivChat(GenshinPlayer player, int targetUid, String message) { + // Sanity checks + if (message == null || message.length() == 0) { + return; + } + + // Check if command + if (message.charAt(0) == '!') { + PlayerCommands.handle(player, message); + return; + } + + // Get target + GenshinPlayer target = getServer().getPlayerById(targetUid); + + if (target == null) { + return; + } + + // Create chat packet + GenshinPacket packet = new PacketPrivateChatNotify(player.getId(), target.getId(), message); + + player.sendPacket(packet); + target.sendPacket(packet); + } + + public void sendPrivChat(GenshinPlayer player, int targetUid, int emote) { + // Get target + GenshinPlayer target = getServer().getPlayerById(targetUid); + + if (target == null) { + return; + } + + // Create chat packet + GenshinPacket packet = new PacketPrivateChatNotify(player.getId(), target.getId(), emote); + + player.sendPacket(packet); + target.sendPacket(packet); + } + + public void sendTeamChat(GenshinPlayer player, int channel, String message) { + // Sanity checks + if (message == null || message.length() == 0) { + return; + } + + // Check if command + if (message.charAt(0) == '!') { + PlayerCommands.handle(player, message); + return; + } + + // Create and send chat packet + player.getWorld().broadcastPacket(new PacketPlayerChatNotify(player, channel, message)); + } + + public void sendTeamChat(GenshinPlayer 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 new file mode 100644 index 000000000..79b3fe812 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/InventoryManager.java @@ -0,0 +1,897 @@ +package emu.grasscutter.game.managers; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.common.ItemParamData; +import emu.grasscutter.data.custom.OpenConfigEntry; +import emu.grasscutter.data.def.AvatarPromoteData; +import emu.grasscutter.data.def.AvatarSkillData; +import emu.grasscutter.data.def.AvatarSkillDepotData; +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.inventory.ItemType; +import emu.grasscutter.game.inventory.MaterialType; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.server.packet.send.PacketAbilityChangeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarPromoteRsp; +import emu.grasscutter.server.packet.send.PacketAvatarPropNotify; +import emu.grasscutter.server.packet.send.PacketAvatarSkillChangeNotify; +import emu.grasscutter.server.packet.send.PacketAvatarSkillUpgradeRsp; +import emu.grasscutter.server.packet.send.PacketAvatarUnlockTalentNotify; +import emu.grasscutter.server.packet.send.PacketAvatarUpgradeRsp; +import emu.grasscutter.server.packet.send.PacketDestroyMaterialRsp; +import emu.grasscutter.server.packet.send.PacketProudSkillChangeNotify; +import emu.grasscutter.server.packet.send.PacketProudSkillExtraLevelNotify; +import emu.grasscutter.server.packet.send.PacketReliquaryUpgradeRsp; +import emu.grasscutter.server.packet.send.PacketSetEquipLockStateRsp; +import emu.grasscutter.server.packet.send.PacketStoreItemChangeNotify; +import emu.grasscutter.server.packet.send.PacketUnlockAvatarTalentRsp; +import emu.grasscutter.server.packet.send.PacketWeaponAwakenRsp; +import emu.grasscutter.server.packet.send.PacketWeaponPromoteRsp; +import emu.grasscutter.server.packet.send.PacketWeaponUpgradeRsp; +import emu.grasscutter.utils.Utils; +import it.unimi.dsi.fastutil.ints.Int2IntMap; +import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap; + +public class InventoryManager { + private final GameServer server; + + private final static int RELIC_MATERIAL_1 = 105002; // Sanctifying Unction + private final static int RELIC_MATERIAL_2 = 105003; // Sanctifying Essence + + private final static int WEAPON_ORE_1 = 104011; // Enhancement Ore + private final static int WEAPON_ORE_2 = 104012; // Fine Enhancement Ore + private final static int WEAPON_ORE_3 = 104013; // Mystic Enhancement Ore + private final static int WEAPON_ORE_EXP_1 = 400; // Enhancement Ore + private final static int WEAPON_ORE_EXP_2 = 2000; // Fine Enhancement Ore + private final static int WEAPON_ORE_EXP_3 = 10000; // Mystic Enhancement Ore + + private final static int AVATAR_BOOK_1 = 104001; // Wanderer's Advice + private final static int AVATAR_BOOK_2 = 104002; // Adventurer's Experience + private final static int AVATAR_BOOK_3 = 104003; // Hero's Wit + private final static int AVATAR_BOOK_EXP_1 = 1000; // Wanderer's Advice + private final static int AVATAR_BOOK_EXP_2 = 5000; // Adventurer's Experience + private final static int AVATAR_BOOK_EXP_3 = 20000; // Hero's Wit + + public InventoryManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } + + public void lockEquip(GenshinPlayer player, long targetEquipGuid, boolean isLocked) { + GenshinItem equip = player.getInventory().getItemByGuid(targetEquipGuid); + + if (equip == null || !equip.getItemData().isEquip()) { + return; + } + + equip.setLocked(isLocked); + equip.save(); + + player.sendPacket(new PacketStoreItemChangeNotify(equip)); + player.sendPacket(new PacketSetEquipLockStateRsp(equip)); + } + + public void upgradeRelic(GenshinPlayer player, long targetGuid, List foodRelicList, List list) { + GenshinItem relic = player.getInventory().getItemByGuid(targetGuid); + + if (relic == null || relic.getItemType() != ItemType.ITEM_RELIQUARY) { + return; + } + + int moraCost = 0; + int expGain = 0; + + for (long guid : foodRelicList) { + // Add to delete queue + GenshinItem food = player.getInventory().getItemByGuid(guid); + if (food == null || !food.isDestroyable()) { + continue; + } + // Calculate mora cost + moraCost += food.getItemData().getBaseConvExp(); + expGain += food.getItemData().getBaseConvExp(); + // Feeding artifact with exp already + if (food.getTotalExp() > 0) { + expGain += (int) Math.floor(food.getTotalExp() * .8f); + } + } + for (ItemParam itemParam : list) { + GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemParam.getItemId()); + if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_RELIQUARY_MATERIAL) { + continue; + } + int amount = Math.min(food.getCount(), itemParam.getCount()); + int gain = 0; + if (food.getItemId() == RELIC_MATERIAL_2) { + gain = 10000 * amount; + } else if (food.getItemId() == RELIC_MATERIAL_1) { + gain = 2500 * amount; + } + expGain += gain; + moraCost += gain; + } + + // Make sure exp gain is valid + if (expGain <= 0) { + return; + } + + // Check mora + if (player.getMora() < moraCost) { + return; + } + player.setMora(player.getMora() - moraCost); + + // Consume food items + for (long guid : foodRelicList) { + GenshinItem 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()); + if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_RELIQUARY_MATERIAL) { + continue; + } + int amount = Math.min(food.getCount(), itemParam.getCount()); + player.getInventory().removeItem(food, amount); + } + + // Implement random rate boost + int rate = 1; + int boost = Utils.randomRange(1, 100); + if (boost == 100) { + rate = 5; + } else if (boost <= 9) { + rate = 2; + } + expGain *= rate; + + // Now we upgrade + int level = relic.getLevel(); + int oldLevel = level; + int exp = relic.getExp(); + int totalExp = relic.getTotalExp(); + int reqExp = GenshinData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); + int upgrades = 0; + List oldAppendPropIdList = relic.getAppendPropIdList(); + + while (expGain > 0 && reqExp > 0 && level < relic.getItemData().getMaxLevel()) { + // Do calculations + int toGain = Math.min(expGain, reqExp - exp); + exp += toGain; + totalExp += toGain; + expGain -= toGain; + // Level up + if (exp >= reqExp) { + // Exp + exp = 0; + level += 1; + // On relic levelup + if (relic.getItemData().getAddPropLevelSet() != null && relic.getItemData().getAddPropLevelSet().contains(level)) { + upgrades += 1; + } + // Set req exp + reqExp = GenshinData.getRelicExpRequired(relic.getItemData().getRankLevel(), level); + } + } + + if (upgrades > 0) { + oldAppendPropIdList = new ArrayList<>(relic.getAppendPropIdList()); + while (upgrades > 0) { + relic.addAppendProp(); + upgrades -= 1; + } + } + + // Save + relic.setLevel(level); + relic.setExp(exp); + relic.setTotalExp(totalExp); + relic.save(); + + // Avatar + if (oldLevel != level) { + GenshinAvatar avatar = relic.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(relic.getEquipCharacter()) : null; + if (avatar != null) { + avatar.recalcStats(); + } + } + + // Packet + player.sendPacket(new PacketStoreItemChangeNotify(relic)); + player.sendPacket(new PacketReliquaryUpgradeRsp(relic, rate, oldLevel, oldAppendPropIdList)); + } + + public List calcWeaponUpgradeReturnItems(GenshinPlayer player, long targetGuid, List foodWeaponGuidList, List itemParamList) { + GenshinItem 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()); + if (promoteData == null) { + return null; + } + + // Get exp gain + int expGain = 0; + for (long guid : foodWeaponGuidList) { + GenshinItem food = player.getInventory().getItemByGuid(guid); + if (food == null) { + continue; + } + expGain += food.getItemData().getWeaponBaseExp(); + if (food.getTotalExp() > 0) { + expGain += (int) Math.floor(food.getTotalExp() * .8f); + } + } + for (ItemParam param : itemParamList) { + GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); + if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { + continue; + } + int amount = Math.min(param.getCount(), food.getCount()); + if (food.getItemId() == WEAPON_ORE_3) { + expGain += 10000 * amount; + } else if (food.getItemId() == WEAPON_ORE_2) { + expGain += 2000 * amount; + } else if (food.getItemId() == WEAPON_ORE_1) { + expGain += 400 * amount; + } + } + + // Try + int maxLevel = promoteData.getUnlockMaxLevel(); + int level = weapon.getLevel(); + int exp = weapon.getExp(); + int reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + + while (expGain > 0 && reqExp > 0 && level < maxLevel) { + // Do calculations + int toGain = Math.min(expGain, reqExp - exp); + exp += toGain; + expGain -= toGain; + // Level up + if (exp >= reqExp) { + // Exp + exp = 0; + level += 1; + // Set req exp + reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + } + } + + return getLeftoverOres(expGain); + } + + + public void upgradeWeapon(GenshinPlayer player, long targetGuid, List foodWeaponGuidList, List itemParamList) { + GenshinItem 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()); + if (promoteData == null) { + return; + } + + // Get exp gain + int expGain = 0, moraCost = 0; + + for (long guid : foodWeaponGuidList) { + GenshinItem food = player.getInventory().getItemByGuid(guid); + if (food == null || !food.isDestroyable()) { + continue; + } + expGain += food.getItemData().getWeaponBaseExp(); + moraCost += (int) Math.floor(food.getItemData().getWeaponBaseExp() * .1f); + if (food.getTotalExp() > 0) { + expGain += (int) Math.floor(food.getTotalExp() * .8f); + } + } + for (ItemParam param : itemParamList) { + GenshinItem food = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(param.getItemId()); + if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { + continue; + } + int amount = Math.min(param.getCount(), food.getCount()); + int gain = 0; + if (food.getItemId() == WEAPON_ORE_3) { + gain = 10000 * amount; + } else if (food.getItemId() == WEAPON_ORE_2) { + gain = 2000 * amount; + } else if (food.getItemId() == WEAPON_ORE_1) { + gain = 400 * amount; + } + expGain += gain; + moraCost += (int) Math.floor(gain * .1f); + } + + // Make sure exp gain is valid + if (expGain <= 0) { + return; + } + + // Mora check + if (player.getMora() >= moraCost) { + player.setMora(player.getMora() - moraCost); + } else { + return; + } + + // Consume weapon/items used to feed + for (long guid : foodWeaponGuidList) { + GenshinItem 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()); + if (food == null || food.getItemData().getMaterialType() != MaterialType.MATERIAL_WEAPON_EXP_STONE) { + continue; + } + int amount = Math.min(param.getCount(), food.getCount()); + player.getInventory().removeItem(food, amount); + } + + // Level up + int maxLevel = promoteData.getUnlockMaxLevel(); + int level = weapon.getLevel(); + int oldLevel = level; + int exp = weapon.getExp(); + int totalExp = weapon.getTotalExp(); + int reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + + while (expGain > 0 && reqExp > 0 && level < maxLevel) { + // Do calculations + int toGain = Math.min(expGain, reqExp - exp); + exp += toGain; + totalExp += toGain; + expGain -= toGain; + // Level up + if (exp >= reqExp) { + // Exp + exp = 0; + level += 1; + // Set req exp + reqExp = GenshinData.getWeaponExpRequired(weapon.getItemData().getRankLevel(), level); + } + } + + List leftovers = getLeftoverOres(expGain); + player.getInventory().addItemParams(leftovers); + + weapon.setLevel(level); + weapon.setExp(exp); + weapon.setTotalExp(totalExp); + weapon.save(); + + // Avatar + if (oldLevel != level) { + GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + if (avatar != null) { + avatar.recalcStats(); + } + } + + // Packets + player.sendPacket(new PacketStoreItemChangeNotify(weapon)); + player.sendPacket(new PacketWeaponUpgradeRsp(weapon, oldLevel, leftovers)); + } + + private List getLeftoverOres(float leftover) { + List leftoverOreList = new ArrayList<>(3); + + if (leftover < WEAPON_ORE_EXP_1) { + return leftoverOreList; + } + + // Get leftovers + int ore3 = (int) Math.floor(leftover / WEAPON_ORE_EXP_3); + leftover = leftover % WEAPON_ORE_EXP_3; + int ore2 = (int) Math.floor(leftover / WEAPON_ORE_EXP_2); + leftover = leftover % WEAPON_ORE_EXP_2; + int ore1 = (int) Math.floor(leftover / WEAPON_ORE_EXP_1); + + if (ore3 > 0) { + leftoverOreList.add(ItemParam.newBuilder().setItemId(WEAPON_ORE_3).setCount(ore3).build()); + } if (ore2 > 0) { + leftoverOreList.add(ItemParam.newBuilder().setItemId(WEAPON_ORE_2).setCount(ore2).build()); + } if (ore1 > 0) { + leftoverOreList.add(ItemParam.newBuilder().setItemId(WEAPON_ORE_1).setCount(ore1).build()); + } + + return leftoverOreList; + } + + public void refineWeapon(GenshinPlayer player, long targetGuid, long feedGuid) { + GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid); + GenshinItem feed = player.getInventory().getItemByGuid(feedGuid); + + // Sanity checks + if (weapon == null || feed == null || !feed.isDestroyable()) { + return; + } + + if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) { + return; + } + + if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) { + return; + } + + // Calculate + int oldRefineLevel = weapon.getRefinement(); + int targetRefineLevel = Math.min(oldRefineLevel + feed.getRefinement() + 1, 4); + int moraCost = 0; + + try { + moraCost = weapon.getItemData().getAwakenCosts()[weapon.getRefinement()]; + } catch (Exception e) { + return; + } + + // Mora check + if (player.getMora() >= moraCost) { + player.setMora(player.getMora() - moraCost); + } else { + return; + } + + // Consume weapon + player.getInventory().removeItem(feed); + + // Get + weapon.setRefinement(targetRefineLevel); + weapon.save(); + + // Avatar + GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + if (avatar != null) { + avatar.recalcStats(); + } + + // Packets + player.sendPacket(new PacketStoreItemChangeNotify(weapon)); + player.sendPacket(new PacketWeaponAwakenRsp(avatar, weapon, feed, oldRefineLevel)); + } + + public void promoteWeapon(GenshinPlayer player, long targetGuid) { + GenshinItem 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); + if (currentPromoteData == null || nextPromoteData == null) { + return; + } + + // Level check + if (weapon.getLevel() != currentPromoteData.getUnlockMaxLevel()) { + return; + } + + // Make sure player has promote items + for (ItemParamData cost : nextPromoteData.getCostItems()) { + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + if (feedItem == null || feedItem.getCount() < cost.getCount()) { + return; + } + } + + // Mora check + if (player.getMora() >= nextPromoteData.getCoinCost()) { + player.setMora(player.getMora() - nextPromoteData.getCoinCost()); + } else { + return; + } + + // Consume promote filler items + for (ItemParamData cost : nextPromoteData.getCostItems()) { + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + player.getInventory().removeItem(feedItem, cost.getCount()); + } + + int oldPromoteLevel = weapon.getPromoteLevel(); + weapon.setPromoteLevel(nextPromoteLevel); + weapon.save(); + + // Avatar + GenshinAvatar avatar = weapon.getEquipCharacter() > 0 ? player.getAvatars().getAvatarById(weapon.getEquipCharacter()) : null; + if (avatar != null) { + avatar.recalcStats(); + } + + // Packets + player.sendPacket(new PacketStoreItemChangeNotify(weapon)); + player.sendPacket(new PacketWeaponPromoteRsp(weapon, oldPromoteLevel)); + } + + public void promoteAvatar(GenshinPlayer player, long guid) { + GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + + // Sanity checks + if (avatar == null) { + return; + } + + int nextPromoteLevel = avatar.getPromoteLevel() + 1; + AvatarPromoteData currentPromoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); + AvatarPromoteData nextPromoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), nextPromoteLevel); + if (currentPromoteData == null || nextPromoteData == null) { + return; + } + + // Level check + if (avatar.getLevel() != currentPromoteData.getUnlockMaxLevel()) { + return; + } + + // Make sure player has cost items + for (ItemParamData cost : nextPromoteData.getCostItems()) { + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + if (feedItem == null || feedItem.getCount() < cost.getCount()) { + return; + } + } + + // Mora check + if (player.getMora() >= nextPromoteData.getCoinCost()) { + player.setMora(player.getMora() - nextPromoteData.getCoinCost()); + } else { + return; + } + + // Consume promote filler items + for (ItemParamData cost : nextPromoteData.getCostItems()) { + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + player.getInventory().removeItem(feedItem, cost.getCount()); + } + + // Update promote level + avatar.setPromoteLevel(nextPromoteLevel); + + // Update proud skills + AvatarSkillDepotData skillDepot = GenshinData.getAvatarSkillDepotDataMap().get(avatar.getSkillDepotId()); + boolean hasAddedProudSkill = false; + + if (skillDepot != null && skillDepot.getInherentProudSkillOpens() != null) { + for (InherentProudSkillOpens openData : skillDepot.getInherentProudSkillOpens()) { + if (openData.getProudSkillGroupId() == 0) { + continue; + } + if (openData.getNeedAvatarPromoteLevel() == avatar.getPromoteLevel()) { + int proudSkillId = (openData.getProudSkillGroupId() * 100) + 1; + if (GenshinData.getProudSkillDataMap().containsKey(proudSkillId)) { + hasAddedProudSkill = true; + avatar.getProudSkillList().add(proudSkillId); + player.sendPacket(new PacketProudSkillChangeNotify(avatar)); + } + } + } + } + + // Racalc stats and save avatar + avatar.recalcStats(); + avatar.save(); + + // Resend ability embryos if proud skill has been added + if (hasAddedProudSkill && avatar.getAsEntity() != null) { + player.sendPacket(new PacketAbilityChangeNotify(avatar.getAsEntity())); + } + + // TODO Send entity prop update packet to world + + // Packets + player.sendPacket(new PacketAvatarPropNotify(avatar)); + player.sendPacket(new PacketAvatarPromoteRsp(avatar)); + } + + public void upgradeAvatar(GenshinPlayer player, long guid, int itemId, int count) { + GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + + // Sanity checks + if (avatar == null) { + return; + } + + AvatarPromoteData promoteData = GenshinData.getAvatarPromoteData(avatar.getAvatarData().getAvatarPromoteId(), avatar.getPromoteLevel()); + if (promoteData == null) { + return; + } + + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(itemId); + + if (feedItem == null || feedItem.getItemData().getMaterialType() != MaterialType.MATERIAL_EXP_FRUIT || feedItem.getCount() < count) { + return; + } + + // Calc exp + int expGain = 0, moraCost = 0; + + // TODO clean up + if (itemId == AVATAR_BOOK_3) { + expGain = AVATAR_BOOK_EXP_3 * count; + } else if (itemId == AVATAR_BOOK_2) { + expGain = AVATAR_BOOK_EXP_2 * count; + } else if (itemId == AVATAR_BOOK_1) { + expGain = AVATAR_BOOK_EXP_1 * count; + } + moraCost = (int) Math.floor(expGain * .2f); + + // Mora check + if (player.getMora() >= moraCost) { + player.setMora(player.getMora() - moraCost); + } else { + return; + } + + // Consume items + player.getInventory().removeItem(feedItem, count); + + // Level up + int maxLevel = promoteData.getUnlockMaxLevel(); + int level = avatar.getLevel(); + int oldLevel = level; + int exp = avatar.getExp(); + int reqExp = GenshinData.getAvatarLevelExpRequired(level); + + while (expGain > 0 && reqExp > 0 && level < maxLevel) { + // Do calculations + int toGain = Math.min(expGain, reqExp - exp); + exp += toGain; + expGain -= toGain; + // Level up + if (exp >= reqExp) { + // Exp + exp = 0; + level += 1; + // Set req exp + reqExp = GenshinData.getAvatarLevelExpRequired(level); + } + } + + // Old map for packet + Map oldPropMap = avatar.getFightProperties(); + if (oldLevel != level) { + // Deep copy if level has changed + oldPropMap = avatar.getFightProperties().int2FloatEntrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); + } + + // Done + avatar.setLevel(level); + avatar.setExp(exp); + avatar.recalcStats(); + avatar.save(); + + // TODO Send entity prop update packet to world + + // Packets + player.sendPacket(new PacketAvatarPropNotify(avatar)); + player.sendPacket(new PacketAvatarUpgradeRsp(avatar, oldLevel, oldPropMap)); + } + + public void upgradeAvatarSkill(GenshinPlayer player, long guid, int skillId) { + // Sanity checks + GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + if (avatar == null) { + return; + } + + // Make sure avatar has skill + if (!avatar.getSkillLevelMap().containsKey(skillId)) { + return; + } + + AvatarSkillData skillData = GenshinData.getAvatarSkillDataMap().get(skillId); + if (skillData == null) { + return; + } + + // Get data for next skill level + int currentLevel = avatar.getSkillLevelMap().get(skillId); + int nextLevel = currentLevel + 1; + int proudSkillId = (skillData.getProudSkillGroupId() * 100) + nextLevel; + + // Capped at level 10 talent + if (nextLevel > 10) { + return; + } + + // Proud skill data + ProudSkillData proudSkill = GenshinData.getProudSkillDataMap().get(proudSkillId); + if (proudSkill == null) { + return; + } + + // Make sure break level is correct + if (avatar.getPromoteLevel() < proudSkill.getBreakLevel()) { + return; + } + + // Make sure player has cost items + for (ItemParamData cost : proudSkill.getCostItems()) { + if (cost.getId() == 0) { + continue; + } + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + if (feedItem == null || feedItem.getCount() < cost.getCount()) { + return; + } + } + + // Mora check + if (player.getMora() >= proudSkill.getCoinCost()) { + player.setMora(player.getMora() - proudSkill.getCoinCost()); + } else { + return; + } + + // Consume promote filler items + for (ItemParamData cost : proudSkill.getCostItems()) { + if (cost.getId() == 0) { + continue; + } + GenshinItem feedItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(cost.getId()); + player.getInventory().removeItem(feedItem, cost.getCount()); + } + + // Upgrade skill + avatar.getSkillLevelMap().put(skillId, nextLevel); + avatar.save(); + + // Packet + player.sendPacket(new PacketAvatarSkillChangeNotify(avatar, skillId, currentLevel, nextLevel)); + player.sendPacket(new PacketAvatarSkillUpgradeRsp(avatar, skillId, currentLevel, nextLevel)); + } + + public void unlockAvatarConstellation(GenshinPlayer player, long guid) { + // Sanity checks + GenshinAvatar avatar = player.getAvatars().getAvatarByGuid(guid); + if (avatar == null) { + return; + } + + // Get talent + int currentTalentLevel = avatar.getCoreProudSkillLevel(); + int nextTalentId = ((avatar.getAvatarId() % 10000000) * 10) + currentTalentLevel + 1; + AvatarTalentData talentData = GenshinData.getAvatarTalentDataMap().get(nextTalentId); + + if (talentData == null) { + return; + } + + GenshinItem costItem = player.getInventory().getInventoryTab(ItemType.ITEM_MATERIAL).getItemById(talentData.getMainCostItemId()); + if (costItem == null || costItem.getCount() < talentData.getMainCostItemCount()) { + return; + } + + // Consume item + player.getInventory().removeItem(costItem, talentData.getMainCostItemCount()); + + // Apply + recalc + avatar.getTalentIdList().add(talentData.getId()); + avatar.setCoreProudSkillLevel(currentTalentLevel + 1); + avatar.recalcStats(); + + // Packet + player.sendPacket(new PacketAvatarUnlockTalentNotify(avatar, nextTalentId)); + player.sendPacket(new PacketUnlockAvatarTalentRsp(avatar, nextTalentId)); + + // Proud skill bonus map + OpenConfigEntry entry = GenshinData.getOpenConfigEntries().get(talentData.getOpenConfig()); + if (entry != null && entry.getExtraTalentIndex() > 0) { + avatar.recalcProudSkillBonusMap(); + player.sendPacket(new PacketProudSkillExtraLevelNotify(avatar, entry.getExtraTalentIndex())); + } + + // Resend ability embryos + if (avatar.getAsEntity() != null) { + player.sendPacket(new PacketAbilityChangeNotify(avatar.getAsEntity())); + } + + // Save avatar + avatar.save(); + } + + public void destroyMaterial(GenshinPlayer player, List list) { + // Return materials + Int2IntOpenHashMap returnMaterialMap = new Int2IntOpenHashMap(); + + for (MaterialInfo info : list) { + // Sanity check + if (info.getCount() <= 0) { + continue; + } + + GenshinItem item = player.getInventory().getItemByGuid(info.getGuid()); + if (item == null || !item.isDestroyable()) { + continue; + } + + // Remove + int removeAmount = Math.min(info.getCount(), item.getCount()); + player.getInventory().removeItem(item, removeAmount); + + // Delete material return items + if (item.getItemData().getDestroyReturnMaterial().length > 0) { + for (int i = 0; i < item.getItemData().getDestroyReturnMaterial().length; i++) { + returnMaterialMap.addTo(item.getItemData().getDestroyReturnMaterial()[i], item.getItemData().getDestroyReturnMaterialCount()[i]); + } + } + } + + // Give back items + if (returnMaterialMap.size() > 0) { + for (Int2IntMap.Entry e : returnMaterialMap.int2IntEntrySet()) { + player.getInventory().addItem(new GenshinItem(e.getIntKey(), e.getIntValue())); + } + } + + // Packets + 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); + + if (useItem == null) { + return null; + } + + int used = 0; + + // Use + switch (useItem.getItemData().getMaterialType()) { + case MATERIAL_FOOD: + if (useItem.getItemData().getUseTarget().equals("ITEM_USE_TARGET_SPECIFY_DEAD_AVATAR")) { + if (target == null) { + break; + } + + used = player.getTeamManager().reviveAvatar(target) ? 1 : 0; + } + break; + default: + break; + } + + if (used > 0) { + player.getInventory().removeItem(useItem, used); + return useItem; + } + + return null; + } +} diff --git a/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java b/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java new file mode 100644 index 000000000..980270697 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/managers/MultiplayerManager.java @@ -0,0 +1,153 @@ +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.net.proto.EnterTypeOuterClass.EnterType; +import emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason; +import emu.grasscutter.game.World; +import emu.grasscutter.server.game.GameServer; +import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpNotify; +import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpResultNotify; +import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneNotify; + +public class MultiplayerManager { + private final GameServer server; + + public MultiplayerManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } + + public void applyEnterMp(GenshinPlayer player, int targetUid) { + GenshinPlayer target = getServer().getPlayerById(targetUid); + if (target == null) { + player.sendPacket(new PacketPlayerApplyEnterMpResultNotify(targetUid, "", false, PlayerApplyEnterMpReason.PlayerCannotEnterMp)); + return; + } + + // Sanity checks - Dont let player join if already in multiplayer + if (player.getWorld().isMultiplayer()) { + return; + } + + if (target.getWorld().isDungeon()) { + player.sendPacket(new PacketPlayerApplyEnterMpResultNotify(targetUid, "", false, PlayerApplyEnterMpReason.SceneCannotEnter)); + return; + } + + // Get request + CoopRequest request = target.getCoopRequests().get(player.getId()); + + if (request != null && !request.isExpired()) { + // Join request already exists + return; + } + + // Put request in + request = new CoopRequest(player); + target.getCoopRequests().put(player.getId(), request); + + // Packet + target.sendPacket(new PacketPlayerApplyEnterMpNotify(player)); + } + + public void applyEnterMpReply(GenshinPlayer player, int applyUid, boolean isAgreed) { + // Checks + CoopRequest request = player.getCoopRequests().get(applyUid); + if (request == null || request.isExpired()) { + return; + } + + // Remove now that we are handling it + GenshinPlayer requester = request.getRequester(); + player.getCoopRequests().remove(applyUid); + + // Sanity checks - Dont let player join if already in multiplayer + if (requester.getWorld().isMultiplayer()) { + request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(player, false, PlayerApplyEnterMpReason.PlayerCannotEnterMp)); + return; + } + + // Response packet + request.getRequester().sendPacket(new PacketPlayerApplyEnterMpResultNotify(player, isAgreed, PlayerApplyEnterMpReason.PlayerJudge)); + + // Declined + if (!isAgreed) { + return; + } + + // Success + if (!player.getWorld().isMultiplayer()) { + // Player not in multiplayer, create multiplayer world + World world = new World(player, true); + + // Add + world.addPlayer(player); + + // Rejoin packet + player.sendPacket(new PacketPlayerEnterSceneNotify(player, player, EnterType.EnterSelf, EnterReason.HostFromSingleToMp, player.getWorld().getSceneId(), player.getPos())); + } + + // Make requester join + player.getWorld().addPlayer(requester); + + // Packet + requester.sendPacket(new PacketPlayerEnterSceneNotify(requester, player, EnterType.EnterOther, EnterReason.TeamJoin, player.getWorld().getSceneId(), player.getPos())); + requester.getPos().set(player.getPos()); + requester.getRotation().set(player.getRotation()); + } + + public boolean leaveCoop(GenshinPlayer 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()) { + if (p.getSceneLoadState() != SceneLoadState.LOADED) { + return false; + } + } + + // Create new world for player + World world = new World(player); + world.addPlayer(player); + + // Packet + player.sendPacket(new PacketPlayerEnterSceneNotify(player, EnterType.EnterSelf, EnterReason.TeamBack, player.getWorld().getSceneId(), player.getPos())); + + return true; + } + + public boolean kickPlayer(GenshinPlayer 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().getPlayerById(targetUid); + + if (victim == null || victim == player) { + return false; + } + + // Make sure victim's scene has loaded + if (victim.getSceneLoadState() != SceneLoadState.LOADED) { + return false; + } + + // Kick + World world = new World(victim); + world.addPlayer(victim); + + victim.sendPacket(new PacketPlayerEnterSceneNotify(victim, EnterType.EnterSelf, EnterReason.TeamKick, victim.getWorld().getSceneId(), victim.getPos())); + return true; + } +} diff --git a/src/main/java/emu/grasscutter/game/props/ActionReason.java b/src/main/java/emu/grasscutter/game/props/ActionReason.java new file mode 100644 index 000000000..7f38de18f --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/ActionReason.java @@ -0,0 +1,211 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum ActionReason { + None(0), + QuestItem(1), + QuestReward(2), + Trifle(3), + Shop(4), + PlayerUpgradeReward(5), + AddAvatar(6), + GadgetEnvAnimal(7), + MonsterEnvAnimal(8), + Compound(9), + Cook(10), + Gather(11), + MailAttachment(12), + CityLevelupReturn(15), + CityLevelupReward(17), + AreaExploreReward(18), + UnlockPointReward(19), + DungeonFirstPass(20), + DungeonPass(21), + ChangeElemType(23), + FetterOpen(25), + DailyTaskScore(26), + DailyTaskHost(27), + RandTaskHost(28), + Expedition(29), + Gacha(30), + Combine(31), + RandTaskGuest(32), + DailyTaskGuest(33), + ForgeOutput(34), + ForgeReturn(35), + InitAvatar(36), + MonsterDie(37), + Gm(38), + OpenChest(39), + GadgetDie(40), + MonsterChangeHp(41), + SubfieldDrop(42), + PushTipsReward(43), + ActivityMonsterDrop(44), + ActivityGather(45), + ActivitySubfieldDrop(46), + TowerScheduleReward(47), + TowerFloorStarReward(48), + TowerFirstPassReward(49), + TowerDailyReward(50), + HitClientTrivialEntity(51), + OpenWorldBossChest(52), + MaterialDeleteReturn(53), + SignInReward(54), + OpenBlossomChest(55), + Recharge(56), + BonusActivityReward(57), + TowerCommemorativeReward(58), + TowerSkipFloorReward(59), + RechargeBonus(60), + RechargeCard(61), + RechargeCardDaily(62), + RechargeCardReplace(63), + RechargeCardReplaceFree(64), + RechargePlayReplace(65), + MpPlayTakeReward(66), + ActivityWatcher(67), + SalesmanDeliverItem(68), + SalesmanReward(69), + Rebate(70), + McoinExchangeHcoin(71), + DailyTaskExchangeLegendaryKey(72), + UnlockPersonLine(73), + FetterLevelReward(74), + BuyResin(75), + RechargePackage(76), + DeliveryDailyReward(77), + CityReputationLevel(78), + CityReputationQuest(79), + CityReputationRequest(80), + CityReputationExplore(81), + OffergingLevel(82), + RoutineHost(83), + RoutineGuest(84), + TreasureMapSpotToken(89), + TreasureMapBonusLevelReward(90), + TreasureMapMpReward(91), + Convert(92), + OverflowTransform(93), + ActivityAvatarSelectionReward(96), + ActivityWatcherBatch(97), + HitTreeDrop(98), + GetHomeLevelupReward(99), + HomeDefaultFurniture(100), + ActivityCond(101), + BattlePassNotify(102), + PlayerUseItem(1001), + DropItem(1002), + WeaponUpgrade(1011), + WeaponPromote(1012), + WeaponAwaken(1013), + RelicUpgrade(1014), + Ability(1015), + DungeonStatueDrop(1016), + OfflineMsg(1017), + AvatarUpgrade(1018), + AvatarPromote(1019), + QuestAction(1021), + CityLevelup(1022), + UpgradeSkill(1024), + UnlockTalent(1025), + UpgradeProudSkill(1026), + PlayerLevelLimitUp(1027), + DungeonDaily(1028), + ItemGiving(1030), + ForgeCost(1031), + InvestigationReward(1032), + InvestigationTargetReward(1033), + GadgetInteract(1034), + SeaLampCiMaterial(1036), + SeaLampContributionReward(1037), + SeaLampPhaseReward(1038), + SeaLampFlyLamp(1039), + AutoRecover(1040), + ActivityExpireItem(1041), + SubCoinNegative(1042), + BargainDeduct(1043), + BattlePassPaidReward(1044), + BattlePassLevelReward(1045), + TrialAvatarActivityFirstPassReward(1046), + BuyBattlePassLevel(1047), + GrantBirthdayBenefit(1048), + AchievementReward(1049), + AchievementGoalReward(1050), + FirstShareToSocialNetwork(1051), + DestroyMaterial(1052), + CodexLevelupReward(1053), + HuntingOfferReward(1054), + UseWidgetAnchorPoint(1055), + UseWidgetBonfire(1056), + UngradeWeaponReturnMaterial(1057), + UseWidgetOneoffGatherPointDetector(1058), + UseWidgetClientCollector(1059), + UseWidgetClientDetector(1060), + TakeGeneralReward(1061), + AsterTakeSpecialReward(1062), + RemoveCodexBook(1063), + OfferingItem(1064), + UseWidgetGadgetBuilder(1065), + EffigyFirstPassReward(1066), + EffigyReward(1067), + ReunionFirstGiftReward(1068), + ReunionSignInReward(1069), + ReunionWatcherReward(1070), + SalesmanMpReward(1071), + ActionReasionAvatarPromoteReward(1072), + BlessingRedeemReward(1073), + ActionMiracleRingReward(1074), + ExpeditionReward(1075), + TreasureMapRemoveDetector(1076), + MechanicusDungeonTicket(1077), + MechanicusLevelupGear(1078), + MechanicusBattleSettle(1079), + RegionSearchReward(1080), + UnlockCoopChapter(1081), + TakeCoopReward(1082), + FleurFairDungeonReward(1083), + ActivityScore(1084), + ChannellerSlabOneoffDungeonReward(1085), + FurnitureMakeStart(1086), + FurnitureMakeTake(1087), + FurnitureMakeCancel(1088), + FurnitureMakeFastFinish(1089), + ChannellerSlabLoopDungeonFirstPassReward(1090), + ChannellerSlabLoopDungeonScoreReward(1091), + HomeLimitedShopBuy(1092), + HomeCoinCollect(1093); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private ActionReason(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static ActionReason getTypeByValue(int value) { + return map.getOrDefault(value, None); + } + + public static ActionReason getTypeByName(String name) { + return stringMap.getOrDefault(name, None); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/ClimateType.java b/src/main/java/emu/grasscutter/game/props/ClimateType.java new file mode 100644 index 000000000..433bf4a76 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/ClimateType.java @@ -0,0 +1,45 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum ClimateType { + CLIMATE_NONE(0), + CLIMATE_SUNNY(1), + CLIMATE_CLOUDY(2), + CLIMATE_RAIN(3), + CLIMATE_THUNDERSTORM(4), + CLIMATE_SNOW(5), + CLIMATE_MIST(6); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private ClimateType(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static ClimateType getTypeByValue(int value) { + return map.getOrDefault(value, CLIMATE_NONE); + } + + public static ClimateType getTypeByName(String name) { + return stringMap.getOrDefault(name, CLIMATE_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/ElementType.java b/src/main/java/emu/grasscutter/game/props/ElementType.java new file mode 100644 index 000000000..23362c39f --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/ElementType.java @@ -0,0 +1,76 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import emu.grasscutter.utils.Utils; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum ElementType { + None (0, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY), + Fire (1, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY, 10101, "TeamResonance_Fire_Lv2"), + Water (2, FightProperty.FIGHT_PROP_MAX_WATER_ENERGY, 10201, "TeamResonance_Water_Lv2"), + Grass (3, FightProperty.FIGHT_PROP_MAX_GRASS_ENERGY), + Electric (4, FightProperty.FIGHT_PROP_MAX_ELEC_ENERGY, 10401, "TeamResonance_Electric_Lv2"), + Ice (5, FightProperty.FIGHT_PROP_MAX_ICE_ENERGY, 10601, "TeamResonance_Ice_Lv2"), + Frozen (6, FightProperty.FIGHT_PROP_MAX_ICE_ENERGY), + Wind (7, FightProperty.FIGHT_PROP_MAX_WIND_ENERGY, 10301, "TeamResonance_Wind_Lv2"), + Rock (8, FightProperty.FIGHT_PROP_MAX_ROCK_ENERGY, 10701, "TeamResonance_Rock_Lv2"), + AntiFire (9, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY), + Default (255, FightProperty.FIGHT_PROP_MAX_FIRE_ENERGY, 10801, "TeamResonance_AllDifferent"); + + private final int value; + private final int teamResonanceId; + private final FightProperty energyProperty; + private final int configHash; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private ElementType(int value, FightProperty energyProperty) { + this(value, energyProperty, 0, null); + } + + private ElementType(int value, FightProperty energyProperty, int teamResonanceId, String configName) { + this.value = value; + this.energyProperty = energyProperty; + this.teamResonanceId = teamResonanceId; + if (configName != null) { + this.configHash = Utils.abilityHash(configName); + } else { + this.configHash = 0; + } + } + + public int getValue() { + return value; + } + + public FightProperty getEnergyProperty() { + return energyProperty; + } + + public int getTeamResonanceId() { + return teamResonanceId; + } + + public int getConfigHash() { + return configHash; + } + + public static ElementType getTypeByValue(int value) { + return map.getOrDefault(value, None); + } + + public static ElementType getTypeByName(String name) { + return stringMap.getOrDefault(name, None); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/EnterReason.java b/src/main/java/emu/grasscutter/game/props/EnterReason.java new file mode 100644 index 000000000..39e0e4404 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/EnterReason.java @@ -0,0 +1,70 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum EnterReason { + None(0), + Login(1), + DungeonReplay(11), + DungeonReviveOnWaypoint(12), + DungeonEnter(13), + DungeonQuit(14), + Gm(21), + QuestRollback(31), + Revival(32), + PersonalScene(41), + TransPoint(42), + ClientTransmit(43), + ForceDragBack(44), + TeamKick(51), + TeamJoin(52), + TeamBack(53), + Muip(54), + DungeonInviteAccept(55), + Lua(56), + ActivityLoadTerrain(57), + HostFromSingleToMp(58), + MpPlay(59), + AnchorPoint(60), + LuaSkipUi(61), + ReloadTerrain(62), + DraftTransfer(63), + EnterHome(64), + ExitHome(65), + ChangeHomeModule(66), + Gallery(67), + HomeSceneJump(68), + HideAndSeek(69); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private EnterReason(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static EnterReason getTypeByValue(int value) { + return map.getOrDefault(value, None); + } + + public static EnterReason getTypeByName(String name) { + return stringMap.getOrDefault(name, None); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/EntityIdType.java b/src/main/java/emu/grasscutter/game/props/EntityIdType.java new file mode 100644 index 000000000..09414b65a --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/EntityIdType.java @@ -0,0 +1,21 @@ +package emu.grasscutter.game.props; + +public enum EntityIdType { + AVATAR (0x01), + MONSTER (0x02), + NPC (0x03), + GADGET (0x04), + WEAPON (0x06), + TEAM (0x09), + MPLEVEL (0x0b); + + private final int id; + + private EntityIdType(int id) { + this.id = id; + } + + public int getId() { + return id; + } +} diff --git a/src/main/java/emu/grasscutter/game/props/FightProperty.java b/src/main/java/emu/grasscutter/game/props/FightProperty.java new file mode 100644 index 000000000..e36c432f5 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/FightProperty.java @@ -0,0 +1,136 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum FightProperty { + FIGHT_PROP_NONE(0), + FIGHT_PROP_BASE_HP(1), + FIGHT_PROP_HP(2), + FIGHT_PROP_HP_PERCENT(3), + FIGHT_PROP_BASE_ATTACK(4), + FIGHT_PROP_ATTACK(5), + FIGHT_PROP_ATTACK_PERCENT(6), + FIGHT_PROP_BASE_DEFENSE(7), + FIGHT_PROP_DEFENSE(8), + FIGHT_PROP_DEFENSE_PERCENT(9), + FIGHT_PROP_BASE_SPEED(10), + FIGHT_PROP_SPEED_PERCENT(11), + FIGHT_PROP_HP_MP_PERCENT(12), + FIGHT_PROP_ATTACK_MP_PERCENT(13), + FIGHT_PROP_CRITICAL(20), + FIGHT_PROP_ANTI_CRITICAL(21), + FIGHT_PROP_CRITICAL_HURT(22), + FIGHT_PROP_CHARGE_EFFICIENCY(23), + FIGHT_PROP_ADD_HURT(24), + FIGHT_PROP_SUB_HURT(25), + FIGHT_PROP_HEAL_ADD(26), + FIGHT_PROP_HEALED_ADD(27), + FIGHT_PROP_ELEMENT_MASTERY(28), + FIGHT_PROP_PHYSICAL_SUB_HURT(29), + FIGHT_PROP_PHYSICAL_ADD_HURT(30), + FIGHT_PROP_DEFENCE_IGNORE_RATIO(31), + FIGHT_PROP_DEFENCE_IGNORE_DELTA(32), + FIGHT_PROP_FIRE_ADD_HURT(40), + FIGHT_PROP_ELEC_ADD_HURT(41), + FIGHT_PROP_WATER_ADD_HURT(42), + FIGHT_PROP_GRASS_ADD_HURT(43), + FIGHT_PROP_WIND_ADD_HURT(44), + FIGHT_PROP_ROCK_ADD_HURT(45), + FIGHT_PROP_ICE_ADD_HURT(46), + FIGHT_PROP_HIT_HEAD_ADD_HURT(47), + FIGHT_PROP_FIRE_SUB_HURT(50), + FIGHT_PROP_ELEC_SUB_HURT(51), + FIGHT_PROP_WATER_SUB_HURT(52), + FIGHT_PROP_GRASS_SUB_HURT(53), + FIGHT_PROP_WIND_SUB_HURT(54), + FIGHT_PROP_ROCK_SUB_HURT(55), + FIGHT_PROP_ICE_SUB_HURT(56), + FIGHT_PROP_EFFECT_HIT(60), + FIGHT_PROP_EFFECT_RESIST(61), + FIGHT_PROP_FREEZE_RESIST(62), + FIGHT_PROP_TORPOR_RESIST(63), + FIGHT_PROP_DIZZY_RESIST(64), + FIGHT_PROP_FREEZE_SHORTEN(65), + FIGHT_PROP_TORPOR_SHORTEN(66), + FIGHT_PROP_DIZZY_SHORTEN(67), + FIGHT_PROP_MAX_FIRE_ENERGY(70), + FIGHT_PROP_MAX_ELEC_ENERGY(71), + FIGHT_PROP_MAX_WATER_ENERGY(72), + FIGHT_PROP_MAX_GRASS_ENERGY(73), + FIGHT_PROP_MAX_WIND_ENERGY(74), + FIGHT_PROP_MAX_ICE_ENERGY(75), + FIGHT_PROP_MAX_ROCK_ENERGY(76), + FIGHT_PROP_SKILL_CD_MINUS_RATIO(80), + FIGHT_PROP_SHIELD_COST_MINUS_RATIO(81), + FIGHT_PROP_CUR_FIRE_ENERGY(1000), + FIGHT_PROP_CUR_ELEC_ENERGY(1001), + FIGHT_PROP_CUR_WATER_ENERGY(1002), + FIGHT_PROP_CUR_GRASS_ENERGY(1003), + FIGHT_PROP_CUR_WIND_ENERGY(1004), + FIGHT_PROP_CUR_ICE_ENERGY(1005), + FIGHT_PROP_CUR_ROCK_ENERGY(1006), + FIGHT_PROP_CUR_HP(1010), + FIGHT_PROP_MAX_HP(2000), + FIGHT_PROP_CUR_ATTACK(2001), + FIGHT_PROP_CUR_DEFENSE(2002), + FIGHT_PROP_CUR_SPEED(2003), + FIGHT_PROP_NONEXTRA_ATTACK(3000), + FIGHT_PROP_NONEXTRA_DEFENSE(3001), + FIGHT_PROP_NONEXTRA_CRITICAL(3002), + FIGHT_PROP_NONEXTRA_ANTI_CRITICAL(3003), + FIGHT_PROP_NONEXTRA_CRITICAL_HURT(3004), + FIGHT_PROP_NONEXTRA_CHARGE_EFFICIENCY(3005), + FIGHT_PROP_NONEXTRA_ELEMENT_MASTERY(3006), + FIGHT_PROP_NONEXTRA_PHYSICAL_SUB_HURT(3007), + FIGHT_PROP_NONEXTRA_FIRE_ADD_HURT(3008), + FIGHT_PROP_NONEXTRA_ELEC_ADD_HURT(3009), + FIGHT_PROP_NONEXTRA_WATER_ADD_HURT(3010), + FIGHT_PROP_NONEXTRA_GRASS_ADD_HURT(3011), + FIGHT_PROP_NONEXTRA_WIND_ADD_HURT(3012), + FIGHT_PROP_NONEXTRA_ROCK_ADD_HURT(3013), + FIGHT_PROP_NONEXTRA_ICE_ADD_HURT(3014), + FIGHT_PROP_NONEXTRA_FIRE_SUB_HURT(3015), + FIGHT_PROP_NONEXTRA_ELEC_SUB_HURT(3016), + FIGHT_PROP_NONEXTRA_WATER_SUB_HURT(3017), + FIGHT_PROP_NONEXTRA_GRASS_SUB_HURT(3018), + FIGHT_PROP_NONEXTRA_WIND_SUB_HURT(3019), + FIGHT_PROP_NONEXTRA_ROCK_SUB_HURT(3020), + FIGHT_PROP_NONEXTRA_ICE_SUB_HURT(3021), + FIGHT_PROP_NONEXTRA_SKILL_CD_MINUS_RATIO(3022), + FIGHT_PROP_NONEXTRA_SHIELD_COST_MINUS_RATIO(3023), + FIGHT_PROP_NONEXTRA_PHYSICAL_ADD_HURT(3024); + + private final int id; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + public static final int[] fightProps = new int[] {1, 4, 7, 20, 21, 22, 23, 26, 27, 28, 29, 30, 40, 41, 42, 43, 44, 45, 46, 50, 51, 52, 53, 54, 55, 56, 2000, 2001, 2002, 2003, 1010}; + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getId(), e); + stringMap.put(e.name(), e); + }); + } + + private FightProperty(int id) { + this.id = id; + } + + public int getId() { + return id; + } + + public static FightProperty getPropById(int value) { + return map.getOrDefault(value, FIGHT_PROP_NONE); + } + + public static FightProperty getPropByName(String name) { + return stringMap.getOrDefault(name, FIGHT_PROP_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/GrowCurve.java b/src/main/java/emu/grasscutter/game/props/GrowCurve.java new file mode 100644 index 000000000..e3a369f31 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/GrowCurve.java @@ -0,0 +1,100 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum GrowCurve { + GROW_CURVE_NONE(0), + GROW_CURVE_HP(1), + GROW_CURVE_ATTACK(2), + GROW_CURVE_STAMINA(3), + GROW_CURVE_STRIKE(4), + GROW_CURVE_ANTI_STRIKE(5), + GROW_CURVE_ANTI_STRIKE1(6), + GROW_CURVE_ANTI_STRIKE2(7), + GROW_CURVE_ANTI_STRIKE3(8), + GROW_CURVE_STRIKE_HURT(9), + GROW_CURVE_ELEMENT(10), + GROW_CURVE_KILL_EXP(11), + GROW_CURVE_DEFENSE(12), + GROW_CURVE_ATTACK_BOMB(13), + GROW_CURVE_HP_LITTLEMONSTER(14), + GROW_CURVE_ELEMENT_MASTERY(15), + GROW_CURVE_PROGRESSION(16), + GROW_CURVE_DEFENDING(17), + GROW_CURVE_MHP(18), + GROW_CURVE_MATK(19), + GROW_CURVE_TOWERATK(20), + GROW_CURVE_HP_S5(21), + GROW_CURVE_HP_S4(22), + GROW_CURVE_HP_2(23), + GROW_CURVE_ATTACK_S5(31), + GROW_CURVE_ATTACK_S4(32), + GROW_CURVE_ATTACK_S3(33), + GROW_CURVE_STRIKE_S5(34), + GROW_CURVE_DEFENSE_S5(41), + GROW_CURVE_DEFENSE_S4(42), + GROW_CURVE_ATTACK_101(1101), + GROW_CURVE_ATTACK_102(1102), + GROW_CURVE_ATTACK_103(1103), + GROW_CURVE_ATTACK_104(1104), + GROW_CURVE_ATTACK_105(1105), + GROW_CURVE_ATTACK_201(1201), + GROW_CURVE_ATTACK_202(1202), + GROW_CURVE_ATTACK_203(1203), + GROW_CURVE_ATTACK_204(1204), + GROW_CURVE_ATTACK_205(1205), + GROW_CURVE_ATTACK_301(1301), + GROW_CURVE_ATTACK_302(1302), + GROW_CURVE_ATTACK_303(1303), + GROW_CURVE_ATTACK_304(1304), + GROW_CURVE_ATTACK_305(1305), + GROW_CURVE_CRITICAL_101(2101), + GROW_CURVE_CRITICAL_102(2102), + GROW_CURVE_CRITICAL_103(2103), + GROW_CURVE_CRITICAL_104(2104), + GROW_CURVE_CRITICAL_105(2105), + GROW_CURVE_CRITICAL_201(2201), + GROW_CURVE_CRITICAL_202(2202), + GROW_CURVE_CRITICAL_203(2203), + GROW_CURVE_CRITICAL_204(2204), + GROW_CURVE_CRITICAL_205(2205), + GROW_CURVE_CRITICAL_301(2301), + GROW_CURVE_CRITICAL_302(2302), + GROW_CURVE_CRITICAL_303(2303), + GROW_CURVE_CRITICAL_304(2304), + GROW_CURVE_CRITICAL_305(2305); + + private final int id; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + public static final int[] fightProps = new int[] {1, 4, 7, 20, 21, 22, 23, 26, 27, 28, 29, 30, 40, 41, 42, 43, 44, 45, 46, 50, 51, 52, 53, 54, 55, 56, 2000, 2001, 2002, 2003, 1010}; + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getId(), e); + stringMap.put(e.name(), e); + }); + } + + private GrowCurve(int id) { + this.id = id; + } + + public int getId() { + return id; + } + + public static GrowCurve getPropById(int value) { + return map.getOrDefault(value, GROW_CURVE_NONE); + } + + public static GrowCurve getPropByName(String name) { + return stringMap.getOrDefault(name, GROW_CURVE_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/LifeState.java b/src/main/java/emu/grasscutter/game/props/LifeState.java new file mode 100644 index 000000000..3d3ba79ef --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/LifeState.java @@ -0,0 +1,42 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum LifeState { + LIFE_NONE(0), + LIFE_ALIVE(1), + LIFE_DEAD(2), + LIFE_REVIVE(3); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private LifeState(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static LifeState getTypeByValue(int value) { + return map.getOrDefault(value, LIFE_NONE); + } + + public static LifeState getTypeByName(String name) { + return stringMap.getOrDefault(name, LIFE_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/OpenState.java b/src/main/java/emu/grasscutter/game/props/OpenState.java new file mode 100644 index 000000000..7cba2fcf3 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/OpenState.java @@ -0,0 +1,204 @@ +package emu.grasscutter.game.props; + +import java.util.HashMap; +import java.util.Map; +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum OpenState { + OPEN_STATE_NONE(0), + OPEN_STATE_PAIMON(1), + OPEN_STATE_PAIMON_NAVIGATION(2), + OPEN_STATE_AVATAR_PROMOTE(3), + OPEN_STATE_AVATAR_TALENT(4), + OPEN_STATE_WEAPON_PROMOTE(5), + OPEN_STATE_WEAPON_AWAKEN(6), + OPEN_STATE_QUEST_REMIND(7), + OPEN_STATE_GAME_GUIDE(8), + OPEN_STATE_COOK(9), + OPEN_STATE_WEAPON_UPGRADE(10), + OPEN_STATE_RELIQUARY_UPGRADE(11), + OPEN_STATE_RELIQUARY_PROMOTE(12), + OPEN_STATE_WEAPON_PROMOTE_GUIDE(13), + OPEN_STATE_WEAPON_CHANGE_GUIDE(14), + OPEN_STATE_PLAYER_LVUP_GUIDE(15), + OPEN_STATE_FRESHMAN_GUIDE(16), + OPEN_STATE_SKIP_FRESHMAN_GUIDE(17), + OPEN_STATE_GUIDE_MOVE_CAMERA(18), + OPEN_STATE_GUIDE_SCALE_CAMERA(19), + OPEN_STATE_GUIDE_KEYBOARD(20), + OPEN_STATE_GUIDE_MOVE(21), + OPEN_STATE_GUIDE_JUMP(22), + OPEN_STATE_GUIDE_SPRINT(23), + OPEN_STATE_GUIDE_MAP(24), + OPEN_STATE_GUIDE_ATTACK(25), + OPEN_STATE_GUIDE_FLY(26), + OPEN_STATE_GUIDE_TALENT(27), + OPEN_STATE_GUIDE_RELIC(28), + OPEN_STATE_GUIDE_RELIC_PROM(29), + OPEN_STATE_COMBINE(30), + OPEN_STATE_GACHA(31), + OPEN_STATE_GUIDE_GACHA(32), + OPEN_STATE_GUIDE_TEAM(33), + OPEN_STATE_GUIDE_PROUD(34), + OPEN_STATE_GUIDE_AVATAR_PROMOTE(35), + OPEN_STATE_GUIDE_ADVENTURE_CARD(36), + OPEN_STATE_FORGE(37), + OPEN_STATE_GUIDE_BAG(38), + OPEN_STATE_EXPEDITION(39), + OPEN_STATE_GUIDE_ADVENTURE_DAILYTASK(40), + OPEN_STATE_GUIDE_ADVENTURE_DUNGEON(41), + OPEN_STATE_TOWER(42), + OPEN_STATE_WORLD_STAMINA(43), + OPEN_STATE_TOWER_FIRST_ENTER(44), + OPEN_STATE_RESIN(45), + OPEN_STATE_LIMIT_REGION_FRESHMEAT(47), + OPEN_STATE_LIMIT_REGION_GLOBAL(48), + OPEN_STATE_MULTIPLAYER(49), + OPEN_STATE_GUIDE_MOUSEPC(50), + OPEN_STATE_GUIDE_MULTIPLAYER(51), + OPEN_STATE_GUIDE_DUNGEONREWARD(52), + OPEN_STATE_GUIDE_BLOSSOM(53), + OPEN_STATE_AVATAR_FASHION(54), + OPEN_STATE_PHOTOGRAPH(55), + OPEN_STATE_GUIDE_KSLQUEST(56), + OPEN_STATE_PERSONAL_LINE(57), + OPEN_STATE_GUIDE_PERSONAL_LINE(58), + OPEN_STATE_GUIDE_APPEARANCE(59), + OPEN_STATE_GUIDE_PROCESS(60), + OPEN_STATE_GUIDE_PERSONAL_LINE_KEY(61), + OPEN_STATE_GUIDE_WIDGET(62), + OPEN_STATE_GUIDE_ACTIVITY_SKILL_ASTER(63), + OPEN_STATE_GUIDE_COLDCLIMATE(64), + OPEN_STATE_DERIVATIVE_MALL(65), + OPEN_STATE_GUIDE_EXITMULTIPLAYER(66), + OPEN_STATE_GUIDE_THEATREMACHANICUS_BUILD(67), + OPEN_STATE_GUIDE_THEATREMACHANICUS_REBUILD(68), + OPEN_STATE_GUIDE_THEATREMACHANICUS_CARD(69), + OPEN_STATE_GUIDE_THEATREMACHANICUS_MONSTER(70), + OPEN_STATE_GUIDE_THEATREMACHANICUS_MISSION_CHECK(71), + OPEN_STATE_GUIDE_THEATREMACHANICUS_BUILD_SELECT(72), + OPEN_STATE_GUIDE_THEATREMACHANICUS_CHALLENGE_START(73), + OPEN_STATE_GUIDE_CONVERT(74), + OPEN_STATE_GUIDE_THEATREMACHANICUS_MULTIPLAYER(75), + OPEN_STATE_GUIDE_COOP_TASK(76), + OPEN_STATE_GUIDE_HOMEWORLD_ADEPTIABODE(77), + OPEN_STATE_GUIDE_HOMEWORLD_DEPLOY(78), + OPEN_STATE_GUIDE_CHANNELLERSLAB_EQUIP(79), + OPEN_STATE_GUIDE_CHANNELLERSLAB_MP_SOLUTION(80), + OPEN_STATE_GUIDE_CHANNELLERSLAB_POWER(81), + OPEN_STATE_GUIDE_HIDEANDSEEK_SKILL(82), + OPEN_STATE_GUIDE_HOMEWORLD_MAPLIST(83), + OPEN_STATE_GUIDE_RELICRESOLVE(84), + OPEN_STATE_GUIDE_GGUIDE(85), + OPEN_STATE_GUIDE_GGUIDE_HINT(86), + OPEN_STATE_CITY_REPUATION_MENGDE(800), + OPEN_STATE_CITY_REPUATION_LIYUE(801), + OPEN_STATE_CITY_REPUATION_UI_HINT(802), + OPEN_STATE_CITY_REPUATION_INAZUMA(803), + OPEN_STATE_SHOP_TYPE_MALL(900), + OPEN_STATE_SHOP_TYPE_RECOMMANDED(901), + OPEN_STATE_SHOP_TYPE_GENESISCRYSTAL(902), + OPEN_STATE_SHOP_TYPE_GIFTPACKAGE(903), + OPEN_STATE_SHOP_TYPE_PAIMON(1001), + OPEN_STATE_SHOP_TYPE_CITY(1002), + OPEN_STATE_SHOP_TYPE_BLACKSMITH(1003), + OPEN_STATE_SHOP_TYPE_GROCERY(1004), + OPEN_STATE_SHOP_TYPE_FOOD(1005), + OPEN_STATE_SHOP_TYPE_SEA_LAMP(1006), + OPEN_STATE_SHOP_TYPE_VIRTUAL_SHOP(1007), + OPEN_STATE_SHOP_TYPE_LIYUE_GROCERY(1008), + OPEN_STATE_SHOP_TYPE_LIYUE_SOUVENIR(1009), + OPEN_STATE_SHOP_TYPE_LIYUE_RESTAURANT(1010), + OPEN_STATE_SHOP_TYPE_INAZUMA_SOUVENIR(1011), + OPEN_STATE_SHOP_TYPE_NPC_TOMOKI(1012), + OPEN_ADVENTURE_MANUAL(1100), + OPEN_ADVENTURE_MANUAL_CITY_MENGDE(1101), + OPEN_ADVENTURE_MANUAL_CITY_LIYUE(1102), + OPEN_ADVENTURE_MANUAL_MONSTER(1103), + OPEN_ADVENTURE_MANUAL_BOSS_DUNGEON(1104), + OPEN_STATE_ACTIVITY_SEALAMP(1200), + OPEN_STATE_ACTIVITY_SEALAMP_TAB2(1201), + OPEN_STATE_ACTIVITY_SEALAMP_TAB3(1202), + OPEN_STATE_BATTLE_PASS(1300), + OPEN_STATE_BATTLE_PASS_ENTRY(1301), + OPEN_STATE_ACTIVITY_CRUCIBLE(1400), + OPEN_STATE_ACTIVITY_NEWBEEBOUNS_OPEN(1401), + OPEN_STATE_ACTIVITY_NEWBEEBOUNS_CLOSE(1402), + OPEN_STATE_ACTIVITY_ENTRY_OPEN(1403), + OPEN_STATE_MENGDE_INFUSEDCRYSTAL(1404), + OPEN_STATE_LIYUE_INFUSEDCRYSTAL(1405), + OPEN_STATE_SNOW_MOUNTAIN_ELDER_TREE(1406), + OPEN_STATE_MIRACLE_RING(1407), + OPEN_STATE_COOP_LINE(1408), + OPEN_STATE_INAZUMA_INFUSEDCRYSTAL(1409), + OPEN_STATE_FISH(1410), + OPEN_STATE_GUIDE_SUMO_TEAM_SKILL(1411), + OPEN_STATE_GUIDE_FISH_RECIPE(1412), + OPEN_STATE_HOME(1500), + OPEN_STATE_ACTIVITY_HOMEWORLD(1501), + OPEN_STATE_ADEPTIABODE(1502), + OPEN_STATE_HOME_AVATAR(1503), + OPEN_STATE_HOME_EDIT(1504), + OPEN_STATE_HOME_EDIT_TIPS(1505), + OPEN_STATE_RELIQUARY_DECOMPOSE(1600), + OPEN_STATE_ACTIVITY_H5(1700), + OPEN_STATE_ORAIONOKAMI(2000), + OPEN_STATE_GUIDE_CHESS_MISSION_CHECK(2001), + OPEN_STATE_GUIDE_CHESS_BUILD(2002), + OPEN_STATE_GUIDE_CHESS_WIND_TOWER_CIRCLE(2003), + OPEN_STATE_GUIDE_CHESS_CARD_SELECT(2004), + OPEN_STATE_INAZUMA_MAINQUEST_FINISHED(2005), + OPEN_STATE_PAIMON_LVINFO(2100), + OPEN_STATE_TELEPORT_HUD(2101), + OPEN_STATE_GUIDE_MAP_UNLOCK(2102), + OPEN_STATE_GUIDE_PAIMON_LVINFO(2103), + OPEN_STATE_GUIDE_AMBORTRANSPORT(2104), + OPEN_STATE_GUIDE_FLY_SECOND(2105), + OPEN_STATE_GUIDE_KAEYA_CLUE(2106), + OPEN_STATE_CAPTURE_CODEX(2107), + OPEN_STATE_ACTIVITY_FISH_OPEN(2200), + OPEN_STATE_ACTIVITY_FISH_CLOSE(2201), + OPEN_STATE_GUIDE_ROGUE_MAP(2205), + OPEN_STATE_GUIDE_ROGUE_RUNE(2206), + OPEN_STATE_GUIDE_BARTENDER_FORMULA(2210), + OPEN_STATE_GUIDE_BARTENDER_MIX(2211), + OPEN_STATE_GUIDE_BARTENDER_CUP(2212), + OPEN_STATE_GUIDE_MAIL_FAVORITES(2400), + OPEN_STATE_GUIDE_POTION_CONFIGURE(2401), + OPEN_STATE_GUIDE_LANV2_FIREWORK(2402), + OPEN_STATE_LOADINGTIPS_ENKANOMIYA(2403), + OPEN_STATE_MICHIAE_CASKET(2500), + OPEN_STATE_MAIL_COLLECT_UNLOCK_RED_POINT(2501), + OPEN_STATE_LUMEN_STONE(2600), + OPEN_STATE_GUIDE_CRYSTALLINK_BUFF(2601); + + private final int value; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + private static final Map stringMap = new HashMap<>(); + + static { + Stream.of(values()).forEach(e -> { + map.put(e.getValue(), e); + stringMap.put(e.name(), e); + }); + } + + private OpenState(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + + public static OpenState getTypeByValue(int value) { + return map.getOrDefault(value, OPEN_STATE_NONE); + } + + public static OpenState getTypeByName(String name) { + return stringMap.getOrDefault(name, OPEN_STATE_NONE); + } +} diff --git a/src/main/java/emu/grasscutter/game/props/PlayerProperty.java b/src/main/java/emu/grasscutter/game/props/PlayerProperty.java new file mode 100644 index 000000000..9369c1605 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/props/PlayerProperty.java @@ -0,0 +1,70 @@ +package emu.grasscutter.game.props; + +import java.util.stream.Stream; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public enum PlayerProperty { + PROP_EXP (1001), + PROP_BREAK_LEVEL (1002), + PROP_SATIATION_VAL (1003), + PROP_SATIATION_PENALTY_TIME (1004), + PROP_LEVEL (4001), + PROP_LAST_CHANGE_AVATAR_TIME (10001), + PROP_MAX_SPRING_VOLUME (10002), + PROP_CUR_SPRING_VOLUME (10003), + PROP_IS_SPRING_AUTO_USE (10004), + PROP_SPRING_AUTO_USE_PERCENT (10005), + PROP_IS_FLYABLE (10006), + PROP_IS_WEATHER_LOCKED (10007), + PROP_IS_GAME_TIME_LOCKED (10008), + PROP_IS_TRANSFERABLE (10009), + PROP_MAX_STAMINA (10010), + PROP_CUR_PERSIST_STAMINA (10011), + PROP_CUR_TEMPORARY_STAMINA (10012), + PROP_PLAYER_LEVEL (10013), + PROP_PLAYER_EXP (10014), + PROP_PLAYER_HCOIN (10015), // Primogem + PROP_PLAYER_SCOIN (10016), // Mora + PROP_PLAYER_MP_SETTING_TYPE (10017), + PROP_IS_MP_MODE_AVAILABLE (10018), + PROP_PLAYER_WORLD_LEVEL (10019), + PROP_PLAYER_RESIN (10020), + PROP_PLAYER_WAIT_SUB_HCOIN (10022), + PROP_PLAYER_WAIT_SUB_SCOIN (10023), + PROP_IS_ONLY_MP_WITH_PS_PLAYER (10024), + PROP_PLAYER_MCOIN (10025), // Genesis Crystal + PROP_PLAYER_WAIT_SUB_MCOIN (10026), + PROP_PLAYER_LEGENDARY_KEY (10027), + PROP_IS_HAS_FIRST_SHARE (10028), + PROP_PLAYER_FORGE_POINT (10029), + PROP_CUR_CLIMATE_METER (10035), + PROP_CUR_CLIMATE_TYPE (10036), + PROP_CUR_CLIMATE_AREA_ID (10037), + PROP_CUR_CLIMATE_AREA_CLIMATE_TYPE (10038), + PROP_PLAYER_WORLD_LEVEL_LIMIT (10039), + PROP_PLAYER_WORLD_LEVEL_ADJUST_CD (10040), + PROP_PLAYER_LEGENDARY_DAILY_TASK_NUM (10041), + PROP_PLAYER_HOME_COIN (10042), + PROP_PLAYER_WAIT_SUB_HOME_COIN (10043); + + private final int id; + private static final Int2ObjectMap map = new Int2ObjectOpenHashMap<>(); + + static { + Stream.of(values()).forEach(e -> map.put(e.getId(), e)); + } + + private PlayerProperty(int id) { + this.id = id; + } + + public int getId() { + return id; + } + + public static PlayerProperty getPropById(int value) { + return map.getOrDefault(value, null); + } +} diff --git a/src/main/java/emu/grasscutter/game/shop/ShopInfo.java b/src/main/java/emu/grasscutter/game/shop/ShopInfo.java new file mode 100644 index 000000000..768a3a7ca --- /dev/null +++ b/src/main/java/emu/grasscutter/game/shop/ShopInfo.java @@ -0,0 +1,5 @@ +package emu.grasscutter.game.shop; + +public class ShopInfo { + +} diff --git a/src/main/java/emu/grasscutter/game/shop/ShopManager.java b/src/main/java/emu/grasscutter/game/shop/ShopManager.java new file mode 100644 index 000000000..a21888f25 --- /dev/null +++ b/src/main/java/emu/grasscutter/game/shop/ShopManager.java @@ -0,0 +1,15 @@ +package emu.grasscutter.game.shop; + +import emu.grasscutter.server.game.GameServer; + +public class ShopManager { + private final GameServer server; + + public ShopManager(GameServer server) { + this.server = server; + } + + public GameServer getServer() { + return server; + } +} diff --git a/src/main/java/emu/grasscutter/net/packet/GenshinPacket.java b/src/main/java/emu/grasscutter/net/packet/GenshinPacket.java new file mode 100644 index 000000000..158c0d3c0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/GenshinPacket.java @@ -0,0 +1,141 @@ +package emu.grasscutter.net.packet; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; + +import com.google.protobuf.GeneratedMessageV3; +import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; +import emu.grasscutter.utils.Crypto; + +public class GenshinPacket { + private static final int const1 = 17767; // 0x4567 + private static final int const2 = -30293; // 0x89ab + + private int opcode; + private boolean shouldBuildHeader = false; + + private byte[] header; + private byte[] data; + + // Encryption + private boolean useDispatchKey; + public boolean shouldEncrypt = true; + + public GenshinPacket(int opcode) { + this.opcode = opcode; + } + + public GenshinPacket(int opcode, int clientSequence) { + this.opcode = opcode; + this.buildHeader(clientSequence); + } + + public GenshinPacket(int opcode, boolean buildHeader) { + this.opcode = opcode; + this.shouldBuildHeader = buildHeader; + } + + public int getOpcode() { + return opcode; + } + + public void setOpcode(int opcode) { + this.opcode = opcode; + } + + public boolean useDispatchKey() { + return useDispatchKey; + } + + public void setUseDispatchKey(boolean useDispatchKey) { + this.useDispatchKey = useDispatchKey; + } + + public byte[] getHeader() { + return header; + } + + public void setHeader(byte[] header) { + this.header = header; + } + + public boolean shouldBuildHeader() { + return shouldBuildHeader; + } + + public byte[] getData() { + return data; + } + + public void setData(byte[] data) { + this.data = data; + } + + public void setData(GeneratedMessageV3 proto) { + this.data = proto.toByteArray(); + } + + @SuppressWarnings("rawtypes") + public void setData(GeneratedMessageV3.Builder proto) { + this.data = proto.build().toByteArray(); + } + + public GenshinPacket buildHeader(int clientSequence) { + if (this.getHeader() != null && clientSequence == 0) { + return this; + } + setHeader(PacketHead.newBuilder().setClientSequenceId(clientSequence).setTimestamp(System.currentTimeMillis()).build().toByteArray()); + return this; + } + + public byte[] build() { + if (getHeader() == null) { + this.header = new byte[0]; + } + + if (getData() == null) { + this.data = new byte[0]; + } + + ByteArrayOutputStream baos = new ByteArrayOutputStream(2 + 2 + 2 + 4 + getHeader().length + getData().length + 2); + + this.writeUint16(baos, const1); + this.writeUint16(baos, opcode); + this.writeUint16(baos, header.length); + this.writeUint32(baos, data.length); + this.writeBytes(baos, header); + this.writeBytes(baos, data); + this.writeUint16(baos, const2); + + byte[] packet = baos.toByteArray(); + + if (this.shouldEncrypt) { + Crypto.xor(packet, this.useDispatchKey() ? Crypto.DISPATCH_KEY : Crypto.ENCRYPT_KEY); + } + + return packet; + } + + public void writeUint16(ByteArrayOutputStream baos, int i) { + // Unsigned short + baos.write((byte) ((i >>> 8) & 0xFF)); + baos.write((byte) (i & 0xFF)); + } + + public void writeUint32(ByteArrayOutputStream baos, int i) { + // Unsigned int (long) + baos.write((byte) ((i >>> 24) & 0xFF)); + baos.write((byte) ((i >>> 16) & 0xFF)); + baos.write((byte) ((i >>> 8) & 0xFF)); + baos.write((byte) (i & 0xFF)); + } + + public void writeBytes(ByteArrayOutputStream baos, byte[] bytes) { + try { + baos.write(bytes); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } +} diff --git a/src/main/java/emu/grasscutter/net/packet/Opcodes.java b/src/main/java/emu/grasscutter/net/packet/Opcodes.java new file mode 100644 index 000000000..0f818e351 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/Opcodes.java @@ -0,0 +1,13 @@ +package emu.grasscutter.net.packet; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Opcodes { + /** Opcode for the packet/handler */ + int value(); + + /** HANDLER ONLY - will disable this handler from being registered */ + boolean disabled() default false; +} diff --git a/src/main/java/emu/grasscutter/net/packet/PacketHandler.java b/src/main/java/emu/grasscutter/net/packet/PacketHandler.java new file mode 100644 index 000000000..c8fbc3a89 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/PacketHandler.java @@ -0,0 +1,9 @@ +package emu.grasscutter.net.packet; + +import emu.grasscutter.server.game.GameSession; + +public abstract class PacketHandler { + protected static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; + + public abstract void handle(GameSession session, byte[] header, byte[] payload) throws Exception; +} diff --git a/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java b/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java new file mode 100644 index 000000000..1399a6924 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/PacketOpcodes.java @@ -0,0 +1,1211 @@ +package emu.grasscutter.net.packet; + +public class PacketOpcodes { + // Empty + public static final int NONE = 0; + + // Opcodes + public static final int AbilityChangeNotify = 1179; + public static final int AbilityInvocationFailNotify = 1137; + public static final int AbilityInvocationFixedNotify = 1160; + public static final int AbilityInvocationsNotify = 1133; + public static final int AcceptCityReputationRequestReq = 2845; + public static final int AcceptCityReputationRequestRsp = 2875; + public static final int AchievementAllDataNotify = 1155; + public static final int AchievementUpdateNotify = 1146; + public static final int ActivityCoinInfoNotify = 2056; + public static final int ActivityCondStateChangeNotify = 2162; + public static final int ActivityInfoNotify = 2023; + public static final int ActivityPlayOpenAnimNotify = 2164; + public static final int ActivitySaleChangeNotify = 2043; + public static final int ActivityScheduleInfoNotify = 2187; + public static final int ActivitySelectAvatarCardReq = 2153; + public static final int ActivitySelectAvatarCardRsp = 2069; + public static final int ActivityTakeAllScoreRewardRsp = 8836; + public static final int ActivityTakeWatcherRewardBatchReq = 2027; + public static final int ActivityTakeWatcherRewardBatchRsp = 2036; + public static final int ActivityTakeWatcherRewardReq = 2074; + public static final int ActivityTakeWatcherRewardRsp = 2180; + public static final int ActivityUpdateWatcherNotify = 2101; + public static final int AddBlacklistReq = 4067; + public static final int AddBlacklistRsp = 4020; + public static final int AddFriendNotify = 4026; + public static final int AddNoGachaAvatarCardNotify = 1740; + public static final int AddQuestContentProgressReq = 493; + public static final int AddQuestContentProgressRsp = 444; + public static final int AddRandTaskInfoNotify = 147; + public static final int AddSeenMonsterNotify = 242; + public static final int AdjustWorldLevelReq = 104; + public static final int AdjustWorldLevelRsp = 106; + public static final int AllCoopInfoNotify = 1985; + public static final int AllMarkPointNotify = 3462; + public static final int AllSeenMonsterNotify = 276; + public static final int AllWidgetDataNotify = 4284; + public static final int AnchorPointDataNotify = 4285; + public static final int AnchorPointOpReq = 4298; + public static final int AnchorPointOpRsp = 4263; + public static final int AnimatorForceSetAirMoveNotify = 308; + public static final int AntiAddictNotify = 177; + public static final int ArenaChallengeFinishNotify = 2083; + public static final int AskAddFriendNotify = 4062; + public static final int AskAddFriendReq = 4037; + public static final int AskAddFriendRsp = 4093; + public static final int AsterLargeInfoNotify = 2133; + public static final int AsterLittleInfoNotify = 2058; + public static final int AsterMidCampInfoNotify = 2115; + public static final int AsterMidInfoNotify = 2151; + public static final int AsterMiscInfoNotify = 2098; + public static final int AsterProgressInfoNotify = 2065; + public static final int AvatarAddNotify = 1759; + public static final int AvatarBuffAddNotify = 367; + public static final int AvatarBuffDelNotify = 320; + public static final int AvatarCardChangeReq = 667; + public static final int AvatarCardChangeRsp = 620; + public static final int AvatarChangeCostumeNotify = 1748; + public static final int AvatarChangeCostumeReq = 1650; + public static final int AvatarChangeCostumeRsp = 1632; + public static final int AvatarChangeElementTypeReq = 1741; + public static final int AvatarChangeElementTypeRsp = 1626; + public static final int AvatarDataNotify = 1757; + public static final int AvatarDelNotify = 1624; + public static final int AvatarDieAnimationEndReq = 1635; + public static final int AvatarDieAnimationEndRsp = 1638; + public static final int AvatarEnterElementViewNotify = 366; + public static final int AvatarEquipAffixStartNotify = 1734; + public static final int AvatarEquipChangeNotify = 674; + public static final int AvatarExpeditionAllDataReq = 1721; + public static final int AvatarExpeditionAllDataRsp = 1800; + public static final int AvatarExpeditionCallBackReq = 1607; + public static final int AvatarExpeditionCallBackRsp = 1783; + public static final int AvatarExpeditionDataNotify = 1777; + public static final int AvatarExpeditionGetRewardReq = 1604; + public static final int AvatarExpeditionGetRewardRsp = 1731; + public static final int AvatarExpeditionStartReq = 1788; + public static final int AvatarExpeditionStartRsp = 1786; + public static final int AvatarFetterDataNotify = 1718; + public static final int AvatarFetterLevelRewardReq = 1717; + public static final int AvatarFetterLevelRewardRsp = 1690; + public static final int AvatarFightPropNotify = 1237; + public static final int AvatarFightPropUpdateNotify = 1293; + public static final int AvatarFlycloakChangeNotify = 1761; + public static final int AvatarFollowRouteNotify = 3210; + public static final int AvatarGainCostumeNotify = 1778; + public static final int AvatarGainFlycloakNotify = 1676; + public static final int AvatarLifeStateChangeNotify = 1245; + public static final int AvatarPromoteGetRewardReq = 1784; + public static final int AvatarPromoteGetRewardRsp = 1776; + public static final int AvatarPromoteReq = 1661; + public static final int AvatarPromoteRsp = 1712; + public static final int AvatarPropChangeReasonNotify = 1275; + public static final int AvatarPropNotify = 1279; + public static final int AvatarSatiationDataNotify = 1639; + public static final int AvatarSkillChangeNotify = 1088; + public static final int AvatarSkillDepotChangeNotify = 1015; + public static final int AvatarSkillInfoNotify = 1045; + public static final int AvatarSkillMaxChargeCountNotify = 1044; + public static final int AvatarSkillUpgradeReq = 1091; + public static final int AvatarSkillUpgradeRsp = 1097; + public static final int AvatarTeamUpdateNotify = 1649; + public static final int AvatarUnlockTalentNotify = 1010; + public static final int AvatarUpgradeReq = 1660; + public static final int AvatarUpgradeRsp = 1735; + public static final int AvatarWearFlycloakReq = 1677; + public static final int AvatarWearFlycloakRsp = 1782; + public static final int BackMyWorldReq = 219; + public static final int BackMyWorldRsp = 269; + public static final int BargainOfferPriceReq = 409; + public static final int BargainOfferPriceRsp = 465; + public static final int BargainStartNotify = 489; + public static final int BargainTerminateNotify = 403; + public static final int BattlePassAllDataNotify = 2635; + public static final int BattlePassBuySuccNotify = 2612; + public static final int BattlePassCurScheduleUpdateNotify = 2648; + public static final int BattlePassMissionDelNotify = 2645; + public static final int BattlePassMissionUpdateNotify = 2625; + public static final int BeginCameraSceneLookNotify = 261; + public static final int BigTalentPointConvertReq = 1037; + public static final int BigTalentPointConvertRsp = 1093; + public static final int BlessingAcceptAllGivePicReq = 2176; + public static final int BlessingAcceptAllGivePicRsp = 2050; + public static final int BlessingAcceptGivePicReq = 2134; + public static final int BlessingAcceptGivePicRsp = 2117; + public static final int BlessingGetAllRecvPicRecordListReq = 2090; + public static final int BlessingGetAllRecvPicRecordListRsp = 2140; + public static final int BlessingGetFriendPicListReq = 2077; + public static final int BlessingGetFriendPicListRsp = 2182; + public static final int BlessingGiveFriendPicReq = 2161; + public static final int BlessingGiveFriendPicRsp = 2076; + public static final int BlessingRecvFriendPicNotify = 2184; + public static final int BlessingRedeemRewardReq = 2172; + public static final int BlessingRedeemRewardRsp = 2039; + public static final int BlessingScanReq = 2186; + public static final int BlessingScanRsp = 2007; + public static final int BlossomBriefInfoNotify = 2710; + public static final int BlossomChestCreateNotify = 2793; + public static final int BlossomChestInfoNotify = 845; + public static final int BonusActivityInfoReq = 2597; + public static final int BonusActivityInfoRsp = 2588; + public static final int BonusActivityUpdateNotify = 2591; + public static final int BossChestActivateNotify = 844; + public static final int BuyBattlePassLevelReq = 2639; + public static final int BuyBattlePassLevelRsp = 2621; + public static final int BuyGoodsReq = 710; + public static final int BuyGoodsRsp = 715; + public static final int BuyResinReq = 630; + public static final int BuyResinRsp = 647; + public static final int CalcWeaponUpgradeReturnItemsReq = 643; + public static final int CalcWeaponUpgradeReturnItemsRsp = 686; + public static final int CanUseSkillNotify = 1055; + public static final int CancelCityReputationRequestReq = 2834; + public static final int CancelCityReputationRequestRsp = 2879; + public static final int CancelCoopTaskReq = 1989; + public static final int CancelCoopTaskRsp = 1971; + public static final int CancelFinishParentQuestNotify = 492; + public static final int CardProductRewardNotify = 4148; + public static final int ChallengeDataNotify = 983; + public static final int ChallengeRecordNotify = 909; + public static final int ChangeAvatarReq = 1743; + public static final int ChangeAvatarRsp = 1672; + public static final int ChangeGameTimeReq = 175; + public static final int ChangeGameTimeRsp = 134; + public static final int ChangeMailStarNotify = 1497; + public static final int ChangeMpTeamAvatarReq = 1794; + public static final int ChangeMpTeamAvatarRsp = 1629; + public static final int ChangeTeamNameReq = 1793; + public static final int ChangeTeamNameRsp = 1707; + public static final int ChangeWorldToSingleModeNotify = 3293; + public static final int ChangeWorldToSingleModeReq = 3174; + public static final int ChangeWorldToSingleModeRsp = 3308; + public static final int ChapterStateNotify = 455; + public static final int ChatChannelDataNotify = 5047; + public static final int ChatChannelUpdateNotify = 5041; + public static final int ChatHistoryNotify = 3265; + public static final int CheckSegmentCRCNotify = 56; + public static final int CheckSegmentCRCReq = 83; + public static final int ChooseCurAvatarTeamReq = 1713; + public static final int ChooseCurAvatarTeamRsp = 1608; + public static final int CityReputationDataNotify = 2855; + public static final int CityReputationLevelupNotify = 2837; + public static final int ClientAIStateNotify = 1128; + public static final int ClientAbilitiesInitFinishCombineNotify = 1144; + public static final int ClientAbilityChangeNotify = 1191; + public static final int ClientAbilityInitBeginNotify = 1110; + public static final int ClientAbilityInitFinishNotify = 1115; + public static final int ClientCollectorDataNotify = 4262; + public static final int ClientLockGameTimeNotify = 194; + public static final int ClientNewMailNotify = 1434; + public static final int ClientPauseNotify = 278; + public static final int ClientReconnectNotify = 91; + public static final int ClientReportNotify = 28; + public static final int ClientScriptEventNotify = 218; + public static final int ClientTransmitReq = 252; + public static final int ClientTransmitRsp = 292; + public static final int ClientTriggerEventNotify = 197; + public static final int CloseCommonTipsNotify = 3187; + public static final int CodexDataFullNotify = 4204; + public static final int CodexDataUpdateNotify = 4205; + public static final int CombatInvocationsNotify = 347; + public static final int CombineDataNotify = 649; + public static final int CombineFormulaDataNotify = 685; + public static final int CombineReq = 663; + public static final int CombineRsp = 608; + public static final int CompoundDataNotify = 181; + public static final int CookDataNotify = 164; + public static final int CookGradeDataNotify = 166; + public static final int CookRecipeDataNotify = 101; + public static final int CoopCgShowNotify = 1983; + public static final int CoopCgUpdateNotify = 1993; + public static final int CoopChapterUpdateNotify = 1986; + public static final int CoopDataNotify = 1967; + public static final int CoopPointUpdateNotify = 1987; + public static final int CoopProgressUpdateNotify = 2000; + public static final int CoopRewardUpdateNotify = 1976; + public static final int CreateMassiveEntityNotify = 336; + public static final int CreateMassiveEntityReq = 323; + public static final int CreateMassiveEntityRsp = 313; + public static final int CutSceneBeginNotify = 241; + public static final int CutSceneEndNotify = 214; + public static final int CutSceneFinishNotify = 248; + public static final int DailyTaskDataNotify = 124; + public static final int DailyTaskProgressNotify = 161; + public static final int DailyTaskScoreRewardNotify = 138; + public static final int DataResVersionNotify = 136; + public static final int DealAddFriendReq = 4044; + public static final int DealAddFriendRsp = 4045; + public static final int DelMailReq = 1493; + public static final int DelMailRsp = 1444; + public static final int DelScenePlayTeamEntityNotify = 3117; + public static final int DelTeamEntityNotify = 330; + public static final int DeleteFriendNotify = 4083; + public static final int DeleteFriendReq = 4079; + public static final int DeleteFriendRsp = 4091; + public static final int DestroyMassiveEntityNotify = 324; + public static final int DestroyMaterialReq = 670; + public static final int DestroyMaterialRsp = 654; + public static final int DoGachaReq = 1510; + public static final int DoGachaRsp = 1515; + public static final int DoSetPlayerBornDataNotify = 174; + public static final int DraftGuestReplyInviteNotify = 5445; + public static final int DraftGuestReplyInviteReq = 5493; + public static final int DraftGuestReplyInviteRsp = 5444; + public static final int DraftGuestReplyTwiceConfirmNotify = 5488; + public static final int DraftGuestReplyTwiceConfirmReq = 5479; + public static final int DraftGuestReplyTwiceConfirmRsp = 5491; + public static final int DraftInviteResultNotify = 5475; + public static final int DraftOwnerInviteNotify = 5437; + public static final int DraftOwnerStartInviteReq = 5410; + public static final int DraftOwnerStartInviteRsp = 5415; + public static final int DraftOwnerTwiceConfirmNotify = 5434; + public static final int DraftTwiceConfirmResultNotify = 5497; + public static final int DragonSpineChapterFinishNotify = 2196; + public static final int DragonSpineChapterOpenNotify = 2070; + public static final int DragonSpineChapterProgressChangeNotify = 2001; + public static final int DragonSpineCoinChangeNotify = 2189; + public static final int DropHintNotify = 673; + public static final int DropItemReq = 634; + public static final int DropItemRsp = 679; + public static final int DropSubfieldReq = 232; + public static final int DropSubfieldRsp = 251; + public static final int DungeonCandidateTeamChangeAvatarReq = 958; + public static final int DungeonCandidateTeamChangeAvatarRsp = 923; + public static final int DungeonCandidateTeamCreateReq = 964; + public static final int DungeonCandidateTeamCreateRsp = 901; + public static final int DungeonCandidateTeamDismissNotify = 980; + public static final int DungeonCandidateTeamInfoNotify = 965; + public static final int DungeonCandidateTeamInviteNotify = 903; + public static final int DungeonCandidateTeamInviteReq = 966; + public static final int DungeonCandidateTeamInviteRsp = 973; + public static final int DungeonCandidateTeamKickReq = 963; + public static final int DungeonCandidateTeamKickRsp = 908; + public static final int DungeonCandidateTeamLeaveReq = 917; + public static final int DungeonCandidateTeamLeaveRsp = 981; + public static final int DungeonCandidateTeamPlayerLeaveNotify = 920; + public static final int DungeonCandidateTeamRefuseNotify = 967; + public static final int DungeonCandidateTeamReplyInviteReq = 927; + public static final int DungeonCandidateTeamReplyInviteRsp = 902; + public static final int DungeonCandidateTeamSetReadyReq = 952; + public static final int DungeonCandidateTeamSetReadyRsp = 992; + public static final int DungeonChallengeBeginNotify = 974; + public static final int DungeonChallengeFinishNotify = 956; + public static final int DungeonDataNotify = 946; + public static final int DungeonDieOptionReq = 991; + public static final int DungeonDieOptionRsp = 997; + public static final int DungeonEntryInfoReq = 960; + public static final int DungeonEntryInfoRsp = 933; + public static final int DungeonEntryToBeExploreNotify = 3067; + public static final int DungeonFollowNotify = 926; + public static final int DungeonGetStatueDropReq = 962; + public static final int DungeonGetStatueDropRsp = 989; + public static final int DungeonInterruptChallengeReq = 938; + public static final int DungeonInterruptChallengeRsp = 930; + public static final int DungeonPlayerDieNotify = 979; + public static final int DungeonPlayerDieReq = 928; + public static final int DungeonPlayerDieRsp = 955; + public static final int DungeonRestartInviteNotify = 984; + public static final int DungeonRestartInviteReplyNotify = 972; + public static final int DungeonRestartInviteReplyReq = 912; + public static final int DungeonRestartInviteReplyRsp = 953; + public static final int DungeonRestartReq = 932; + public static final int DungeonRestartResultNotify = 970; + public static final int DungeonRestartRsp = 951; + public static final int DungeonSettleNotify = 934; + public static final int DungeonShowReminderNotify = 988; + public static final int DungeonSlipRevivePointActivateReq = 924; + public static final int DungeonSlipRevivePointActivateRsp = 961; + public static final int DungeonWayPointActivateReq = 945; + public static final int DungeonWayPointActivateRsp = 975; + public static final int DungeonWayPointNotify = 944; + public static final int EchoNotify = 62; + public static final int EffigyChallengeInfoNotify = 2159; + public static final int EffigyChallengeResultNotify = 2024; + public static final int EndCameraSceneLookNotify = 238; + public static final int EnterMechanicusDungeonReq = 3979; + public static final int EnterMechanicusDungeonRsp = 3991; + public static final int EnterSceneDoneReq = 268; + public static final int EnterSceneDoneRsp = 290; + public static final int EnterScenePeerNotify = 282; + public static final int EnterSceneReadyReq = 298; + public static final int EnterSceneReadyRsp = 296; + public static final int EnterSceneWeatherAreaNotify = 258; + public static final int EnterTransPointRegionNotify = 255; + public static final int EnterTrialAvatarActivityDungeonReq = 2031; + public static final int EnterTrialAvatarActivityDungeonRsp = 2175; + public static final int EnterWorldAreaReq = 273; + public static final int EnterWorldAreaRsp = 263; + public static final int EntityAiKillSelfNotify = 370; + public static final int EntityAiSyncNotify = 312; + public static final int EntityAuthorityChangeNotify = 303; + public static final int EntityConfigHashNotify = 3458; + public static final int EntityFightPropChangeReasonNotify = 1244; + public static final int EntityFightPropNotify = 1210; + public static final int EntityFightPropUpdateNotify = 1215; + public static final int EntityForceSyncReq = 208; + public static final int EntityForceSyncRsp = 217; + public static final int EntityJumpNotify = 226; + public static final int EntityMoveRoomNotify = 3135; + public static final int EntityPropNotify = 1260; + public static final int EntityTagChangeNotify = 3262; + public static final int EvtAiSyncCombatThreatInfoNotify = 351; + public static final int EvtAiSyncSkillCdNotify = 317; + public static final int EvtAnimatorParameterNotify = 333; + public static final int EvtAnimatorStateChangedNotify = 379; + public static final int EvtAvatarEnterFocusNotify = 389; + public static final int EvtAvatarExitFocusNotify = 309; + public static final int EvtAvatarSitDownNotify = 392; + public static final int EvtAvatarStandUpNotify = 358; + public static final int EvtAvatarUpdateFocusNotify = 365; + public static final int EvtBeingHitNotify = 360; + public static final int EvtBeingHitsCombineNotify = 381; + public static final int EvtBulletDeactiveNotify = 388; + public static final int EvtBulletHitNotify = 397; + public static final int EvtBulletMoveNotify = 362; + public static final int EvtCostStaminaNotify = 375; + public static final int EvtCreateGadgetNotify = 337; + public static final int EvtDestroyGadgetNotify = 393; + public static final int EvtDestroyServerGadgetNotify = 372; + public static final int EvtDoSkillSuccNotify = 315; + public static final int EvtEntityRenderersChangedNotify = 363; + public static final int EvtEntityStartDieEndNotify = 328; + public static final int EvtFaceToDirNotify = 345; + public static final int EvtFaceToEntityNotify = 344; + public static final int EvtRushMoveNotify = 391; + public static final int EvtSetAttackTargetNotify = 334; + public static final int ExecuteGadgetLuaReq = 231; + public static final int ExecuteGadgetLuaRsp = 240; + public static final int ExecuteGroupTriggerReq = 284; + public static final int ExecuteGroupTriggerRsp = 212; + public static final int ExitSceneWeatherAreaNotify = 223; + public static final int ExitTransPointRegionNotify = 246; + public static final int ExpeditionChallengeEnterRegionNotify = 2095; + public static final int ExpeditionChallengeFinishedNotify = 2197; + public static final int ExpeditionRecallReq = 2114; + public static final int ExpeditionRecallRsp = 2108; + public static final int ExpeditionStartReq = 2032; + public static final int ExpeditionStartRsp = 2148; + public static final int ExpeditionTakeRewardReq = 2053; + public static final int ExpeditionTakeRewardRsp = 2181; + public static final int FinishDeliveryNotify = 2126; + public static final int FinishMainCoopReq = 1963; + public static final int FinishMainCoopRsp = 1951; + public static final int FinishedParentQuestNotify = 415; + public static final int FinishedParentQuestUpdateNotify = 437; + public static final int FleurFairBalloonSettleNotify = 2192; + public static final int FleurFairBuffEnergyNotify = 5392; + public static final int FleurFairFallSettleNotify = 2015; + public static final int FleurFairFinishGalleryStageNotify = 5323; + public static final int FleurFairMusicGameSettleReq = 2064; + public static final int FleurFairMusicGameSettleRsp = 2040; + public static final int FleurFairMusicGameStartReq = 2105; + public static final int FleurFairMusicGameStartRsp = 2179; + public static final int FleurFairReplayMiniGameReq = 2146; + public static final int FleurFairReplayMiniGameRsp = 2089; + public static final int FleurFairStageSettleNotify = 5358; + public static final int FlightActivityRestartReq = 2073; + public static final int FlightActivityRestartRsp = 2045; + public static final int FlightActivitySettleNotify = 2195; + public static final int FocusAvatarReq = 1710; + public static final int FocusAvatarRsp = 1772; + public static final int ForceAddPlayerFriendReq = 4084; + public static final int ForceAddPlayerFriendRsp = 4012; + public static final int ForceDragAvatarNotify = 3056; + public static final int ForceDragBackTransferNotify = 3171; + public static final int ForgeDataNotify = 677; + public static final int ForgeFormulaDataNotify = 625; + public static final int ForgeGetQueueDataReq = 681; + public static final int ForgeGetQueueDataRsp = 627; + public static final int ForgeQueueDataNotify = 617; + public static final int ForgeQueueManipulateReq = 692; + public static final int ForgeQueueManipulateRsp = 658; + public static final int ForgeStartReq = 602; + public static final int ForgeStartRsp = 652; + public static final int FoundationNotify = 874; + public static final int FoundationReq = 855; + public static final int FoundationRsp = 846; + public static final int FunitureMakeMakeInfoChangeNotify = 4523; + public static final int FurnitureCurModuleArrangeCountNotify = 4770; + public static final int FurnitureMakeBeHelpedNotify = 4825; + public static final int FurnitureMakeCancelReq = 4495; + public static final int FurnitureMakeCancelRsp = 4814; + public static final int FurnitureMakeFinishNotify = 4707; + public static final int FurnitureMakeHelpReq = 4779; + public static final int FurnitureMakeHelpRsp = 4455; + public static final int FurnitureMakeReq = 4885; + public static final int FurnitureMakeRsp = 4819; + public static final int FurnitureMakeStartReq = 4518; + public static final int FurnitureMakeStartRsp = 4521; + public static final int GMShowNavMeshReq = 2384; + public static final int GMShowNavMeshRsp = 2312; + public static final int GMShowObstacleReq = 2332; + public static final int GMShowObstacleRsp = 2351; + public static final int GadgetAutoPickDropInfoNotify = 888; + public static final int GadgetGeneralRewardInfoNotify = 897; + public static final int GadgetInteractReq = 860; + public static final int GadgetInteractRsp = 833; + public static final int GadgetPlayDataNotify = 879; + public static final int GadgetPlayStartNotify = 875; + public static final int GadgetPlayStopNotify = 834; + public static final int GadgetPlayUidOpNotify = 891; + public static final int GadgetStateNotify = 810; + public static final int GadgetTalkChangeNotify = 856; + public static final int GalleryBalloonScoreNotify = 5510; + public static final int GalleryBalloonShootNotify = 5533; + public static final int GalleryBrokenFloorFallNotify = 5591; + public static final int GalleryBulletHitNotify = 5579; + public static final int GalleryFallCatchNotify = 5537; + public static final int GalleryFallScoreNotify = 5593; + public static final int GalleryFlowerCatchNotify = 5575; + public static final int GalleryPreStartNotify = 5534; + public static final int GalleryStartNotify = 5560; + public static final int GalleryStopNotify = 5515; + public static final int GetActivityInfoReq = 2011; + public static final int GetActivityInfoRsp = 2170; + public static final int GetActivityScheduleReq = 2663; + public static final int GetActivityScheduleRsp = 2651; + public static final int GetActivityShopSheetInfoReq = 744; + public static final int GetActivityShopSheetInfoRsp = 745; + public static final int GetAllActivatedBargainDataReq = 480; + public static final int GetAllActivatedBargainDataRsp = 464; + public static final int GetAllH5ActivityInfoReq = 5675; + public static final int GetAllMailReq = 1479; + public static final int GetAllMailRsp = 1491; + public static final int GetAllSceneGalleryInfoReq = 5544; + public static final int GetAllSceneGalleryInfoRsp = 5545; + public static final int GetAllUnlockNameCardReq = 4065; + public static final int GetAllUnlockNameCardRsp = 4003; + public static final int GetAreaExplorePointReq = 227; + public static final int GetAreaExplorePointRsp = 202; + public static final int GetAuthSalesmanInfoReq = 2082; + public static final int GetAuthSalesmanInfoRsp = 2173; + public static final int GetAuthkeyReq = 1445; + public static final int GetAuthkeyRsp = 1475; + public static final int GetBargainDataReq = 467; + public static final int GetBargainDataRsp = 420; + public static final int GetBattlePassProductReq = 2643; + public static final int GetBattlePassProductRsp = 2626; + public static final int GetBlossomBriefInfoListReq = 2760; + public static final int GetBlossomBriefInfoListRsp = 2733; + public static final int GetBonusActivityRewardReq = 2528; + public static final int GetBonusActivityRewardRsp = 2555; + public static final int GetCityHuntingOfferReq = 4456; + public static final int GetCityHuntingOfferRsp = 4747; + public static final int GetCityReputationInfoReq = 2860; + public static final int GetCityReputationInfoRsp = 2833; + public static final int GetCityReputationMapInfoReq = 2891; + public static final int GetCityReputationMapInfoRsp = 2897; + public static final int GetCompoundDataReq = 127; + public static final int GetCompoundDataRsp = 102; + public static final int GetDailyDungeonEntryInfoReq = 913; + public static final int GetDailyDungeonEntryInfoRsp = 936; + public static final int GetDungeonEntryExploreConditionReq = 3208; + public static final int GetDungeonEntryExploreConditionRsp = 3391; + public static final int GetExpeditionAssistInfoListReq = 2124; + public static final int GetExpeditionAssistInfoListRsp = 2168; + public static final int GetFriendShowAvatarInfoReq = 4061; + public static final int GetFriendShowAvatarInfoRsp = 4038; + public static final int GetFriendShowNameCardInfoReq = 4032; + public static final int GetFriendShowNameCardInfoRsp = 4051; + public static final int GetFurnitureCurModuleArrangeCountReq = 4618; + public static final int GetGachaInfoReq = 1560; + public static final int GetGachaInfoRsp = 1533; + public static final int GetHomeLevelUpRewardReq = 4508; + public static final int GetHomeLevelUpRewardRsp = 4864; + public static final int GetHuntingOfferRewardReq = 4769; + public static final int GetHuntingOfferRewardRsp = 4860; + public static final int GetInvestigationMonsterReq = 1928; + public static final int GetInvestigationMonsterRsp = 1921; + public static final int GetMailItemReq = 1415; + public static final int GetMailItemRsp = 1437; + public static final int GetMapMarkTipsReq = 3307; + public static final int GetMapMarkTipsRsp = 3040; + public static final int GetMechanicusInfoReq = 3960; + public static final int GetMechanicusInfoRsp = 3933; + public static final int GetNextResourceInfoReq = 139; + public static final int GetNextResourceInfoRsp = 187; + public static final int GetOnlinePlayerInfoReq = 46; + public static final int GetOnlinePlayerInfoRsp = 74; + public static final int GetOnlinePlayerListReq = 45; + public static final int GetOnlinePlayerListRsp = 75; + public static final int GetOpActivityInfoReq = 5160; + public static final int GetOpActivityInfoRsp = 5133; + public static final int GetPlayerAskFriendListRsp = 4035; + public static final int GetPlayerBlacklistReq = 4002; + public static final int GetPlayerBlacklistRsp = 4052; + public static final int GetPlayerFriendListReq = 4060; + public static final int GetPlayerFriendListRsp = 4033; + public static final int GetPlayerHomeCompInfoReq = 4540; + public static final int GetPlayerMpModeAvailabilityReq = 1843; + public static final int GetPlayerMpModeAvailabilityRsp = 1826; + public static final int GetPlayerSocialDetailReq = 4075; + public static final int GetPlayerSocialDetailRsp = 4034; + public static final int GetPlayerTokenReq = 160; + public static final int GetPlayerTokenRsp = 133; + public static final int GetPushTipsRewardReq = 2265; + public static final int GetPushTipsRewardRsp = 2203; + public static final int GetQuestTalkHistoryReq = 445; + public static final int GetQuestTalkHistoryRsp = 475; + public static final int GetRecentMpPlayerListReq = 4066; + public static final int GetRecentMpPlayerListRsp = 4073; + public static final int GetRegionSearchReq = 5613; + public static final int GetReunionMissionInfoReq = 5093; + public static final int GetReunionMissionInfoRsp = 5076; + public static final int GetReunionPrivilegeInfoReq = 5089; + public static final int GetReunionPrivilegeInfoRsp = 5071; + public static final int GetReunionSignInInfoReq = 5063; + public static final int GetReunionSignInInfoRsp = 5051; + public static final int GetSceneAreaReq = 262; + public static final int GetSceneAreaRsp = 289; + public static final int GetSceneNpcPositionReq = 515; + public static final int GetSceneNpcPositionRsp = 537; + public static final int GetScenePerformanceReq = 3217; + public static final int GetScenePerformanceRsp = 3319; + public static final int GetScenePointReq = 288; + public static final int GetScenePointRsp = 228; + public static final int GetShopReq = 760; + public static final int GetShopRsp = 733; + public static final int GetShopmallDataReq = 737; + public static final int GetShopmallDataRsp = 793; + public static final int GetSignInRewardReq = 2537; + public static final int GetSignInRewardRsp = 2593; + public static final int GetWidgetSlotReq = 4258; + public static final int GetWidgetSlotRsp = 4294; + public static final int GetWorldMpInfoReq = 3439; + public static final int GetWorldMpInfoRsp = 3424; + public static final int GivingRecordChangeNotify = 172; + public static final int GivingRecordNotify = 153; + public static final int GmTalkReq = 33; + public static final int GmTalkRsp = 10; + public static final int GrantRewardNotify = 680; + public static final int GroupSuiteNotify = 3368; + public static final int GroupUnloadNotify = 3019; + public static final int H5ActivityIdsNotify = 5695; + public static final int HideAndSeekPlayerReadyNotify = 5330; + public static final int HideAndSeekPlayerSetAvatarNotify = 5347; + public static final int HideAndSeekSelectAvatarReq = 5313; + public static final int HideAndSeekSelectAvatarRsp = 5336; + public static final int HideAndSeekSetReadyReq = 5324; + public static final int HideAndSeekSetReadyRsp = 5361; + public static final int HideAndSeekSettleNotify = 5338; + public static final int HitClientTrivialNotify = 250; + public static final int HitTreeNotify = 3432; + public static final int HomeBasicInfoNotify = 4869; + public static final int HomeBlockNotify = 4784; + public static final int HomeChangeEditModeReq = 4483; + public static final int HomeChangeEditModeRsp = 4880; + public static final int HomeChangeModuleReq = 4604; + public static final int HomeChangeModuleRsp = 4631; + public static final int HomeChooseModuleReq = 4567; + public static final int HomeChooseModuleRsp = 4633; + public static final int HomeComfortInfoNotify = 4649; + public static final int HomeGetArrangementInfoReq = 4480; + public static final int HomeGetArrangementInfoRsp = 4781; + public static final int HomeGetBasicInfoReq = 4839; + public static final int HomeGetOnlineStatusReq = 4673; + public static final int HomeGetOnlineStatusRsp = 4626; + public static final int HomeKickPlayerReq = 4547; + public static final int HomeKickPlayerRsp = 4897; + public static final int HomeLimitedShopBuyGoodsReq = 4620; + public static final int HomeLimitedShopBuyGoodsRsp = 4667; + public static final int HomeLimitedShopGoodsListReq = 4706; + public static final int HomeLimitedShopGoodsListRsp = 4587; + public static final int HomeLimitedShopInfoChangeNotify = 4691; + public static final int HomeLimitedShopInfoNotify = 4679; + public static final int HomeLimitedShopInfoReq = 4715; + public static final int HomeLimitedShopInfoRsp = 4808; + public static final int HomeResourceNotify = 4513; + public static final int HomeResourceTakeFetterExpReq = 4884; + public static final int HomeResourceTakeFetterExpRsp = 4608; + public static final int HomeResourceTakeHomeCoinReq = 4812; + public static final int HomeResourceTakeHomeCoinRsp = 4481; + public static final int HomeSceneJumpReq = 4862; + public static final int HomeSceneJumpRsp = 4663; + public static final int HomeUpdateArrangementInfoReq = 4632; + public static final int HomeUpdateArrangementInfoRsp = 4820; + public static final int HostPlayerNotify = 310; + public static final int HuntingFailNotify = 4345; + public static final int HuntingGiveUpReq = 4313; + public static final int HuntingGiveUpRsp = 4301; + public static final int HuntingOngoingNotify = 4348; + public static final int HuntingRevealClueNotify = 4564; + public static final int HuntingRevealFinalNotify = 4335; + public static final int HuntingStartNotify = 4694; + public static final int HuntingSuccessNotify = 4325; + public static final int InBattleMechanicusBuildingPointsNotify = 5344; + public static final int InBattleMechanicusCardResultNotify = 5388; + public static final int InBattleMechanicusConfirmCardNotify = 5397; + public static final int InBattleMechanicusConfirmCardReq = 5379; + public static final int InBattleMechanicusConfirmCardRsp = 5391; + public static final int InBattleMechanicusExcapeMonsterNotify = 5337; + public static final int InBattleMechanicusLeftMonsterNotify = 5393; + public static final int InBattleMechanicusPickCardNotify = 5334; + public static final int InBattleMechanicusPickCardReq = 5345; + public static final int InBattleMechanicusPickCardRsp = 5375; + public static final int InBattleMechanicusSettleNotify = 5355; + public static final int InteractDailyDungeonInfoNotify = 947; + public static final int InterruptGalleryReq = 5597; + public static final int InterruptGalleryRsp = 5588; + public static final int ItemAddHintNotify = 637; + public static final int ItemCdGroupTimeNotify = 666; + public static final int ItemExceedLimitNotify = 639; + public static final int ItemGivingReq = 170; + public static final int ItemGivingRsp = 154; + public static final int JoinHomeWorldFailNotify = 4502; + public static final int JoinPlayerFailNotify = 295; + public static final int JoinPlayerSceneReq = 239; + public static final int JoinPlayerSceneRsp = 287; + public static final int KeepAliveNotify = 60; + public static final int LeaveSceneReq = 233; + public static final int LeaveSceneRsp = 210; + public static final int LevelupCityReq = 253; + public static final int LevelupCityRsp = 272; + public static final int LifeStateChangeNotify = 1233; + public static final int LoadActivityTerrainNotify = 2152; + public static final int LuaSetOptionNotify = 353; + public static final int MailChangeNotify = 1433; + public static final int MainCoopUpdateNotify = 1975; + public static final int MarkEntityInMinMapNotify = 230; + public static final int MarkMapReq = 3053; + public static final int MarkMapRsp = 3139; + public static final int MarkNewNotify = 1291; + public static final int MassiveEntityElementOpBatchNotify = 384; + public static final int MassiveEntityStateChangedNotify = 361; + public static final int MaterialDeleteReturnNotify = 632; + public static final int MaterialDeleteUpdateNotify = 612; + public static final int McoinExchangeHcoinReq = 653; + public static final int McoinExchangeHcoinRsp = 672; + public static final int MechanicusCandidateTeamCreateReq = 3928; + public static final int MechanicusCandidateTeamCreateRsp = 3955; + public static final int MechanicusCloseNotify = 3993; + public static final int MechanicusCoinNotify = 3915; + public static final int MechanicusLevelupGearReq = 3975; + public static final int MechanicusLevelupGearRsp = 3934; + public static final int MechanicusOpenNotify = 3937; + public static final int MechanicusSequenceOpenNotify = 3910; + public static final int MechanicusUnlockGearReq = 3944; + public static final int MechanicusUnlockGearRsp = 3945; + public static final int MeetNpcReq = 544; + public static final int MeetNpcRsp = 545; + public static final int MetNpcIdListNotify = 593; + public static final int MiracleRingDataNotify = 5245; + public static final int MiracleRingDeliverItemReq = 5217; + public static final int MiracleRingDeliverItemRsp = 5236; + public static final int MiracleRingDestroyNotify = 5243; + public static final int MiracleRingDropResultNotify = 5201; + public static final int MiracleRingTakeRewardReq = 5248; + public static final int MiracleRingTakeRewardRsp = 5213; + public static final int MonsterAIConfigHashNotify = 3024; + public static final int MonsterAlertChangeNotify = 380; + public static final int MonsterForceAlertNotify = 364; + public static final int MonsterPointArrayRouteUpdateNotify = 3292; + public static final int MonsterSummonTagNotify = 1360; + public static final int MpBlockNotify = 1824; + public static final int MpPlayGuestReplyInviteReq = 1850; + public static final int MpPlayGuestReplyInviteRsp = 1822; + public static final int MpPlayGuestReplyNotify = 1802; + public static final int MpPlayInviteResultNotify = 1830; + public static final int MpPlayOwnerCheckReq = 1812; + public static final int MpPlayOwnerCheckRsp = 1839; + public static final int MpPlayOwnerInviteNotify = 1831; + public static final int MpPlayOwnerStartInviteReq = 1821; + public static final int MpPlayOwnerStartInviteRsp = 1846; + public static final int MpPlayPrepareInterruptNotify = 1838; + public static final int MpPlayPrepareNotify = 1833; + public static final int MultistagePlayEndNotify = 5307; + public static final int MultistagePlayFinishStageReq = 5333; + public static final int MultistagePlayFinishStageRsp = 5328; + public static final int MultistagePlayInfoNotify = 5360; + public static final int MultistagePlayStageEndNotify = 5321; + public static final int NavMeshStatsNotify = 2353; + public static final int NormalUidOpNotify = 5735; + public static final int NpcTalkReq = 560; + public static final int NpcTalkRsp = 533; + public static final int ObstacleModifyNotify = 2310; + public static final int OneoffGatherPointDetectorDataNotify = 4289; + public static final int OpActivityDataNotify = 5110; + public static final int OpActivityStateNotify = 2560; + public static final int OpActivityUpdateNotify = 5115; + public static final int OpenBlossomCircleCampGuideNotify = 2744; + public static final int OpenStateChangeNotify = 165; + public static final int OpenStateUpdateNotify = 109; + public static final int OrderDisplayNotify = 4101; + public static final int OrderFinishNotify = 4145; + public static final int PSPlayerApplyEnterMpReq = 1837; + public static final int PSPlayerApplyEnterMpRsp = 1806; + public static final int PathfindingEnterSceneReq = 2337; + public static final int PathfindingEnterSceneRsp = 2393; + public static final int PathfindingPingNotify = 2315; + public static final int PersonalLineAllDataReq = 408; + public static final int PersonalLineAllDataRsp = 417; + public static final int PersonalSceneJumpReq = 286; + public static final int PersonalSceneJumpRsp = 277; + public static final int PingReq = 37; + public static final int PingRsp = 93; + public static final int PlatformChangeRouteNotify = 257; + public static final int PlatformStartRouteNotify = 254; + public static final int PlatformStopRouteNotify = 235; + public static final int PlayerAllowEnterMpAfterAgreeMatchNotify = 4176; + public static final int PlayerApplyEnterHomeNotify = 4614; + public static final int PlayerApplyEnterHomeResultNotify = 4580; + public static final int PlayerApplyEnterHomeResultReq = 4603; + public static final int PlayerApplyEnterHomeResultRsp = 4849; + public static final int PlayerApplyEnterMpAfterMatchAgreedNotify = 4177; + public static final int PlayerApplyEnterMpNotify = 1835; + public static final int PlayerApplyEnterMpReq = 1825; + public static final int PlayerApplyEnterMpResultNotify = 1848; + public static final int PlayerApplyEnterMpResultReq = 1813; + public static final int PlayerApplyEnterMpResultRsp = 1801; + public static final int PlayerApplyEnterMpRsp = 1845; + public static final int PlayerCancelMatchReq = 4198; + public static final int PlayerCancelMatchRsp = 4163; + public static final int PlayerChatCDNotify = 3173; + public static final int PlayerChatNotify = 3485; + public static final int PlayerChatReq = 3403; + public static final int PlayerChatRsp = 3045; + public static final int PlayerCompoundMaterialReq = 173; + public static final int PlayerCompoundMaterialRsp = 163; + public static final int PlayerConfirmMatchReq = 4186; + public static final int PlayerConfirmMatchRsp = 4193; + public static final int PlayerCookArgsReq = 135; + public static final int PlayerCookArgsRsp = 157; + public static final int PlayerCookReq = 103; + public static final int PlayerCookRsp = 167; + public static final int PlayerDataNotify = 145; + public static final int PlayerEnterDungeonReq = 910; + public static final int PlayerEnterDungeonRsp = 915; + public static final int PlayerEnterSceneInfoNotify = 294; + public static final int PlayerEnterSceneNotify = 260; + public static final int PlayerEyePointStateNotify = 3461; + public static final int PlayerForceExitReq = 125; + public static final int PlayerForceExitRsp = 149; + public static final int PlayerGameTimeNotify = 179; + public static final int PlayerGeneralMatchConfirmNotify = 4156; + public static final int PlayerGeneralMatchDismissNotify = 4187; + public static final int PlayerGetForceQuitBanInfoReq = 4162; + public static final int PlayerGetForceQuitBanInfoRsp = 4189; + public static final int PlayerHomeCompInfoNotify = 4863; + public static final int PlayerInjectFixNotify = 185; + public static final int PlayerInvestigationAllInfoNotify = 1920; + public static final int PlayerInvestigationNotify = 1901; + public static final int PlayerInvestigationTargetNotify = 1919; + public static final int PlayerLevelRewardUpdateNotify = 112; + public static final int PlayerLoginReq = 110; + public static final int PlayerLoginRsp = 115; + public static final int PlayerLogoutNotify = 144; + public static final int PlayerLogoutReq = 137; + public static final int PlayerLogoutRsp = 193; + public static final int PlayerLuaShellNotify = 143; + public static final int PlayerMatchAgreedResultNotify = 4165; + public static final int PlayerMatchInfoNotify = 4195; + public static final int PlayerMatchStopNotify = 4151; + public static final int PlayerMatchSuccNotify = 4167; + public static final int PlayerOfferingDataNotify = 2915; + public static final int PlayerOfferingReq = 2914; + public static final int PlayerOfferingRsp = 2917; + public static final int PlayerPreEnterMpNotify = 1836; + public static final int PlayerPropChangeNotify = 156; + public static final int PlayerPropChangeReasonNotify = 1234; + public static final int PlayerPropNotify = 191; + public static final int PlayerQuitDungeonReq = 937; + public static final int PlayerQuitDungeonRsp = 993; + public static final int PlayerQuitFromHomeNotify = 4757; + public static final int PlayerQuitFromMpNotify = 1817; + public static final int PlayerRandomCookReq = 120; + public static final int PlayerRandomCookRsp = 180; + public static final int PlayerRechargeDataNotify = 4113; + public static final int PlayerReportReq = 4092; + public static final int PlayerReportRsp = 4058; + public static final int PlayerRoutineDataNotify = 3535; + public static final int PlayerSetLanguageReq = 123; + public static final int PlayerSetLanguageRsp = 113; + public static final int PlayerSetOnlyMPWithPSPlayerReq = 1815; + public static final int PlayerSetOnlyMPWithPSPlayerRsp = 1827; + public static final int PlayerSetPauseReq = 192; + public static final int PlayerSetPauseRsp = 158; + public static final int PlayerStartMatchReq = 4185; + public static final int PlayerStartMatchRsp = 4175; + public static final int PlayerStoreNotify = 660; + public static final int PlayerTimeNotify = 152; + public static final int PostEnterSceneReq = 3390; + public static final int PostEnterSceneRsp = 3213; + public static final int PrivateChatNotify = 4960; + public static final int PrivateChatReq = 5010; + public static final int PrivateChatRsp = 4983; + public static final int PrivateChatSetSequenceReq = 4965; + public static final int PrivateChatSetSequenceRsp = 4987; + public static final int ProudSkillChangeNotify = 1079; + public static final int ProudSkillExtraLevelNotify = 1028; + public static final int ProudSkillUpgradeReq = 1075; + public static final int ProudSkillUpgradeRsp = 1034; + public static final int PullPrivateChatReq = 5043; + public static final int PullPrivateChatRsp = 4994; + public static final int PullRecentChatReq = 4995; + public static final int PullRecentChatRsp = 5025; + public static final int PushTipsAllDataNotify = 2226; + public static final int PushTipsChangeNotify = 2262; + public static final int PushTipsReadFinishReq = 2289; + public static final int PushTipsReadFinishRsp = 2209; + public static final int QueryCodexMonsterBeKilledNumReq = 4207; + public static final int QueryCodexMonsterBeKilledNumRsp = 4208; + public static final int QueryPathReq = 2360; + public static final int QueryPathRsp = 2333; + public static final int QuestCreateEntityReq = 434; + public static final int QuestCreateEntityRsp = 479; + public static final int QuestDelNotify = 410; + public static final int QuestDestroyEntityReq = 491; + public static final int QuestDestroyEntityRsp = 497; + public static final int QuestDestroyNpcReq = 426; + public static final int QuestDestroyNpcRsp = 462; + public static final int QuestGlobalVarNotify = 466; + public static final int QuestListNotify = 460; + public static final int QuestListUpdateNotify = 433; + public static final int QuestProgressUpdateNotify = 446; + public static final int QuestTransmitReq = 473; + public static final int QuestTransmitRsp = 463; + public static final int QuestUpdateQuestVarNotify = 483; + public static final int QuestUpdateQuestVarReq = 474; + public static final int QuestUpdateQuestVarRsp = 456; + public static final int QuickUseWidgetReq = 4276; + public static final int QuickUseWidgetRsp = 4265; + public static final int ReadMailNotify = 1410; + public static final int ReadPrivateChatReq = 4984; + public static final int ReadPrivateChatRsp = 5029; + public static final int ReceivedTrialAvatarActivityRewardReq = 2020; + public static final int ReceivedTrialAvatarActivityRewardRsp = 2087; + public static final int RechargeReq = 4135; + public static final int RechargeRsp = 4125; + public static final int RedeemLegendaryKeyReq = 481; + public static final int RedeemLegendaryKeyRsp = 427; + public static final int RefreshBackgroundAvatarReq = 1744; + public static final int RefreshBackgroundAvatarRsp = 1719; + public static final int RegionSearchChangeRegionNotify = 5625; + public static final int RegionSearchNotify = 5635; + public static final int ReliquaryPromoteReq = 665; + public static final int ReliquaryPromoteRsp = 603; + public static final int ReliquaryUpgradeReq = 689; + public static final int ReliquaryUpgradeRsp = 609; + public static final int RemoveBlacklistReq = 4080; + public static final int RemoveBlacklistRsp = 4064; + public static final int RemoveRandTaskInfoNotify = 132; + public static final int ReportTrackingIOInfoNotify = 4117; + public static final int ResinCardDataUpdateNotify = 4126; + public static final int ResinChangeNotify = 623; + public static final int ReunionActivateNotify = 5081; + public static final int ReunionBriefInfoReq = 5085; + public static final int ReunionBriefInfoRsp = 5075; + public static final int ReunionDailyRefreshNotify = 5072; + public static final int ReunionPrivilegeChangeNotify = 5100; + public static final int ReunionSettleNotify = 5096; + public static final int RobotPushPlayerDataNotify = 88; + public static final int SalesmanDeliverItemReq = 2103; + public static final int SalesmanDeliverItemRsp = 2198; + public static final int SalesmanTakeRewardReq = 2091; + public static final int SalesmanTakeRewardRsp = 2171; + public static final int SalesmanTakeSpecialRewardReq = 2156; + public static final int SalesmanTakeSpecialRewardRsp = 2102; + public static final int SaveCoopDialogReq = 1972; + public static final int SaveCoopDialogRsp = 1952; + public static final int SaveMainCoopReq = 1995; + public static final int SaveMainCoopRsp = 1998; + public static final int SceneAreaUnlockNotify = 209; + public static final int SceneAreaWeatherNotify = 213; + public static final int SceneAudioNotify = 3260; + public static final int SceneAvatarStaminaStepReq = 234; + public static final int SceneAvatarStaminaStepRsp = 279; + public static final int SceneCreateEntityReq = 267; + public static final int SceneCreateEntityRsp = 220; + public static final int SceneDataNotify = 3179; + public static final int SceneDestroyEntityReq = 280; + public static final int SceneDestroyEntityRsp = 264; + public static final int SceneEntitiesMoveCombineNotify = 3312; + public static final int SceneEntitiesMovesReq = 221; + public static final int SceneEntitiesMovesRsp = 207; + public static final int SceneEntityAppearNotify = 293; + public static final int SceneEntityDisappearNotify = 244; + public static final int SceneEntityDrownReq = 265; + public static final int SceneEntityDrownRsp = 203; + public static final int SceneEntityMoveNotify = 291; + public static final int SceneEntityMoveReq = 245; + public static final int SceneEntityMoveRsp = 275; + public static final int SceneForceLockNotify = 266; + public static final int SceneForceUnlockNotify = 201; + public static final int SceneGalleryInfoNotify = 5528; + public static final int SceneInitFinishReq = 215; + public static final int SceneInitFinishRsp = 237; + public static final int SceneKickPlayerNotify = 259; + public static final int SceneKickPlayerReq = 204; + public static final int SceneKickPlayerRsp = 206; + public static final int ScenePlayBattleInfoListNotify = 4378; + public static final int ScenePlayBattleInfoNotify = 4410; + public static final int ScenePlayBattleInterruptNotify = 4441; + public static final int ScenePlayBattleResultNotify = 4447; + public static final int ScenePlayBattleUidOpNotify = 4438; + public static final int ScenePlayGuestReplyInviteReq = 4394; + public static final int ScenePlayGuestReplyInviteRsp = 4395; + public static final int ScenePlayGuestReplyNotify = 4425; + public static final int ScenePlayInfoListNotify = 4429; + public static final int ScenePlayInviteResultNotify = 4384; + public static final int ScenePlayOutofRegionNotify = 4405; + public static final int ScenePlayOwnerCheckReq = 4383; + public static final int ScenePlayOwnerCheckRsp = 4360; + public static final int ScenePlayOwnerInviteNotify = 4443; + public static final int ScenePlayOwnerStartInviteReq = 4365; + public static final int ScenePlayOwnerStartInviteRsp = 4387; + public static final int ScenePlayerInfoNotify = 236; + public static final int ScenePlayerLocationNotify = 297; + public static final int ScenePlayerSoundNotify = 243; + public static final int ScenePointUnlockNotify = 274; + public static final int SceneRouteChangeNotify = 270; + public static final int SceneTeamUpdateNotify = 1696; + public static final int SceneTimeNotify = 229; + public static final int SceneTransToPointReq = 256; + public static final int SceneTransToPointRsp = 283; + public static final int SceneWeatherForcastReq = 3167; + public static final int SceneWeatherForcastRsp = 3023; + public static final int SeaLampCoinNotify = 2028; + public static final int SeaLampContributeItemReq = 2122; + public static final int SeaLampContributeItemRsp = 2084; + public static final int SeaLampFlyLampNotify = 2075; + public static final int SeaLampFlyLampReq = 2174; + public static final int SeaLampFlyLampRsp = 2080; + public static final int SeaLampPopularityNotify = 2062; + public static final int SeaLampTakeContributionRewardReq = 2052; + public static final int SeaLampTakeContributionRewardRsp = 2057; + public static final int SeaLampTakePhaseRewardReq = 2109; + public static final int SeaLampTakePhaseRewardRsp = 2132; + public static final int SealBattleBeginNotify = 225; + public static final int SealBattleEndNotify = 249; + public static final int SealBattleProgressNotify = 285; + public static final int SeeMonsterReq = 299; + public static final int SeeMonsterRsp = 300; + public static final int SelectAsterMidDifficultyReq = 2019; + public static final int SelectAsterMidDifficultyRsp = 2003; + public static final int SelectEffigyChallengeConditionReq = 2143; + public static final int SelectEffigyChallengeConditionRsp = 2072; + public static final int SelectWorktopOptionReq = 837; + public static final int SelectWorktopOptionRsp = 893; + public static final int ServerAnnounceNotify = 2199; + public static final int ServerAnnounceRevokeNotify = 2129; + public static final int ServerBuffChangeNotify = 332; + public static final int ServerCondMeetQuestListUpdateNotify = 401; + public static final int ServerDisconnectClientNotify = 186; + public static final int ServerGlobalValueChangeNotify = 1188; + public static final int ServerLogNotify = 79; + public static final int ServerTimeNotify = 34; + public static final int ServerUpdateGlobalValueNotify = 1197; + public static final int SetBattlePassViewedReq = 2637; + public static final int SetBattlePassViewedRsp = 2606; + public static final int SetCoopChapterViewedReq = 1980; + public static final int SetCoopChapterViewedRsp = 1988; + public static final int SetCurExpeditionChallengeIdReq = 2017; + public static final int SetCurExpeditionChallengeIdRsp = 2099; + public static final int SetEntityClientDataNotify = 3303; + public static final int SetEquipLockStateReq = 635; + public static final int SetEquipLockStateRsp = 657; + public static final int SetFriendEnterHomeOptionReq = 4613; + public static final int SetFriendEnterHomeOptionRsp = 4724; + public static final int SetFriendRemarkNameReq = 4023; + public static final int SetFriendRemarkNameRsp = 4013; + public static final int SetNameCardReq = 4089; + 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; + public static final int SetPlayerBornDataRsp = 146; + public static final int SetPlayerHeadImageReq = 4046; + public static final int SetPlayerHeadImageRsp = 4074; + public static final int SetPlayerNameReq = 183; + public static final int SetPlayerNameRsp = 126; + public static final int SetPlayerPropReq = 188; + public static final int SetPlayerPropRsp = 128; + public static final int SetPlayerSignatureReq = 4028; + public static final int SetPlayerSignatureRsp = 4055; + public static final int SetSceneWeatherAreaReq = 271; + public static final int SetSceneWeatherAreaRsp = 205; + public static final int SetUpAvatarTeamReq = 1671; + public static final int SetUpAvatarTeamRsp = 1634; + public static final int SetUpLunchBoxWidgetReq = 4286; + public static final int SetUpLunchBoxWidgetRsp = 4293; + public static final int SetWidgetSlotReq = 4266; + public static final int SetWidgetSlotRsp = 4279; + public static final int ShowCommonTipsNotify = 3277; + public static final int ShowMessageNotify = 15; + public static final int ShowTemplateReminderNotify = 3164; + public static final int SignInInfoReq = 2510; + public static final int SignInInfoRsp = 2515; + public static final int SocialDataNotify = 4063; + public static final int SpringUseReq = 1720; + public static final int SpringUseRsp = 1727; + public static final int StartArenaChallengeLevelReq = 2022; + public static final int StartArenaChallengeLevelRsp = 2033; + public static final int StartCoopPointReq = 1956; + public static final int StartCoopPointRsp = 1962; + public static final int StartEffigyChallengeReq = 2123; + public static final int StartEffigyChallengeRsp = 2166; + public static final int StoreItemChangeNotify = 610; + public static final int StoreItemDelNotify = 615; + public static final int StoreWeightLimitNotify = 633; + public static final int SyncScenePlayTeamEntityNotify = 3296; + public static final int SyncTeamEntityNotify = 338; + public static final int TakeAchievementGoalRewardReq = 2695; + public static final int TakeAchievementGoalRewardRsp = 2698; + public static final int TakeAchievementRewardReq = 2685; + public static final int TakeAchievementRewardRsp = 2675; + public static final int TakeAsterSpecialRewardReq = 2051; + public static final int TakeAsterSpecialRewardRsp = 2041; + public static final int TakeBattlePassMissionPointReq = 2617; + public static final int TakeBattlePassMissionPointRsp = 2636; + public static final int TakeBattlePassRewardReq = 2613; + public static final int TakeBattlePassRewardRsp = 2601; + public static final int TakeCityReputationExploreRewardReq = 2888; + public static final int TakeCityReputationExploreRewardRsp = 2828; + public static final int TakeCityReputationLevelRewardReq = 2810; + public static final int TakeCityReputationLevelRewardRsp = 2815; + public static final int TakeCityReputationParentQuestReq = 2893; + public static final int TakeCityReputationParentQuestRsp = 2844; + public static final int TakeCompoundOutputReq = 108; + public static final int TakeCompoundOutputRsp = 117; + public static final int TakeCoopRewardReq = 1996; + public static final int TakeCoopRewardRsp = 1981; + public static final int TakeDeliveryDailyRewardReq = 2055; + public static final int TakeDeliveryDailyRewardRsp = 2104; + public static final int TakeEffigyFirstPassRewardReq = 2071; + public static final int TakeEffigyFirstPassRewardRsp = 2034; + public static final int TakeEffigyRewardReq = 2113; + public static final int TakeEffigyRewardRsp = 2008; + public static final int TakeFirstShareRewardReq = 4008; + public static final int TakeFirstShareRewardRsp = 4017; + public static final int TakeFurnitureMakeReq = 4751; + public static final int TakeFurnitureMakeRsp = 4457; + public static final int TakeHuntingOfferReq = 4750; + public static final int TakeHuntingOfferRsp = 4782; + public static final int TakeInvestigationRewardReq = 1926; + public static final int TakeInvestigationRewardRsp = 1925; + public static final int TakeInvestigationTargetRewardReq = 1915; + public static final int TakeInvestigationTargetRewardRsp = 1929; + public static final int TakeMaterialDeleteReturnReq = 651; + public static final int TakeMaterialDeleteReturnRsp = 684; + public static final int TakeOfferingLevelRewardReq = 2921; + public static final int TakeOfferingLevelRewardRsp = 2910; + public static final int TakePlayerLevelRewardReq = 151; + public static final int TakePlayerLevelRewardRsp = 184; + public static final int TakeRegionSearchRewardReq = 5645; + public static final int TakeRegionSearchRewardRsp = 5648; + public static final int TakeResinCardDailyRewardReq = 4136; + public static final int TakeResinCardDailyRewardRsp = 4143; + public static final int TakeReunionFirstGiftRewardReq = 5095; + public static final int TakeReunionFirstGiftRewardRsp = 5098; + public static final int TakeReunionMissionRewardReq = 5056; + public static final int TakeReunionMissionRewardRsp = 5062; + public static final int TakeReunionSignInRewardReq = 5067; + public static final int TakeReunionSignInRewardRsp = 5086; + public static final int TakeReunionWatcherRewardReq = 5065; + public static final int TakeReunionWatcherRewardRsp = 5077; + public static final int TakeoffEquipReq = 655; + public static final int TakeoffEquipRsp = 646; + public static final int TaskVarNotify = 178; + public static final int TeamResonanceChangeNotify = 1046; + public static final int TowerAllDataReq = 2445; + public static final int TowerAllDataRsp = 2475; + public static final int TowerBriefDataNotify = 2460; + public static final int TowerBuffSelectReq = 2497; + public static final int TowerBuffSelectRsp = 2488; + public static final int TowerCurLevelRecordChangeNotify = 2410; + public static final int TowerDailyRewardProgressChangeNotify = 2415; + public static final int TowerEnterLevelReq = 2479; + public static final int TowerEnterLevelRsp = 2491; + public static final int TowerFloorRecordChangeNotify = 2433; + public static final int TowerGetFloorStarRewardReq = 2489; + public static final int TowerGetFloorStarRewardRsp = 2409; + public static final int TowerLevelEndNotify = 2464; + public static final int TowerLevelStarCondNotify = 2401; + public static final int TowerMiddleLevelChangeTeamNotify = 2466; + public static final int TowerRecordHandbookReq = 2473; + public static final int TowerRecordHandbookRsp = 2463; + public static final int TowerSurrenderReq = 2426; + public static final int TowerSurrenderRsp = 2462; + public static final int TowerTeamSelectReq = 2493; + public static final int TowerTeamSelectRsp = 2444; + public static final int TreasureMapBonusChallengeNotify = 2121; + public static final int TreasureMapCurrencyNotify = 2127; + public static final int TreasureMapDetectorDataNotify = 4272; + public static final int TreasureMapGuideTaskDoneNotify = 2200; + public static final int TreasureMapMpChallengeNotify = 2177; + public static final int TreasureMapRegionActiveNotify = 2141; + public static final int TreasureMapRegionInfoNotify = 2120; + public static final int TrialAvatarFirstPassDungeonNotify = 2093; + public static final int TrialAvatarInDungeonIndexNotify = 2138; + public static final int TriggerCreateGadgetToEquipPartNotify = 373; + public static final int TryEnterHomeReq = 4622; + public static final int TryEnterHomeRsp = 4731; + public static final int UnfreezeGroupLimitNotify = 3401; + public static final int UnionCmdNotify = 55; + public static final int UnlockAvatarTalentReq = 1060; + public static final int UnlockAvatarTalentRsp = 1033; + public static final int UnlockCoopChapterReq = 1965; + public static final int UnlockCoopChapterRsp = 1977; + public static final int UnlockNameCardNotify = 4001; + public static final int UnlockPersonalLineReq = 402; + public static final int UnlockPersonalLineRsp = 452; + public static final int UnlockTransPointReq = 3421; + public static final int UnlockTransPointRsp = 3073; + public static final int UnlockedFurnitureFormulaDataNotify = 4700; + public static final int UnlockedFurnitureSuiteDataNotify = 4788; + public static final int UnmarkEntityInMinMapNotify = 247; + public static final int UpdateAbilityCreatedMovingPlatformNotify = 828; + public static final int UpdatePS4BlockListReq = 4081; + public static final int UpdatePS4BlockListRsp = 4027; + public static final int UpdatePS4FriendListNotify = 4056; + public static final int UpdatePlayerShowAvatarListReq = 4036; + public static final int UpdatePlayerShowAvatarListRsp = 4024; + public static final int UpdatePlayerShowNameCardListReq = 4030; + public static final int UpdatePlayerShowNameCardListRsp = 4047; + public static final int UpdateReunionWatcherNotify = 5087; + public static final int UseItemReq = 645; + public static final int UseItemRsp = 675; + public static final int UseMiracleRingReq = 5235; + public static final int UseMiracleRingRsp = 5225; + public static final int UseWidgetCreateGadgetReq = 4278; + public static final int UseWidgetCreateGadgetRsp = 4290; + public static final int UseWidgetRetractGadgetReq = 4255; + public static final int UseWidgetRetractGadgetRsp = 4297; + public static final int ViewCodexReq = 4210; + public static final int ViewCodexRsp = 4209; + public static final int WatcherAllDataNotify = 2260; + public static final int WatcherChangeNotify = 2233; + public static final int WatcherEventNotify = 2210; + public static final int WatcherEventTypeNotify = 2215; + public static final int WaterSpritePhaseFinishNotify = 2097; + public static final int WeaponAwakenReq = 664; + public static final int WeaponAwakenRsp = 601; + public static final int WeaponPromoteReq = 626; + public static final int WeaponPromoteRsp = 662; + public static final int WeaponUpgradeReq = 656; + public static final int WeaponUpgradeRsp = 683; + public static final int WearEquipReq = 688; + public static final int WearEquipRsp = 628; + public static final int WidgetCoolDownNotify = 4277; + public static final int WidgetGadgetAllDataNotify = 4260; + public static final int WidgetGadgetDataNotify = 4268; + public static final int WidgetGadgetDestroyNotify = 4282; + public static final int WidgetReportReq = 4287; + public static final int WidgetReportRsp = 4256; + public static final int WidgetSlotChangeNotify = 4299; + public static final int WindSeedClientNotify = 1134; + public static final int WorktopOptionNotify = 815; + public static final int WorldAllRoutineTypeNotify = 3525; + public static final int WorldDataNotify = 3330; + public static final int WorldOwnerBlossomBriefInfoNotify = 2715; + public static final int WorldOwnerBlossomScheduleInfoNotify = 2737; + public static final int WorldOwnerDailyTaskNotify = 130; + public static final int WorldPlayerDieNotify = 211; + public static final int WorldPlayerInfoNotify = 3088; + public static final int WorldPlayerLocationNotify = 224; + public static final int WorldPlayerRTTNotify = 26; + public static final int WorldPlayerReviveReq = 216; + public static final int WorldPlayerReviveRsp = 222; + public static final int WorldRoutineChangeNotify = 3548; + public static final int WorldRoutineTypeCloseNotify = 3513; + public static final int WorldRoutineTypeRefreshNotify = 3545; + +} \ No newline at end of file diff --git a/src/main/java/emu/grasscutter/net/packet/PacketOpcodesUtil.java b/src/main/java/emu/grasscutter/net/packet/PacketOpcodesUtil.java new file mode 100644 index 000000000..6395a7d4d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/PacketOpcodesUtil.java @@ -0,0 +1,44 @@ +package emu.grasscutter.net.packet; + +import java.io.BufferedWriter; +import java.io.FileWriter; +import java.io.IOException; +import java.lang.reflect.Field; + +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class PacketOpcodesUtil { + private static Int2ObjectMap opcodeMap; + + static { + opcodeMap = new Int2ObjectOpenHashMap(); + + Field[] fields = PacketOpcodes.class.getFields(); + + for (Field f : fields) { + try { + opcodeMap.put(f.getInt(null), f.getName()); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + public static String getOpcodeName(int opcode) { + if (opcode <= 0) return "UNKNOWN"; + return opcodeMap.getOrDefault(opcode, "UNKNOWN"); + } + + public static void dumpOpcodes() { + try { + BufferedWriter out = new BufferedWriter(new FileWriter("opcodes.ini")); + for (Int2ObjectMap.Entry entry : opcodeMap.int2ObjectEntrySet()) { + out.write(String.format("%04X=%s%s", entry.getIntKey(), entry.getValue(), System.lineSeparator())); + } + out.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } +} diff --git a/src/main/java/emu/grasscutter/net/packet/PacketWriter.java b/src/main/java/emu/grasscutter/net/packet/PacketWriter.java new file mode 100644 index 000000000..c8ea039b9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/PacketWriter.java @@ -0,0 +1,177 @@ +package emu.grasscutter.net.packet; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; + +public class PacketWriter { + // Little endian + private final ByteArrayOutputStream baos; + + public PacketWriter() { + this.baos = new ByteArrayOutputStream(128); + } + + public byte[] build() { + return baos.toByteArray(); + } + + // Writers + + public void writeEmpty(int i) { + while (i > 0) { + baos.write(0); + i--; + } + } + + public void writeMax(int i) { + while (i > 0) { + baos.write(0xFF); + i--; + } + } + + public void writeInt8(byte b) { + baos.write(b); + } + + public void writeInt8(int i) { + baos.write((byte) i); + } + + public void writeBoolean(boolean b) { + baos.write(b ? 1 : 0); + } + + public void writeUint8(byte b) { + // Unsigned byte + baos.write(b & 0xFF); + } + + public void writeUint8(int i) { + + baos.write((byte) i & 0xFF); + } + + public void writeUint16(int i) { + // Unsigned short + baos.write((byte) (i & 0xFF)); + baos.write((byte) ((i >>> 8) & 0xFF)); + } + + public void writeUint24(int i) { + // 24 bit integer + baos.write((byte) (i & 0xFF)); + baos.write((byte) ((i >>> 8) & 0xFF)); + baos.write((byte) ((i >>> 16) & 0xFF)); + } + + public void writeInt16(int i) { + // Signed short + baos.write((byte) i); + baos.write((byte) (i >>> 8)); + } + + public void writeUint32(int i) { + // Unsigned int + baos.write((byte) (i & 0xFF)); + baos.write((byte) ((i >>> 8) & 0xFF)); + baos.write((byte) ((i >>> 16) & 0xFF)); + baos.write((byte) ((i >>> 24) & 0xFF)); + } + + public void writeInt32(int i) { + // Signed int + baos.write((byte) i); + baos.write((byte) (i >>> 8)); + baos.write((byte) (i >>> 16)); + baos.write((byte) (i >>> 24)); + } + + public void writeUint32(long i) { + // Unsigned int (long) + baos.write((byte) (i & 0xFF)); + baos.write((byte) ((i >>> 8) & 0xFF)); + baos.write((byte) ((i >>> 16) & 0xFF)); + baos.write((byte) ((i >>> 24) & 0xFF)); + } + + public void writeFloat(float f){ + this.writeUint32(Float.floatToRawIntBits(f)); + } + + public void writeUint64(long l) { + baos.write((byte) (l & 0xFF)); + baos.write((byte) ((l >>> 8) & 0xFF)); + baos.write((byte) ((l >>> 16) & 0xFF)); + baos.write((byte) ((l >>> 24) & 0xFF)); + baos.write((byte) ((l >>> 32) & 0xFF)); + baos.write((byte) ((l >>> 40) & 0xFF)); + baos.write((byte) ((l >>> 48) & 0xFF)); + baos.write((byte) ((l >>> 56) & 0xFF)); + } + + public void writeDouble(double d){ + long l = Double.doubleToLongBits(d); + this.writeUint64(l); + } + + public void writeString16(String s) { + if (s == null) { + this.writeUint16(0); + return; + } + + this.writeUint16(s.length() * 2); + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + this.writeUint16((short) c); + } + } + + public void writeString8(String s) { + if (s == null) { + this.writeUint16(0); + return; + } + + this.writeUint16(s.length()); + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + this.writeUint8((byte) c); + } + } + + public void writeDirectString8(String s, int expectedSize) { + if (s == null) { + return; + } + + for (int i = 0; i < expectedSize; i++) { + char c = i < s.length() ? s.charAt(i) : 0; + this.writeUint8((byte) c); + } + } + + public void writeBytes(byte[] bytes) { + try { + baos.write(bytes); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + public void writeBytes(int[] bytes) { + byte[] b = new byte[bytes.length]; + for (int i = 0; i < bytes.length; i++) + b[i] = (byte)bytes[i]; + + try { + baos.write(b); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } +} diff --git a/src/main/java/emu/grasscutter/net/packet/Retcode.java b/src/main/java/emu/grasscutter/net/packet/Retcode.java new file mode 100644 index 000000000..c061a1897 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/packet/Retcode.java @@ -0,0 +1,6 @@ +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 new file mode 100644 index 000000000..9e5844512 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityAppliedAbilityOuterClass.java @@ -0,0 +1,1326 @@ +// 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 { + + /** + * .AbilityString abilityName = 1; + * @return Whether the abilityName field is set. + */ + boolean hasAbilityName(); + /** + * .AbilityString abilityName = 1; + * @return The abilityName. + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName(); + /** + * .AbilityString abilityName = 1; + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder(); + + /** + * .AbilityString abilityOverride = 2; + * @return Whether the abilityOverride field is set. + */ + boolean hasAbilityOverride(); + /** + * .AbilityString abilityOverride = 2; + * @return The abilityOverride. + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride(); + /** + * .AbilityString abilityOverride = 2; + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder(); + + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + java.util.List + getOverrideMapList(); + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index); + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + int getOverrideMapCount(); + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + java.util.List + getOverrideMapOrBuilderList(); + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder( + int index); + + /** + * uint32 instancedAbilityId = 4; + * @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(); + 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_; + /** + * .AbilityString abilityName = 1; + * @return Whether the abilityName field is set. + */ + @java.lang.Override + public boolean hasAbilityName() { + return abilityName_ != null; + } + /** + * .AbilityString abilityName = 1; + * @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_; + } + /** + * .AbilityString abilityName = 1; + */ + @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_; + /** + * .AbilityString abilityOverride = 2; + * @return Whether the abilityOverride field is set. + */ + @java.lang.Override + public boolean hasAbilityOverride() { + return abilityOverride_ != null; + } + /** + * .AbilityString abilityOverride = 2; + * @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_; + } + /** + * .AbilityString abilityOverride = 2; + */ + @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 overrideMap_; + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + @java.lang.Override + public java.util.List getOverrideMapList() { + return overrideMap_; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + @java.lang.Override + public java.util.List + getOverrideMapOrBuilderList() { + return overrideMap_; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + @java.lang.Override + public int getOverrideMapCount() { + return overrideMap_.size(); + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) { + return overrideMap_.get(index); + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + @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_; + /** + * uint32 instancedAbilityId = 4; + * @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 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_; + /** + * .AbilityString abilityName = 1; + * @return Whether the abilityName field is set. + */ + public boolean hasAbilityName() { + return abilityNameBuilder_ != null || abilityName_ != null; + } + /** + * .AbilityString abilityName = 1; + * @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(); + } + } + /** + * .AbilityString abilityName = 1; + */ + 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; + } + /** + * .AbilityString abilityName = 1; + */ + 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; + } + /** + * .AbilityString abilityName = 1; + */ + 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; + } + /** + * .AbilityString abilityName = 1; + */ + public Builder clearAbilityName() { + if (abilityNameBuilder_ == null) { + abilityName_ = null; + onChanged(); + } else { + abilityName_ = null; + abilityNameBuilder_ = null; + } + + return this; + } + /** + * .AbilityString abilityName = 1; + */ + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityNameBuilder() { + + onChanged(); + return getAbilityNameFieldBuilder().getBuilder(); + } + /** + * .AbilityString abilityName = 1; + */ + 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_; + } + } + /** + * .AbilityString abilityName = 1; + */ + 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_; + /** + * .AbilityString abilityOverride = 2; + * @return Whether the abilityOverride field is set. + */ + public boolean hasAbilityOverride() { + return abilityOverrideBuilder_ != null || abilityOverride_ != null; + } + /** + * .AbilityString abilityOverride = 2; + * @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(); + } + } + /** + * .AbilityString abilityOverride = 2; + */ + 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; + } + /** + * .AbilityString abilityOverride = 2; + */ + 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; + } + /** + * .AbilityString abilityOverride = 2; + */ + 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; + } + /** + * .AbilityString abilityOverride = 2; + */ + public Builder clearAbilityOverride() { + if (abilityOverrideBuilder_ == null) { + abilityOverride_ = null; + onChanged(); + } else { + abilityOverride_ = null; + abilityOverrideBuilder_ = null; + } + + return this; + } + /** + * .AbilityString abilityOverride = 2; + */ + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityOverrideBuilder() { + + onChanged(); + return getAbilityOverrideFieldBuilder().getBuilder(); + } + /** + * .AbilityString abilityOverride = 2; + */ + 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_; + } + } + /** + * .AbilityString abilityOverride = 2; + */ + 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 overrideMap_ = + java.util.Collections.emptyList(); + private void ensureOverrideMapIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + overrideMap_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public java.util.List getOverrideMapList() { + if (overrideMapBuilder_ == null) { + return java.util.Collections.unmodifiableList(overrideMap_); + } else { + return overrideMapBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public int getOverrideMapCount() { + if (overrideMapBuilder_ == null) { + return overrideMap_.size(); + } else { + return overrideMapBuilder_.getCount(); + } + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) { + if (overrideMapBuilder_ == null) { + return overrideMap_.get(index); + } else { + return overrideMapBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public Builder addAllOverrideMap( + java.lang.Iterable values) { + if (overrideMapBuilder_ == null) { + ensureOverrideMapIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, overrideMap_); + onChanged(); + } else { + overrideMapBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public Builder clearOverrideMap() { + if (overrideMapBuilder_ == null) { + overrideMap_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + overrideMapBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public Builder removeOverrideMap(int index) { + if (overrideMapBuilder_ == null) { + ensureOverrideMapIsMutable(); + overrideMap_.remove(index); + onChanged(); + } else { + overrideMapBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder getOverrideMapBuilder( + int index) { + return getOverrideMapFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder( + int index) { + if (overrideMapBuilder_ == null) { + return overrideMap_.get(index); } else { + return overrideMapBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public java.util.List + getOverrideMapOrBuilderList() { + if (overrideMapBuilder_ != null) { + return overrideMapBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(overrideMap_); + } + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder() { + return getOverrideMapFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder( + int index) { + return getOverrideMapFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); + } + /** + * repeated .AbilityScalarValueEntry overrideMap = 3; + */ + public java.util.List + 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_ ; + /** + * uint32 instancedAbilityId = 4; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + /** + * uint32 instancedAbilityId = 4; + * @param value The instancedAbilityId to set. + * @return This builder for chaining. + */ + public Builder setInstancedAbilityId(int value) { + + instancedAbilityId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedAbilityId = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8314a62b3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityAppliedModifierOuterClass.java @@ -0,0 +1,1931 @@ +// 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 { + + /** + * int32 modifierLocalId = 1; + * @return The modifierLocalId. + */ + int getModifierLocalId(); + + /** + * uint32 parentAbilityEntityId = 2; + * @return The parentAbilityEntityId. + */ + int getParentAbilityEntityId(); + + /** + * .AbilityString parentAbilityName = 3; + * @return Whether the parentAbilityName field is set. + */ + boolean hasParentAbilityName(); + /** + * .AbilityString parentAbilityName = 3; + * @return The parentAbilityName. + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName(); + /** + * .AbilityString parentAbilityName = 3; + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder(); + + /** + * .AbilityString parentAbilityOverride = 4; + * @return Whether the parentAbilityOverride field is set. + */ + boolean hasParentAbilityOverride(); + /** + * .AbilityString parentAbilityOverride = 4; + * @return The parentAbilityOverride. + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride(); + /** + * .AbilityString parentAbilityOverride = 4; + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder(); + + /** + * uint32 instancedAbilityId = 5; + * @return The instancedAbilityId. + */ + int getInstancedAbilityId(); + + /** + * uint32 instancedModifierId = 6; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * float existDuration = 7; + * @return The existDuration. + */ + float getExistDuration(); + + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @return Whether the attachedInstancedModifier field is set. + */ + boolean hasAttachedInstancedModifier(); + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @return The attachedInstancedModifier. + */ + emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier(); + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder(); + + /** + * uint32 applyEntityId = 9; + * @return The applyEntityId. + */ + int getApplyEntityId(); + + /** + * bool isAttachedParentAbility = 10; + * @return The isAttachedParentAbility. + */ + boolean getIsAttachedParentAbility(); + + /** + * .ModifierDurability modifierDurability = 11; + * @return Whether the modifierDurability field is set. + */ + boolean hasModifierDurability(); + /** + * .ModifierDurability modifierDurability = 11; + * @return The modifierDurability. + */ + emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability(); + /** + * .ModifierDurability modifierDurability = 11; + */ + emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder(); + + /** + * uint32 sbuffUid = 12; + * @return The sbuffUid. + */ + int getSbuffUid(); + + /** + * bool isServerbuffModifier = 13; + * @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_; + /** + * int32 modifierLocalId = 1; + * @return The modifierLocalId. + */ + @java.lang.Override + public int getModifierLocalId() { + return modifierLocalId_; + } + + public static final int PARENTABILITYENTITYID_FIELD_NUMBER = 2; + private int parentAbilityEntityId_; + /** + * uint32 parentAbilityEntityId = 2; + * @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_; + /** + * .AbilityString parentAbilityName = 3; + * @return Whether the parentAbilityName field is set. + */ + @java.lang.Override + public boolean hasParentAbilityName() { + return parentAbilityName_ != null; + } + /** + * .AbilityString parentAbilityName = 3; + * @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_; + } + /** + * .AbilityString parentAbilityName = 3; + */ + @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_; + /** + * .AbilityString parentAbilityOverride = 4; + * @return Whether the parentAbilityOverride field is set. + */ + @java.lang.Override + public boolean hasParentAbilityOverride() { + return parentAbilityOverride_ != null; + } + /** + * .AbilityString parentAbilityOverride = 4; + * @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_; + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder() { + return getParentAbilityOverride(); + } + + public static final int INSTANCEDABILITYID_FIELD_NUMBER = 5; + private int instancedAbilityId_; + /** + * uint32 instancedAbilityId = 5; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + + public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 6; + private int instancedModifierId_; + /** + * uint32 instancedModifierId = 6; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + + public static final int EXISTDURATION_FIELD_NUMBER = 7; + private float existDuration_; + /** + * float existDuration = 7; + * @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_; + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @return Whether the attachedInstancedModifier field is set. + */ + @java.lang.Override + public boolean hasAttachedInstancedModifier() { + return attachedInstancedModifier_ != null; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @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_; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder() { + return getAttachedInstancedModifier(); + } + + public static final int APPLYENTITYID_FIELD_NUMBER = 9; + private int applyEntityId_; + /** + * uint32 applyEntityId = 9; + * @return The applyEntityId. + */ + @java.lang.Override + public int getApplyEntityId() { + return applyEntityId_; + } + + public static final int ISATTACHEDPARENTABILITY_FIELD_NUMBER = 10; + private boolean isAttachedParentAbility_; + /** + * bool isAttachedParentAbility = 10; + * @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_; + /** + * .ModifierDurability modifierDurability = 11; + * @return Whether the modifierDurability field is set. + */ + @java.lang.Override + public boolean hasModifierDurability() { + return modifierDurability_ != null; + } + /** + * .ModifierDurability modifierDurability = 11; + * @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_; + } + /** + * .ModifierDurability modifierDurability = 11; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder() { + return getModifierDurability(); + } + + public static final int SBUFFUID_FIELD_NUMBER = 12; + private int sbuffUid_; + /** + * uint32 sbuffUid = 12; + * @return The sbuffUid. + */ + @java.lang.Override + public int getSbuffUid() { + return sbuffUid_; + } + + public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 13; + private boolean isServerbuffModifier_; + /** + * bool isServerbuffModifier = 13; + * @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 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_ ; + /** + * int32 modifierLocalId = 1; + * @return The modifierLocalId. + */ + @java.lang.Override + public int getModifierLocalId() { + return modifierLocalId_; + } + /** + * int32 modifierLocalId = 1; + * @param value The modifierLocalId to set. + * @return This builder for chaining. + */ + public Builder setModifierLocalId(int value) { + + modifierLocalId_ = value; + onChanged(); + return this; + } + /** + * int32 modifierLocalId = 1; + * @return This builder for chaining. + */ + public Builder clearModifierLocalId() { + + modifierLocalId_ = 0; + onChanged(); + return this; + } + + private int parentAbilityEntityId_ ; + /** + * uint32 parentAbilityEntityId = 2; + * @return The parentAbilityEntityId. + */ + @java.lang.Override + public int getParentAbilityEntityId() { + return parentAbilityEntityId_; + } + /** + * uint32 parentAbilityEntityId = 2; + * @param value The parentAbilityEntityId to set. + * @return This builder for chaining. + */ + public Builder setParentAbilityEntityId(int value) { + + parentAbilityEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 parentAbilityEntityId = 2; + * @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_; + /** + * .AbilityString parentAbilityName = 3; + * @return Whether the parentAbilityName field is set. + */ + public boolean hasParentAbilityName() { + return parentAbilityNameBuilder_ != null || parentAbilityName_ != null; + } + /** + * .AbilityString parentAbilityName = 3; + * @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(); + } + } + /** + * .AbilityString parentAbilityName = 3; + */ + 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; + } + /** + * .AbilityString parentAbilityName = 3; + */ + 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; + } + /** + * .AbilityString parentAbilityName = 3; + */ + 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; + } + /** + * .AbilityString parentAbilityName = 3; + */ + public Builder clearParentAbilityName() { + if (parentAbilityNameBuilder_ == null) { + parentAbilityName_ = null; + onChanged(); + } else { + parentAbilityName_ = null; + parentAbilityNameBuilder_ = null; + } + + return this; + } + /** + * .AbilityString parentAbilityName = 3; + */ + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityNameBuilder() { + + onChanged(); + return getParentAbilityNameFieldBuilder().getBuilder(); + } + /** + * .AbilityString parentAbilityName = 3; + */ + 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_; + } + } + /** + * .AbilityString parentAbilityName = 3; + */ + 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_; + /** + * .AbilityString parentAbilityOverride = 4; + * @return Whether the parentAbilityOverride field is set. + */ + public boolean hasParentAbilityOverride() { + return parentAbilityOverrideBuilder_ != null || parentAbilityOverride_ != null; + } + /** + * .AbilityString parentAbilityOverride = 4; + * @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(); + } + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + 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; + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + 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; + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + 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; + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + public Builder clearParentAbilityOverride() { + if (parentAbilityOverrideBuilder_ == null) { + parentAbilityOverride_ = null; + onChanged(); + } else { + parentAbilityOverride_ = null; + parentAbilityOverrideBuilder_ = null; + } + + return this; + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityOverrideBuilder() { + + onChanged(); + return getParentAbilityOverrideFieldBuilder().getBuilder(); + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + 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_; + } + } + /** + * .AbilityString parentAbilityOverride = 4; + */ + 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_ ; + /** + * uint32 instancedAbilityId = 5; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + /** + * uint32 instancedAbilityId = 5; + * @param value The instancedAbilityId to set. + * @return This builder for chaining. + */ + public Builder setInstancedAbilityId(int value) { + + instancedAbilityId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedAbilityId = 5; + * @return This builder for chaining. + */ + public Builder clearInstancedAbilityId() { + + instancedAbilityId_ = 0; + onChanged(); + return this; + } + + private int instancedModifierId_ ; + /** + * uint32 instancedModifierId = 6; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + /** + * uint32 instancedModifierId = 6; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + + instancedModifierId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 6; + * @return This builder for chaining. + */ + public Builder clearInstancedModifierId() { + + instancedModifierId_ = 0; + onChanged(); + return this; + } + + private float existDuration_ ; + /** + * float existDuration = 7; + * @return The existDuration. + */ + @java.lang.Override + public float getExistDuration() { + return existDuration_; + } + /** + * float existDuration = 7; + * @param value The existDuration to set. + * @return This builder for chaining. + */ + public Builder setExistDuration(float value) { + + existDuration_ = value; + onChanged(); + return this; + } + /** + * float existDuration = 7; + * @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_; + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @return Whether the attachedInstancedModifier field is set. + */ + public boolean hasAttachedInstancedModifier() { + return attachedInstancedModifierBuilder_ != null || attachedInstancedModifier_ != null; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + * @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(); + } + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + 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; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + 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; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + 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; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + public Builder clearAttachedInstancedModifier() { + if (attachedInstancedModifierBuilder_ == null) { + attachedInstancedModifier_ = null; + onChanged(); + } else { + attachedInstancedModifier_ = null; + attachedInstancedModifierBuilder_ = null; + } + + return this; + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder getAttachedInstancedModifierBuilder() { + + onChanged(); + return getAttachedInstancedModifierFieldBuilder().getBuilder(); + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + 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_; + } + } + /** + * .AbilityAttachedModifier attachedInstancedModifier = 8; + */ + 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_ ; + /** + * uint32 applyEntityId = 9; + * @return The applyEntityId. + */ + @java.lang.Override + public int getApplyEntityId() { + return applyEntityId_; + } + /** + * uint32 applyEntityId = 9; + * @param value The applyEntityId to set. + * @return This builder for chaining. + */ + public Builder setApplyEntityId(int value) { + + applyEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 applyEntityId = 9; + * @return This builder for chaining. + */ + public Builder clearApplyEntityId() { + + applyEntityId_ = 0; + onChanged(); + return this; + } + + private boolean isAttachedParentAbility_ ; + /** + * bool isAttachedParentAbility = 10; + * @return The isAttachedParentAbility. + */ + @java.lang.Override + public boolean getIsAttachedParentAbility() { + return isAttachedParentAbility_; + } + /** + * bool isAttachedParentAbility = 10; + * @param value The isAttachedParentAbility to set. + * @return This builder for chaining. + */ + public Builder setIsAttachedParentAbility(boolean value) { + + isAttachedParentAbility_ = value; + onChanged(); + return this; + } + /** + * bool isAttachedParentAbility = 10; + * @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_; + /** + * .ModifierDurability modifierDurability = 11; + * @return Whether the modifierDurability field is set. + */ + public boolean hasModifierDurability() { + return modifierDurabilityBuilder_ != null || modifierDurability_ != null; + } + /** + * .ModifierDurability modifierDurability = 11; + * @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(); + } + } + /** + * .ModifierDurability modifierDurability = 11; + */ + 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; + } + /** + * .ModifierDurability modifierDurability = 11; + */ + 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; + } + /** + * .ModifierDurability modifierDurability = 11; + */ + 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; + } + /** + * .ModifierDurability modifierDurability = 11; + */ + public Builder clearModifierDurability() { + if (modifierDurabilityBuilder_ == null) { + modifierDurability_ = null; + onChanged(); + } else { + modifierDurability_ = null; + modifierDurabilityBuilder_ = null; + } + + return this; + } + /** + * .ModifierDurability modifierDurability = 11; + */ + public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder getModifierDurabilityBuilder() { + + onChanged(); + return getModifierDurabilityFieldBuilder().getBuilder(); + } + /** + * .ModifierDurability modifierDurability = 11; + */ + 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_; + } + } + /** + * .ModifierDurability modifierDurability = 11; + */ + 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_ ; + /** + * uint32 sbuffUid = 12; + * @return The sbuffUid. + */ + @java.lang.Override + public int getSbuffUid() { + return sbuffUid_; + } + /** + * uint32 sbuffUid = 12; + * @param value The sbuffUid to set. + * @return This builder for chaining. + */ + public Builder setSbuffUid(int value) { + + sbuffUid_ = value; + onChanged(); + return this; + } + /** + * uint32 sbuffUid = 12; + * @return This builder for chaining. + */ + public Builder clearSbuffUid() { + + sbuffUid_ = 0; + onChanged(); + return this; + } + + private boolean isServerbuffModifier_ ; + /** + * bool isServerbuffModifier = 13; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + /** + * bool isServerbuffModifier = 13; + * @param value The isServerbuffModifier to set. + * @return This builder for chaining. + */ + public Builder setIsServerbuffModifier(boolean value) { + + isServerbuffModifier_ = value; + onChanged(); + return this; + } + /** + * bool isServerbuffModifier = 13; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..78aa4e631 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityAttachedModifierOuterClass.java @@ -0,0 +1,821 @@ +// 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 { + + /** + * bool isInvalid = 1; + * @return The isInvalid. + */ + boolean getIsInvalid(); + + /** + * uint32 ownerEntityId = 2; + * @return The ownerEntityId. + */ + int getOwnerEntityId(); + + /** + * uint32 instancedModifierId = 3; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * bool isServerbuffModifier = 4; + * @return The isServerbuffModifier. + */ + boolean getIsServerbuffModifier(); + + /** + * int32 attachNameHash = 5; + * @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_; + /** + * bool isInvalid = 1; + * @return The isInvalid. + */ + @java.lang.Override + public boolean getIsInvalid() { + return isInvalid_; + } + + public static final int OWNERENTITYID_FIELD_NUMBER = 2; + private int ownerEntityId_; + /** + * uint32 ownerEntityId = 2; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + + public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 3; + private int instancedModifierId_; + /** + * uint32 instancedModifierId = 3; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + + public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 4; + private boolean isServerbuffModifier_; + /** + * bool isServerbuffModifier = 4; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + + public static final int ATTACHNAMEHASH_FIELD_NUMBER = 5; + private int attachNameHash_; + /** + * int32 attachNameHash = 5; + * @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 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_ ; + /** + * bool isInvalid = 1; + * @return The isInvalid. + */ + @java.lang.Override + public boolean getIsInvalid() { + return isInvalid_; + } + /** + * bool isInvalid = 1; + * @param value The isInvalid to set. + * @return This builder for chaining. + */ + public Builder setIsInvalid(boolean value) { + + isInvalid_ = value; + onChanged(); + return this; + } + /** + * bool isInvalid = 1; + * @return This builder for chaining. + */ + public Builder clearIsInvalid() { + + isInvalid_ = false; + onChanged(); + return this; + } + + private int ownerEntityId_ ; + /** + * uint32 ownerEntityId = 2; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + /** + * uint32 ownerEntityId = 2; + * @param value The ownerEntityId to set. + * @return This builder for chaining. + */ + public Builder setOwnerEntityId(int value) { + + ownerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 ownerEntityId = 2; + * @return This builder for chaining. + */ + public Builder clearOwnerEntityId() { + + ownerEntityId_ = 0; + onChanged(); + return this; + } + + private int instancedModifierId_ ; + /** + * uint32 instancedModifierId = 3; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + /** + * uint32 instancedModifierId = 3; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + + instancedModifierId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 3; + * @return This builder for chaining. + */ + public Builder clearInstancedModifierId() { + + instancedModifierId_ = 0; + onChanged(); + return this; + } + + private boolean isServerbuffModifier_ ; + /** + * bool isServerbuffModifier = 4; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + /** + * bool isServerbuffModifier = 4; + * @param value The isServerbuffModifier to set. + * @return This builder for chaining. + */ + public Builder setIsServerbuffModifier(boolean value) { + + isServerbuffModifier_ = value; + onChanged(); + return this; + } + /** + * bool isServerbuffModifier = 4; + * @return This builder for chaining. + */ + public Builder clearIsServerbuffModifier() { + + isServerbuffModifier_ = false; + onChanged(); + return this; + } + + private int attachNameHash_ ; + /** + * int32 attachNameHash = 5; + * @return The attachNameHash. + */ + @java.lang.Override + public int getAttachNameHash() { + return attachNameHash_; + } + /** + * int32 attachNameHash = 5; + * @param value The attachNameHash to set. + * @return This builder for chaining. + */ + public Builder setAttachNameHash(int value) { + + attachNameHash_ = value; + onChanged(); + return this; + } + /** + * int32 attachNameHash = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..dadcc00ec --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityChangeNotifyOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @return Whether the abilityControlBlock field is set. + */ + boolean hasAbilityControlBlock(); + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @return The abilityControlBlock. + */ + emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock(); + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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_; + /** + * uint32 entityId = 1; + * @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_; + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @return Whether the abilityControlBlock field is set. + */ + @java.lang.Override + public boolean hasAbilityControlBlock() { + return abilityControlBlock_ != null; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @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_; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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_; + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @return Whether the abilityControlBlock field is set. + */ + public boolean hasAbilityControlBlock() { + return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + * @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(); + } + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + public Builder clearAbilityControlBlock() { + if (abilityControlBlockBuilder_ == null) { + abilityControlBlock_ = null; + onChanged(); + } else { + abilityControlBlock_ = null; + abilityControlBlockBuilder_ = null; + } + + return this; + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() { + + onChanged(); + return getAbilityControlBlockFieldBuilder().getBuilder(); + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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_; + } + } + /** + * .AbilityControlBlock abilityControlBlock = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4a87a29aa --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityControlBlockOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + java.util.List + getAbilityEmbryoListList(); + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index); + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + int getAbilityEmbryoListCount(); + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + java.util.List + getAbilityEmbryoListOrBuilderList(); + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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(); + 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 abilityEmbryoList_; + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + @java.lang.Override + public java.util.List getAbilityEmbryoListList() { + return abilityEmbryoList_; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + @java.lang.Override + public java.util.List + getAbilityEmbryoListOrBuilderList() { + return abilityEmbryoList_; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + @java.lang.Override + public int getAbilityEmbryoListCount() { + return abilityEmbryoList_.size(); + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) { + return abilityEmbryoList_.get(index); + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + @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 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 abilityEmbryoList_ = + java.util.Collections.emptyList(); + private void ensureAbilityEmbryoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + abilityEmbryoList_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public java.util.List getAbilityEmbryoListList() { + if (abilityEmbryoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(abilityEmbryoList_); + } else { + return abilityEmbryoListBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public int getAbilityEmbryoListCount() { + if (abilityEmbryoListBuilder_ == null) { + return abilityEmbryoList_.size(); + } else { + return abilityEmbryoListBuilder_.getCount(); + } + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) { + if (abilityEmbryoListBuilder_ == null) { + return abilityEmbryoList_.get(index); + } else { + return abilityEmbryoListBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + 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; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public Builder addAllAbilityEmbryoList( + java.lang.Iterable values) { + if (abilityEmbryoListBuilder_ == null) { + ensureAbilityEmbryoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, abilityEmbryoList_); + onChanged(); + } else { + abilityEmbryoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public Builder clearAbilityEmbryoList() { + if (abilityEmbryoListBuilder_ == null) { + abilityEmbryoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + abilityEmbryoListBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public Builder removeAbilityEmbryoList(int index) { + if (abilityEmbryoListBuilder_ == null) { + ensureAbilityEmbryoListIsMutable(); + abilityEmbryoList_.remove(index); + onChanged(); + } else { + abilityEmbryoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder getAbilityEmbryoListBuilder( + int index) { + return getAbilityEmbryoListFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder( + int index) { + if (abilityEmbryoListBuilder_ == null) { + return abilityEmbryoList_.get(index); } else { + return abilityEmbryoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public java.util.List + getAbilityEmbryoListOrBuilderList() { + if (abilityEmbryoListBuilder_ != null) { + return abilityEmbryoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(abilityEmbryoList_); + } + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder() { + return getAbilityEmbryoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()); + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder( + int index) { + return getAbilityEmbryoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()); + } + /** + * repeated .AbilityEmbryo abilityEmbryoList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4f2f21bfb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityEmbryoOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * uint32 abilityId = 1; + * @return The abilityId. + */ + int getAbilityId(); + + /** + * fixed32 abilityNameHash = 2; + * @return The abilityNameHash. + */ + int getAbilityNameHash(); + + /** + * fixed32 abilityOverrideNameHash = 3; + * @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_; + /** + * uint32 abilityId = 1; + * @return The abilityId. + */ + @java.lang.Override + public int getAbilityId() { + return abilityId_; + } + + public static final int ABILITYNAMEHASH_FIELD_NUMBER = 2; + private int abilityNameHash_; + /** + * fixed32 abilityNameHash = 2; + * @return The abilityNameHash. + */ + @java.lang.Override + public int getAbilityNameHash() { + return abilityNameHash_; + } + + public static final int ABILITYOVERRIDENAMEHASH_FIELD_NUMBER = 3; + private int abilityOverrideNameHash_; + /** + * fixed32 abilityOverrideNameHash = 3; + * @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 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_ ; + /** + * uint32 abilityId = 1; + * @return The abilityId. + */ + @java.lang.Override + public int getAbilityId() { + return abilityId_; + } + /** + * uint32 abilityId = 1; + * @param value The abilityId to set. + * @return This builder for chaining. + */ + public Builder setAbilityId(int value) { + + abilityId_ = value; + onChanged(); + return this; + } + /** + * uint32 abilityId = 1; + * @return This builder for chaining. + */ + public Builder clearAbilityId() { + + abilityId_ = 0; + onChanged(); + return this; + } + + private int abilityNameHash_ ; + /** + * fixed32 abilityNameHash = 2; + * @return The abilityNameHash. + */ + @java.lang.Override + public int getAbilityNameHash() { + return abilityNameHash_; + } + /** + * fixed32 abilityNameHash = 2; + * @param value The abilityNameHash to set. + * @return This builder for chaining. + */ + public Builder setAbilityNameHash(int value) { + + abilityNameHash_ = value; + onChanged(); + return this; + } + /** + * fixed32 abilityNameHash = 2; + * @return This builder for chaining. + */ + public Builder clearAbilityNameHash() { + + abilityNameHash_ = 0; + onChanged(); + return this; + } + + private int abilityOverrideNameHash_ ; + /** + * fixed32 abilityOverrideNameHash = 3; + * @return The abilityOverrideNameHash. + */ + @java.lang.Override + public int getAbilityOverrideNameHash() { + return abilityOverrideNameHash_; + } + /** + * fixed32 abilityOverrideNameHash = 3; + * @param value The abilityOverrideNameHash to set. + * @return This builder for chaining. + */ + public Builder setAbilityOverrideNameHash(int value) { + + abilityOverrideNameHash_ = value; + onChanged(); + return this; + } + /** + * fixed32 abilityOverrideNameHash = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a3715e6ef --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityIdentifierOuterClass.java @@ -0,0 +1,890 @@ +// 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 { + + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + int getInstancedAbilityId(); + + /** + * uint32 abilityCasterId = 2; + * @return The abilityCasterId. + */ + int getAbilityCasterId(); + + /** + * int32 localId = 3; + * @return The localId. + */ + int getLocalId(); + + /** + * uint32 instancedModifierId = 4; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * uint32 modifierOwnerId = 5; + * @return The modifierOwnerId. + */ + int getModifierOwnerId(); + + /** + * bool isServerbuffModifier = 6; + * @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_; + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + + public static final int ABILITYCASTERID_FIELD_NUMBER = 2; + private int abilityCasterId_; + /** + * uint32 abilityCasterId = 2; + * @return The abilityCasterId. + */ + @java.lang.Override + public int getAbilityCasterId() { + return abilityCasterId_; + } + + public static final int LOCALID_FIELD_NUMBER = 3; + private int localId_; + /** + * int32 localId = 3; + * @return The localId. + */ + @java.lang.Override + public int getLocalId() { + return localId_; + } + + public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 4; + private int instancedModifierId_; + /** + * uint32 instancedModifierId = 4; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + + public static final int MODIFIEROWNERID_FIELD_NUMBER = 5; + private int modifierOwnerId_; + /** + * uint32 modifierOwnerId = 5; + * @return The modifierOwnerId. + */ + @java.lang.Override + public int getModifierOwnerId() { + return modifierOwnerId_; + } + + public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 6; + private boolean isServerbuffModifier_; + /** + * bool isServerbuffModifier = 6; + * @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 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_ ; + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + /** + * uint32 instancedAbilityId = 1; + * @param value The instancedAbilityId to set. + * @return This builder for chaining. + */ + public Builder setInstancedAbilityId(int value) { + + instancedAbilityId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedAbilityId = 1; + * @return This builder for chaining. + */ + public Builder clearInstancedAbilityId() { + + instancedAbilityId_ = 0; + onChanged(); + return this; + } + + private int abilityCasterId_ ; + /** + * uint32 abilityCasterId = 2; + * @return The abilityCasterId. + */ + @java.lang.Override + public int getAbilityCasterId() { + return abilityCasterId_; + } + /** + * uint32 abilityCasterId = 2; + * @param value The abilityCasterId to set. + * @return This builder for chaining. + */ + public Builder setAbilityCasterId(int value) { + + abilityCasterId_ = value; + onChanged(); + return this; + } + /** + * uint32 abilityCasterId = 2; + * @return This builder for chaining. + */ + public Builder clearAbilityCasterId() { + + abilityCasterId_ = 0; + onChanged(); + return this; + } + + private int localId_ ; + /** + * int32 localId = 3; + * @return The localId. + */ + @java.lang.Override + public int getLocalId() { + return localId_; + } + /** + * int32 localId = 3; + * @param value The localId to set. + * @return This builder for chaining. + */ + public Builder setLocalId(int value) { + + localId_ = value; + onChanged(); + return this; + } + /** + * int32 localId = 3; + * @return This builder for chaining. + */ + public Builder clearLocalId() { + + localId_ = 0; + onChanged(); + return this; + } + + private int instancedModifierId_ ; + /** + * uint32 instancedModifierId = 4; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + /** + * uint32 instancedModifierId = 4; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + + instancedModifierId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 4; + * @return This builder for chaining. + */ + public Builder clearInstancedModifierId() { + + instancedModifierId_ = 0; + onChanged(); + return this; + } + + private int modifierOwnerId_ ; + /** + * uint32 modifierOwnerId = 5; + * @return The modifierOwnerId. + */ + @java.lang.Override + public int getModifierOwnerId() { + return modifierOwnerId_; + } + /** + * uint32 modifierOwnerId = 5; + * @param value The modifierOwnerId to set. + * @return This builder for chaining. + */ + public Builder setModifierOwnerId(int value) { + + modifierOwnerId_ = value; + onChanged(); + return this; + } + /** + * uint32 modifierOwnerId = 5; + * @return This builder for chaining. + */ + public Builder clearModifierOwnerId() { + + modifierOwnerId_ = 0; + onChanged(); + return this; + } + + private boolean isServerbuffModifier_ ; + /** + * bool isServerbuffModifier = 6; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + /** + * bool isServerbuffModifier = 6; + * @param value The isServerbuffModifier to set. + * @return This builder for chaining. + */ + public Builder setIsServerbuffModifier(boolean value) { + + isServerbuffModifier_ = value; + onChanged(); + return this; + } + /** + * bool isServerbuffModifier = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9d0c6271d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityInvocationsNotifyOuterClass.java @@ -0,0 +1,845 @@ +// 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 { + + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + java.util.List + getInvokesList(); + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + int getInvokesCount(); + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + java.util.List + getInvokesOrBuilderList(); + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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(); + 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 invokes_; + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + @java.lang.Override + public java.util.List getInvokesList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + @java.lang.Override + public java.util.List + getInvokesOrBuilderList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + @java.lang.Override + public int getInvokesCount() { + return invokes_.size(); + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + return invokes_.get(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + @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 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 invokes_ = + java.util.Collections.emptyList(); + private void ensureInvokesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invokes_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public java.util.List getInvokesList() { + if (invokesBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokes_); + } else { + return invokesBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public int getInvokesCount() { + if (invokesBuilder_ == null) { + return invokes_.size(); + } else { + return invokesBuilder_.getCount(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); + } else { + return invokesBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public Builder addAllInvokes( + java.lang.Iterable values) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invokes_); + onChanged(); + } else { + invokesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public Builder clearInvokes() { + if (invokesBuilder_ == null) { + invokes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invokesBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public Builder removeInvokes(int index) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + invokes_.remove(index); + onChanged(); + } else { + invokesBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( + int index) { + return getInvokesFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( + int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); } else { + return invokesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public java.util.List + getInvokesOrBuilderList() { + if (invokesBuilder_ != null) { + return invokesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokes_); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { + return getInvokesFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( + int index) { + return getInvokesFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3ab130071 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeArgumentOuterClass.java @@ -0,0 +1,540 @@ +// 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 { + /** + * AbilityNone = 0; + */ + AbilityNone(0), + /** + * AbilityMetaModifierChange = 1; + */ + AbilityMetaModifierChange(1), + /** + * AbilityMetaCommandModifierChangeRequest = 2; + */ + AbilityMetaCommandModifierChangeRequest(2), + /** + * AbilityMetaSpecialFloatArgument = 3; + */ + AbilityMetaSpecialFloatArgument(3), + /** + * AbilityMetaOverrideParam = 4; + */ + AbilityMetaOverrideParam(4), + /** + * AbilityMetaClearOverrideParam = 5; + */ + AbilityMetaClearOverrideParam(5), + /** + * AbilityMetaReinitOverridemap = 6; + */ + AbilityMetaReinitOverridemap(6), + /** + * AbilityMetaGlobalFloatValue = 7; + */ + AbilityMetaGlobalFloatValue(7), + /** + * AbilityMetaClearGlobalFloatValue = 8; + */ + AbilityMetaClearGlobalFloatValue(8), + /** + * AbilityMetaAbilityElementStrength = 9; + */ + AbilityMetaAbilityElementStrength(9), + /** + * AbilityMetaAddOrGetAbilityAndTrigger = 10; + */ + AbilityMetaAddOrGetAbilityAndTrigger(10), + /** + * AbilityMetaSetKilledSetate = 11; + */ + AbilityMetaSetKilledSetate(11), + /** + * AbilityMetaSetAbilityTrigger = 12; + */ + AbilityMetaSetAbilityTrigger(12), + /** + * AbilityMetaAddNewAbility = 13; + */ + AbilityMetaAddNewAbility(13), + /** + * AbilityMetaRemoveAbility = 14; + */ + AbilityMetaRemoveAbility(14), + /** + * AbilityMetaSetModifierApplyEntity = 15; + */ + AbilityMetaSetModifierApplyEntity(15), + /** + * AbilityMetaModifierDurabilityChange = 16; + */ + AbilityMetaModifierDurabilityChange(16), + /** + * AbilityMetaElementReactionVisual = 17; + */ + AbilityMetaElementReactionVisual(17), + /** + * AbilityMetaSetPoseParameter = 18; + */ + AbilityMetaSetPoseParameter(18), + /** + * AbilityMetaUpdateBaseReactionDamage = 19; + */ + AbilityMetaUpdateBaseReactionDamage(19), + /** + * AbilityActionTriggerAbility = 50; + */ + AbilityActionTriggerAbility(50), + /** + * AbilityActionSetCrashDamage = 51; + */ + AbilityActionSetCrashDamage(51), + /** + * AbilityActionEffect = 52; + */ + AbilityActionEffect(52), + /** + * AbilityActionSummon = 53; + */ + AbilityActionSummon(53), + /** + * AbilityActionBlink = 54; + */ + AbilityActionBlink(54), + /** + * AbilityActionCreateGadget = 55; + */ + AbilityActionCreateGadget(55), + /** + * AbilityActionApplyLevelModifier = 56; + */ + AbilityActionApplyLevelModifier(56), + /** + * AbilityActionGenerateElemBall = 57; + */ + AbilityActionGenerateElemBall(57), + /** + * AbilityActionSetRandomOverrideMapValue = 58; + */ + AbilityActionSetRandomOverrideMapValue(58), + /** + * AbilityActionServerMonsterLog = 59; + */ + AbilityActionServerMonsterLog(59), + /** + * AbilityMixinAvatarSteerByCamera = 100; + */ + AbilityMixinAvatarSteerByCamera(100), + /** + * AbilityMixinMonsterDefend = 101; + */ + AbilityMixinMonsterDefend(101), + /** + * AbilityMixinWindZone = 102; + */ + AbilityMixinWindZone(102), + /** + * AbilityMixinCostStamina = 103; + */ + AbilityMixinCostStamina(103), + /** + * AbilityMixinEliteShield = 104; + */ + AbilityMixinEliteShield(104), + /** + * AbilityMixinElementShield = 105; + */ + AbilityMixinElementShield(105), + /** + * AbilityMixinGlobalShield = 106; + */ + AbilityMixinGlobalShield(106), + /** + * AbilityMixinShieldBar = 107; + */ + AbilityMixinShieldBar(107), + /** + * AbilityMixinWindSeedSpawner = 108; + */ + AbilityMixinWindSeedSpawner(108), + /** + * AbilityMixinDoActionByElementReaction = 109; + */ + AbilityMixinDoActionByElementReaction(109), + /** + * AbilityMixinFieldEntityCountChange = 110; + */ + AbilityMixinFieldEntityCountChange(110), + /** + * AbilityMixinScenePropSync = 111; + */ + AbilityMixinScenePropSync(111), + UNRECOGNIZED(-1), + ; + + /** + * AbilityNone = 0; + */ + public static final int AbilityNone_VALUE = 0; + /** + * AbilityMetaModifierChange = 1; + */ + public static final int AbilityMetaModifierChange_VALUE = 1; + /** + * AbilityMetaCommandModifierChangeRequest = 2; + */ + public static final int AbilityMetaCommandModifierChangeRequest_VALUE = 2; + /** + * AbilityMetaSpecialFloatArgument = 3; + */ + public static final int AbilityMetaSpecialFloatArgument_VALUE = 3; + /** + * AbilityMetaOverrideParam = 4; + */ + public static final int AbilityMetaOverrideParam_VALUE = 4; + /** + * AbilityMetaClearOverrideParam = 5; + */ + public static final int AbilityMetaClearOverrideParam_VALUE = 5; + /** + * AbilityMetaReinitOverridemap = 6; + */ + public static final int AbilityMetaReinitOverridemap_VALUE = 6; + /** + * AbilityMetaGlobalFloatValue = 7; + */ + public static final int AbilityMetaGlobalFloatValue_VALUE = 7; + /** + * AbilityMetaClearGlobalFloatValue = 8; + */ + public static final int AbilityMetaClearGlobalFloatValue_VALUE = 8; + /** + * AbilityMetaAbilityElementStrength = 9; + */ + public static final int AbilityMetaAbilityElementStrength_VALUE = 9; + /** + * AbilityMetaAddOrGetAbilityAndTrigger = 10; + */ + public static final int AbilityMetaAddOrGetAbilityAndTrigger_VALUE = 10; + /** + * AbilityMetaSetKilledSetate = 11; + */ + public static final int AbilityMetaSetKilledSetate_VALUE = 11; + /** + * AbilityMetaSetAbilityTrigger = 12; + */ + public static final int AbilityMetaSetAbilityTrigger_VALUE = 12; + /** + * AbilityMetaAddNewAbility = 13; + */ + public static final int AbilityMetaAddNewAbility_VALUE = 13; + /** + * AbilityMetaRemoveAbility = 14; + */ + public static final int AbilityMetaRemoveAbility_VALUE = 14; + /** + * AbilityMetaSetModifierApplyEntity = 15; + */ + public static final int AbilityMetaSetModifierApplyEntity_VALUE = 15; + /** + * AbilityMetaModifierDurabilityChange = 16; + */ + public static final int AbilityMetaModifierDurabilityChange_VALUE = 16; + /** + * AbilityMetaElementReactionVisual = 17; + */ + public static final int AbilityMetaElementReactionVisual_VALUE = 17; + /** + * AbilityMetaSetPoseParameter = 18; + */ + public static final int AbilityMetaSetPoseParameter_VALUE = 18; + /** + * AbilityMetaUpdateBaseReactionDamage = 19; + */ + public static final int AbilityMetaUpdateBaseReactionDamage_VALUE = 19; + /** + * AbilityActionTriggerAbility = 50; + */ + public static final int AbilityActionTriggerAbility_VALUE = 50; + /** + * AbilityActionSetCrashDamage = 51; + */ + public static final int AbilityActionSetCrashDamage_VALUE = 51; + /** + * AbilityActionEffect = 52; + */ + public static final int AbilityActionEffect_VALUE = 52; + /** + * AbilityActionSummon = 53; + */ + public static final int AbilityActionSummon_VALUE = 53; + /** + * AbilityActionBlink = 54; + */ + public static final int AbilityActionBlink_VALUE = 54; + /** + * AbilityActionCreateGadget = 55; + */ + public static final int AbilityActionCreateGadget_VALUE = 55; + /** + * AbilityActionApplyLevelModifier = 56; + */ + public static final int AbilityActionApplyLevelModifier_VALUE = 56; + /** + * AbilityActionGenerateElemBall = 57; + */ + public static final int AbilityActionGenerateElemBall_VALUE = 57; + /** + * AbilityActionSetRandomOverrideMapValue = 58; + */ + public static final int AbilityActionSetRandomOverrideMapValue_VALUE = 58; + /** + * AbilityActionServerMonsterLog = 59; + */ + public static final int AbilityActionServerMonsterLog_VALUE = 59; + /** + * AbilityMixinAvatarSteerByCamera = 100; + */ + public static final int AbilityMixinAvatarSteerByCamera_VALUE = 100; + /** + * AbilityMixinMonsterDefend = 101; + */ + public static final int AbilityMixinMonsterDefend_VALUE = 101; + /** + * AbilityMixinWindZone = 102; + */ + public static final int AbilityMixinWindZone_VALUE = 102; + /** + * AbilityMixinCostStamina = 103; + */ + public static final int AbilityMixinCostStamina_VALUE = 103; + /** + * AbilityMixinEliteShield = 104; + */ + public static final int AbilityMixinEliteShield_VALUE = 104; + /** + * AbilityMixinElementShield = 105; + */ + public static final int AbilityMixinElementShield_VALUE = 105; + /** + * AbilityMixinGlobalShield = 106; + */ + public static final int AbilityMixinGlobalShield_VALUE = 106; + /** + * AbilityMixinShieldBar = 107; + */ + public static final int AbilityMixinShieldBar_VALUE = 107; + /** + * AbilityMixinWindSeedSpawner = 108; + */ + public static final int AbilityMixinWindSeedSpawner_VALUE = 108; + /** + * AbilityMixinDoActionByElementReaction = 109; + */ + public static final int AbilityMixinDoActionByElementReaction_VALUE = 109; + /** + * AbilityMixinFieldEntityCountChange = 110; + */ + public static final int AbilityMixinFieldEntityCountChange_VALUE = 110; + /** + * AbilityMixinScenePropSync = 111; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AbilityInvokeArgument> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..4a81ab4d8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryHeadOuterClass.java @@ -0,0 +1,961 @@ +// 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 { + + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + int getInstancedAbilityId(); + + /** + * uint32 instancedModifierId = 2; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * int32 localId = 3; + * @return The localId. + */ + int getLocalId(); + + /** + * int32 modifierConfigLocalId = 4; + * @return The modifierConfigLocalId. + */ + int getModifierConfigLocalId(); + + /** + * uint32 targetId = 5; + * @return The targetId. + */ + int getTargetId(); + + /** + * bool isServerbuffModifier = 6; + * @return The isServerbuffModifier. + */ + boolean getIsServerbuffModifier(); + + /** + * uint32 serverBuffUid = 7; + * @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_; + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + + public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 2; + private int instancedModifierId_; + /** + * uint32 instancedModifierId = 2; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + + public static final int LOCALID_FIELD_NUMBER = 3; + private int localId_; + /** + * int32 localId = 3; + * @return The localId. + */ + @java.lang.Override + public int getLocalId() { + return localId_; + } + + public static final int MODIFIERCONFIGLOCALID_FIELD_NUMBER = 4; + private int modifierConfigLocalId_; + /** + * int32 modifierConfigLocalId = 4; + * @return The modifierConfigLocalId. + */ + @java.lang.Override + public int getModifierConfigLocalId() { + return modifierConfigLocalId_; + } + + public static final int TARGETID_FIELD_NUMBER = 5; + private int targetId_; + /** + * uint32 targetId = 5; + * @return The targetId. + */ + @java.lang.Override + public int getTargetId() { + return targetId_; + } + + public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 6; + private boolean isServerbuffModifier_; + /** + * bool isServerbuffModifier = 6; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + + public static final int SERVERBUFFUID_FIELD_NUMBER = 7; + private int serverBuffUid_; + /** + * uint32 serverBuffUid = 7; + * @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 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_ ; + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + @java.lang.Override + public int getInstancedAbilityId() { + return instancedAbilityId_; + } + /** + * uint32 instancedAbilityId = 1; + * @param value The instancedAbilityId to set. + * @return This builder for chaining. + */ + public Builder setInstancedAbilityId(int value) { + + instancedAbilityId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedAbilityId = 1; + * @return This builder for chaining. + */ + public Builder clearInstancedAbilityId() { + + instancedAbilityId_ = 0; + onChanged(); + return this; + } + + private int instancedModifierId_ ; + /** + * uint32 instancedModifierId = 2; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + /** + * uint32 instancedModifierId = 2; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + + instancedModifierId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 2; + * @return This builder for chaining. + */ + public Builder clearInstancedModifierId() { + + instancedModifierId_ = 0; + onChanged(); + return this; + } + + private int localId_ ; + /** + * int32 localId = 3; + * @return The localId. + */ + @java.lang.Override + public int getLocalId() { + return localId_; + } + /** + * int32 localId = 3; + * @param value The localId to set. + * @return This builder for chaining. + */ + public Builder setLocalId(int value) { + + localId_ = value; + onChanged(); + return this; + } + /** + * int32 localId = 3; + * @return This builder for chaining. + */ + public Builder clearLocalId() { + + localId_ = 0; + onChanged(); + return this; + } + + private int modifierConfigLocalId_ ; + /** + * int32 modifierConfigLocalId = 4; + * @return The modifierConfigLocalId. + */ + @java.lang.Override + public int getModifierConfigLocalId() { + return modifierConfigLocalId_; + } + /** + * int32 modifierConfigLocalId = 4; + * @param value The modifierConfigLocalId to set. + * @return This builder for chaining. + */ + public Builder setModifierConfigLocalId(int value) { + + modifierConfigLocalId_ = value; + onChanged(); + return this; + } + /** + * int32 modifierConfigLocalId = 4; + * @return This builder for chaining. + */ + public Builder clearModifierConfigLocalId() { + + modifierConfigLocalId_ = 0; + onChanged(); + return this; + } + + private int targetId_ ; + /** + * uint32 targetId = 5; + * @return The targetId. + */ + @java.lang.Override + public int getTargetId() { + return targetId_; + } + /** + * uint32 targetId = 5; + * @param value The targetId to set. + * @return This builder for chaining. + */ + public Builder setTargetId(int value) { + + targetId_ = value; + onChanged(); + return this; + } + /** + * uint32 targetId = 5; + * @return This builder for chaining. + */ + public Builder clearTargetId() { + + targetId_ = 0; + onChanged(); + return this; + } + + private boolean isServerbuffModifier_ ; + /** + * bool isServerbuffModifier = 6; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + /** + * bool isServerbuffModifier = 6; + * @param value The isServerbuffModifier to set. + * @return This builder for chaining. + */ + public Builder setIsServerbuffModifier(boolean value) { + + isServerbuffModifier_ = value; + onChanged(); + return this; + } + /** + * bool isServerbuffModifier = 6; + * @return This builder for chaining. + */ + public Builder clearIsServerbuffModifier() { + + isServerbuffModifier_ = false; + onChanged(); + return this; + } + + private int serverBuffUid_ ; + /** + * uint32 serverBuffUid = 7; + * @return The serverBuffUid. + */ + @java.lang.Override + public int getServerBuffUid() { + return serverBuffUid_; + } + /** + * uint32 serverBuffUid = 7; + * @param value The serverBuffUid to set. + * @return This builder for chaining. + */ + public Builder setServerBuffUid(int value) { + + serverBuffUid_ = value; + onChanged(); + return this; + } + /** + * uint32 serverBuffUid = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ee152cef4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityInvokeEntryOuterClass.java @@ -0,0 +1,1180 @@ +// 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 { + + /** + * .AbilityInvokeEntryHead head = 1; + * @return Whether the head field is set. + */ + boolean hasHead(); + /** + * .AbilityInvokeEntryHead head = 1; + * @return The head. + */ + emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getHead(); + /** + * .AbilityInvokeEntryHead head = 1; + */ + emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder(); + + /** + * .AbilityInvokeArgument argumentType = 2; + * @return The enum numeric value on the wire for argumentType. + */ + int getArgumentTypeValue(); + /** + * .AbilityInvokeArgument argumentType = 2; + * @return The argumentType. + */ + emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument getArgumentType(); + + /** + * bytes abilityData = 3; + * @return The abilityData. + */ + com.google.protobuf.ByteString getAbilityData(); + + /** + * uint32 entityId = 4; + * @return The entityId. + */ + int getEntityId(); + + /** + * .ForwardType forwardType = 5; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 5; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * uint32 forwardPeer = 6; + * @return The forwardPeer. + */ + int getForwardPeer(); + + /** + * uint32 eventId = 7; + * @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_; + /** + * .AbilityInvokeEntryHead head = 1; + * @return Whether the head field is set. + */ + @java.lang.Override + public boolean hasHead() { + return head_ != null; + } + /** + * .AbilityInvokeEntryHead head = 1; + * @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_; + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder() { + return getHead(); + } + + public static final int ARGUMENTTYPE_FIELD_NUMBER = 2; + private int argumentType_; + /** + * .AbilityInvokeArgument argumentType = 2; + * @return The enum numeric value on the wire for argumentType. + */ + @java.lang.Override public int getArgumentTypeValue() { + return argumentType_; + } + /** + * .AbilityInvokeArgument argumentType = 2; + * @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_; + /** + * bytes abilityData = 3; + * @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_; + /** + * uint32 entityId = 4; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int FORWARDTYPE_FIELD_NUMBER = 5; + private int forwardType_; + /** + * .ForwardType forwardType = 5; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 5; + * @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_; + /** + * uint32 forwardPeer = 6; + * @return The forwardPeer. + */ + @java.lang.Override + public int getForwardPeer() { + return forwardPeer_; + } + + public static final int EVENTID_FIELD_NUMBER = 7; + private int eventId_; + /** + * uint32 eventId = 7; + * @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 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_; + /** + * .AbilityInvokeEntryHead head = 1; + * @return Whether the head field is set. + */ + public boolean hasHead() { + return headBuilder_ != null || head_ != null; + } + /** + * .AbilityInvokeEntryHead head = 1; + * @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(); + } + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + 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; + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + 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; + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + 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; + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + public Builder clearHead() { + if (headBuilder_ == null) { + head_ = null; + onChanged(); + } else { + head_ = null; + headBuilder_ = null; + } + + return this; + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder getHeadBuilder() { + + onChanged(); + return getHeadFieldBuilder().getBuilder(); + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + 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_; + } + } + /** + * .AbilityInvokeEntryHead head = 1; + */ + 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; + /** + * .AbilityInvokeArgument argumentType = 2; + * @return The enum numeric value on the wire for argumentType. + */ + @java.lang.Override public int getArgumentTypeValue() { + return argumentType_; + } + /** + * .AbilityInvokeArgument argumentType = 2; + * @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; + } + /** + * .AbilityInvokeArgument argumentType = 2; + * @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; + } + /** + * .AbilityInvokeArgument argumentType = 2; + * @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; + } + /** + * .AbilityInvokeArgument argumentType = 2; + * @return This builder for chaining. + */ + public Builder clearArgumentType() { + + argumentType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString abilityData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes abilityData = 3; + * @return The abilityData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAbilityData() { + return abilityData_; + } + /** + * bytes abilityData = 3; + * @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; + } + /** + * bytes abilityData = 3; + * @return This builder for chaining. + */ + public Builder clearAbilityData() { + + abilityData_ = getDefaultInstance().getAbilityData(); + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 4; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 4; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 4; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int forwardType_ = 0; + /** + * .ForwardType forwardType = 5; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 5; + * @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; + } + /** + * .ForwardType forwardType = 5; + * @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; + } + /** + * .ForwardType forwardType = 5; + * @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; + } + /** + * .ForwardType forwardType = 5; + * @return This builder for chaining. + */ + public Builder clearForwardType() { + + forwardType_ = 0; + onChanged(); + return this; + } + + private int forwardPeer_ ; + /** + * uint32 forwardPeer = 6; + * @return The forwardPeer. + */ + @java.lang.Override + public int getForwardPeer() { + return forwardPeer_; + } + /** + * uint32 forwardPeer = 6; + * @param value The forwardPeer to set. + * @return This builder for chaining. + */ + public Builder setForwardPeer(int value) { + + forwardPeer_ = value; + onChanged(); + return this; + } + /** + * uint32 forwardPeer = 6; + * @return This builder for chaining. + */ + public Builder clearForwardPeer() { + + forwardPeer_ = 0; + onChanged(); + return this; + } + + private int eventId_ ; + /** + * uint32 eventId = 7; + * @return The eventId. + */ + @java.lang.Override + public int getEventId() { + return eventId_; + } + /** + * uint32 eventId = 7; + * @param value The eventId to set. + * @return This builder for chaining. + */ + public Builder setEventId(int value) { + + eventId_ = value; + onChanged(); + return this; + } + /** + * uint32 eventId = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..54b31631f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityMixinRecoverInfoOuterClass.java @@ -0,0 +1,1462 @@ +// 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 { + + /** + * uint32 instancedAbilityId = 1; + * @return Whether the instancedAbilityId field is set. + */ + boolean hasInstancedAbilityId(); + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + int getInstancedAbilityId(); + + /** + * uint32 instancedModifierId = 2; + * @return Whether the instancedModifierId field is set. + */ + boolean hasInstancedModifierId(); + /** + * uint32 instancedModifierId = 2; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * uint32 localId = 3; + * @return The localId. + */ + int getLocalId(); + + /** + * repeated uint32 dataList = 4; + * @return A list containing the dataList. + */ + java.util.List getDataListList(); + /** + * repeated uint32 dataList = 4; + * @return The count of dataList. + */ + int getDataListCount(); + /** + * repeated uint32 dataList = 4; + * @param index The index of the element to return. + * @return The dataList at the given index. + */ + int getDataList(int index); + + /** + * bool isServerbuffModifier = 5; + * @return The isServerbuffModifier. + */ + boolean getIsServerbuffModifier(); + + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + java.util.List + getMassivePropListList(); + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index); + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + int getMassivePropListCount(); + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + java.util.List + getMassivePropListOrBuilderList(); + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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(); + 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; + /** + * uint32 instancedAbilityId = 1; + * @return Whether the instancedAbilityId field is set. + */ + @java.lang.Override + public boolean hasInstancedAbilityId() { + return sourceCase_ == 1; + } + /** + * uint32 instancedAbilityId = 1; + * @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; + /** + * uint32 instancedModifierId = 2; + * @return Whether the instancedModifierId field is set. + */ + @java.lang.Override + public boolean hasInstancedModifierId() { + return sourceCase_ == 2; + } + /** + * uint32 instancedModifierId = 2; + * @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_; + /** + * uint32 localId = 3; + * @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_; + /** + * repeated uint32 dataList = 4; + * @return A list containing the dataList. + */ + @java.lang.Override + public java.util.List + getDataListList() { + return dataList_; + } + /** + * repeated uint32 dataList = 4; + * @return The count of dataList. + */ + public int getDataListCount() { + return dataList_.size(); + } + /** + * repeated uint32 dataList = 4; + * @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_; + /** + * bool isServerbuffModifier = 5; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + + public static final int MASSIVEPROPLIST_FIELD_NUMBER = 6; + private java.util.List massivePropList_; + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + @java.lang.Override + public java.util.List getMassivePropListList() { + return massivePropList_; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + @java.lang.Override + public java.util.List + getMassivePropListOrBuilderList() { + return massivePropList_; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + @java.lang.Override + public int getMassivePropListCount() { + return massivePropList_.size(); + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { + return massivePropList_.get(index); + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + @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 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_; + + /** + * uint32 instancedAbilityId = 1; + * @return Whether the instancedAbilityId field is set. + */ + public boolean hasInstancedAbilityId() { + return sourceCase_ == 1; + } + /** + * uint32 instancedAbilityId = 1; + * @return The instancedAbilityId. + */ + public int getInstancedAbilityId() { + if (sourceCase_ == 1) { + return (java.lang.Integer) source_; + } + return 0; + } + /** + * uint32 instancedAbilityId = 1; + * @param value The instancedAbilityId to set. + * @return This builder for chaining. + */ + public Builder setInstancedAbilityId(int value) { + sourceCase_ = 1; + source_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedAbilityId = 1; + * @return This builder for chaining. + */ + public Builder clearInstancedAbilityId() { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 instancedModifierId = 2; + * @return Whether the instancedModifierId field is set. + */ + public boolean hasInstancedModifierId() { + return sourceCase_ == 2; + } + /** + * uint32 instancedModifierId = 2; + * @return The instancedModifierId. + */ + public int getInstancedModifierId() { + if (sourceCase_ == 2) { + return (java.lang.Integer) source_; + } + return 0; + } + /** + * uint32 instancedModifierId = 2; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 2; + * @return This builder for chaining. + */ + public Builder clearInstancedModifierId() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + private int localId_ ; + /** + * uint32 localId = 3; + * @return The localId. + */ + @java.lang.Override + public int getLocalId() { + return localId_; + } + /** + * uint32 localId = 3; + * @param value The localId to set. + * @return This builder for chaining. + */ + public Builder setLocalId(int value) { + + localId_ = value; + onChanged(); + return this; + } + /** + * uint32 localId = 3; + * @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; + } + } + /** + * repeated uint32 dataList = 4; + * @return A list containing the dataList. + */ + public java.util.List + getDataListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(dataList_) : dataList_; + } + /** + * repeated uint32 dataList = 4; + * @return The count of dataList. + */ + public int getDataListCount() { + return dataList_.size(); + } + /** + * repeated uint32 dataList = 4; + * @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); + } + /** + * repeated uint32 dataList = 4; + * @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; + } + /** + * repeated uint32 dataList = 4; + * @param value The dataList to add. + * @return This builder for chaining. + */ + public Builder addDataList(int value) { + ensureDataListIsMutable(); + dataList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 dataList = 4; + * @param values The dataList to add. + * @return This builder for chaining. + */ + public Builder addAllDataList( + java.lang.Iterable values) { + ensureDataListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataList_); + onChanged(); + return this; + } + /** + * repeated uint32 dataList = 4; + * @return This builder for chaining. + */ + public Builder clearDataList() { + dataList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean isServerbuffModifier_ ; + /** + * bool isServerbuffModifier = 5; + * @return The isServerbuffModifier. + */ + @java.lang.Override + public boolean getIsServerbuffModifier() { + return isServerbuffModifier_; + } + /** + * bool isServerbuffModifier = 5; + * @param value The isServerbuffModifier to set. + * @return This builder for chaining. + */ + public Builder setIsServerbuffModifier(boolean value) { + + isServerbuffModifier_ = value; + onChanged(); + return this; + } + /** + * bool isServerbuffModifier = 5; + * @return This builder for chaining. + */ + public Builder clearIsServerbuffModifier() { + + isServerbuffModifier_ = false; + onChanged(); + return this; + } + + private java.util.List massivePropList_ = + java.util.Collections.emptyList(); + private void ensureMassivePropListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + massivePropList_ = new java.util.ArrayList(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_; + + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public java.util.List getMassivePropListList() { + if (massivePropListBuilder_ == null) { + return java.util.Collections.unmodifiableList(massivePropList_); + } else { + return massivePropListBuilder_.getMessageList(); + } + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public int getMassivePropListCount() { + if (massivePropListBuilder_ == null) { + return massivePropList_.size(); + } else { + return massivePropListBuilder_.getCount(); + } + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { + if (massivePropListBuilder_ == null) { + return massivePropList_.get(index); + } else { + return massivePropListBuilder_.getMessage(index); + } + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + 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; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public Builder addAllMassivePropList( + java.lang.Iterable values) { + if (massivePropListBuilder_ == null) { + ensureMassivePropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, massivePropList_); + onChanged(); + } else { + massivePropListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public Builder clearMassivePropList() { + if (massivePropListBuilder_ == null) { + massivePropList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + massivePropListBuilder_.clear(); + } + return this; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public Builder removeMassivePropList(int index) { + if (massivePropListBuilder_ == null) { + ensureMassivePropListIsMutable(); + massivePropList_.remove(index); + onChanged(); + } else { + massivePropListBuilder_.remove(index); + } + return this; + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder getMassivePropListBuilder( + int index) { + return getMassivePropListFieldBuilder().getBuilder(index); + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( + int index) { + if (massivePropListBuilder_ == null) { + return massivePropList_.get(index); } else { + return massivePropListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public java.util.List + getMassivePropListOrBuilderList() { + if (massivePropListBuilder_ != null) { + return massivePropListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(massivePropList_); + } + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder() { + return getMassivePropListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder( + int index) { + return getMassivePropListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); + } + /** + * repeated .MassivePropSyncInfo massivePropList = 6; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c55c7d3fa --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityScalarTypeOuterClass.java @@ -0,0 +1,191 @@ +// 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 { + /** + * Unknow = 0; + */ + Unknow(0), + /** + * Float = 1; + */ + Float(1), + /** + * Int = 2; + */ + Int(2), + /** + * Bool = 3; + */ + Bool(3), + /** + * Trigger = 4; + */ + Trigger(4), + /** + * String = 5; + */ + String(5), + /** + * Uint = 6; + */ + Uint(6), + UNRECOGNIZED(-1), + ; + + /** + * Unknow = 0; + */ + public static final int Unknow_VALUE = 0; + /** + * Float = 1; + */ + public static final int Float_VALUE = 1; + /** + * Int = 2; + */ + public static final int Int_VALUE = 2; + /** + * Bool = 3; + */ + public static final int Bool_VALUE = 3; + /** + * Trigger = 4; + */ + public static final int Trigger_VALUE = 4; + /** + * String = 5; + */ + public static final int String_VALUE = 5; + /** + * Uint = 6; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AbilityScalarType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..c63fd61f5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityScalarValueEntryOuterClass.java @@ -0,0 +1,1367 @@ +// 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 { + + /** + * .AbilityString key = 1; + * @return Whether the key field is set. + */ + boolean hasKey(); + /** + * .AbilityString key = 1; + * @return The key. + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getKey(); + /** + * .AbilityString key = 1; + */ + emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getKeyOrBuilder(); + + /** + * .AbilityScalarType valueType = 2; + * @return The enum numeric value on the wire for valueType. + */ + int getValueTypeValue(); + /** + * .AbilityScalarType valueType = 2; + * @return The valueType. + */ + emu.grasscutter.net.proto.AbilityScalarTypeOuterClass.AbilityScalarType getValueType(); + + /** + * float floatValue = 3; + * @return Whether the floatValue field is set. + */ + boolean hasFloatValue(); + /** + * float floatValue = 3; + * @return The floatValue. + */ + float getFloatValue(); + + /** + * string stringValue = 4; + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + /** + * string stringValue = 4; + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * string stringValue = 4; + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * int32 intValue = 5; + * @return Whether the intValue field is set. + */ + boolean hasIntValue(); + /** + * int32 intValue = 5; + * @return The intValue. + */ + int getIntValue(); + + /** + * uint32 uintValue = 6; + * @return Whether the uintValue field is set. + */ + boolean hasUintValue(); + /** + * uint32 uintValue = 6; + * @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_; + /** + * .AbilityString key = 1; + * @return Whether the key field is set. + */ + @java.lang.Override + public boolean hasKey() { + return key_ != null; + } + /** + * .AbilityString key = 1; + * @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_; + } + /** + * .AbilityString key = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getKeyOrBuilder() { + return getKey(); + } + + public static final int VALUETYPE_FIELD_NUMBER = 2; + private int valueType_; + /** + * .AbilityScalarType valueType = 2; + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override public int getValueTypeValue() { + return valueType_; + } + /** + * .AbilityScalarType valueType = 2; + * @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; + /** + * float floatValue = 3; + * @return Whether the floatValue field is set. + */ + @java.lang.Override + public boolean hasFloatValue() { + return valueCase_ == 3; + } + /** + * float floatValue = 3; + * @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; + /** + * string stringValue = 4; + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * string stringValue = 4; + * @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; + } + } + /** + * string stringValue = 4; + * @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; + /** + * int32 intValue = 5; + * @return Whether the intValue field is set. + */ + @java.lang.Override + public boolean hasIntValue() { + return valueCase_ == 5; + } + /** + * int32 intValue = 5; + * @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; + /** + * uint32 uintValue = 6; + * @return Whether the uintValue field is set. + */ + @java.lang.Override + public boolean hasUintValue() { + return valueCase_ == 6; + } + /** + * uint32 uintValue = 6; + * @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 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_; + /** + * .AbilityString key = 1; + * @return Whether the key field is set. + */ + public boolean hasKey() { + return keyBuilder_ != null || key_ != null; + } + /** + * .AbilityString key = 1; + * @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(); + } + } + /** + * .AbilityString key = 1; + */ + 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; + } + /** + * .AbilityString key = 1; + */ + 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; + } + /** + * .AbilityString key = 1; + */ + 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; + } + /** + * .AbilityString key = 1; + */ + public Builder clearKey() { + if (keyBuilder_ == null) { + key_ = null; + onChanged(); + } else { + key_ = null; + keyBuilder_ = null; + } + + return this; + } + /** + * .AbilityString key = 1; + */ + public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getKeyBuilder() { + + onChanged(); + return getKeyFieldBuilder().getBuilder(); + } + /** + * .AbilityString key = 1; + */ + 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_; + } + } + /** + * .AbilityString key = 1; + */ + 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; + /** + * .AbilityScalarType valueType = 2; + * @return The enum numeric value on the wire for valueType. + */ + @java.lang.Override public int getValueTypeValue() { + return valueType_; + } + /** + * .AbilityScalarType valueType = 2; + * @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; + } + /** + * .AbilityScalarType valueType = 2; + * @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; + } + /** + * .AbilityScalarType valueType = 2; + * @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; + } + /** + * .AbilityScalarType valueType = 2; + * @return This builder for chaining. + */ + public Builder clearValueType() { + + valueType_ = 0; + onChanged(); + return this; + } + + /** + * float floatValue = 3; + * @return Whether the floatValue field is set. + */ + public boolean hasFloatValue() { + return valueCase_ == 3; + } + /** + * float floatValue = 3; + * @return The floatValue. + */ + public float getFloatValue() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + /** + * float floatValue = 3; + * @param value The floatValue to set. + * @return This builder for chaining. + */ + public Builder setFloatValue(float value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * float floatValue = 3; + * @return This builder for chaining. + */ + public Builder clearFloatValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string stringValue = 4; + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return valueCase_ == 4; + } + /** + * string stringValue = 4; + * @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; + } + } + /** + * string stringValue = 4; + * @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; + } + } + /** + * string stringValue = 4; + * @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; + } + /** + * string stringValue = 4; + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string stringValue = 4; + * @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; + } + + /** + * int32 intValue = 5; + * @return Whether the intValue field is set. + */ + public boolean hasIntValue() { + return valueCase_ == 5; + } + /** + * int32 intValue = 5; + * @return The intValue. + */ + public int getIntValue() { + if (valueCase_ == 5) { + return (java.lang.Integer) value_; + } + return 0; + } + /** + * int32 intValue = 5; + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(int value) { + valueCase_ = 5; + value_ = value; + onChanged(); + return this; + } + /** + * int32 intValue = 5; + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 uintValue = 6; + * @return Whether the uintValue field is set. + */ + public boolean hasUintValue() { + return valueCase_ == 6; + } + /** + * uint32 uintValue = 6; + * @return The uintValue. + */ + public int getUintValue() { + if (valueCase_ == 6) { + return (java.lang.Integer) value_; + } + return 0; + } + /** + * uint32 uintValue = 6; + * @param value The uintValue to set. + * @return This builder for chaining. + */ + public Builder setUintValue(int value) { + valueCase_ = 6; + value_ = value; + onChanged(); + return this; + } + /** + * uint32 uintValue = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..987971915 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilityStringOuterClass.java @@ -0,0 +1,838 @@ +// 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 { + + /** + * string str = 1; + * @return Whether the str field is set. + */ + boolean hasStr(); + /** + * string str = 1; + * @return The str. + */ + java.lang.String getStr(); + /** + * string str = 1; + * @return The bytes for str. + */ + com.google.protobuf.ByteString + getStrBytes(); + + /** + * uint32 hash = 2; + * @return Whether the hash field is set. + */ + boolean hasHash(); + /** + * uint32 hash = 2; + * @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; + /** + * string str = 1; + * @return Whether the str field is set. + */ + public boolean hasStr() { + return typeCase_ == 1; + } + /** + * string str = 1; + * @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; + } + } + /** + * string str = 1; + * @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; + /** + * uint32 hash = 2; + * @return Whether the hash field is set. + */ + @java.lang.Override + public boolean hasHash() { + return typeCase_ == 2; + } + /** + * uint32 hash = 2; + * @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 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; + } + + + /** + * string str = 1; + * @return Whether the str field is set. + */ + @java.lang.Override + public boolean hasStr() { + return typeCase_ == 1; + } + /** + * string str = 1; + * @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; + } + } + /** + * string str = 1; + * @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; + } + } + /** + * string str = 1; + * @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; + } + /** + * string str = 1; + * @return This builder for chaining. + */ + public Builder clearStr() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + /** + * string str = 1; + * @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; + } + + /** + * uint32 hash = 2; + * @return Whether the hash field is set. + */ + public boolean hasHash() { + return typeCase_ == 2; + } + /** + * uint32 hash = 2; + * @return The hash. + */ + public int getHash() { + if (typeCase_ == 2) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + * uint32 hash = 2; + * @param value The hash to set. + * @return This builder for chaining. + */ + public Builder setHash(int value) { + typeCase_ = 2; + type_ = value; + onChanged(); + return this; + } + /** + * uint32 hash = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..98f9f393a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AbilitySyncStateInfoOuterClass.java @@ -0,0 +1,2044 @@ +// 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 { + + /** + * bool isInited = 1; + * @return The isInited. + */ + boolean getIsInited(); + + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + java.util.List + getDynamicValueMapList(); + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index); + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + int getDynamicValueMapCount(); + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + java.util.List + getDynamicValueMapOrBuilderList(); + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getDynamicValueMapOrBuilder( + int index); + + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + java.util.List + getAppliedAbilitiesList(); + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index); + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + int getAppliedAbilitiesCount(); + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + java.util.List + getAppliedAbilitiesOrBuilderList(); + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder getAppliedAbilitiesOrBuilder( + int index); + + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + java.util.List + getAppliedModifiersList(); + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index); + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + int getAppliedModifiersCount(); + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + java.util.List + getAppliedModifiersOrBuilderList(); + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder getAppliedModifiersOrBuilder( + int index); + + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + java.util.List + getMixinRecoverInfosList(); + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index); + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + int getMixinRecoverInfosCount(); + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + java.util.List + getMixinRecoverInfosOrBuilderList(); + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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(); + 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(); + 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(); + 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(); + 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_; + /** + * bool isInited = 1; + * @return The isInited. + */ + @java.lang.Override + public boolean getIsInited() { + return isInited_; + } + + public static final int DYNAMICVALUEMAP_FIELD_NUMBER = 2; + private java.util.List dynamicValueMap_; + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + @java.lang.Override + public java.util.List getDynamicValueMapList() { + return dynamicValueMap_; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + @java.lang.Override + public java.util.List + getDynamicValueMapOrBuilderList() { + return dynamicValueMap_; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + @java.lang.Override + public int getDynamicValueMapCount() { + return dynamicValueMap_.size(); + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index) { + return dynamicValueMap_.get(index); + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + @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 appliedAbilities_; + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + @java.lang.Override + public java.util.List getAppliedAbilitiesList() { + return appliedAbilities_; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + @java.lang.Override + public java.util.List + getAppliedAbilitiesOrBuilderList() { + return appliedAbilities_; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + @java.lang.Override + public int getAppliedAbilitiesCount() { + return appliedAbilities_.size(); + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index) { + return appliedAbilities_.get(index); + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + @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 appliedModifiers_; + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + @java.lang.Override + public java.util.List getAppliedModifiersList() { + return appliedModifiers_; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + @java.lang.Override + public java.util.List + getAppliedModifiersOrBuilderList() { + return appliedModifiers_; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + @java.lang.Override + public int getAppliedModifiersCount() { + return appliedModifiers_.size(); + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index) { + return appliedModifiers_.get(index); + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + @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 mixinRecoverInfos_; + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + @java.lang.Override + public java.util.List getMixinRecoverInfosList() { + return mixinRecoverInfos_; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + @java.lang.Override + public java.util.List + getMixinRecoverInfosOrBuilderList() { + return mixinRecoverInfos_; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + @java.lang.Override + public int getMixinRecoverInfosCount() { + return mixinRecoverInfos_.size(); + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index) { + return mixinRecoverInfos_.get(index); + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + @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 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_ ; + /** + * bool isInited = 1; + * @return The isInited. + */ + @java.lang.Override + public boolean getIsInited() { + return isInited_; + } + /** + * bool isInited = 1; + * @param value The isInited to set. + * @return This builder for chaining. + */ + public Builder setIsInited(boolean value) { + + isInited_ = value; + onChanged(); + return this; + } + /** + * bool isInited = 1; + * @return This builder for chaining. + */ + public Builder clearIsInited() { + + isInited_ = false; + onChanged(); + return this; + } + + private java.util.List dynamicValueMap_ = + java.util.Collections.emptyList(); + private void ensureDynamicValueMapIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dynamicValueMap_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public java.util.List getDynamicValueMapList() { + if (dynamicValueMapBuilder_ == null) { + return java.util.Collections.unmodifiableList(dynamicValueMap_); + } else { + return dynamicValueMapBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public int getDynamicValueMapCount() { + if (dynamicValueMapBuilder_ == null) { + return dynamicValueMap_.size(); + } else { + return dynamicValueMapBuilder_.getCount(); + } + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getDynamicValueMap(int index) { + if (dynamicValueMapBuilder_ == null) { + return dynamicValueMap_.get(index); + } else { + return dynamicValueMapBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + 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; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public Builder addAllDynamicValueMap( + java.lang.Iterable values) { + if (dynamicValueMapBuilder_ == null) { + ensureDynamicValueMapIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dynamicValueMap_); + onChanged(); + } else { + dynamicValueMapBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public Builder clearDynamicValueMap() { + if (dynamicValueMapBuilder_ == null) { + dynamicValueMap_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dynamicValueMapBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public Builder removeDynamicValueMap(int index) { + if (dynamicValueMapBuilder_ == null) { + ensureDynamicValueMapIsMutable(); + dynamicValueMap_.remove(index); + onChanged(); + } else { + dynamicValueMapBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder getDynamicValueMapBuilder( + int index) { + return getDynamicValueMapFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getDynamicValueMapOrBuilder( + int index) { + if (dynamicValueMapBuilder_ == null) { + return dynamicValueMap_.get(index); } else { + return dynamicValueMapBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public java.util.List + getDynamicValueMapOrBuilderList() { + if (dynamicValueMapBuilder_ != null) { + return dynamicValueMapBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dynamicValueMap_); + } + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addDynamicValueMapBuilder() { + return getDynamicValueMapFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addDynamicValueMapBuilder( + int index) { + return getDynamicValueMapFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance()); + } + /** + * repeated .AbilityScalarValueEntry dynamicValueMap = 2; + */ + public java.util.List + 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 appliedAbilities_ = + java.util.Collections.emptyList(); + private void ensureAppliedAbilitiesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + appliedAbilities_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public java.util.List getAppliedAbilitiesList() { + if (appliedAbilitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(appliedAbilities_); + } else { + return appliedAbilitiesBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public int getAppliedAbilitiesCount() { + if (appliedAbilitiesBuilder_ == null) { + return appliedAbilities_.size(); + } else { + return appliedAbilitiesBuilder_.getCount(); + } + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getAppliedAbilities(int index) { + if (appliedAbilitiesBuilder_ == null) { + return appliedAbilities_.get(index); + } else { + return appliedAbilitiesBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + 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; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public Builder addAllAppliedAbilities( + java.lang.Iterable values) { + if (appliedAbilitiesBuilder_ == null) { + ensureAppliedAbilitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appliedAbilities_); + onChanged(); + } else { + appliedAbilitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public Builder clearAppliedAbilities() { + if (appliedAbilitiesBuilder_ == null) { + appliedAbilities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + appliedAbilitiesBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public Builder removeAppliedAbilities(int index) { + if (appliedAbilitiesBuilder_ == null) { + ensureAppliedAbilitiesIsMutable(); + appliedAbilities_.remove(index); + onChanged(); + } else { + appliedAbilitiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder getAppliedAbilitiesBuilder( + int index) { + return getAppliedAbilitiesFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder getAppliedAbilitiesOrBuilder( + int index) { + if (appliedAbilitiesBuilder_ == null) { + return appliedAbilities_.get(index); } else { + return appliedAbilitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public java.util.List + getAppliedAbilitiesOrBuilderList() { + if (appliedAbilitiesBuilder_ != null) { + return appliedAbilitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appliedAbilities_); + } + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder addAppliedAbilitiesBuilder() { + return getAppliedAbilitiesFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()); + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder addAppliedAbilitiesBuilder( + int index) { + return getAppliedAbilitiesFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()); + } + /** + * repeated .AbilityAppliedAbility appliedAbilities = 3; + */ + public java.util.List + 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 appliedModifiers_ = + java.util.Collections.emptyList(); + private void ensureAppliedModifiersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + appliedModifiers_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public java.util.List getAppliedModifiersList() { + if (appliedModifiersBuilder_ == null) { + return java.util.Collections.unmodifiableList(appliedModifiers_); + } else { + return appliedModifiersBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public int getAppliedModifiersCount() { + if (appliedModifiersBuilder_ == null) { + return appliedModifiers_.size(); + } else { + return appliedModifiersBuilder_.getCount(); + } + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getAppliedModifiers(int index) { + if (appliedModifiersBuilder_ == null) { + return appliedModifiers_.get(index); + } else { + return appliedModifiersBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + 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; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public Builder addAllAppliedModifiers( + java.lang.Iterable values) { + if (appliedModifiersBuilder_ == null) { + ensureAppliedModifiersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appliedModifiers_); + onChanged(); + } else { + appliedModifiersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public Builder clearAppliedModifiers() { + if (appliedModifiersBuilder_ == null) { + appliedModifiers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + appliedModifiersBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public Builder removeAppliedModifiers(int index) { + if (appliedModifiersBuilder_ == null) { + ensureAppliedModifiersIsMutable(); + appliedModifiers_.remove(index); + onChanged(); + } else { + appliedModifiersBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder getAppliedModifiersBuilder( + int index) { + return getAppliedModifiersFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder getAppliedModifiersOrBuilder( + int index) { + if (appliedModifiersBuilder_ == null) { + return appliedModifiers_.get(index); } else { + return appliedModifiersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public java.util.List + getAppliedModifiersOrBuilderList() { + if (appliedModifiersBuilder_ != null) { + return appliedModifiersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(appliedModifiers_); + } + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder addAppliedModifiersBuilder() { + return getAppliedModifiersFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()); + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder addAppliedModifiersBuilder( + int index) { + return getAppliedModifiersFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()); + } + /** + * repeated .AbilityAppliedModifier appliedModifiers = 4; + */ + public java.util.List + 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 mixinRecoverInfos_ = + java.util.Collections.emptyList(); + private void ensureMixinRecoverInfosIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + mixinRecoverInfos_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public java.util.List getMixinRecoverInfosList() { + if (mixinRecoverInfosBuilder_ == null) { + return java.util.Collections.unmodifiableList(mixinRecoverInfos_); + } else { + return mixinRecoverInfosBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public int getMixinRecoverInfosCount() { + if (mixinRecoverInfosBuilder_ == null) { + return mixinRecoverInfos_.size(); + } else { + return mixinRecoverInfosBuilder_.getCount(); + } + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getMixinRecoverInfos(int index) { + if (mixinRecoverInfosBuilder_ == null) { + return mixinRecoverInfos_.get(index); + } else { + return mixinRecoverInfosBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + 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; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public Builder addAllMixinRecoverInfos( + java.lang.Iterable values) { + if (mixinRecoverInfosBuilder_ == null) { + ensureMixinRecoverInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mixinRecoverInfos_); + onChanged(); + } else { + mixinRecoverInfosBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public Builder clearMixinRecoverInfos() { + if (mixinRecoverInfosBuilder_ == null) { + mixinRecoverInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + mixinRecoverInfosBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public Builder removeMixinRecoverInfos(int index) { + if (mixinRecoverInfosBuilder_ == null) { + ensureMixinRecoverInfosIsMutable(); + mixinRecoverInfos_.remove(index); + onChanged(); + } else { + mixinRecoverInfosBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder getMixinRecoverInfosBuilder( + int index) { + return getMixinRecoverInfosFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder getMixinRecoverInfosOrBuilder( + int index) { + if (mixinRecoverInfosBuilder_ == null) { + return mixinRecoverInfos_.get(index); } else { + return mixinRecoverInfosBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public java.util.List + getMixinRecoverInfosOrBuilderList() { + if (mixinRecoverInfosBuilder_ != null) { + return mixinRecoverInfosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mixinRecoverInfos_); + } + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder addMixinRecoverInfosBuilder() { + return getMixinRecoverInfosFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()); + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder addMixinRecoverInfosBuilder( + int index) { + return getMixinRecoverInfosFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()); + } + /** + * repeated .AbilityMixinRecoverInfo mixinRecoverInfos = 5; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5ca6297ca --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ActionReasonTypeOuterClass.java @@ -0,0 +1,1834 @@ +// 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 { + /** + * ActionReasonNone = 0; + */ + ActionReasonNone(0), + /** + * ActionReasonQuestItem = 1; + */ + ActionReasonQuestItem(1), + /** + * ActionReasonQuestReward = 2; + */ + ActionReasonQuestReward(2), + /** + * ActionReasonTrifle = 3; + */ + ActionReasonTrifle(3), + /** + * ActionReasonShop = 4; + */ + ActionReasonShop(4), + /** + * ActionReasonPlayerUpgradeReward = 5; + */ + ActionReasonPlayerUpgradeReward(5), + /** + * ActionReasonAddAvatar = 6; + */ + ActionReasonAddAvatar(6), + /** + * ActionReasonGadgetEnvAnimal = 7; + */ + ActionReasonGadgetEnvAnimal(7), + /** + * ActionReasonMonsterEnvAnimal = 8; + */ + ActionReasonMonsterEnvAnimal(8), + /** + * ActionReasonCompound = 9; + */ + ActionReasonCompound(9), + /** + * ActionReasonCook = 10; + */ + ActionReasonCook(10), + /** + * ActionReasonGather = 11; + */ + ActionReasonGather(11), + /** + * ActionReasonMailAttachment = 12; + */ + ActionReasonMailAttachment(12), + /** + * ActionReasonCityLevelupReturn = 15; + */ + ActionReasonCityLevelupReturn(15), + /** + * ActionReasonCityLevelupReward = 17; + */ + ActionReasonCityLevelupReward(17), + /** + * ActionReasonAreaExploreReward = 18; + */ + ActionReasonAreaExploreReward(18), + /** + * ActionReasonUnlockPointReward = 19; + */ + ActionReasonUnlockPointReward(19), + /** + * ActionReasonDungeonFirstPass = 20; + */ + ActionReasonDungeonFirstPass(20), + /** + * ActionReasonDungeonPass = 21; + */ + ActionReasonDungeonPass(21), + /** + * ActionReasonChangeElemType = 23; + */ + ActionReasonChangeElemType(23), + /** + * ActionReasonFetterOpen = 25; + */ + ActionReasonFetterOpen(25), + /** + * ActionReasonDailyTaskScore = 26; + */ + ActionReasonDailyTaskScore(26), + /** + * ActionReasonDailyTaskHost = 27; + */ + ActionReasonDailyTaskHost(27), + /** + * ActionReasonRandTaskHost = 28; + */ + ActionReasonRandTaskHost(28), + /** + * ActionReasonExpedition = 29; + */ + ActionReasonExpedition(29), + /** + * ActionReasonGacha = 30; + */ + ActionReasonGacha(30), + /** + * ActionReasonCombine = 31; + */ + ActionReasonCombine(31), + /** + * ActionReasonRandTaskGuest = 32; + */ + ActionReasonRandTaskGuest(32), + /** + * ActionReasonDailyTaskGuest = 33; + */ + ActionReasonDailyTaskGuest(33), + /** + * ActionReasonForgeOutput = 34; + */ + ActionReasonForgeOutput(34), + /** + * ActionReasonForgeReturn = 35; + */ + ActionReasonForgeReturn(35), + /** + * ActionReasonInitAvatar = 36; + */ + ActionReasonInitAvatar(36), + /** + * ActionReasonMonsterDie = 37; + */ + ActionReasonMonsterDie(37), + /** + * ActionReasonGm = 38; + */ + ActionReasonGm(38), + /** + * ActionReasonOpenChest = 39; + */ + ActionReasonOpenChest(39), + /** + * ActionReasonGadgetDie = 40; + */ + ActionReasonGadgetDie(40), + /** + * ActionReasonMonsterChangeHp = 41; + */ + ActionReasonMonsterChangeHp(41), + /** + * ActionReasonSubfieldDrop = 42; + */ + ActionReasonSubfieldDrop(42), + /** + * ActionReasonPushTipsReward = 43; + */ + ActionReasonPushTipsReward(43), + /** + * ActionReasonActivityMonsterDrop = 44; + */ + ActionReasonActivityMonsterDrop(44), + /** + * ActionReasonActivityGather = 45; + */ + ActionReasonActivityGather(45), + /** + * ActionReasonActivitySubfieldDrop = 46; + */ + ActionReasonActivitySubfieldDrop(46), + /** + * ActionReasonTowerScheduleReward = 47; + */ + ActionReasonTowerScheduleReward(47), + /** + * ActionReasonTowerFloorStarReward = 48; + */ + ActionReasonTowerFloorStarReward(48), + /** + * ActionReasonTowerFirstPassReward = 49; + */ + ActionReasonTowerFirstPassReward(49), + /** + * ActionReasonTowerDailyReward = 50; + */ + ActionReasonTowerDailyReward(50), + /** + * ActionReasonHitClientTrivialEntity = 51; + */ + ActionReasonHitClientTrivialEntity(51), + /** + * ActionReasonOpenWorldBossChest = 52; + */ + ActionReasonOpenWorldBossChest(52), + /** + * ActionReasonMaterialDeleteReturn = 53; + */ + ActionReasonMaterialDeleteReturn(53), + /** + * ActionReasonSignInReward = 54; + */ + ActionReasonSignInReward(54), + /** + * ActionReasonOpenBlossomChest = 55; + */ + ActionReasonOpenBlossomChest(55), + /** + * ActionReasonRecharge = 56; + */ + ActionReasonRecharge(56), + /** + * ActionReasonBonusActivityReward = 57; + */ + ActionReasonBonusActivityReward(57), + /** + * ActionReasonTowerCommemorativeReward = 58; + */ + ActionReasonTowerCommemorativeReward(58), + /** + * ActionReasonTowerSkipFloorReward = 59; + */ + ActionReasonTowerSkipFloorReward(59), + /** + * ActionReasonRechargeBonus = 60; + */ + ActionReasonRechargeBonus(60), + /** + * ActionReasonRechargeCard = 61; + */ + ActionReasonRechargeCard(61), + /** + * ActionReasonRechargeCardDaily = 62; + */ + ActionReasonRechargeCardDaily(62), + /** + * ActionReasonRechargeCardReplace = 63; + */ + ActionReasonRechargeCardReplace(63), + /** + * ActionReasonRechargeCardReplaceFree = 64; + */ + ActionReasonRechargeCardReplaceFree(64), + /** + * ActionReasonRechargePlayReplace = 65; + */ + ActionReasonRechargePlayReplace(65), + /** + * ActionReasonMpPlayTakeReward = 66; + */ + ActionReasonMpPlayTakeReward(66), + /** + * ActionReasonActivityWatcher = 67; + */ + ActionReasonActivityWatcher(67), + /** + * ActionReasonSalesmanDeliverItem = 68; + */ + ActionReasonSalesmanDeliverItem(68), + /** + * ActionReasonSalesmanReward = 69; + */ + ActionReasonSalesmanReward(69), + /** + * ActionReasonRebate = 70; + */ + ActionReasonRebate(70), + /** + * ActionReasonMcoinExchangeHcoin = 71; + */ + ActionReasonMcoinExchangeHcoin(71), + /** + * ActionReasonDailyTaskExchangeLegendaryKey = 72; + */ + ActionReasonDailyTaskExchangeLegendaryKey(72), + /** + * ActionReasonUnlockPersonLine = 73; + */ + ActionReasonUnlockPersonLine(73), + /** + * ActionReasonFetterLevelReward = 74; + */ + ActionReasonFetterLevelReward(74), + /** + * ActionReasonBuyResin = 75; + */ + ActionReasonBuyResin(75), + /** + * ActionReasonRechargePackage = 76; + */ + ActionReasonRechargePackage(76), + /** + * ActionReasonDeliveryDailyReward = 77; + */ + ActionReasonDeliveryDailyReward(77), + /** + * ActionReasonCityReputationLevel = 78; + */ + ActionReasonCityReputationLevel(78), + /** + * ActionReasonCityReputationQuest = 79; + */ + ActionReasonCityReputationQuest(79), + /** + * ActionReasonCityReputationRequest = 80; + */ + ActionReasonCityReputationRequest(80), + /** + * ActionReasonCityReputationExplore = 81; + */ + ActionReasonCityReputationExplore(81), + /** + * ActionReasonOffergingLevel = 82; + */ + ActionReasonOffergingLevel(82), + /** + * ActionReasonRoutineHost = 83; + */ + ActionReasonRoutineHost(83), + /** + * ActionReasonRoutineGuest = 84; + */ + ActionReasonRoutineGuest(84), + /** + * ActionReasonTreasureMapSpotToken = 89; + */ + ActionReasonTreasureMapSpotToken(89), + /** + * ActionReasonTreasureMapBonusLevelReward = 90; + */ + ActionReasonTreasureMapBonusLevelReward(90), + /** + * ActionReasonTreasureMapMpReward = 91; + */ + ActionReasonTreasureMapMpReward(91), + /** + * ActionReasonConvert = 92; + */ + ActionReasonConvert(92), + /** + * ActionReasonOverflowTransform = 93; + */ + ActionReasonOverflowTransform(93), + /** + * ActionReasonActivityAvatarSelectionReward = 96; + */ + ActionReasonActivityAvatarSelectionReward(96), + /** + * ActionReasonActivityWatcherBatch = 97; + */ + ActionReasonActivityWatcherBatch(97), + /** + * ActionReasonHitTreeDrop = 98; + */ + ActionReasonHitTreeDrop(98), + /** + * ActionReasonGetHomeLevelupReward = 99; + */ + ActionReasonGetHomeLevelupReward(99), + /** + * ActionReasonHomeDefaultFurniture = 100; + */ + ActionReasonHomeDefaultFurniture(100), + /** + * ActionReasonActivityCond = 101; + */ + ActionReasonActivityCond(101), + /** + * ActionReasonBattlePassNotify = 102; + */ + ActionReasonBattlePassNotify(102), + /** + * ActionReasonPlayerUseItem = 1001; + */ + ActionReasonPlayerUseItem(1001), + /** + * ActionReasonDropItem = 1002; + */ + ActionReasonDropItem(1002), + /** + * ActionReasonWeaponUpgrade = 1011; + */ + ActionReasonWeaponUpgrade(1011), + /** + * ActionReasonWeaponPromote = 1012; + */ + ActionReasonWeaponPromote(1012), + /** + * ActionReasonWeaponAwaken = 1013; + */ + ActionReasonWeaponAwaken(1013), + /** + * ActionReasonRelicUpgrade = 1014; + */ + ActionReasonRelicUpgrade(1014), + /** + * ActionReasonAbility = 1015; + */ + ActionReasonAbility(1015), + /** + * ActionReasonDungeonStatueDrop = 1016; + */ + ActionReasonDungeonStatueDrop(1016), + /** + * ActionReasonOfflineMsg = 1017; + */ + ActionReasonOfflineMsg(1017), + /** + * ActionReasonAvatarUpgrade = 1018; + */ + ActionReasonAvatarUpgrade(1018), + /** + * ActionReasonAvatarPromote = 1019; + */ + ActionReasonAvatarPromote(1019), + /** + * ActionReasonQuestAction = 1021; + */ + ActionReasonQuestAction(1021), + /** + * ActionReasonCityLevelup = 1022; + */ + ActionReasonCityLevelup(1022), + /** + * ActionReasonUpgradeSkill = 1024; + */ + ActionReasonUpgradeSkill(1024), + /** + * ActionReasonUnlockTalent = 1025; + */ + ActionReasonUnlockTalent(1025), + /** + * ActionReasonUpgradeProudSkill = 1026; + */ + ActionReasonUpgradeProudSkill(1026), + /** + * ActionReasonPlayerLevelLimitUp = 1027; + */ + ActionReasonPlayerLevelLimitUp(1027), + /** + * ActionReasonDungeonDaily = 1028; + */ + ActionReasonDungeonDaily(1028), + /** + * ActionReasonItemGiving = 1030; + */ + ActionReasonItemGiving(1030), + /** + * ActionReasonForgeCost = 1031; + */ + ActionReasonForgeCost(1031), + /** + * ActionReasonInvestigationReward = 1032; + */ + ActionReasonInvestigationReward(1032), + /** + * ActionReasonInvestigationTargetReward = 1033; + */ + ActionReasonInvestigationTargetReward(1033), + /** + * ActionReasonGadgetInteract = 1034; + */ + ActionReasonGadgetInteract(1034), + /** + * ActionReasonSeaLampCiMaterial = 1036; + */ + ActionReasonSeaLampCiMaterial(1036), + /** + * ActionReasonSeaLampContributionReward = 1037; + */ + ActionReasonSeaLampContributionReward(1037), + /** + * ActionReasonSeaLampPhaseReward = 1038; + */ + ActionReasonSeaLampPhaseReward(1038), + /** + * ActionReasonSeaLampFlyLamp = 1039; + */ + ActionReasonSeaLampFlyLamp(1039), + /** + * ActionReasonAutoRecover = 1040; + */ + ActionReasonAutoRecover(1040), + /** + * ActionReasonActivityExpireItem = 1041; + */ + ActionReasonActivityExpireItem(1041), + /** + * ActionReasonSubCoinNegative = 1042; + */ + ActionReasonSubCoinNegative(1042), + /** + * ActionReasonBargainDeduct = 1043; + */ + ActionReasonBargainDeduct(1043), + /** + * ActionReasonBattlePassPaidReward = 1044; + */ + ActionReasonBattlePassPaidReward(1044), + /** + * ActionReasonBattlePassLevelReward = 1045; + */ + ActionReasonBattlePassLevelReward(1045), + /** + * ActionReasonTrialAvatarActivityFirstPassReward = 1046; + */ + ActionReasonTrialAvatarActivityFirstPassReward(1046), + /** + * ActionReasonBuyBattlePassLevel = 1047; + */ + ActionReasonBuyBattlePassLevel(1047), + /** + * ActionReasonGrantBirthdayBenefit = 1048; + */ + ActionReasonGrantBirthdayBenefit(1048), + /** + * ActionReasonAchievementReward = 1049; + */ + ActionReasonAchievementReward(1049), + /** + * ActionReasonAchievementGoalReward = 1050; + */ + ActionReasonAchievementGoalReward(1050), + /** + * ActionReasonFirstShareToSocialNetwork = 1051; + */ + ActionReasonFirstShareToSocialNetwork(1051), + /** + * ActionReasonDestroyMaterial = 1052; + */ + ActionReasonDestroyMaterial(1052), + /** + * ActionReasonCodexLevelupReward = 1053; + */ + ActionReasonCodexLevelupReward(1053), + /** + * ActionReasonHuntingOfferReward = 1054; + */ + ActionReasonHuntingOfferReward(1054), + /** + * ActionReasonUseWidgetAnchorPoint = 1055; + */ + ActionReasonUseWidgetAnchorPoint(1055), + /** + * ActionReasonUseWidgetBonfire = 1056; + */ + ActionReasonUseWidgetBonfire(1056), + /** + * ActionReasonUngradeWeaponReturnMaterial = 1057; + */ + ActionReasonUngradeWeaponReturnMaterial(1057), + /** + * ActionReasonUseWidgetOneoffGatherPointDetector = 1058; + */ + ActionReasonUseWidgetOneoffGatherPointDetector(1058), + /** + * ActionReasonUseWidgetClientCollector = 1059; + */ + ActionReasonUseWidgetClientCollector(1059), + /** + * ActionReasonUseWidgetClientDetector = 1060; + */ + ActionReasonUseWidgetClientDetector(1060), + /** + * ActionReasonTakeGeneralReward = 1061; + */ + ActionReasonTakeGeneralReward(1061), + /** + * ActionReasonAsterTakeSpecialReward = 1062; + */ + ActionReasonAsterTakeSpecialReward(1062), + /** + * ActionReasonRemoveCodexBook = 1063; + */ + ActionReasonRemoveCodexBook(1063), + /** + * ActionReasonOfferingItem = 1064; + */ + ActionReasonOfferingItem(1064), + /** + * ActionReasonUseWidgetGadgetBuilder = 1065; + */ + ActionReasonUseWidgetGadgetBuilder(1065), + /** + * ActionReasonEffigyFirstPassReward = 1066; + */ + ActionReasonEffigyFirstPassReward(1066), + /** + * ActionReasonEffigyReward = 1067; + */ + ActionReasonEffigyReward(1067), + /** + * ActionReasonReunionFirstGiftReward = 1068; + */ + ActionReasonReunionFirstGiftReward(1068), + /** + * ActionReasonReunionSignInReward = 1069; + */ + ActionReasonReunionSignInReward(1069), + /** + * ActionReasonReunionWatcherReward = 1070; + */ + ActionReasonReunionWatcherReward(1070), + /** + * ActionReasonSalesmanMpReward = 1071; + */ + ActionReasonSalesmanMpReward(1071), + /** + * ActionReasionAvatarPromoteReward = 1072; + */ + ActionReasionAvatarPromoteReward(1072), + /** + * ActionReasonBlessingRedeemReward = 1073; + */ + ActionReasonBlessingRedeemReward(1073), + /** + * ActionMiracleRingReward = 1074; + */ + ActionMiracleRingReward(1074), + /** + * ActionReasonExpeditionReward = 1075; + */ + ActionReasonExpeditionReward(1075), + /** + * ActionReasonTreasureMapRemoveDetector = 1076; + */ + ActionReasonTreasureMapRemoveDetector(1076), + /** + * ActionReasonMechanicusDungeonTicket = 1077; + */ + ActionReasonMechanicusDungeonTicket(1077), + /** + * ActionReasonMechanicusLevelupGear = 1078; + */ + ActionReasonMechanicusLevelupGear(1078), + /** + * ActionReasonMechanicusBattleSettle = 1079; + */ + ActionReasonMechanicusBattleSettle(1079), + /** + * ActionReasonRegionSearchReward = 1080; + */ + ActionReasonRegionSearchReward(1080), + /** + * ActionReasonUnlockCoopChapter = 1081; + */ + ActionReasonUnlockCoopChapter(1081), + /** + * ActionReasonTakeCoopReward = 1082; + */ + ActionReasonTakeCoopReward(1082), + /** + * ActionReasonFleurFairDungeonReward = 1083; + */ + ActionReasonFleurFairDungeonReward(1083), + /** + * ActionReasonActivityScore = 1084; + */ + ActionReasonActivityScore(1084), + /** + * ActionReasonChannellerSlabOneoffDungeonReward = 1085; + */ + ActionReasonChannellerSlabOneoffDungeonReward(1085), + /** + * ActionReasonFurnitureMakeStart = 1086; + */ + ActionReasonFurnitureMakeStart(1086), + /** + * ActionReasonFurnitureMakeTake = 1087; + */ + ActionReasonFurnitureMakeTake(1087), + /** + * ActionReasonFurnitureMakeCancel = 1088; + */ + ActionReasonFurnitureMakeCancel(1088), + /** + * ActionReasonFurnitureMakeFastFinish = 1089; + */ + ActionReasonFurnitureMakeFastFinish(1089), + /** + * ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090; + */ + ActionReasonChannellerSlabLoopDungeonFirstPassReward(1090), + /** + * ActionReasonChannellerSlabLoopDungeonScoreReward = 1091; + */ + ActionReasonChannellerSlabLoopDungeonScoreReward(1091), + /** + * ActionReasonHomeLimitedShopBuy = 1092; + */ + ActionReasonHomeLimitedShopBuy(1092), + /** + * ActionReasonHomeCoinCollect = 1093; + */ + ActionReasonHomeCoinCollect(1093), + UNRECOGNIZED(-1), + ; + + /** + * ActionReasonNone = 0; + */ + public static final int ActionReasonNone_VALUE = 0; + /** + * ActionReasonQuestItem = 1; + */ + public static final int ActionReasonQuestItem_VALUE = 1; + /** + * ActionReasonQuestReward = 2; + */ + public static final int ActionReasonQuestReward_VALUE = 2; + /** + * ActionReasonTrifle = 3; + */ + public static final int ActionReasonTrifle_VALUE = 3; + /** + * ActionReasonShop = 4; + */ + public static final int ActionReasonShop_VALUE = 4; + /** + * ActionReasonPlayerUpgradeReward = 5; + */ + public static final int ActionReasonPlayerUpgradeReward_VALUE = 5; + /** + * ActionReasonAddAvatar = 6; + */ + public static final int ActionReasonAddAvatar_VALUE = 6; + /** + * ActionReasonGadgetEnvAnimal = 7; + */ + public static final int ActionReasonGadgetEnvAnimal_VALUE = 7; + /** + * ActionReasonMonsterEnvAnimal = 8; + */ + public static final int ActionReasonMonsterEnvAnimal_VALUE = 8; + /** + * ActionReasonCompound = 9; + */ + public static final int ActionReasonCompound_VALUE = 9; + /** + * ActionReasonCook = 10; + */ + public static final int ActionReasonCook_VALUE = 10; + /** + * ActionReasonGather = 11; + */ + public static final int ActionReasonGather_VALUE = 11; + /** + * ActionReasonMailAttachment = 12; + */ + public static final int ActionReasonMailAttachment_VALUE = 12; + /** + * ActionReasonCityLevelupReturn = 15; + */ + public static final int ActionReasonCityLevelupReturn_VALUE = 15; + /** + * ActionReasonCityLevelupReward = 17; + */ + public static final int ActionReasonCityLevelupReward_VALUE = 17; + /** + * ActionReasonAreaExploreReward = 18; + */ + public static final int ActionReasonAreaExploreReward_VALUE = 18; + /** + * ActionReasonUnlockPointReward = 19; + */ + public static final int ActionReasonUnlockPointReward_VALUE = 19; + /** + * ActionReasonDungeonFirstPass = 20; + */ + public static final int ActionReasonDungeonFirstPass_VALUE = 20; + /** + * ActionReasonDungeonPass = 21; + */ + public static final int ActionReasonDungeonPass_VALUE = 21; + /** + * ActionReasonChangeElemType = 23; + */ + public static final int ActionReasonChangeElemType_VALUE = 23; + /** + * ActionReasonFetterOpen = 25; + */ + public static final int ActionReasonFetterOpen_VALUE = 25; + /** + * ActionReasonDailyTaskScore = 26; + */ + public static final int ActionReasonDailyTaskScore_VALUE = 26; + /** + * ActionReasonDailyTaskHost = 27; + */ + public static final int ActionReasonDailyTaskHost_VALUE = 27; + /** + * ActionReasonRandTaskHost = 28; + */ + public static final int ActionReasonRandTaskHost_VALUE = 28; + /** + * ActionReasonExpedition = 29; + */ + public static final int ActionReasonExpedition_VALUE = 29; + /** + * ActionReasonGacha = 30; + */ + public static final int ActionReasonGacha_VALUE = 30; + /** + * ActionReasonCombine = 31; + */ + public static final int ActionReasonCombine_VALUE = 31; + /** + * ActionReasonRandTaskGuest = 32; + */ + public static final int ActionReasonRandTaskGuest_VALUE = 32; + /** + * ActionReasonDailyTaskGuest = 33; + */ + public static final int ActionReasonDailyTaskGuest_VALUE = 33; + /** + * ActionReasonForgeOutput = 34; + */ + public static final int ActionReasonForgeOutput_VALUE = 34; + /** + * ActionReasonForgeReturn = 35; + */ + public static final int ActionReasonForgeReturn_VALUE = 35; + /** + * ActionReasonInitAvatar = 36; + */ + public static final int ActionReasonInitAvatar_VALUE = 36; + /** + * ActionReasonMonsterDie = 37; + */ + public static final int ActionReasonMonsterDie_VALUE = 37; + /** + * ActionReasonGm = 38; + */ + public static final int ActionReasonGm_VALUE = 38; + /** + * ActionReasonOpenChest = 39; + */ + public static final int ActionReasonOpenChest_VALUE = 39; + /** + * ActionReasonGadgetDie = 40; + */ + public static final int ActionReasonGadgetDie_VALUE = 40; + /** + * ActionReasonMonsterChangeHp = 41; + */ + public static final int ActionReasonMonsterChangeHp_VALUE = 41; + /** + * ActionReasonSubfieldDrop = 42; + */ + public static final int ActionReasonSubfieldDrop_VALUE = 42; + /** + * ActionReasonPushTipsReward = 43; + */ + public static final int ActionReasonPushTipsReward_VALUE = 43; + /** + * ActionReasonActivityMonsterDrop = 44; + */ + public static final int ActionReasonActivityMonsterDrop_VALUE = 44; + /** + * ActionReasonActivityGather = 45; + */ + public static final int ActionReasonActivityGather_VALUE = 45; + /** + * ActionReasonActivitySubfieldDrop = 46; + */ + public static final int ActionReasonActivitySubfieldDrop_VALUE = 46; + /** + * ActionReasonTowerScheduleReward = 47; + */ + public static final int ActionReasonTowerScheduleReward_VALUE = 47; + /** + * ActionReasonTowerFloorStarReward = 48; + */ + public static final int ActionReasonTowerFloorStarReward_VALUE = 48; + /** + * ActionReasonTowerFirstPassReward = 49; + */ + public static final int ActionReasonTowerFirstPassReward_VALUE = 49; + /** + * ActionReasonTowerDailyReward = 50; + */ + public static final int ActionReasonTowerDailyReward_VALUE = 50; + /** + * ActionReasonHitClientTrivialEntity = 51; + */ + public static final int ActionReasonHitClientTrivialEntity_VALUE = 51; + /** + * ActionReasonOpenWorldBossChest = 52; + */ + public static final int ActionReasonOpenWorldBossChest_VALUE = 52; + /** + * ActionReasonMaterialDeleteReturn = 53; + */ + public static final int ActionReasonMaterialDeleteReturn_VALUE = 53; + /** + * ActionReasonSignInReward = 54; + */ + public static final int ActionReasonSignInReward_VALUE = 54; + /** + * ActionReasonOpenBlossomChest = 55; + */ + public static final int ActionReasonOpenBlossomChest_VALUE = 55; + /** + * ActionReasonRecharge = 56; + */ + public static final int ActionReasonRecharge_VALUE = 56; + /** + * ActionReasonBonusActivityReward = 57; + */ + public static final int ActionReasonBonusActivityReward_VALUE = 57; + /** + * ActionReasonTowerCommemorativeReward = 58; + */ + public static final int ActionReasonTowerCommemorativeReward_VALUE = 58; + /** + * ActionReasonTowerSkipFloorReward = 59; + */ + public static final int ActionReasonTowerSkipFloorReward_VALUE = 59; + /** + * ActionReasonRechargeBonus = 60; + */ + public static final int ActionReasonRechargeBonus_VALUE = 60; + /** + * ActionReasonRechargeCard = 61; + */ + public static final int ActionReasonRechargeCard_VALUE = 61; + /** + * ActionReasonRechargeCardDaily = 62; + */ + public static final int ActionReasonRechargeCardDaily_VALUE = 62; + /** + * ActionReasonRechargeCardReplace = 63; + */ + public static final int ActionReasonRechargeCardReplace_VALUE = 63; + /** + * ActionReasonRechargeCardReplaceFree = 64; + */ + public static final int ActionReasonRechargeCardReplaceFree_VALUE = 64; + /** + * ActionReasonRechargePlayReplace = 65; + */ + public static final int ActionReasonRechargePlayReplace_VALUE = 65; + /** + * ActionReasonMpPlayTakeReward = 66; + */ + public static final int ActionReasonMpPlayTakeReward_VALUE = 66; + /** + * ActionReasonActivityWatcher = 67; + */ + public static final int ActionReasonActivityWatcher_VALUE = 67; + /** + * ActionReasonSalesmanDeliverItem = 68; + */ + public static final int ActionReasonSalesmanDeliverItem_VALUE = 68; + /** + * ActionReasonSalesmanReward = 69; + */ + public static final int ActionReasonSalesmanReward_VALUE = 69; + /** + * ActionReasonRebate = 70; + */ + public static final int ActionReasonRebate_VALUE = 70; + /** + * ActionReasonMcoinExchangeHcoin = 71; + */ + public static final int ActionReasonMcoinExchangeHcoin_VALUE = 71; + /** + * ActionReasonDailyTaskExchangeLegendaryKey = 72; + */ + public static final int ActionReasonDailyTaskExchangeLegendaryKey_VALUE = 72; + /** + * ActionReasonUnlockPersonLine = 73; + */ + public static final int ActionReasonUnlockPersonLine_VALUE = 73; + /** + * ActionReasonFetterLevelReward = 74; + */ + public static final int ActionReasonFetterLevelReward_VALUE = 74; + /** + * ActionReasonBuyResin = 75; + */ + public static final int ActionReasonBuyResin_VALUE = 75; + /** + * ActionReasonRechargePackage = 76; + */ + public static final int ActionReasonRechargePackage_VALUE = 76; + /** + * ActionReasonDeliveryDailyReward = 77; + */ + public static final int ActionReasonDeliveryDailyReward_VALUE = 77; + /** + * ActionReasonCityReputationLevel = 78; + */ + public static final int ActionReasonCityReputationLevel_VALUE = 78; + /** + * ActionReasonCityReputationQuest = 79; + */ + public static final int ActionReasonCityReputationQuest_VALUE = 79; + /** + * ActionReasonCityReputationRequest = 80; + */ + public static final int ActionReasonCityReputationRequest_VALUE = 80; + /** + * ActionReasonCityReputationExplore = 81; + */ + public static final int ActionReasonCityReputationExplore_VALUE = 81; + /** + * ActionReasonOffergingLevel = 82; + */ + public static final int ActionReasonOffergingLevel_VALUE = 82; + /** + * ActionReasonRoutineHost = 83; + */ + public static final int ActionReasonRoutineHost_VALUE = 83; + /** + * ActionReasonRoutineGuest = 84; + */ + public static final int ActionReasonRoutineGuest_VALUE = 84; + /** + * ActionReasonTreasureMapSpotToken = 89; + */ + public static final int ActionReasonTreasureMapSpotToken_VALUE = 89; + /** + * ActionReasonTreasureMapBonusLevelReward = 90; + */ + public static final int ActionReasonTreasureMapBonusLevelReward_VALUE = 90; + /** + * ActionReasonTreasureMapMpReward = 91; + */ + public static final int ActionReasonTreasureMapMpReward_VALUE = 91; + /** + * ActionReasonConvert = 92; + */ + public static final int ActionReasonConvert_VALUE = 92; + /** + * ActionReasonOverflowTransform = 93; + */ + public static final int ActionReasonOverflowTransform_VALUE = 93; + /** + * ActionReasonActivityAvatarSelectionReward = 96; + */ + public static final int ActionReasonActivityAvatarSelectionReward_VALUE = 96; + /** + * ActionReasonActivityWatcherBatch = 97; + */ + public static final int ActionReasonActivityWatcherBatch_VALUE = 97; + /** + * ActionReasonHitTreeDrop = 98; + */ + public static final int ActionReasonHitTreeDrop_VALUE = 98; + /** + * ActionReasonGetHomeLevelupReward = 99; + */ + public static final int ActionReasonGetHomeLevelupReward_VALUE = 99; + /** + * ActionReasonHomeDefaultFurniture = 100; + */ + public static final int ActionReasonHomeDefaultFurniture_VALUE = 100; + /** + * ActionReasonActivityCond = 101; + */ + public static final int ActionReasonActivityCond_VALUE = 101; + /** + * ActionReasonBattlePassNotify = 102; + */ + public static final int ActionReasonBattlePassNotify_VALUE = 102; + /** + * ActionReasonPlayerUseItem = 1001; + */ + public static final int ActionReasonPlayerUseItem_VALUE = 1001; + /** + * ActionReasonDropItem = 1002; + */ + public static final int ActionReasonDropItem_VALUE = 1002; + /** + * ActionReasonWeaponUpgrade = 1011; + */ + public static final int ActionReasonWeaponUpgrade_VALUE = 1011; + /** + * ActionReasonWeaponPromote = 1012; + */ + public static final int ActionReasonWeaponPromote_VALUE = 1012; + /** + * ActionReasonWeaponAwaken = 1013; + */ + public static final int ActionReasonWeaponAwaken_VALUE = 1013; + /** + * ActionReasonRelicUpgrade = 1014; + */ + public static final int ActionReasonRelicUpgrade_VALUE = 1014; + /** + * ActionReasonAbility = 1015; + */ + public static final int ActionReasonAbility_VALUE = 1015; + /** + * ActionReasonDungeonStatueDrop = 1016; + */ + public static final int ActionReasonDungeonStatueDrop_VALUE = 1016; + /** + * ActionReasonOfflineMsg = 1017; + */ + public static final int ActionReasonOfflineMsg_VALUE = 1017; + /** + * ActionReasonAvatarUpgrade = 1018; + */ + public static final int ActionReasonAvatarUpgrade_VALUE = 1018; + /** + * ActionReasonAvatarPromote = 1019; + */ + public static final int ActionReasonAvatarPromote_VALUE = 1019; + /** + * ActionReasonQuestAction = 1021; + */ + public static final int ActionReasonQuestAction_VALUE = 1021; + /** + * ActionReasonCityLevelup = 1022; + */ + public static final int ActionReasonCityLevelup_VALUE = 1022; + /** + * ActionReasonUpgradeSkill = 1024; + */ + public static final int ActionReasonUpgradeSkill_VALUE = 1024; + /** + * ActionReasonUnlockTalent = 1025; + */ + public static final int ActionReasonUnlockTalent_VALUE = 1025; + /** + * ActionReasonUpgradeProudSkill = 1026; + */ + public static final int ActionReasonUpgradeProudSkill_VALUE = 1026; + /** + * ActionReasonPlayerLevelLimitUp = 1027; + */ + public static final int ActionReasonPlayerLevelLimitUp_VALUE = 1027; + /** + * ActionReasonDungeonDaily = 1028; + */ + public static final int ActionReasonDungeonDaily_VALUE = 1028; + /** + * ActionReasonItemGiving = 1030; + */ + public static final int ActionReasonItemGiving_VALUE = 1030; + /** + * ActionReasonForgeCost = 1031; + */ + public static final int ActionReasonForgeCost_VALUE = 1031; + /** + * ActionReasonInvestigationReward = 1032; + */ + public static final int ActionReasonInvestigationReward_VALUE = 1032; + /** + * ActionReasonInvestigationTargetReward = 1033; + */ + public static final int ActionReasonInvestigationTargetReward_VALUE = 1033; + /** + * ActionReasonGadgetInteract = 1034; + */ + public static final int ActionReasonGadgetInteract_VALUE = 1034; + /** + * ActionReasonSeaLampCiMaterial = 1036; + */ + public static final int ActionReasonSeaLampCiMaterial_VALUE = 1036; + /** + * ActionReasonSeaLampContributionReward = 1037; + */ + public static final int ActionReasonSeaLampContributionReward_VALUE = 1037; + /** + * ActionReasonSeaLampPhaseReward = 1038; + */ + public static final int ActionReasonSeaLampPhaseReward_VALUE = 1038; + /** + * ActionReasonSeaLampFlyLamp = 1039; + */ + public static final int ActionReasonSeaLampFlyLamp_VALUE = 1039; + /** + * ActionReasonAutoRecover = 1040; + */ + public static final int ActionReasonAutoRecover_VALUE = 1040; + /** + * ActionReasonActivityExpireItem = 1041; + */ + public static final int ActionReasonActivityExpireItem_VALUE = 1041; + /** + * ActionReasonSubCoinNegative = 1042; + */ + public static final int ActionReasonSubCoinNegative_VALUE = 1042; + /** + * ActionReasonBargainDeduct = 1043; + */ + public static final int ActionReasonBargainDeduct_VALUE = 1043; + /** + * ActionReasonBattlePassPaidReward = 1044; + */ + public static final int ActionReasonBattlePassPaidReward_VALUE = 1044; + /** + * ActionReasonBattlePassLevelReward = 1045; + */ + public static final int ActionReasonBattlePassLevelReward_VALUE = 1045; + /** + * ActionReasonTrialAvatarActivityFirstPassReward = 1046; + */ + public static final int ActionReasonTrialAvatarActivityFirstPassReward_VALUE = 1046; + /** + * ActionReasonBuyBattlePassLevel = 1047; + */ + public static final int ActionReasonBuyBattlePassLevel_VALUE = 1047; + /** + * ActionReasonGrantBirthdayBenefit = 1048; + */ + public static final int ActionReasonGrantBirthdayBenefit_VALUE = 1048; + /** + * ActionReasonAchievementReward = 1049; + */ + public static final int ActionReasonAchievementReward_VALUE = 1049; + /** + * ActionReasonAchievementGoalReward = 1050; + */ + public static final int ActionReasonAchievementGoalReward_VALUE = 1050; + /** + * ActionReasonFirstShareToSocialNetwork = 1051; + */ + public static final int ActionReasonFirstShareToSocialNetwork_VALUE = 1051; + /** + * ActionReasonDestroyMaterial = 1052; + */ + public static final int ActionReasonDestroyMaterial_VALUE = 1052; + /** + * ActionReasonCodexLevelupReward = 1053; + */ + public static final int ActionReasonCodexLevelupReward_VALUE = 1053; + /** + * ActionReasonHuntingOfferReward = 1054; + */ + public static final int ActionReasonHuntingOfferReward_VALUE = 1054; + /** + * ActionReasonUseWidgetAnchorPoint = 1055; + */ + public static final int ActionReasonUseWidgetAnchorPoint_VALUE = 1055; + /** + * ActionReasonUseWidgetBonfire = 1056; + */ + public static final int ActionReasonUseWidgetBonfire_VALUE = 1056; + /** + * ActionReasonUngradeWeaponReturnMaterial = 1057; + */ + public static final int ActionReasonUngradeWeaponReturnMaterial_VALUE = 1057; + /** + * ActionReasonUseWidgetOneoffGatherPointDetector = 1058; + */ + public static final int ActionReasonUseWidgetOneoffGatherPointDetector_VALUE = 1058; + /** + * ActionReasonUseWidgetClientCollector = 1059; + */ + public static final int ActionReasonUseWidgetClientCollector_VALUE = 1059; + /** + * ActionReasonUseWidgetClientDetector = 1060; + */ + public static final int ActionReasonUseWidgetClientDetector_VALUE = 1060; + /** + * ActionReasonTakeGeneralReward = 1061; + */ + public static final int ActionReasonTakeGeneralReward_VALUE = 1061; + /** + * ActionReasonAsterTakeSpecialReward = 1062; + */ + public static final int ActionReasonAsterTakeSpecialReward_VALUE = 1062; + /** + * ActionReasonRemoveCodexBook = 1063; + */ + public static final int ActionReasonRemoveCodexBook_VALUE = 1063; + /** + * ActionReasonOfferingItem = 1064; + */ + public static final int ActionReasonOfferingItem_VALUE = 1064; + /** + * ActionReasonUseWidgetGadgetBuilder = 1065; + */ + public static final int ActionReasonUseWidgetGadgetBuilder_VALUE = 1065; + /** + * ActionReasonEffigyFirstPassReward = 1066; + */ + public static final int ActionReasonEffigyFirstPassReward_VALUE = 1066; + /** + * ActionReasonEffigyReward = 1067; + */ + public static final int ActionReasonEffigyReward_VALUE = 1067; + /** + * ActionReasonReunionFirstGiftReward = 1068; + */ + public static final int ActionReasonReunionFirstGiftReward_VALUE = 1068; + /** + * ActionReasonReunionSignInReward = 1069; + */ + public static final int ActionReasonReunionSignInReward_VALUE = 1069; + /** + * ActionReasonReunionWatcherReward = 1070; + */ + public static final int ActionReasonReunionWatcherReward_VALUE = 1070; + /** + * ActionReasonSalesmanMpReward = 1071; + */ + public static final int ActionReasonSalesmanMpReward_VALUE = 1071; + /** + * ActionReasionAvatarPromoteReward = 1072; + */ + public static final int ActionReasionAvatarPromoteReward_VALUE = 1072; + /** + * ActionReasonBlessingRedeemReward = 1073; + */ + public static final int ActionReasonBlessingRedeemReward_VALUE = 1073; + /** + * ActionMiracleRingReward = 1074; + */ + public static final int ActionMiracleRingReward_VALUE = 1074; + /** + * ActionReasonExpeditionReward = 1075; + */ + public static final int ActionReasonExpeditionReward_VALUE = 1075; + /** + * ActionReasonTreasureMapRemoveDetector = 1076; + */ + public static final int ActionReasonTreasureMapRemoveDetector_VALUE = 1076; + /** + * ActionReasonMechanicusDungeonTicket = 1077; + */ + public static final int ActionReasonMechanicusDungeonTicket_VALUE = 1077; + /** + * ActionReasonMechanicusLevelupGear = 1078; + */ + public static final int ActionReasonMechanicusLevelupGear_VALUE = 1078; + /** + * ActionReasonMechanicusBattleSettle = 1079; + */ + public static final int ActionReasonMechanicusBattleSettle_VALUE = 1079; + /** + * ActionReasonRegionSearchReward = 1080; + */ + public static final int ActionReasonRegionSearchReward_VALUE = 1080; + /** + * ActionReasonUnlockCoopChapter = 1081; + */ + public static final int ActionReasonUnlockCoopChapter_VALUE = 1081; + /** + * ActionReasonTakeCoopReward = 1082; + */ + public static final int ActionReasonTakeCoopReward_VALUE = 1082; + /** + * ActionReasonFleurFairDungeonReward = 1083; + */ + public static final int ActionReasonFleurFairDungeonReward_VALUE = 1083; + /** + * ActionReasonActivityScore = 1084; + */ + public static final int ActionReasonActivityScore_VALUE = 1084; + /** + * ActionReasonChannellerSlabOneoffDungeonReward = 1085; + */ + public static final int ActionReasonChannellerSlabOneoffDungeonReward_VALUE = 1085; + /** + * ActionReasonFurnitureMakeStart = 1086; + */ + public static final int ActionReasonFurnitureMakeStart_VALUE = 1086; + /** + * ActionReasonFurnitureMakeTake = 1087; + */ + public static final int ActionReasonFurnitureMakeTake_VALUE = 1087; + /** + * ActionReasonFurnitureMakeCancel = 1088; + */ + public static final int ActionReasonFurnitureMakeCancel_VALUE = 1088; + /** + * ActionReasonFurnitureMakeFastFinish = 1089; + */ + public static final int ActionReasonFurnitureMakeFastFinish_VALUE = 1089; + /** + * ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090; + */ + public static final int ActionReasonChannellerSlabLoopDungeonFirstPassReward_VALUE = 1090; + /** + * ActionReasonChannellerSlabLoopDungeonScoreReward = 1091; + */ + public static final int ActionReasonChannellerSlabLoopDungeonScoreReward_VALUE = 1091; + /** + * ActionReasonHomeLimitedShopBuy = 1092; + */ + public static final int ActionReasonHomeLimitedShopBuy_VALUE = 1092; + /** + * ActionReasonHomeCoinCollect = 1093; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ActionReasonType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..ee7a47300 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ActivityInfoOuterClass.java @@ -0,0 +1,7215 @@ +// 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 { + + /** + * uint32 activityId = 1; + * @return The activityId. + */ + int getActivityId(); + + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + int getScheduleId(); + + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + int getBeginTime(); + + /** + * uint32 endTime = 4; + * @return The endTime. + */ + int getEndTime(); + + /** + * uint32 activityType = 5; + * @return The activityType. + */ + int getActivityType(); + + /** + * bool isPlayOpenAnim = 6; + * @return The isPlayOpenAnim. + */ + boolean getIsPlayOpenAnim(); + + /** + * bool isFinished = 7; + * @return The isFinished. + */ + boolean getIsFinished(); + + /** + * bool isStarting = 8; + * @return The isStarting. + */ + boolean getIsStarting(); + + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + java.util.List + getWatcherInfoListList(); + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index); + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + int getWatcherInfoListCount(); + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + java.util.List + getWatcherInfoListOrBuilderList(); + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder getWatcherInfoListOrBuilder( + int index); + + /** + * repeated uint32 meetCondList = 10; + * @return A list containing the meetCondList. + */ + java.util.List getMeetCondListList(); + /** + * repeated uint32 meetCondList = 10; + * @return The count of meetCondList. + */ + int getMeetCondListCount(); + /** + * repeated uint32 meetCondList = 10; + * @param index The index of the element to return. + * @return The meetCondList at the given index. + */ + int getMeetCondList(int index); + + /** + * repeated uint32 expireCondList = 15; + * @return A list containing the expireCondList. + */ + java.util.List getExpireCondListList(); + /** + * repeated uint32 expireCondList = 15; + * @return The count of expireCondList. + */ + int getExpireCondListCount(); + /** + * repeated uint32 expireCondList = 15; + * @param index The index of the element to return. + * @return The expireCondList at the given index. + */ + int getExpireCondList(int index); + + /** + * uint32 selectedAvatarRewardId = 17; + * @return The selectedAvatarRewardId. + */ + int getSelectedAvatarRewardId(); + + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + int getActivityCoinMapCount(); + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + boolean containsActivityCoinMap( + int key); + /** + * Use {@link #getActivityCoinMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getActivityCoinMap(); + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + java.util.Map + getActivityCoinMapMap(); + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + int getActivityCoinMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + int getActivityCoinMapOrThrow( + int key); + + /** + * uint32 scoreLimit = 19; + * @return The scoreLimit. + */ + int getScoreLimit(); + + /** + * uint32 curScore = 20; + * @return The curScore. + */ + int getCurScore(); + + /** + * repeated uint32 takenRewardList = 24; + * @return A list containing the takenRewardList. + */ + java.util.List getTakenRewardListList(); + /** + * repeated uint32 takenRewardList = 24; + * @return The count of takenRewardList. + */ + int getTakenRewardListCount(); + /** + * repeated uint32 takenRewardList = 24; + * @param index The index of the element to return. + * @return The takenRewardList at the given index. + */ + int getTakenRewardList(int index); + + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @return Whether the samLampInfo field is set. + */ + boolean hasSamLampInfo(); + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @return The samLampInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSamLampInfo(); + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSamLampInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @return Whether the crucibleInfo field is set. + */ + boolean hasCrucibleInfo(); + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @return The crucibleInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getCrucibleInfo(); + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getCrucibleInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @return Whether the salesmanInfo field is set. + */ + boolean hasSalesmanInfo(); + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @return The salesmanInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSalesmanInfo(); + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSalesmanInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @return Whether the trialAvatarInfo field is set. + */ + boolean hasTrialAvatarInfo(); + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @return The trialAvatarInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTrialAvatarInfo(); + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTrialAvatarInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @return Whether the deliveryInfo field is set. + */ + boolean hasDeliveryInfo(); + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @return The deliveryInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDeliveryInfo(); + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDeliveryInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @return Whether the asterInfo field is set. + */ + boolean hasAsterInfo(); + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @return The asterInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getAsterInfo(); + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getAsterInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @return Whether the flightInfo field is set. + */ + boolean hasFlightInfo(); + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @return The flightInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFlightInfo(); + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFlightInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @return Whether the dragonSpineInfo field is set. + */ + boolean hasDragonSpineInfo(); + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @return The dragonSpineInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getDragonSpineInfo(); + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getDragonSpineInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @return Whether the effigyInfo field is set. + */ + boolean hasEffigyInfo(); + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @return The effigyInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getEffigyInfo(); + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getEffigyInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @return Whether the treasureMapInfo field is set. + */ + boolean hasTreasureMapInfo(); + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @return The treasureMapInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getTreasureMapInfo(); + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getTreasureMapInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @return Whether the blessingInfo field is set. + */ + boolean hasBlessingInfo(); + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @return The blessingInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getBlessingInfo(); + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getBlessingInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @return Whether the seaLampInfo field is set. + */ + boolean hasSeaLampInfo(); + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @return The seaLampInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getSeaLampInfo(); + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getSeaLampInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @return Whether the expeditionInfo field is set. + */ + boolean hasExpeditionInfo(); + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @return The expeditionInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getExpeditionInfo(); + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getExpeditionInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @return Whether the arenaChallengeInfo field is set. + */ + boolean hasArenaChallengeInfo(); + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @return The arenaChallengeInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getArenaChallengeInfo(); + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getArenaChallengeInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @return Whether the fleurFairInfo field is set. + */ + boolean hasFleurFairInfo(); + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @return The fleurFairInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFleurFairInfo(); + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getFleurFairInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @return Whether the waterSpiritInfo field is set. + */ + boolean hasWaterSpiritInfo(); + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @return The waterSpiritInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getWaterSpiritInfo(); + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getWaterSpiritInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @return Whether the challnelerSlabInfo field is set. + */ + boolean hasChallnelerSlabInfo(); + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @return The challnelerSlabInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getChallnelerSlabInfo(); + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getChallnelerSlabInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @return Whether the mistTrialActivityInfo field is set. + */ + boolean hasMistTrialActivityInfo(); + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @return The mistTrialActivityInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getMistTrialActivityInfo(); + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getMistTrialActivityInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @return Whether the hideAndSeekInfo field is set. + */ + boolean hasHideAndSeekInfo(); + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @return The hideAndSeekInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getHideAndSeekInfo(); + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfoOrBuilder getHideAndSeekInfoOrBuilder(); + + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @return Whether the findHilichurlInfo field is set. + */ + boolean hasFindHilichurlInfo(); + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @return The findHilichurlInfo. + */ + emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo getFindHilichurlInfo(); + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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(); + 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 + 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_; + /** + * uint32 activityId = 1; + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + + public static final int SCHEDULEID_FIELD_NUMBER = 2; + private int scheduleId_; + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + + public static final int BEGINTIME_FIELD_NUMBER = 3; + private int beginTime_; + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + + public static final int ENDTIME_FIELD_NUMBER = 4; + private int endTime_; + /** + * uint32 endTime = 4; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + + public static final int ACTIVITYTYPE_FIELD_NUMBER = 5; + private int activityType_; + /** + * uint32 activityType = 5; + * @return The activityType. + */ + @java.lang.Override + public int getActivityType() { + return activityType_; + } + + public static final int ISPLAYOPENANIM_FIELD_NUMBER = 6; + private boolean isPlayOpenAnim_; + /** + * bool isPlayOpenAnim = 6; + * @return The isPlayOpenAnim. + */ + @java.lang.Override + public boolean getIsPlayOpenAnim() { + return isPlayOpenAnim_; + } + + public static final int ISFINISHED_FIELD_NUMBER = 7; + private boolean isFinished_; + /** + * bool isFinished = 7; + * @return The isFinished. + */ + @java.lang.Override + public boolean getIsFinished() { + return isFinished_; + } + + public static final int ISSTARTING_FIELD_NUMBER = 8; + private boolean isStarting_; + /** + * bool isStarting = 8; + * @return The isStarting. + */ + @java.lang.Override + public boolean getIsStarting() { + return isStarting_; + } + + public static final int WATCHERINFOLIST_FIELD_NUMBER = 9; + private java.util.List watcherInfoList_; + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + @java.lang.Override + public java.util.List getWatcherInfoListList() { + return watcherInfoList_; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + @java.lang.Override + public java.util.List + getWatcherInfoListOrBuilderList() { + return watcherInfoList_; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + @java.lang.Override + public int getWatcherInfoListCount() { + return watcherInfoList_.size(); + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index) { + return watcherInfoList_.get(index); + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + @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_; + /** + * repeated uint32 meetCondList = 10; + * @return A list containing the meetCondList. + */ + @java.lang.Override + public java.util.List + getMeetCondListList() { + return meetCondList_; + } + /** + * repeated uint32 meetCondList = 10; + * @return The count of meetCondList. + */ + public int getMeetCondListCount() { + return meetCondList_.size(); + } + /** + * repeated uint32 meetCondList = 10; + * @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_; + /** + * repeated uint32 expireCondList = 15; + * @return A list containing the expireCondList. + */ + @java.lang.Override + public java.util.List + getExpireCondListList() { + return expireCondList_; + } + /** + * repeated uint32 expireCondList = 15; + * @return The count of expireCondList. + */ + public int getExpireCondListCount() { + return expireCondList_.size(); + } + /** + * repeated uint32 expireCondList = 15; + * @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_; + /** + * uint32 selectedAvatarRewardId = 17; + * @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 + .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 + internalGetActivityCoinMap() { + if (activityCoinMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActivityCoinMapDefaultEntryHolder.defaultEntry); + } + return activityCoinMap_; + } + + public int getActivityCoinMapCount() { + return internalGetActivityCoinMap().getMap().size(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + @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 getActivityCoinMap() { + return getActivityCoinMapMap(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public java.util.Map getActivityCoinMapMap() { + return internalGetActivityCoinMap().getMap(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public int getActivityCoinMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetActivityCoinMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public int getActivityCoinMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 scoreLimit = 19; + * @return The scoreLimit. + */ + @java.lang.Override + public int getScoreLimit() { + return scoreLimit_; + } + + public static final int CURSCORE_FIELD_NUMBER = 20; + private int curScore_; + /** + * uint32 curScore = 20; + * @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_; + /** + * repeated uint32 takenRewardList = 24; + * @return A list containing the takenRewardList. + */ + @java.lang.Override + public java.util.List + getTakenRewardListList() { + return takenRewardList_; + } + /** + * repeated uint32 takenRewardList = 24; + * @return The count of takenRewardList. + */ + public int getTakenRewardListCount() { + return takenRewardList_.size(); + } + /** + * repeated uint32 takenRewardList = 24; + * @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; + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @return Whether the samLampInfo field is set. + */ + @java.lang.Override + public boolean hasSamLampInfo() { + return detailCase_ == 11; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @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(); + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + @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; + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @return Whether the crucibleInfo field is set. + */ + @java.lang.Override + public boolean hasCrucibleInfo() { + return detailCase_ == 12; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @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(); + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + @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; + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @return Whether the salesmanInfo field is set. + */ + @java.lang.Override + public boolean hasSalesmanInfo() { + return detailCase_ == 13; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @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(); + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + @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; + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @return Whether the trialAvatarInfo field is set. + */ + @java.lang.Override + public boolean hasTrialAvatarInfo() { + return detailCase_ == 14; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @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(); + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + @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; + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @return Whether the deliveryInfo field is set. + */ + @java.lang.Override + public boolean hasDeliveryInfo() { + return detailCase_ == 16; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @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(); + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + @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; + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @return Whether the asterInfo field is set. + */ + @java.lang.Override + public boolean hasAsterInfo() { + return detailCase_ == 21; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @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(); + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + @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; + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @return Whether the flightInfo field is set. + */ + @java.lang.Override + public boolean hasFlightInfo() { + return detailCase_ == 25; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @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(); + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + @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; + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @return Whether the dragonSpineInfo field is set. + */ + @java.lang.Override + public boolean hasDragonSpineInfo() { + return detailCase_ == 31; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @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(); + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + @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; + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @return Whether the effigyInfo field is set. + */ + @java.lang.Override + public boolean hasEffigyInfo() { + return detailCase_ == 32; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @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(); + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + @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; + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @return Whether the treasureMapInfo field is set. + */ + @java.lang.Override + public boolean hasTreasureMapInfo() { + return detailCase_ == 35; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @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(); + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + @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; + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @return Whether the blessingInfo field is set. + */ + @java.lang.Override + public boolean hasBlessingInfo() { + return detailCase_ == 41; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @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(); + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + @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; + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @return Whether the seaLampInfo field is set. + */ + @java.lang.Override + public boolean hasSeaLampInfo() { + return detailCase_ == 42; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @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(); + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + @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; + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @return Whether the expeditionInfo field is set. + */ + @java.lang.Override + public boolean hasExpeditionInfo() { + return detailCase_ == 43; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @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(); + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + @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; + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @return Whether the arenaChallengeInfo field is set. + */ + @java.lang.Override + public boolean hasArenaChallengeInfo() { + return detailCase_ == 44; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @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(); + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + @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; + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @return Whether the fleurFairInfo field is set. + */ + @java.lang.Override + public boolean hasFleurFairInfo() { + return detailCase_ == 51; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @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(); + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + @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; + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @return Whether the waterSpiritInfo field is set. + */ + @java.lang.Override + public boolean hasWaterSpiritInfo() { + return detailCase_ == 52; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @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(); + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + @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; + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @return Whether the challnelerSlabInfo field is set. + */ + @java.lang.Override + public boolean hasChallnelerSlabInfo() { + return detailCase_ == 61; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @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(); + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + @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; + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @return Whether the mistTrialActivityInfo field is set. + */ + @java.lang.Override + public boolean hasMistTrialActivityInfo() { + return detailCase_ == 62; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @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(); + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + @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; + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @return Whether the hideAndSeekInfo field is set. + */ + @java.lang.Override + public boolean hasHideAndSeekInfo() { + return detailCase_ == 63; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @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(); + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + @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; + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @return Whether the findHilichurlInfo field is set. + */ + @java.lang.Override + public boolean hasFindHilichurlInfo() { + return detailCase_ == 64; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @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(); + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + @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 entry + : internalGetActivityCoinMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 activityId = 1; + * @return The activityId. + */ + @java.lang.Override + public int getActivityId() { + return activityId_; + } + /** + * uint32 activityId = 1; + * @param value The activityId to set. + * @return This builder for chaining. + */ + public Builder setActivityId(int value) { + + activityId_ = value; + onChanged(); + return this; + } + /** + * uint32 activityId = 1; + * @return This builder for chaining. + */ + public Builder clearActivityId() { + + activityId_ = 0; + onChanged(); + return this; + } + + private int scheduleId_ ; + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + /** + * uint32 scheduleId = 2; + * @param value The scheduleId to set. + * @return This builder for chaining. + */ + public Builder setScheduleId(int value) { + + scheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 scheduleId = 2; + * @return This builder for chaining. + */ + public Builder clearScheduleId() { + + scheduleId_ = 0; + onChanged(); + return this; + } + + private int beginTime_ ; + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + /** + * uint32 beginTime = 3; + * @param value The beginTime to set. + * @return This builder for chaining. + */ + public Builder setBeginTime(int value) { + + beginTime_ = value; + onChanged(); + return this; + } + /** + * uint32 beginTime = 3; + * @return This builder for chaining. + */ + public Builder clearBeginTime() { + + beginTime_ = 0; + onChanged(); + return this; + } + + private int endTime_ ; + /** + * uint32 endTime = 4; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + /** + * uint32 endTime = 4; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(int value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * uint32 endTime = 4; + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = 0; + onChanged(); + return this; + } + + private int activityType_ ; + /** + * uint32 activityType = 5; + * @return The activityType. + */ + @java.lang.Override + public int getActivityType() { + return activityType_; + } + /** + * uint32 activityType = 5; + * @param value The activityType to set. + * @return This builder for chaining. + */ + public Builder setActivityType(int value) { + + activityType_ = value; + onChanged(); + return this; + } + /** + * uint32 activityType = 5; + * @return This builder for chaining. + */ + public Builder clearActivityType() { + + activityType_ = 0; + onChanged(); + return this; + } + + private boolean isPlayOpenAnim_ ; + /** + * bool isPlayOpenAnim = 6; + * @return The isPlayOpenAnim. + */ + @java.lang.Override + public boolean getIsPlayOpenAnim() { + return isPlayOpenAnim_; + } + /** + * bool isPlayOpenAnim = 6; + * @param value The isPlayOpenAnim to set. + * @return This builder for chaining. + */ + public Builder setIsPlayOpenAnim(boolean value) { + + isPlayOpenAnim_ = value; + onChanged(); + return this; + } + /** + * bool isPlayOpenAnim = 6; + * @return This builder for chaining. + */ + public Builder clearIsPlayOpenAnim() { + + isPlayOpenAnim_ = false; + onChanged(); + return this; + } + + private boolean isFinished_ ; + /** + * bool isFinished = 7; + * @return The isFinished. + */ + @java.lang.Override + public boolean getIsFinished() { + return isFinished_; + } + /** + * bool isFinished = 7; + * @param value The isFinished to set. + * @return This builder for chaining. + */ + public Builder setIsFinished(boolean value) { + + isFinished_ = value; + onChanged(); + return this; + } + /** + * bool isFinished = 7; + * @return This builder for chaining. + */ + public Builder clearIsFinished() { + + isFinished_ = false; + onChanged(); + return this; + } + + private boolean isStarting_ ; + /** + * bool isStarting = 8; + * @return The isStarting. + */ + @java.lang.Override + public boolean getIsStarting() { + return isStarting_; + } + /** + * bool isStarting = 8; + * @param value The isStarting to set. + * @return This builder for chaining. + */ + public Builder setIsStarting(boolean value) { + + isStarting_ = value; + onChanged(); + return this; + } + /** + * bool isStarting = 8; + * @return This builder for chaining. + */ + public Builder clearIsStarting() { + + isStarting_ = false; + onChanged(); + return this; + } + + private java.util.List watcherInfoList_ = + java.util.Collections.emptyList(); + private void ensureWatcherInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + watcherInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public java.util.List getWatcherInfoListList() { + if (watcherInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(watcherInfoList_); + } else { + return watcherInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public int getWatcherInfoListCount() { + if (watcherInfoListBuilder_ == null) { + return watcherInfoList_.size(); + } else { + return watcherInfoListBuilder_.getCount(); + } + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo getWatcherInfoList(int index) { + if (watcherInfoListBuilder_ == null) { + return watcherInfoList_.get(index); + } else { + return watcherInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + 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; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public Builder addAllWatcherInfoList( + java.lang.Iterable values) { + if (watcherInfoListBuilder_ == null) { + ensureWatcherInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, watcherInfoList_); + onChanged(); + } else { + watcherInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public Builder clearWatcherInfoList() { + if (watcherInfoListBuilder_ == null) { + watcherInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + watcherInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public Builder removeWatcherInfoList(int index) { + if (watcherInfoListBuilder_ == null) { + ensureWatcherInfoListIsMutable(); + watcherInfoList_.remove(index); + onChanged(); + } else { + watcherInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder getWatcherInfoListBuilder( + int index) { + return getWatcherInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfoOrBuilder getWatcherInfoListOrBuilder( + int index) { + if (watcherInfoListBuilder_ == null) { + return watcherInfoList_.get(index); } else { + return watcherInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public java.util.List + getWatcherInfoListOrBuilderList() { + if (watcherInfoListBuilder_ != null) { + return watcherInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(watcherInfoList_); + } + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder addWatcherInfoListBuilder() { + return getWatcherInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance()); + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.Builder addWatcherInfoListBuilder( + int index) { + return getWatcherInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ActivityWatcherInfoOuterClass.ActivityWatcherInfo.getDefaultInstance()); + } + /** + * repeated .ActivityWatcherInfo watcherInfoList = 9; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 meetCondList = 10; + * @return A list containing the meetCondList. + */ + public java.util.List + getMeetCondListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(meetCondList_) : meetCondList_; + } + /** + * repeated uint32 meetCondList = 10; + * @return The count of meetCondList. + */ + public int getMeetCondListCount() { + return meetCondList_.size(); + } + /** + * repeated uint32 meetCondList = 10; + * @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); + } + /** + * repeated uint32 meetCondList = 10; + * @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; + } + /** + * repeated uint32 meetCondList = 10; + * @param value The meetCondList to add. + * @return This builder for chaining. + */ + public Builder addMeetCondList(int value) { + ensureMeetCondListIsMutable(); + meetCondList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 meetCondList = 10; + * @param values The meetCondList to add. + * @return This builder for chaining. + */ + public Builder addAllMeetCondList( + java.lang.Iterable values) { + ensureMeetCondListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, meetCondList_); + onChanged(); + return this; + } + /** + * repeated uint32 meetCondList = 10; + * @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; + } + } + /** + * repeated uint32 expireCondList = 15; + * @return A list containing the expireCondList. + */ + public java.util.List + getExpireCondListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(expireCondList_) : expireCondList_; + } + /** + * repeated uint32 expireCondList = 15; + * @return The count of expireCondList. + */ + public int getExpireCondListCount() { + return expireCondList_.size(); + } + /** + * repeated uint32 expireCondList = 15; + * @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); + } + /** + * repeated uint32 expireCondList = 15; + * @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; + } + /** + * repeated uint32 expireCondList = 15; + * @param value The expireCondList to add. + * @return This builder for chaining. + */ + public Builder addExpireCondList(int value) { + ensureExpireCondListIsMutable(); + expireCondList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 expireCondList = 15; + * @param values The expireCondList to add. + * @return This builder for chaining. + */ + public Builder addAllExpireCondList( + java.lang.Iterable values) { + ensureExpireCondListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, expireCondList_); + onChanged(); + return this; + } + /** + * repeated uint32 expireCondList = 15; + * @return This builder for chaining. + */ + public Builder clearExpireCondList() { + expireCondList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private int selectedAvatarRewardId_ ; + /** + * uint32 selectedAvatarRewardId = 17; + * @return The selectedAvatarRewardId. + */ + @java.lang.Override + public int getSelectedAvatarRewardId() { + return selectedAvatarRewardId_; + } + /** + * uint32 selectedAvatarRewardId = 17; + * @param value The selectedAvatarRewardId to set. + * @return This builder for chaining. + */ + public Builder setSelectedAvatarRewardId(int value) { + + selectedAvatarRewardId_ = value; + onChanged(); + return this; + } + /** + * uint32 selectedAvatarRewardId = 17; + * @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 + internalGetActivityCoinMap() { + if (activityCoinMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActivityCoinMapDefaultEntryHolder.defaultEntry); + } + return activityCoinMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + @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 getActivityCoinMap() { + return getActivityCoinMapMap(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public java.util.Map getActivityCoinMapMap() { + return internalGetActivityCoinMap().getMap(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public int getActivityCoinMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetActivityCoinMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + @java.lang.Override + + public int getActivityCoinMapOrThrow( + int key) { + + java.util.Map map = + internalGetActivityCoinMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearActivityCoinMap() { + internalGetMutableActivityCoinMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + public Builder removeActivityCoinMap( + int key) { + + internalGetMutableActivityCoinMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableActivityCoinMap() { + return internalGetMutableActivityCoinMap().getMutableMap(); + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + public Builder putActivityCoinMap( + int key, + int value) { + + + internalGetMutableActivityCoinMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> activityCoinMap = 18; + */ + + public Builder putAllActivityCoinMap( + java.util.Map values) { + internalGetMutableActivityCoinMap().getMutableMap() + .putAll(values); + return this; + } + + private int scoreLimit_ ; + /** + * uint32 scoreLimit = 19; + * @return The scoreLimit. + */ + @java.lang.Override + public int getScoreLimit() { + return scoreLimit_; + } + /** + * uint32 scoreLimit = 19; + * @param value The scoreLimit to set. + * @return This builder for chaining. + */ + public Builder setScoreLimit(int value) { + + scoreLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 scoreLimit = 19; + * @return This builder for chaining. + */ + public Builder clearScoreLimit() { + + scoreLimit_ = 0; + onChanged(); + return this; + } + + private int curScore_ ; + /** + * uint32 curScore = 20; + * @return The curScore. + */ + @java.lang.Override + public int getCurScore() { + return curScore_; + } + /** + * uint32 curScore = 20; + * @param value The curScore to set. + * @return This builder for chaining. + */ + public Builder setCurScore(int value) { + + curScore_ = value; + onChanged(); + return this; + } + /** + * uint32 curScore = 20; + * @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; + } + } + /** + * repeated uint32 takenRewardList = 24; + * @return A list containing the takenRewardList. + */ + public java.util.List + getTakenRewardListList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(takenRewardList_) : takenRewardList_; + } + /** + * repeated uint32 takenRewardList = 24; + * @return The count of takenRewardList. + */ + public int getTakenRewardListCount() { + return takenRewardList_.size(); + } + /** + * repeated uint32 takenRewardList = 24; + * @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); + } + /** + * repeated uint32 takenRewardList = 24; + * @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; + } + /** + * repeated uint32 takenRewardList = 24; + * @param value The takenRewardList to add. + * @return This builder for chaining. + */ + public Builder addTakenRewardList(int value) { + ensureTakenRewardListIsMutable(); + takenRewardList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 takenRewardList = 24; + * @param values The takenRewardList to add. + * @return This builder for chaining. + */ + public Builder addAllTakenRewardList( + java.lang.Iterable values) { + ensureTakenRewardListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, takenRewardList_); + onChanged(); + return this; + } + /** + * repeated uint32 takenRewardList = 24; + * @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_; + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @return Whether the samLampInfo field is set. + */ + @java.lang.Override + public boolean hasSamLampInfo() { + return detailCase_ == 11; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + * @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(); + } + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + 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; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + 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; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + 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; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + 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; + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSamLampInfoBuilder() { + return getSamLampInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo samLampInfo = 11; + */ + 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_; + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @return Whether the crucibleInfo field is set. + */ + @java.lang.Override + public boolean hasCrucibleInfo() { + return detailCase_ == 12; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + * @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(); + } + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + 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; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + 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; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + 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; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + 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; + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getCrucibleInfoBuilder() { + return getCrucibleInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo crucibleInfo = 12; + */ + 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_; + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @return Whether the salesmanInfo field is set. + */ + @java.lang.Override + public boolean hasSalesmanInfo() { + return detailCase_ == 13; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + * @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(); + } + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + 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; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + 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; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + 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; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + 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; + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSalesmanInfoBuilder() { + return getSalesmanInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo salesmanInfo = 13; + */ + 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_; + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @return Whether the trialAvatarInfo field is set. + */ + @java.lang.Override + public boolean hasTrialAvatarInfo() { + return detailCase_ == 14; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + * @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(); + } + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + 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; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + 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; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + 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; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + 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; + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getTrialAvatarInfoBuilder() { + return getTrialAvatarInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo trialAvatarInfo = 14; + */ + 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_; + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @return Whether the deliveryInfo field is set. + */ + @java.lang.Override + public boolean hasDeliveryInfo() { + return detailCase_ == 16; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + * @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(); + } + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + 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; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + 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; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + 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; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + 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; + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getDeliveryInfoBuilder() { + return getDeliveryInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo deliveryInfo = 16; + */ + 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_; + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @return Whether the asterInfo field is set. + */ + @java.lang.Override + public boolean hasAsterInfo() { + return detailCase_ == 21; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + * @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(); + } + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + 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; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + 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; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + 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; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + 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; + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getAsterInfoBuilder() { + return getAsterInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo asterInfo = 21; + */ + 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_; + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @return Whether the flightInfo field is set. + */ + @java.lang.Override + public boolean hasFlightInfo() { + return detailCase_ == 25; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + * @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(); + } + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + 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; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + 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; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + 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; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + 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; + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFlightInfoBuilder() { + return getFlightInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo flightInfo = 25; + */ + 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_; + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @return Whether the dragonSpineInfo field is set. + */ + @java.lang.Override + public boolean hasDragonSpineInfo() { + return detailCase_ == 31; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + * @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(); + } + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + 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; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + 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; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + 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; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + 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; + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getDragonSpineInfoBuilder() { + return getDragonSpineInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo dragonSpineInfo = 31; + */ + 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_; + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @return Whether the effigyInfo field is set. + */ + @java.lang.Override + public boolean hasEffigyInfo() { + return detailCase_ == 32; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + * @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(); + } + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + 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; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + 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; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + 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; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + 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; + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getEffigyInfoBuilder() { + return getEffigyInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo effigyInfo = 32; + */ + 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_; + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @return Whether the treasureMapInfo field is set. + */ + @java.lang.Override + public boolean hasTreasureMapInfo() { + return detailCase_ == 35; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + * @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(); + } + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + 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; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + 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; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + 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; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + 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; + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getTreasureMapInfoBuilder() { + return getTreasureMapInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo treasureMapInfo = 35; + */ + 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_; + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @return Whether the blessingInfo field is set. + */ + @java.lang.Override + public boolean hasBlessingInfo() { + return detailCase_ == 41; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + * @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(); + } + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + 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; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + 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; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + 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; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + 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; + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getBlessingInfoBuilder() { + return getBlessingInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo blessingInfo = 41; + */ + 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_; + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @return Whether the seaLampInfo field is set. + */ + @java.lang.Override + public boolean hasSeaLampInfo() { + return detailCase_ == 42; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + * @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(); + } + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + 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; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + 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; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + 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; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + 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; + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getSeaLampInfoBuilder() { + return getSeaLampInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo seaLampInfo = 42; + */ + 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_; + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @return Whether the expeditionInfo field is set. + */ + @java.lang.Override + public boolean hasExpeditionInfo() { + return detailCase_ == 43; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + * @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(); + } + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + 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; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + 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; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + 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; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + 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; + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getExpeditionInfoBuilder() { + return getExpeditionInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo expeditionInfo = 43; + */ + 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_; + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @return Whether the arenaChallengeInfo field is set. + */ + @java.lang.Override + public boolean hasArenaChallengeInfo() { + return detailCase_ == 44; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + * @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(); + } + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + 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; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + 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; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + 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; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + 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; + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getArenaChallengeInfoBuilder() { + return getArenaChallengeInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo arenaChallengeInfo = 44; + */ + 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_; + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @return Whether the fleurFairInfo field is set. + */ + @java.lang.Override + public boolean hasFleurFairInfo() { + return detailCase_ == 51; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + * @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(); + } + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + 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; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + 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; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + 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; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + 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; + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFleurFairInfoBuilder() { + return getFleurFairInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo fleurFairInfo = 51; + */ + 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_; + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @return Whether the waterSpiritInfo field is set. + */ + @java.lang.Override + public boolean hasWaterSpiritInfo() { + return detailCase_ == 52; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + * @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(); + } + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + 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; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + 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; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + 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; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + 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; + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getWaterSpiritInfoBuilder() { + return getWaterSpiritInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo waterSpiritInfo = 52; + */ + 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_; + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @return Whether the challnelerSlabInfo field is set. + */ + @java.lang.Override + public boolean hasChallnelerSlabInfo() { + return detailCase_ == 61; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + * @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(); + } + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + 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; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + 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; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + 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; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + 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; + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getChallnelerSlabInfoBuilder() { + return getChallnelerSlabInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo challnelerSlabInfo = 61; + */ + 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_; + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @return Whether the mistTrialActivityInfo field is set. + */ + @java.lang.Override + public boolean hasMistTrialActivityInfo() { + return detailCase_ == 62; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + * @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(); + } + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + 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; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + 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; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + 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; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + 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; + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getMistTrialActivityInfoBuilder() { + return getMistTrialActivityInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo mistTrialActivityInfo = 62; + */ + 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_; + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @return Whether the hideAndSeekInfo field is set. + */ + @java.lang.Override + public boolean hasHideAndSeekInfo() { + return detailCase_ == 63; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + * @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(); + } + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + 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; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + 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; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + 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; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + 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; + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getHideAndSeekInfoBuilder() { + return getHideAndSeekInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo hideAndSeekInfo = 63; + */ + 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_; + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @return Whether the findHilichurlInfo field is set. + */ + @java.lang.Override + public boolean hasFindHilichurlInfo() { + return detailCase_ == 64; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + * @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(); + } + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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; + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + public emu.grasscutter.net.proto.ActivityNullDetailInfoOuterClass.ActivityNullDetailInfo.Builder getFindHilichurlInfoBuilder() { + return getFindHilichurlInfoFieldBuilder().getBuilder(); + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + @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(); + } + } + /** + * .ActivityNullDetailInfo findHilichurlInfo = 64; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..eec32dfb6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ActivityNullDetailInfoOuterClass.java @@ -0,0 +1,466 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..55f601dc5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ActivityWatcherInfoOuterClass.java @@ -0,0 +1,749 @@ +// 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 { + + /** + * uint32 watcherId = 1; + * @return The watcherId. + */ + int getWatcherId(); + + /** + * uint32 curProgress = 2; + * @return The curProgress. + */ + int getCurProgress(); + + /** + * uint32 totalProgress = 3; + * @return The totalProgress. + */ + int getTotalProgress(); + + /** + * bool isTakenReward = 4; + * @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_; + /** + * uint32 watcherId = 1; + * @return The watcherId. + */ + @java.lang.Override + public int getWatcherId() { + return watcherId_; + } + + public static final int CURPROGRESS_FIELD_NUMBER = 2; + private int curProgress_; + /** + * uint32 curProgress = 2; + * @return The curProgress. + */ + @java.lang.Override + public int getCurProgress() { + return curProgress_; + } + + public static final int TOTALPROGRESS_FIELD_NUMBER = 3; + private int totalProgress_; + /** + * uint32 totalProgress = 3; + * @return The totalProgress. + */ + @java.lang.Override + public int getTotalProgress() { + return totalProgress_; + } + + public static final int ISTAKENREWARD_FIELD_NUMBER = 4; + private boolean isTakenReward_; + /** + * bool isTakenReward = 4; + * @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 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_ ; + /** + * uint32 watcherId = 1; + * @return The watcherId. + */ + @java.lang.Override + public int getWatcherId() { + return watcherId_; + } + /** + * uint32 watcherId = 1; + * @param value The watcherId to set. + * @return This builder for chaining. + */ + public Builder setWatcherId(int value) { + + watcherId_ = value; + onChanged(); + return this; + } + /** + * uint32 watcherId = 1; + * @return This builder for chaining. + */ + public Builder clearWatcherId() { + + watcherId_ = 0; + onChanged(); + return this; + } + + private int curProgress_ ; + /** + * uint32 curProgress = 2; + * @return The curProgress. + */ + @java.lang.Override + public int getCurProgress() { + return curProgress_; + } + /** + * uint32 curProgress = 2; + * @param value The curProgress to set. + * @return This builder for chaining. + */ + public Builder setCurProgress(int value) { + + curProgress_ = value; + onChanged(); + return this; + } + /** + * uint32 curProgress = 2; + * @return This builder for chaining. + */ + public Builder clearCurProgress() { + + curProgress_ = 0; + onChanged(); + return this; + } + + private int totalProgress_ ; + /** + * uint32 totalProgress = 3; + * @return The totalProgress. + */ + @java.lang.Override + public int getTotalProgress() { + return totalProgress_; + } + /** + * uint32 totalProgress = 3; + * @param value The totalProgress to set. + * @return This builder for chaining. + */ + public Builder setTotalProgress(int value) { + + totalProgress_ = value; + onChanged(); + return this; + } + /** + * uint32 totalProgress = 3; + * @return This builder for chaining. + */ + public Builder clearTotalProgress() { + + totalProgress_ = 0; + onChanged(); + return this; + } + + private boolean isTakenReward_ ; + /** + * bool isTakenReward = 4; + * @return The isTakenReward. + */ + @java.lang.Override + public boolean getIsTakenReward() { + return isTakenReward_; + } + /** + * bool isTakenReward = 4; + * @param value The isTakenReward to set. + * @return This builder for chaining. + */ + public Builder setIsTakenReward(boolean value) { + + isTakenReward_ = value; + onChanged(); + return this; + } + /** + * bool isTakenReward = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..32dc1ab22 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AiSkillCdInfoOuterClass.java @@ -0,0 +1,1102 @@ +// 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 { + + /** + * map<uint32, uint32> skillCdMap = 1; + */ + int getSkillCdMapCount(); + /** + * map<uint32, uint32> skillCdMap = 1; + */ + boolean containsSkillCdMap( + int key); + /** + * Use {@link #getSkillCdMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillCdMap(); + /** + * map<uint32, uint32> skillCdMap = 1; + */ + java.util.Map + getSkillCdMapMap(); + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + int getSkillCdMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + int getSkillCdMapOrThrow( + int key); + + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + int getSkillGroupCdMapCount(); + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + boolean containsSkillGroupCdMap( + int key); + /** + * Use {@link #getSkillGroupCdMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillGroupCdMap(); + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + java.util.Map + getSkillGroupCdMapMap(); + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + int getSkillGroupCdMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + 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 + 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 + 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 + .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 + internalGetSkillCdMap() { + if (skillCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillCdMapDefaultEntryHolder.defaultEntry); + } + return skillCdMap_; + } + + public int getSkillCdMapCount() { + return internalGetSkillCdMap().getMap().size(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + @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 getSkillCdMap() { + return getSkillCdMapMap(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public java.util.Map getSkillCdMapMap() { + return internalGetSkillCdMap().getMap(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public int getSkillCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public int getSkillCdMapOrThrow( + int key) { + + java.util.Map 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 + .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 + internalGetSkillGroupCdMap() { + if (skillGroupCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillGroupCdMapDefaultEntryHolder.defaultEntry); + } + return skillGroupCdMap_; + } + + public int getSkillGroupCdMapCount() { + return internalGetSkillGroupCdMap().getMap().size(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + @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 getSkillGroupCdMap() { + return getSkillGroupCdMapMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public java.util.Map getSkillGroupCdMapMap() { + return internalGetSkillGroupCdMap().getMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetSkillCdMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + skillCdMap__ = SkillCdMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, skillCdMap__); + } + for (java.util.Map.Entry entry + : internalGetSkillGroupCdMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetSkillCdMap() { + if (skillCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillCdMapDefaultEntryHolder.defaultEntry); + } + return skillCdMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + @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 getSkillCdMap() { + return getSkillCdMapMap(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public java.util.Map getSkillCdMapMap() { + return internalGetSkillCdMap().getMap(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public int getSkillCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + @java.lang.Override + + public int getSkillCdMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillCdMap() { + internalGetMutableSkillCdMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + public Builder removeSkillCdMap( + int key) { + + internalGetMutableSkillCdMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillCdMap() { + return internalGetMutableSkillCdMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + public Builder putSkillCdMap( + int key, + int value) { + + + internalGetMutableSkillCdMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillCdMap = 1; + */ + + public Builder putAllSkillCdMap( + java.util.Map values) { + internalGetMutableSkillCdMap().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> skillGroupCdMap_; + private com.google.protobuf.MapField + internalGetSkillGroupCdMap() { + if (skillGroupCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillGroupCdMapDefaultEntryHolder.defaultEntry); + } + return skillGroupCdMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + @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 getSkillGroupCdMap() { + return getSkillGroupCdMapMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public java.util.Map getSkillGroupCdMapMap() { + return internalGetSkillGroupCdMap().getMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillGroupCdMap() { + internalGetMutableSkillGroupCdMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + public Builder removeSkillGroupCdMap( + int key) { + + internalGetMutableSkillGroupCdMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillGroupCdMap() { + return internalGetMutableSkillGroupCdMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + public Builder putSkillGroupCdMap( + int key, + int value) { + + + internalGetMutableSkillGroupCdMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillGroupCdMap = 2; + */ + + public Builder putAllSkillGroupCdMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..38e4d042f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AiSyncInfoOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * bool hasPathToTarget = 2; + * @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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int HASPATHTOTARGET_FIELD_NUMBER = 2; + private boolean hasPathToTarget_; + /** + * bool hasPathToTarget = 2; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private boolean hasPathToTarget_ ; + /** + * bool hasPathToTarget = 2; + * @return The hasPathToTarget. + */ + @java.lang.Override + public boolean getHasPathToTarget() { + return hasPathToTarget_; + } + /** + * bool hasPathToTarget = 2; + * @param value The hasPathToTarget to set. + * @return This builder for chaining. + */ + public Builder setHasPathToTarget(boolean value) { + + hasPathToTarget_ = value; + onChanged(); + return this; + } + /** + * bool hasPathToTarget = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f62aa6547 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AiThreatInfoOuterClass.java @@ -0,0 +1,799 @@ +// 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 { + + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + int getAiThreatMapCount(); + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + boolean containsAiThreatMap( + int key); + /** + * Use {@link #getAiThreatMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAiThreatMap(); + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + java.util.Map + getAiThreatMapMap(); + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + int getAiThreatMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + 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 + 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 + .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 + internalGetAiThreatMap() { + if (aiThreatMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiThreatMapDefaultEntryHolder.defaultEntry); + } + return aiThreatMap_; + } + + public int getAiThreatMapCount() { + return internalGetAiThreatMap().getMap().size(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + @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 getAiThreatMap() { + return getAiThreatMapMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public java.util.Map getAiThreatMapMap() { + return internalGetAiThreatMap().getMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public int getAiThreatMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public int getAiThreatMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetAiThreatMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetAiThreatMap() { + if (aiThreatMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiThreatMapDefaultEntryHolder.defaultEntry); + } + return aiThreatMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + @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 getAiThreatMap() { + return getAiThreatMapMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public java.util.Map getAiThreatMapMap() { + return internalGetAiThreatMap().getMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public int getAiThreatMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + @java.lang.Override + + public int getAiThreatMapOrThrow( + int key) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAiThreatMap() { + internalGetMutableAiThreatMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + public Builder removeAiThreatMap( + int key) { + + internalGetMutableAiThreatMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAiThreatMap() { + return internalGetMutableAiThreatMap().getMutableMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + public Builder putAiThreatMap( + int key, + int value) { + + + internalGetMutableAiThreatMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> aiThreatMap = 1; + */ + + public Builder putAllAiThreatMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ceef40679 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoOuterClass.java @@ -0,0 +1,751 @@ +// 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 { + + /** + * uint32 paraType = 1; + * @return The paraType. + */ + int getParaType(); + + /** + * int32 intVal = 2; + * @return The intVal. + */ + int getIntVal(); + + /** + * float floatVal = 3; + * @return The floatVal. + */ + float getFloatVal(); + + /** + * bool boolVal = 4; + * @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_; + /** + * uint32 paraType = 1; + * @return The paraType. + */ + @java.lang.Override + public int getParaType() { + return paraType_; + } + + public static final int INTVAL_FIELD_NUMBER = 2; + private int intVal_; + /** + * int32 intVal = 2; + * @return The intVal. + */ + @java.lang.Override + public int getIntVal() { + return intVal_; + } + + public static final int FLOATVAL_FIELD_NUMBER = 3; + private float floatVal_; + /** + * float floatVal = 3; + * @return The floatVal. + */ + @java.lang.Override + public float getFloatVal() { + return floatVal_; + } + + public static final int BOOLVAL_FIELD_NUMBER = 4; + private boolean boolVal_; + /** + * bool boolVal = 4; + * @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 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_ ; + /** + * uint32 paraType = 1; + * @return The paraType. + */ + @java.lang.Override + public int getParaType() { + return paraType_; + } + /** + * uint32 paraType = 1; + * @param value The paraType to set. + * @return This builder for chaining. + */ + public Builder setParaType(int value) { + + paraType_ = value; + onChanged(); + return this; + } + /** + * uint32 paraType = 1; + * @return This builder for chaining. + */ + public Builder clearParaType() { + + paraType_ = 0; + onChanged(); + return this; + } + + private int intVal_ ; + /** + * int32 intVal = 2; + * @return The intVal. + */ + @java.lang.Override + public int getIntVal() { + return intVal_; + } + /** + * int32 intVal = 2; + * @param value The intVal to set. + * @return This builder for chaining. + */ + public Builder setIntVal(int value) { + + intVal_ = value; + onChanged(); + return this; + } + /** + * int32 intVal = 2; + * @return This builder for chaining. + */ + public Builder clearIntVal() { + + intVal_ = 0; + onChanged(); + return this; + } + + private float floatVal_ ; + /** + * float floatVal = 3; + * @return The floatVal. + */ + @java.lang.Override + public float getFloatVal() { + return floatVal_; + } + /** + * float floatVal = 3; + * @param value The floatVal to set. + * @return This builder for chaining. + */ + public Builder setFloatVal(float value) { + + floatVal_ = value; + onChanged(); + return this; + } + /** + * float floatVal = 3; + * @return This builder for chaining. + */ + public Builder clearFloatVal() { + + floatVal_ = 0F; + onChanged(); + return this; + } + + private boolean boolVal_ ; + /** + * bool boolVal = 4; + * @return The boolVal. + */ + @java.lang.Override + public boolean getBoolVal() { + return boolVal_; + } + /** + * bool boolVal = 4; + * @param value The boolVal to set. + * @return This builder for chaining. + */ + public Builder setBoolVal(boolean value) { + + boolVal_ = value; + onChanged(); + return this; + } + /** + * bool boolVal = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2ddcd30dd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AnimatorParameterValueInfoPairOuterClass.java @@ -0,0 +1,744 @@ +// 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 { + + /** + * int32 name = 1; + * @return The name. + */ + int getName(); + + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @return Whether the animatorPara field is set. + */ + boolean hasAnimatorPara(); + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @return The animatorPara. + */ + emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo getAnimatorPara(); + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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_; + /** + * int32 name = 1; + * @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_; + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @return Whether the animatorPara field is set. + */ + @java.lang.Override + public boolean hasAnimatorPara() { + return animatorPara_ != null; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @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_; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + @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 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_ ; + /** + * int32 name = 1; + * @return The name. + */ + @java.lang.Override + public int getName() { + return name_; + } + /** + * int32 name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(int value) { + + name_ = value; + onChanged(); + return this; + } + /** + * int32 name = 1; + * @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_; + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @return Whether the animatorPara field is set. + */ + public boolean hasAnimatorPara() { + return animatorParaBuilder_ != null || animatorPara_ != null; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + * @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(); + } + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + public Builder clearAnimatorPara() { + if (animatorParaBuilder_ == null) { + animatorPara_ = null; + onChanged(); + } else { + animatorPara_ = null; + animatorParaBuilder_ = null; + } + + return this; + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoOuterClass.AnimatorParameterValueInfo.Builder getAnimatorParaBuilder() { + + onChanged(); + return getAnimatorParaFieldBuilder().getBuilder(); + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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_; + } + } + /** + * .AnimatorParameterValueInfo animatorPara = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..115f7372b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AskAddFriendNotifyOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * .FriendBrief targetFriendBrief = 2; + * @return Whether the targetFriendBrief field is set. + */ + boolean hasTargetFriendBrief(); + /** + * .FriendBrief targetFriendBrief = 2; + * @return The targetFriendBrief. + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getTargetFriendBrief(); + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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_; + /** + * uint32 targetUid = 1; + * @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_; + /** + * .FriendBrief targetFriendBrief = 2; + * @return Whether the targetFriendBrief field is set. + */ + @java.lang.Override + public boolean hasTargetFriendBrief() { + return targetFriendBrief_ != null; + } + /** + * .FriendBrief targetFriendBrief = 2; + * @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_; + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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_; + /** + * .FriendBrief targetFriendBrief = 2; + * @return Whether the targetFriendBrief field is set. + */ + public boolean hasTargetFriendBrief() { + return targetFriendBriefBuilder_ != null || targetFriendBrief_ != null; + } + /** + * .FriendBrief targetFriendBrief = 2; + * @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(); + } + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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; + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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; + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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; + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + public Builder clearTargetFriendBrief() { + if (targetFriendBriefBuilder_ == null) { + targetFriendBrief_ = null; + onChanged(); + } else { + targetFriendBrief_ = null; + targetFriendBriefBuilder_ = null; + } + + return this; + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getTargetFriendBriefBuilder() { + + onChanged(); + return getTargetFriendBriefFieldBuilder().getBuilder(); + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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_; + } + } + /** + * .FriendBrief targetFriendBrief = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..edc2e694b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AskAddFriendReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @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_; + /** + * uint32 targetUid = 1; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..40fb8d056 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AskAddFriendRspOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint32 param = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int PARAM_FIELD_NUMBER = 3; + private int param_; + /** + * uint32 param = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int param_ ; + /** + * uint32 param = 3; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + /** + * uint32 param = 3; + * @param value The param to set. + * @return This builder for chaining. + */ + public Builder setParam(int value) { + + param_ = value; + onChanged(); + return this; + } + /** + * uint32 param = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3d696604b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AttackHitEffectResultOuterClass.java @@ -0,0 +1,897 @@ +// 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 { + + /** + * uint32 hitEffLevel = 1; + * @return The hitEffLevel. + */ + int getHitEffLevel(); + + /** + * float retreatStrength = 2; + * @return The retreatStrength. + */ + float getRetreatStrength(); + + /** + * float airStrength = 3; + * @return The airStrength. + */ + float getAirStrength(); + + /** + * float hitHaltTime = 4; + * @return The hitHaltTime. + */ + float getHitHaltTime(); + + /** + * float hitHaltTimeScale = 5; + * @return The hitHaltTimeScale. + */ + float getHitHaltTimeScale(); + + /** + * uint32 originalHitEffLevel = 6; + * @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_; + /** + * uint32 hitEffLevel = 1; + * @return The hitEffLevel. + */ + @java.lang.Override + public int getHitEffLevel() { + return hitEffLevel_; + } + + public static final int RETREATSTRENGTH_FIELD_NUMBER = 2; + private float retreatStrength_; + /** + * float retreatStrength = 2; + * @return The retreatStrength. + */ + @java.lang.Override + public float getRetreatStrength() { + return retreatStrength_; + } + + public static final int AIRSTRENGTH_FIELD_NUMBER = 3; + private float airStrength_; + /** + * float airStrength = 3; + * @return The airStrength. + */ + @java.lang.Override + public float getAirStrength() { + return airStrength_; + } + + public static final int HITHALTTIME_FIELD_NUMBER = 4; + private float hitHaltTime_; + /** + * float hitHaltTime = 4; + * @return The hitHaltTime. + */ + @java.lang.Override + public float getHitHaltTime() { + return hitHaltTime_; + } + + public static final int HITHALTTIMESCALE_FIELD_NUMBER = 5; + private float hitHaltTimeScale_; + /** + * float hitHaltTimeScale = 5; + * @return The hitHaltTimeScale. + */ + @java.lang.Override + public float getHitHaltTimeScale() { + return hitHaltTimeScale_; + } + + public static final int ORIGINALHITEFFLEVEL_FIELD_NUMBER = 6; + private int originalHitEffLevel_; + /** + * uint32 originalHitEffLevel = 6; + * @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 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_ ; + /** + * uint32 hitEffLevel = 1; + * @return The hitEffLevel. + */ + @java.lang.Override + public int getHitEffLevel() { + return hitEffLevel_; + } + /** + * uint32 hitEffLevel = 1; + * @param value The hitEffLevel to set. + * @return This builder for chaining. + */ + public Builder setHitEffLevel(int value) { + + hitEffLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 hitEffLevel = 1; + * @return This builder for chaining. + */ + public Builder clearHitEffLevel() { + + hitEffLevel_ = 0; + onChanged(); + return this; + } + + private float retreatStrength_ ; + /** + * float retreatStrength = 2; + * @return The retreatStrength. + */ + @java.lang.Override + public float getRetreatStrength() { + return retreatStrength_; + } + /** + * float retreatStrength = 2; + * @param value The retreatStrength to set. + * @return This builder for chaining. + */ + public Builder setRetreatStrength(float value) { + + retreatStrength_ = value; + onChanged(); + return this; + } + /** + * float retreatStrength = 2; + * @return This builder for chaining. + */ + public Builder clearRetreatStrength() { + + retreatStrength_ = 0F; + onChanged(); + return this; + } + + private float airStrength_ ; + /** + * float airStrength = 3; + * @return The airStrength. + */ + @java.lang.Override + public float getAirStrength() { + return airStrength_; + } + /** + * float airStrength = 3; + * @param value The airStrength to set. + * @return This builder for chaining. + */ + public Builder setAirStrength(float value) { + + airStrength_ = value; + onChanged(); + return this; + } + /** + * float airStrength = 3; + * @return This builder for chaining. + */ + public Builder clearAirStrength() { + + airStrength_ = 0F; + onChanged(); + return this; + } + + private float hitHaltTime_ ; + /** + * float hitHaltTime = 4; + * @return The hitHaltTime. + */ + @java.lang.Override + public float getHitHaltTime() { + return hitHaltTime_; + } + /** + * float hitHaltTime = 4; + * @param value The hitHaltTime to set. + * @return This builder for chaining. + */ + public Builder setHitHaltTime(float value) { + + hitHaltTime_ = value; + onChanged(); + return this; + } + /** + * float hitHaltTime = 4; + * @return This builder for chaining. + */ + public Builder clearHitHaltTime() { + + hitHaltTime_ = 0F; + onChanged(); + return this; + } + + private float hitHaltTimeScale_ ; + /** + * float hitHaltTimeScale = 5; + * @return The hitHaltTimeScale. + */ + @java.lang.Override + public float getHitHaltTimeScale() { + return hitHaltTimeScale_; + } + /** + * float hitHaltTimeScale = 5; + * @param value The hitHaltTimeScale to set. + * @return This builder for chaining. + */ + public Builder setHitHaltTimeScale(float value) { + + hitHaltTimeScale_ = value; + onChanged(); + return this; + } + /** + * float hitHaltTimeScale = 5; + * @return This builder for chaining. + */ + public Builder clearHitHaltTimeScale() { + + hitHaltTimeScale_ = 0F; + onChanged(); + return this; + } + + private int originalHitEffLevel_ ; + /** + * uint32 originalHitEffLevel = 6; + * @return The originalHitEffLevel. + */ + @java.lang.Override + public int getOriginalHitEffLevel() { + return originalHitEffLevel_; + } + /** + * uint32 originalHitEffLevel = 6; + * @param value The originalHitEffLevel to set. + * @return This builder for chaining. + */ + public Builder setOriginalHitEffLevel(int value) { + + originalHitEffLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 originalHitEffLevel = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c8e8ae365 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AttackResultOuterClass.java @@ -0,0 +1,3151 @@ +// 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 { + + /** + * uint32 attackerId = 1; + * @return The attackerId. + */ + int getAttackerId(); + + /** + * uint32 defenseId = 2; + * @return The defenseId. + */ + int getDefenseId(); + + /** + * string animEventId = 3; + * @return The animEventId. + */ + java.lang.String getAnimEventId(); + /** + * string animEventId = 3; + * @return The bytes for animEventId. + */ + com.google.protobuf.ByteString + getAnimEventIdBytes(); + + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @return Whether the abilityIdentifier field is set. + */ + boolean hasAbilityIdentifier(); + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @return The abilityIdentifier. + */ + emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier getAbilityIdentifier(); + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder getAbilityIdentifierOrBuilder(); + + /** + * float damage = 6; + * @return The damage. + */ + float getDamage(); + + /** + * bool isCrit = 7; + * @return The isCrit. + */ + boolean getIsCrit(); + + /** + * .HitCollision hitCollision = 8; + * @return Whether the hitCollision field is set. + */ + boolean hasHitCollision(); + /** + * .HitCollision hitCollision = 8; + * @return The hitCollision. + */ + emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision getHitCollision(); + /** + * .HitCollision hitCollision = 8; + */ + emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder getHitCollisionOrBuilder(); + + /** + * uint32 hitPosType = 9; + * @return The hitPosType. + */ + int getHitPosType(); + + /** + * uint32 endureBreak = 10; + * @return The endureBreak. + */ + int getEndureBreak(); + + /** + * .Vector resolvedDir = 11; + * @return Whether the resolvedDir field is set. + */ + boolean hasResolvedDir(); + /** + * .Vector resolvedDir = 11; + * @return The resolvedDir. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getResolvedDir(); + /** + * .Vector resolvedDir = 11; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getResolvedDirOrBuilder(); + + /** + * int32 hitRetreatAngleCompat = 12; + * @return The hitRetreatAngleCompat. + */ + int getHitRetreatAngleCompat(); + + /** + * .AttackHitEffectResult hitEffResult = 13; + * @return Whether the hitEffResult field is set. + */ + boolean hasHitEffResult(); + /** + * .AttackHitEffectResult hitEffResult = 13; + * @return The hitEffResult. + */ + emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult getHitEffResult(); + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder getHitEffResultOrBuilder(); + + /** + * uint32 elementType = 14; + * @return The elementType. + */ + int getElementType(); + + /** + * bool useGadgetDamageAction = 19; + * @return The useGadgetDamageAction. + */ + boolean getUseGadgetDamageAction(); + + /** + * uint32 gadgetDamageActionIdx = 20; + * @return The gadgetDamageActionIdx. + */ + int getGadgetDamageActionIdx(); + + /** + * bool isResistText = 22; + * @return The isResistText. + */ + boolean getIsResistText(); + + /** + * uint32 criticalRand = 23; + * @return The criticalRand. + */ + int getCriticalRand(); + + /** + * float elementAmplifyRate = 24; + * @return The elementAmplifyRate. + */ + float getElementAmplifyRate(); + + /** + * float damageShield = 26; + * @return The damageShield. + */ + float getDamageShield(); + + /** + * bool muteElementHurt = 27; + * @return The muteElementHurt. + */ + boolean getMuteElementHurt(); + + /** + * uint32 amplifyReactionType = 30; + * @return The amplifyReactionType. + */ + int getAmplifyReactionType(); + + /** + * uint32 addhurtReactionType = 31; + * @return The addhurtReactionType. + */ + int getAddhurtReactionType(); + + /** + * uint32 bulletFlyTimeMs = 32; + * @return The bulletFlyTimeMs. + */ + int getBulletFlyTimeMs(); + + /** + * uint32 attackCount = 33; + * @return The attackCount. + */ + int getAttackCount(); + + /** + * uint32 hashedAnimEventId = 34; + * @return The hashedAnimEventId. + */ + int getHashedAnimEventId(); + + /** + * uint32 attackTimestampMs = 36; + * @return The attackTimestampMs. + */ + int getAttackTimestampMs(); + + /** + * float endureDelta = 37; + * @return The endureDelta. + */ + float getEndureDelta(); + + /** + * uint32 targetType = 38; + * @return The targetType. + */ + int getTargetType(); + + /** + * float elementDurabilityAttenuation = 39; + * @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_; + /** + * uint32 attackerId = 1; + * @return The attackerId. + */ + @java.lang.Override + public int getAttackerId() { + return attackerId_; + } + + public static final int DEFENSEID_FIELD_NUMBER = 2; + private int defenseId_; + /** + * uint32 defenseId = 2; + * @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_; + /** + * string animEventId = 3; + * @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; + } + } + /** + * string animEventId = 3; + * @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_; + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @return Whether the abilityIdentifier field is set. + */ + @java.lang.Override + public boolean hasAbilityIdentifier() { + return abilityIdentifier_ != null; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @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_; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifierOrBuilder getAbilityIdentifierOrBuilder() { + return getAbilityIdentifier(); + } + + public static final int DAMAGE_FIELD_NUMBER = 6; + private float damage_; + /** + * float damage = 6; + * @return The damage. + */ + @java.lang.Override + public float getDamage() { + return damage_; + } + + public static final int ISCRIT_FIELD_NUMBER = 7; + private boolean isCrit_; + /** + * bool isCrit = 7; + * @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_; + /** + * .HitCollision hitCollision = 8; + * @return Whether the hitCollision field is set. + */ + @java.lang.Override + public boolean hasHitCollision() { + return hitCollision_ != null; + } + /** + * .HitCollision hitCollision = 8; + * @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_; + } + /** + * .HitCollision hitCollision = 8; + */ + @java.lang.Override + public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollisionOrBuilder getHitCollisionOrBuilder() { + return getHitCollision(); + } + + public static final int HITPOSTYPE_FIELD_NUMBER = 9; + private int hitPosType_; + /** + * uint32 hitPosType = 9; + * @return The hitPosType. + */ + @java.lang.Override + public int getHitPosType() { + return hitPosType_; + } + + public static final int ENDUREBREAK_FIELD_NUMBER = 10; + private int endureBreak_; + /** + * uint32 endureBreak = 10; + * @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_; + /** + * .Vector resolvedDir = 11; + * @return Whether the resolvedDir field is set. + */ + @java.lang.Override + public boolean hasResolvedDir() { + return resolvedDir_ != null; + } + /** + * .Vector resolvedDir = 11; + * @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_; + } + /** + * .Vector resolvedDir = 11; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getResolvedDirOrBuilder() { + return getResolvedDir(); + } + + public static final int HITRETREATANGLECOMPAT_FIELD_NUMBER = 12; + private int hitRetreatAngleCompat_; + /** + * int32 hitRetreatAngleCompat = 12; + * @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_; + /** + * .AttackHitEffectResult hitEffResult = 13; + * @return Whether the hitEffResult field is set. + */ + @java.lang.Override + public boolean hasHitEffResult() { + return hitEffResult_ != null; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + * @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_; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResultOrBuilder getHitEffResultOrBuilder() { + return getHitEffResult(); + } + + public static final int ELEMENTTYPE_FIELD_NUMBER = 14; + private int elementType_; + /** + * uint32 elementType = 14; + * @return The elementType. + */ + @java.lang.Override + public int getElementType() { + return elementType_; + } + + public static final int USEGADGETDAMAGEACTION_FIELD_NUMBER = 19; + private boolean useGadgetDamageAction_; + /** + * bool useGadgetDamageAction = 19; + * @return The useGadgetDamageAction. + */ + @java.lang.Override + public boolean getUseGadgetDamageAction() { + return useGadgetDamageAction_; + } + + public static final int GADGETDAMAGEACTIONIDX_FIELD_NUMBER = 20; + private int gadgetDamageActionIdx_; + /** + * uint32 gadgetDamageActionIdx = 20; + * @return The gadgetDamageActionIdx. + */ + @java.lang.Override + public int getGadgetDamageActionIdx() { + return gadgetDamageActionIdx_; + } + + public static final int ISRESISTTEXT_FIELD_NUMBER = 22; + private boolean isResistText_; + /** + * bool isResistText = 22; + * @return The isResistText. + */ + @java.lang.Override + public boolean getIsResistText() { + return isResistText_; + } + + public static final int CRITICALRAND_FIELD_NUMBER = 23; + private int criticalRand_; + /** + * uint32 criticalRand = 23; + * @return The criticalRand. + */ + @java.lang.Override + public int getCriticalRand() { + return criticalRand_; + } + + public static final int ELEMENTAMPLIFYRATE_FIELD_NUMBER = 24; + private float elementAmplifyRate_; + /** + * float elementAmplifyRate = 24; + * @return The elementAmplifyRate. + */ + @java.lang.Override + public float getElementAmplifyRate() { + return elementAmplifyRate_; + } + + public static final int DAMAGESHIELD_FIELD_NUMBER = 26; + private float damageShield_; + /** + * float damageShield = 26; + * @return The damageShield. + */ + @java.lang.Override + public float getDamageShield() { + return damageShield_; + } + + public static final int MUTEELEMENTHURT_FIELD_NUMBER = 27; + private boolean muteElementHurt_; + /** + * bool muteElementHurt = 27; + * @return The muteElementHurt. + */ + @java.lang.Override + public boolean getMuteElementHurt() { + return muteElementHurt_; + } + + public static final int AMPLIFYREACTIONTYPE_FIELD_NUMBER = 30; + private int amplifyReactionType_; + /** + * uint32 amplifyReactionType = 30; + * @return The amplifyReactionType. + */ + @java.lang.Override + public int getAmplifyReactionType() { + return amplifyReactionType_; + } + + public static final int ADDHURTREACTIONTYPE_FIELD_NUMBER = 31; + private int addhurtReactionType_; + /** + * uint32 addhurtReactionType = 31; + * @return The addhurtReactionType. + */ + @java.lang.Override + public int getAddhurtReactionType() { + return addhurtReactionType_; + } + + public static final int BULLETFLYTIMEMS_FIELD_NUMBER = 32; + private int bulletFlyTimeMs_; + /** + * uint32 bulletFlyTimeMs = 32; + * @return The bulletFlyTimeMs. + */ + @java.lang.Override + public int getBulletFlyTimeMs() { + return bulletFlyTimeMs_; + } + + public static final int ATTACKCOUNT_FIELD_NUMBER = 33; + private int attackCount_; + /** + * uint32 attackCount = 33; + * @return The attackCount. + */ + @java.lang.Override + public int getAttackCount() { + return attackCount_; + } + + public static final int HASHEDANIMEVENTID_FIELD_NUMBER = 34; + private int hashedAnimEventId_; + /** + * uint32 hashedAnimEventId = 34; + * @return The hashedAnimEventId. + */ + @java.lang.Override + public int getHashedAnimEventId() { + return hashedAnimEventId_; + } + + public static final int ATTACKTIMESTAMPMS_FIELD_NUMBER = 36; + private int attackTimestampMs_; + /** + * uint32 attackTimestampMs = 36; + * @return The attackTimestampMs. + */ + @java.lang.Override + public int getAttackTimestampMs() { + return attackTimestampMs_; + } + + public static final int ENDUREDELTA_FIELD_NUMBER = 37; + private float endureDelta_; + /** + * float endureDelta = 37; + * @return The endureDelta. + */ + @java.lang.Override + public float getEndureDelta() { + return endureDelta_; + } + + public static final int TARGETTYPE_FIELD_NUMBER = 38; + private int targetType_; + /** + * uint32 targetType = 38; + * @return The targetType. + */ + @java.lang.Override + public int getTargetType() { + return targetType_; + } + + public static final int ELEMENTDURABILITYATTENUATION_FIELD_NUMBER = 39; + private float elementDurabilityAttenuation_; + /** + * float elementDurabilityAttenuation = 39; + * @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 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_ ; + /** + * uint32 attackerId = 1; + * @return The attackerId. + */ + @java.lang.Override + public int getAttackerId() { + return attackerId_; + } + /** + * uint32 attackerId = 1; + * @param value The attackerId to set. + * @return This builder for chaining. + */ + public Builder setAttackerId(int value) { + + attackerId_ = value; + onChanged(); + return this; + } + /** + * uint32 attackerId = 1; + * @return This builder for chaining. + */ + public Builder clearAttackerId() { + + attackerId_ = 0; + onChanged(); + return this; + } + + private int defenseId_ ; + /** + * uint32 defenseId = 2; + * @return The defenseId. + */ + @java.lang.Override + public int getDefenseId() { + return defenseId_; + } + /** + * uint32 defenseId = 2; + * @param value The defenseId to set. + * @return This builder for chaining. + */ + public Builder setDefenseId(int value) { + + defenseId_ = value; + onChanged(); + return this; + } + /** + * uint32 defenseId = 2; + * @return This builder for chaining. + */ + public Builder clearDefenseId() { + + defenseId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object animEventId_ = ""; + /** + * string animEventId = 3; + * @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; + } + } + /** + * string animEventId = 3; + * @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; + } + } + /** + * string animEventId = 3; + * @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; + } + /** + * string animEventId = 3; + * @return This builder for chaining. + */ + public Builder clearAnimEventId() { + + animEventId_ = getDefaultInstance().getAnimEventId(); + onChanged(); + return this; + } + /** + * string animEventId = 3; + * @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_; + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @return Whether the abilityIdentifier field is set. + */ + public boolean hasAbilityIdentifier() { + return abilityIdentifierBuilder_ != null || abilityIdentifier_ != null; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + * @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(); + } + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + 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; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + 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; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + 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; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + public Builder clearAbilityIdentifier() { + if (abilityIdentifierBuilder_ == null) { + abilityIdentifier_ = null; + onChanged(); + } else { + abilityIdentifier_ = null; + abilityIdentifierBuilder_ = null; + } + + return this; + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + public emu.grasscutter.net.proto.AbilityIdentifierOuterClass.AbilityIdentifier.Builder getAbilityIdentifierBuilder() { + + onChanged(); + return getAbilityIdentifierFieldBuilder().getBuilder(); + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + 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_; + } + } + /** + * .AbilityIdentifier abilityIdentifier = 4; + */ + 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_ ; + /** + * float damage = 6; + * @return The damage. + */ + @java.lang.Override + public float getDamage() { + return damage_; + } + /** + * float damage = 6; + * @param value The damage to set. + * @return This builder for chaining. + */ + public Builder setDamage(float value) { + + damage_ = value; + onChanged(); + return this; + } + /** + * float damage = 6; + * @return This builder for chaining. + */ + public Builder clearDamage() { + + damage_ = 0F; + onChanged(); + return this; + } + + private boolean isCrit_ ; + /** + * bool isCrit = 7; + * @return The isCrit. + */ + @java.lang.Override + public boolean getIsCrit() { + return isCrit_; + } + /** + * bool isCrit = 7; + * @param value The isCrit to set. + * @return This builder for chaining. + */ + public Builder setIsCrit(boolean value) { + + isCrit_ = value; + onChanged(); + return this; + } + /** + * bool isCrit = 7; + * @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_; + /** + * .HitCollision hitCollision = 8; + * @return Whether the hitCollision field is set. + */ + public boolean hasHitCollision() { + return hitCollisionBuilder_ != null || hitCollision_ != null; + } + /** + * .HitCollision hitCollision = 8; + * @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(); + } + } + /** + * .HitCollision hitCollision = 8; + */ + 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; + } + /** + * .HitCollision hitCollision = 8; + */ + 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; + } + /** + * .HitCollision hitCollision = 8; + */ + 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; + } + /** + * .HitCollision hitCollision = 8; + */ + public Builder clearHitCollision() { + if (hitCollisionBuilder_ == null) { + hitCollision_ = null; + onChanged(); + } else { + hitCollision_ = null; + hitCollisionBuilder_ = null; + } + + return this; + } + /** + * .HitCollision hitCollision = 8; + */ + public emu.grasscutter.net.proto.HitCollisionOuterClass.HitCollision.Builder getHitCollisionBuilder() { + + onChanged(); + return getHitCollisionFieldBuilder().getBuilder(); + } + /** + * .HitCollision hitCollision = 8; + */ + 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_; + } + } + /** + * .HitCollision hitCollision = 8; + */ + 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_ ; + /** + * uint32 hitPosType = 9; + * @return The hitPosType. + */ + @java.lang.Override + public int getHitPosType() { + return hitPosType_; + } + /** + * uint32 hitPosType = 9; + * @param value The hitPosType to set. + * @return This builder for chaining. + */ + public Builder setHitPosType(int value) { + + hitPosType_ = value; + onChanged(); + return this; + } + /** + * uint32 hitPosType = 9; + * @return This builder for chaining. + */ + public Builder clearHitPosType() { + + hitPosType_ = 0; + onChanged(); + return this; + } + + private int endureBreak_ ; + /** + * uint32 endureBreak = 10; + * @return The endureBreak. + */ + @java.lang.Override + public int getEndureBreak() { + return endureBreak_; + } + /** + * uint32 endureBreak = 10; + * @param value The endureBreak to set. + * @return This builder for chaining. + */ + public Builder setEndureBreak(int value) { + + endureBreak_ = value; + onChanged(); + return this; + } + /** + * uint32 endureBreak = 10; + * @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_; + /** + * .Vector resolvedDir = 11; + * @return Whether the resolvedDir field is set. + */ + public boolean hasResolvedDir() { + return resolvedDirBuilder_ != null || resolvedDir_ != null; + } + /** + * .Vector resolvedDir = 11; + * @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(); + } + } + /** + * .Vector resolvedDir = 11; + */ + 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; + } + /** + * .Vector resolvedDir = 11; + */ + 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; + } + /** + * .Vector resolvedDir = 11; + */ + 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; + } + /** + * .Vector resolvedDir = 11; + */ + public Builder clearResolvedDir() { + if (resolvedDirBuilder_ == null) { + resolvedDir_ = null; + onChanged(); + } else { + resolvedDir_ = null; + resolvedDirBuilder_ = null; + } + + return this; + } + /** + * .Vector resolvedDir = 11; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getResolvedDirBuilder() { + + onChanged(); + return getResolvedDirFieldBuilder().getBuilder(); + } + /** + * .Vector resolvedDir = 11; + */ + 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_; + } + } + /** + * .Vector resolvedDir = 11; + */ + 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_ ; + /** + * int32 hitRetreatAngleCompat = 12; + * @return The hitRetreatAngleCompat. + */ + @java.lang.Override + public int getHitRetreatAngleCompat() { + return hitRetreatAngleCompat_; + } + /** + * int32 hitRetreatAngleCompat = 12; + * @param value The hitRetreatAngleCompat to set. + * @return This builder for chaining. + */ + public Builder setHitRetreatAngleCompat(int value) { + + hitRetreatAngleCompat_ = value; + onChanged(); + return this; + } + /** + * int32 hitRetreatAngleCompat = 12; + * @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_; + /** + * .AttackHitEffectResult hitEffResult = 13; + * @return Whether the hitEffResult field is set. + */ + public boolean hasHitEffResult() { + return hitEffResultBuilder_ != null || hitEffResult_ != null; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + * @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(); + } + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + 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; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + 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; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + 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; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + public Builder clearHitEffResult() { + if (hitEffResultBuilder_ == null) { + hitEffResult_ = null; + onChanged(); + } else { + hitEffResult_ = null; + hitEffResultBuilder_ = null; + } + + return this; + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + public emu.grasscutter.net.proto.AttackHitEffectResultOuterClass.AttackHitEffectResult.Builder getHitEffResultBuilder() { + + onChanged(); + return getHitEffResultFieldBuilder().getBuilder(); + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + 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_; + } + } + /** + * .AttackHitEffectResult hitEffResult = 13; + */ + 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_ ; + /** + * uint32 elementType = 14; + * @return The elementType. + */ + @java.lang.Override + public int getElementType() { + return elementType_; + } + /** + * uint32 elementType = 14; + * @param value The elementType to set. + * @return This builder for chaining. + */ + public Builder setElementType(int value) { + + elementType_ = value; + onChanged(); + return this; + } + /** + * uint32 elementType = 14; + * @return This builder for chaining. + */ + public Builder clearElementType() { + + elementType_ = 0; + onChanged(); + return this; + } + + private boolean useGadgetDamageAction_ ; + /** + * bool useGadgetDamageAction = 19; + * @return The useGadgetDamageAction. + */ + @java.lang.Override + public boolean getUseGadgetDamageAction() { + return useGadgetDamageAction_; + } + /** + * bool useGadgetDamageAction = 19; + * @param value The useGadgetDamageAction to set. + * @return This builder for chaining. + */ + public Builder setUseGadgetDamageAction(boolean value) { + + useGadgetDamageAction_ = value; + onChanged(); + return this; + } + /** + * bool useGadgetDamageAction = 19; + * @return This builder for chaining. + */ + public Builder clearUseGadgetDamageAction() { + + useGadgetDamageAction_ = false; + onChanged(); + return this; + } + + private int gadgetDamageActionIdx_ ; + /** + * uint32 gadgetDamageActionIdx = 20; + * @return The gadgetDamageActionIdx. + */ + @java.lang.Override + public int getGadgetDamageActionIdx() { + return gadgetDamageActionIdx_; + } + /** + * uint32 gadgetDamageActionIdx = 20; + * @param value The gadgetDamageActionIdx to set. + * @return This builder for chaining. + */ + public Builder setGadgetDamageActionIdx(int value) { + + gadgetDamageActionIdx_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetDamageActionIdx = 20; + * @return This builder for chaining. + */ + public Builder clearGadgetDamageActionIdx() { + + gadgetDamageActionIdx_ = 0; + onChanged(); + return this; + } + + private boolean isResistText_ ; + /** + * bool isResistText = 22; + * @return The isResistText. + */ + @java.lang.Override + public boolean getIsResistText() { + return isResistText_; + } + /** + * bool isResistText = 22; + * @param value The isResistText to set. + * @return This builder for chaining. + */ + public Builder setIsResistText(boolean value) { + + isResistText_ = value; + onChanged(); + return this; + } + /** + * bool isResistText = 22; + * @return This builder for chaining. + */ + public Builder clearIsResistText() { + + isResistText_ = false; + onChanged(); + return this; + } + + private int criticalRand_ ; + /** + * uint32 criticalRand = 23; + * @return The criticalRand. + */ + @java.lang.Override + public int getCriticalRand() { + return criticalRand_; + } + /** + * uint32 criticalRand = 23; + * @param value The criticalRand to set. + * @return This builder for chaining. + */ + public Builder setCriticalRand(int value) { + + criticalRand_ = value; + onChanged(); + return this; + } + /** + * uint32 criticalRand = 23; + * @return This builder for chaining. + */ + public Builder clearCriticalRand() { + + criticalRand_ = 0; + onChanged(); + return this; + } + + private float elementAmplifyRate_ ; + /** + * float elementAmplifyRate = 24; + * @return The elementAmplifyRate. + */ + @java.lang.Override + public float getElementAmplifyRate() { + return elementAmplifyRate_; + } + /** + * float elementAmplifyRate = 24; + * @param value The elementAmplifyRate to set. + * @return This builder for chaining. + */ + public Builder setElementAmplifyRate(float value) { + + elementAmplifyRate_ = value; + onChanged(); + return this; + } + /** + * float elementAmplifyRate = 24; + * @return This builder for chaining. + */ + public Builder clearElementAmplifyRate() { + + elementAmplifyRate_ = 0F; + onChanged(); + return this; + } + + private float damageShield_ ; + /** + * float damageShield = 26; + * @return The damageShield. + */ + @java.lang.Override + public float getDamageShield() { + return damageShield_; + } + /** + * float damageShield = 26; + * @param value The damageShield to set. + * @return This builder for chaining. + */ + public Builder setDamageShield(float value) { + + damageShield_ = value; + onChanged(); + return this; + } + /** + * float damageShield = 26; + * @return This builder for chaining. + */ + public Builder clearDamageShield() { + + damageShield_ = 0F; + onChanged(); + return this; + } + + private boolean muteElementHurt_ ; + /** + * bool muteElementHurt = 27; + * @return The muteElementHurt. + */ + @java.lang.Override + public boolean getMuteElementHurt() { + return muteElementHurt_; + } + /** + * bool muteElementHurt = 27; + * @param value The muteElementHurt to set. + * @return This builder for chaining. + */ + public Builder setMuteElementHurt(boolean value) { + + muteElementHurt_ = value; + onChanged(); + return this; + } + /** + * bool muteElementHurt = 27; + * @return This builder for chaining. + */ + public Builder clearMuteElementHurt() { + + muteElementHurt_ = false; + onChanged(); + return this; + } + + private int amplifyReactionType_ ; + /** + * uint32 amplifyReactionType = 30; + * @return The amplifyReactionType. + */ + @java.lang.Override + public int getAmplifyReactionType() { + return amplifyReactionType_; + } + /** + * uint32 amplifyReactionType = 30; + * @param value The amplifyReactionType to set. + * @return This builder for chaining. + */ + public Builder setAmplifyReactionType(int value) { + + amplifyReactionType_ = value; + onChanged(); + return this; + } + /** + * uint32 amplifyReactionType = 30; + * @return This builder for chaining. + */ + public Builder clearAmplifyReactionType() { + + amplifyReactionType_ = 0; + onChanged(); + return this; + } + + private int addhurtReactionType_ ; + /** + * uint32 addhurtReactionType = 31; + * @return The addhurtReactionType. + */ + @java.lang.Override + public int getAddhurtReactionType() { + return addhurtReactionType_; + } + /** + * uint32 addhurtReactionType = 31; + * @param value The addhurtReactionType to set. + * @return This builder for chaining. + */ + public Builder setAddhurtReactionType(int value) { + + addhurtReactionType_ = value; + onChanged(); + return this; + } + /** + * uint32 addhurtReactionType = 31; + * @return This builder for chaining. + */ + public Builder clearAddhurtReactionType() { + + addhurtReactionType_ = 0; + onChanged(); + return this; + } + + private int bulletFlyTimeMs_ ; + /** + * uint32 bulletFlyTimeMs = 32; + * @return The bulletFlyTimeMs. + */ + @java.lang.Override + public int getBulletFlyTimeMs() { + return bulletFlyTimeMs_; + } + /** + * uint32 bulletFlyTimeMs = 32; + * @param value The bulletFlyTimeMs to set. + * @return This builder for chaining. + */ + public Builder setBulletFlyTimeMs(int value) { + + bulletFlyTimeMs_ = value; + onChanged(); + return this; + } + /** + * uint32 bulletFlyTimeMs = 32; + * @return This builder for chaining. + */ + public Builder clearBulletFlyTimeMs() { + + bulletFlyTimeMs_ = 0; + onChanged(); + return this; + } + + private int attackCount_ ; + /** + * uint32 attackCount = 33; + * @return The attackCount. + */ + @java.lang.Override + public int getAttackCount() { + return attackCount_; + } + /** + * uint32 attackCount = 33; + * @param value The attackCount to set. + * @return This builder for chaining. + */ + public Builder setAttackCount(int value) { + + attackCount_ = value; + onChanged(); + return this; + } + /** + * uint32 attackCount = 33; + * @return This builder for chaining. + */ + public Builder clearAttackCount() { + + attackCount_ = 0; + onChanged(); + return this; + } + + private int hashedAnimEventId_ ; + /** + * uint32 hashedAnimEventId = 34; + * @return The hashedAnimEventId. + */ + @java.lang.Override + public int getHashedAnimEventId() { + return hashedAnimEventId_; + } + /** + * uint32 hashedAnimEventId = 34; + * @param value The hashedAnimEventId to set. + * @return This builder for chaining. + */ + public Builder setHashedAnimEventId(int value) { + + hashedAnimEventId_ = value; + onChanged(); + return this; + } + /** + * uint32 hashedAnimEventId = 34; + * @return This builder for chaining. + */ + public Builder clearHashedAnimEventId() { + + hashedAnimEventId_ = 0; + onChanged(); + return this; + } + + private int attackTimestampMs_ ; + /** + * uint32 attackTimestampMs = 36; + * @return The attackTimestampMs. + */ + @java.lang.Override + public int getAttackTimestampMs() { + return attackTimestampMs_; + } + /** + * uint32 attackTimestampMs = 36; + * @param value The attackTimestampMs to set. + * @return This builder for chaining. + */ + public Builder setAttackTimestampMs(int value) { + + attackTimestampMs_ = value; + onChanged(); + return this; + } + /** + * uint32 attackTimestampMs = 36; + * @return This builder for chaining. + */ + public Builder clearAttackTimestampMs() { + + attackTimestampMs_ = 0; + onChanged(); + return this; + } + + private float endureDelta_ ; + /** + * float endureDelta = 37; + * @return The endureDelta. + */ + @java.lang.Override + public float getEndureDelta() { + return endureDelta_; + } + /** + * float endureDelta = 37; + * @param value The endureDelta to set. + * @return This builder for chaining. + */ + public Builder setEndureDelta(float value) { + + endureDelta_ = value; + onChanged(); + return this; + } + /** + * float endureDelta = 37; + * @return This builder for chaining. + */ + public Builder clearEndureDelta() { + + endureDelta_ = 0F; + onChanged(); + return this; + } + + private int targetType_ ; + /** + * uint32 targetType = 38; + * @return The targetType. + */ + @java.lang.Override + public int getTargetType() { + return targetType_; + } + /** + * uint32 targetType = 38; + * @param value The targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetType(int value) { + + targetType_ = value; + onChanged(); + return this; + } + /** + * uint32 targetType = 38; + * @return This builder for chaining. + */ + public Builder clearTargetType() { + + targetType_ = 0; + onChanged(); + return this; + } + + private float elementDurabilityAttenuation_ ; + /** + * float elementDurabilityAttenuation = 39; + * @return The elementDurabilityAttenuation. + */ + @java.lang.Override + public float getElementDurabilityAttenuation() { + return elementDurabilityAttenuation_; + } + /** + * float elementDurabilityAttenuation = 39; + * @param value The elementDurabilityAttenuation to set. + * @return This builder for chaining. + */ + public Builder setElementDurabilityAttenuation(float value) { + + elementDurabilityAttenuation_ = value; + onChanged(); + return this; + } + /** + * float elementDurabilityAttenuation = 39; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0387ec73a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarAddNotifyOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * .AvatarInfo avatar = 1; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .AvatarInfo avatar = 1; + * @return The avatar. + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatar(); + /** + * .AvatarInfo avatar = 1; + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder(); + + /** + * bool isInTeam = 2; + * @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_; + /** + * .AvatarInfo avatar = 1; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return avatar_ != null; + } + /** + * .AvatarInfo avatar = 1; + * @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_; + } + /** + * .AvatarInfo avatar = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarOrBuilder() { + return getAvatar(); + } + + public static final int ISINTEAM_FIELD_NUMBER = 2; + private boolean isInTeam_; + /** + * bool isInTeam = 2; + * @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 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_; + /** + * .AvatarInfo avatar = 1; + * @return Whether the avatar field is set. + */ + public boolean hasAvatar() { + return avatarBuilder_ != null || avatar_ != null; + } + /** + * .AvatarInfo avatar = 1; + * @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(); + } + } + /** + * .AvatarInfo avatar = 1; + */ + 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; + } + /** + * .AvatarInfo avatar = 1; + */ + 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; + } + /** + * .AvatarInfo avatar = 1; + */ + 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; + } + /** + * .AvatarInfo avatar = 1; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + + return this; + } + /** + * .AvatarInfo avatar = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .AvatarInfo avatar = 1; + */ + 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_; + } + } + /** + * .AvatarInfo avatar = 1; + */ + 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_ ; + /** + * bool isInTeam = 2; + * @return The isInTeam. + */ + @java.lang.Override + public boolean getIsInTeam() { + return isInTeam_; + } + /** + * bool isInTeam = 2; + * @param value The isInTeam to set. + * @return This builder for chaining. + */ + public Builder setIsInTeam(boolean value) { + + isInTeam_ = value; + onChanged(); + return this; + } + /** + * bool isInTeam = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..771387849 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeNotifyOuterClass.java @@ -0,0 +1,672 @@ +// 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 { + + /** + * .SceneEntityInfo entity = 1; + * @return Whether the entity field is set. + */ + boolean hasEntity(); + /** + * .SceneEntityInfo entity = 1; + * @return The entity. + */ + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntity(); + /** + * .SceneEntityInfo entity = 1; + */ + 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_; + /** + * .SceneEntityInfo entity = 1; + * @return Whether the entity field is set. + */ + @java.lang.Override + public boolean hasEntity() { + return entity_ != null; + } + /** + * .SceneEntityInfo entity = 1; + * @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_; + } + /** + * .SceneEntityInfo entity = 1; + */ + @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 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_; + /** + * .SceneEntityInfo entity = 1; + * @return Whether the entity field is set. + */ + public boolean hasEntity() { + return entityBuilder_ != null || entity_ != null; + } + /** + * .SceneEntityInfo entity = 1; + * @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(); + } + } + /** + * .SceneEntityInfo entity = 1; + */ + 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; + } + /** + * .SceneEntityInfo entity = 1; + */ + 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; + } + /** + * .SceneEntityInfo entity = 1; + */ + 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; + } + /** + * .SceneEntityInfo entity = 1; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = null; + onChanged(); + } else { + entity_ = null; + entityBuilder_ = null; + } + + return this; + } + /** + * .SceneEntityInfo entity = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getEntityBuilder() { + + onChanged(); + return getEntityFieldBuilder().getBuilder(); + } + /** + * .SceneEntityInfo entity = 1; + */ + 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_; + } + } + /** + * .SceneEntityInfo entity = 1; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..170cf04e0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 costumeId = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int COSTUMEID_FIELD_NUMBER = 2; + private int costumeId_; + /** + * uint32 costumeId = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int costumeId_ ; + /** + * uint32 costumeId = 2; + * @return The costumeId. + */ + @java.lang.Override + public int getCostumeId() { + return costumeId_; + } + /** + * uint32 costumeId = 2; + * @param value The costumeId to set. + * @return This builder for chaining. + */ + public Builder setCostumeId(int value) { + + costumeId_ = value; + onChanged(); + return this; + } + /** + * uint32 costumeId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5b465a5b1 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarChangeCostumeRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * uint32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 costumeId = 3; + * @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_; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int COSTUMEID_FIELD_NUMBER = 3; + private int costumeId_; + /** + * uint32 costumeId = 3; + * @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 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_ ; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * uint32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * uint32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int costumeId_ ; + /** + * uint32 costumeId = 3; + * @return The costumeId. + */ + @java.lang.Override + public int getCostumeId() { + return costumeId_; + } + /** + * uint32 costumeId = 3; + * @param value The costumeId to set. + * @return This builder for chaining. + */ + public Builder setCostumeId(int value) { + + costumeId_ = value; + onChanged(); + return this; + } + /** + * uint32 costumeId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bce977f11 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarDataNotifyOuterClass.java @@ -0,0 +1,1902 @@ +// 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 { + + /** + * repeated .AvatarInfo avatarList = 1; + */ + java.util.List + getAvatarListList(); + /** + * repeated .AvatarInfo avatarList = 1; + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index); + /** + * repeated .AvatarInfo avatarList = 1; + */ + int getAvatarListCount(); + /** + * repeated .AvatarInfo avatarList = 1; + */ + java.util.List + getAvatarListOrBuilderList(); + /** + * repeated .AvatarInfo avatarList = 1; + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarListOrBuilder( + int index); + + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + int getAvatarTeamMapCount(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + boolean containsAvatarTeamMap( + int key); + /** + * Use {@link #getAvatarTeamMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAvatarTeamMap(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + java.util.Map + getAvatarTeamMapMap(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key); + + /** + * uint32 curAvatarTeamId = 3; + * @return The curAvatarTeamId. + */ + int getCurAvatarTeamId(); + + /** + * fixed64 chooseAvatarGuid = 4; + * @return The chooseAvatarGuid. + */ + long getChooseAvatarGuid(); + + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return A list containing the tempAvatarGuidList. + */ + java.util.List getTempAvatarGuidListList(); + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return The count of tempAvatarGuidList. + */ + int getTempAvatarGuidListCount(); + /** + * repeated uint64 tempAvatarGuidList = 5; + * @param index The index of the element to return. + * @return The tempAvatarGuidList at the given index. + */ + long getTempAvatarGuidList(int index); + + /** + * repeated uint32 ownedFlycloakList = 6; + * @return A list containing the ownedFlycloakList. + */ + java.util.List getOwnedFlycloakListList(); + /** + * repeated uint32 ownedFlycloakList = 6; + * @return The count of ownedFlycloakList. + */ + int getOwnedFlycloakListCount(); + /** + * repeated uint32 ownedFlycloakList = 6; + * @param index The index of the element to return. + * @return The ownedFlycloakList at the given index. + */ + int getOwnedFlycloakList(int index); + + /** + * repeated uint32 ownedCostumeList = 7; + * @return A list containing the ownedCostumeList. + */ + java.util.List getOwnedCostumeListList(); + /** + * repeated uint32 ownedCostumeList = 7; + * @return The count of ownedCostumeList. + */ + int getOwnedCostumeListCount(); + /** + * repeated uint32 ownedCostumeList = 7; + * @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(); + 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 + 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 avatarList_; + /** + * repeated .AvatarInfo avatarList = 1; + */ + @java.lang.Override + public java.util.List getAvatarListList() { + return avatarList_; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + @java.lang.Override + public java.util.List + getAvatarListOrBuilderList() { + return avatarList_; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + @java.lang.Override + public int getAvatarListCount() { + return avatarList_.size(); + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index) { + return avatarList_.get(index); + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + @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 + .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 + internalGetAvatarTeamMap() { + if (avatarTeamMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvatarTeamMapDefaultEntryHolder.defaultEntry); + } + return avatarTeamMap_; + } + + public int getAvatarTeamMapCount() { + return internalGetAvatarTeamMap().getMap().size(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + @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 getAvatarTeamMap() { + return getAvatarTeamMapMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public java.util.Map getAvatarTeamMapMap() { + return internalGetAvatarTeamMap().getMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 curAvatarTeamId = 3; + * @return The curAvatarTeamId. + */ + @java.lang.Override + public int getCurAvatarTeamId() { + return curAvatarTeamId_; + } + + public static final int CHOOSEAVATARGUID_FIELD_NUMBER = 4; + private long chooseAvatarGuid_; + /** + * fixed64 chooseAvatarGuid = 4; + * @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_; + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return A list containing the tempAvatarGuidList. + */ + @java.lang.Override + public java.util.List + getTempAvatarGuidListList() { + return tempAvatarGuidList_; + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return The count of tempAvatarGuidList. + */ + public int getTempAvatarGuidListCount() { + return tempAvatarGuidList_.size(); + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @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_; + /** + * repeated uint32 ownedFlycloakList = 6; + * @return A list containing the ownedFlycloakList. + */ + @java.lang.Override + public java.util.List + getOwnedFlycloakListList() { + return ownedFlycloakList_; + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @return The count of ownedFlycloakList. + */ + public int getOwnedFlycloakListCount() { + return ownedFlycloakList_.size(); + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @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_; + /** + * repeated uint32 ownedCostumeList = 7; + * @return A list containing the ownedCostumeList. + */ + @java.lang.Override + public java.util.List + getOwnedCostumeListList() { + return ownedCostumeList_; + } + /** + * repeated uint32 ownedCostumeList = 7; + * @return The count of ownedCostumeList. + */ + public int getOwnedCostumeListCount() { + return ownedCostumeList_.size(); + } + /** + * repeated uint32 ownedCostumeList = 7; + * @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 entry + : internalGetAvatarTeamMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 avatarList_ = + java.util.Collections.emptyList(); + private void ensureAvatarListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatarList_ = new java.util.ArrayList(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_; + + /** + * repeated .AvatarInfo avatarList = 1; + */ + public java.util.List getAvatarListList() { + if (avatarListBuilder_ == null) { + return java.util.Collections.unmodifiableList(avatarList_); + } else { + return avatarListBuilder_.getMessageList(); + } + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public int getAvatarListCount() { + if (avatarListBuilder_ == null) { + return avatarList_.size(); + } else { + return avatarListBuilder_.getCount(); + } + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarList(int index) { + if (avatarListBuilder_ == null) { + return avatarList_.get(index); + } else { + return avatarListBuilder_.getMessage(index); + } + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + 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; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public Builder addAllAvatarList( + java.lang.Iterable values) { + if (avatarListBuilder_ == null) { + ensureAvatarListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarList_); + onChanged(); + } else { + avatarListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public Builder clearAvatarList() { + if (avatarListBuilder_ == null) { + avatarList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + avatarListBuilder_.clear(); + } + return this; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public Builder removeAvatarList(int index) { + if (avatarListBuilder_ == null) { + ensureAvatarListIsMutable(); + avatarList_.remove(index); + onChanged(); + } else { + avatarListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarListBuilder( + int index) { + return getAvatarListFieldBuilder().getBuilder(index); + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarListOrBuilder( + int index) { + if (avatarListBuilder_ == null) { + return avatarList_.get(index); } else { + return avatarListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public java.util.List + getAvatarListOrBuilderList() { + if (avatarListBuilder_ != null) { + return avatarListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(avatarList_); + } + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder addAvatarListBuilder() { + return getAvatarListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance()); + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder addAvatarListBuilder( + int index) { + return getAvatarListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.getDefaultInstance()); + } + /** + * repeated .AvatarInfo avatarList = 1; + */ + public java.util.List + 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 + internalGetAvatarTeamMap() { + if (avatarTeamMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvatarTeamMapDefaultEntryHolder.defaultEntry); + } + return avatarTeamMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + @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 getAvatarTeamMap() { + return getAvatarTeamMapMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public java.util.Map getAvatarTeamMapMap() { + return internalGetAvatarTeamMap().getMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAvatarTeamMap() { + internalGetMutableAvatarTeamMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + public Builder removeAvatarTeamMap( + int key) { + + internalGetMutableAvatarTeamMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAvatarTeamMap() { + return internalGetMutableAvatarTeamMap().getMutableMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + 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; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 2; + */ + + public Builder putAllAvatarTeamMap( + java.util.Map values) { + internalGetMutableAvatarTeamMap().getMutableMap() + .putAll(values); + return this; + } + + private int curAvatarTeamId_ ; + /** + * uint32 curAvatarTeamId = 3; + * @return The curAvatarTeamId. + */ + @java.lang.Override + public int getCurAvatarTeamId() { + return curAvatarTeamId_; + } + /** + * uint32 curAvatarTeamId = 3; + * @param value The curAvatarTeamId to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarTeamId(int value) { + + curAvatarTeamId_ = value; + onChanged(); + return this; + } + /** + * uint32 curAvatarTeamId = 3; + * @return This builder for chaining. + */ + public Builder clearCurAvatarTeamId() { + + curAvatarTeamId_ = 0; + onChanged(); + return this; + } + + private long chooseAvatarGuid_ ; + /** + * fixed64 chooseAvatarGuid = 4; + * @return The chooseAvatarGuid. + */ + @java.lang.Override + public long getChooseAvatarGuid() { + return chooseAvatarGuid_; + } + /** + * fixed64 chooseAvatarGuid = 4; + * @param value The chooseAvatarGuid to set. + * @return This builder for chaining. + */ + public Builder setChooseAvatarGuid(long value) { + + chooseAvatarGuid_ = value; + onChanged(); + return this; + } + /** + * fixed64 chooseAvatarGuid = 4; + * @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; + } + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return A list containing the tempAvatarGuidList. + */ + public java.util.List + getTempAvatarGuidListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_; + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @return The count of tempAvatarGuidList. + */ + public int getTempAvatarGuidListCount() { + return tempAvatarGuidList_.size(); + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @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); + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @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; + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @param value The tempAvatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addTempAvatarGuidList(long value) { + ensureTempAvatarGuidListIsMutable(); + tempAvatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @param values The tempAvatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllTempAvatarGuidList( + java.lang.Iterable values) { + ensureTempAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tempAvatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 tempAvatarGuidList = 5; + * @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; + } + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @return A list containing the ownedFlycloakList. + */ + public java.util.List + getOwnedFlycloakListList() { + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(ownedFlycloakList_) : ownedFlycloakList_; + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @return The count of ownedFlycloakList. + */ + public int getOwnedFlycloakListCount() { + return ownedFlycloakList_.size(); + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @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); + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @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; + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @param value The ownedFlycloakList to add. + * @return This builder for chaining. + */ + public Builder addOwnedFlycloakList(int value) { + ensureOwnedFlycloakListIsMutable(); + ownedFlycloakList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @param values The ownedFlycloakList to add. + * @return This builder for chaining. + */ + public Builder addAllOwnedFlycloakList( + java.lang.Iterable values) { + ensureOwnedFlycloakListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ownedFlycloakList_); + onChanged(); + return this; + } + /** + * repeated uint32 ownedFlycloakList = 6; + * @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; + } + } + /** + * repeated uint32 ownedCostumeList = 7; + * @return A list containing the ownedCostumeList. + */ + public java.util.List + getOwnedCostumeListList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(ownedCostumeList_) : ownedCostumeList_; + } + /** + * repeated uint32 ownedCostumeList = 7; + * @return The count of ownedCostumeList. + */ + public int getOwnedCostumeListCount() { + return ownedCostumeList_.size(); + } + /** + * repeated uint32 ownedCostumeList = 7; + * @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); + } + /** + * repeated uint32 ownedCostumeList = 7; + * @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; + } + /** + * repeated uint32 ownedCostumeList = 7; + * @param value The ownedCostumeList to add. + * @return This builder for chaining. + */ + public Builder addOwnedCostumeList(int value) { + ensureOwnedCostumeListIsMutable(); + ownedCostumeList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 ownedCostumeList = 7; + * @param values The ownedCostumeList to add. + * @return This builder for chaining. + */ + public Builder addAllOwnedCostumeList( + java.lang.Iterable values) { + ensureOwnedCostumeListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ownedCostumeList_); + onChanged(); + return this; + } + /** + * repeated uint32 ownedCostumeList = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4f98ddd00 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndReqOuterClass.java @@ -0,0 +1,814 @@ +// 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 { + + /** + * uint64 dieGuid = 1; + * @return The dieGuid. + */ + long getDieGuid(); + + /** + * uint32 skillId = 2; + * @return The skillId. + */ + int getSkillId(); + + /** + * .Vector rebornPos = 3; + * @return Whether the rebornPos field is set. + */ + boolean hasRebornPos(); + /** + * .Vector rebornPos = 3; + * @return The rebornPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getRebornPos(); + /** + * .Vector rebornPos = 3; + */ + 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_; + /** + * uint64 dieGuid = 1; + * @return The dieGuid. + */ + @java.lang.Override + public long getDieGuid() { + return dieGuid_; + } + + public static final int SKILLID_FIELD_NUMBER = 2; + private int skillId_; + /** + * uint32 skillId = 2; + * @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_; + /** + * .Vector rebornPos = 3; + * @return Whether the rebornPos field is set. + */ + @java.lang.Override + public boolean hasRebornPos() { + return rebornPos_ != null; + } + /** + * .Vector rebornPos = 3; + * @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_; + } + /** + * .Vector rebornPos = 3; + */ + @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 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_ ; + /** + * uint64 dieGuid = 1; + * @return The dieGuid. + */ + @java.lang.Override + public long getDieGuid() { + return dieGuid_; + } + /** + * uint64 dieGuid = 1; + * @param value The dieGuid to set. + * @return This builder for chaining. + */ + public Builder setDieGuid(long value) { + + dieGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 dieGuid = 1; + * @return This builder for chaining. + */ + public Builder clearDieGuid() { + + dieGuid_ = 0L; + onChanged(); + return this; + } + + private int skillId_ ; + /** + * uint32 skillId = 2; + * @return The skillId. + */ + @java.lang.Override + public int getSkillId() { + return skillId_; + } + /** + * uint32 skillId = 2; + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(int value) { + + skillId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillId = 2; + * @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_; + /** + * .Vector rebornPos = 3; + * @return Whether the rebornPos field is set. + */ + public boolean hasRebornPos() { + return rebornPosBuilder_ != null || rebornPos_ != null; + } + /** + * .Vector rebornPos = 3; + * @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(); + } + } + /** + * .Vector rebornPos = 3; + */ + 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; + } + /** + * .Vector rebornPos = 3; + */ + 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; + } + /** + * .Vector rebornPos = 3; + */ + 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; + } + /** + * .Vector rebornPos = 3; + */ + public Builder clearRebornPos() { + if (rebornPosBuilder_ == null) { + rebornPos_ = null; + onChanged(); + } else { + rebornPos_ = null; + rebornPosBuilder_ = null; + } + + return this; + } + /** + * .Vector rebornPos = 3; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRebornPosBuilder() { + + onChanged(); + return getRebornPosFieldBuilder().getBuilder(); + } + /** + * .Vector rebornPos = 3; + */ + 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_; + } + } + /** + * .Vector rebornPos = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d34573dd0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarDieAnimationEndRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 dieGuid = 2; + * @return The dieGuid. + */ + long getDieGuid(); + + /** + * uint32 skillId = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int DIEGUID_FIELD_NUMBER = 2; + private long dieGuid_; + /** + * uint64 dieGuid = 2; + * @return The dieGuid. + */ + @java.lang.Override + public long getDieGuid() { + return dieGuid_; + } + + public static final int SKILLID_FIELD_NUMBER = 3; + private int skillId_; + /** + * uint32 skillId = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long dieGuid_ ; + /** + * uint64 dieGuid = 2; + * @return The dieGuid. + */ + @java.lang.Override + public long getDieGuid() { + return dieGuid_; + } + /** + * uint64 dieGuid = 2; + * @param value The dieGuid to set. + * @return This builder for chaining. + */ + public Builder setDieGuid(long value) { + + dieGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 dieGuid = 2; + * @return This builder for chaining. + */ + public Builder clearDieGuid() { + + dieGuid_ = 0L; + onChanged(); + return this; + } + + private int skillId_ ; + /** + * uint32 skillId = 3; + * @return The skillId. + */ + @java.lang.Override + public int getSkillId() { + return skillId_; + } + /** + * uint32 skillId = 3; + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(int value) { + + skillId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..da34654bd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarEnterSceneInfoOuterClass.java @@ -0,0 +1,1734 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 avatarEntityId = 2; + * @return The avatarEntityId. + */ + int getAvatarEntityId(); + + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @return Whether the avatarAbilityInfo field is set. + */ + boolean hasAvatarAbilityInfo(); + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @return The avatarAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo(); + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder(); + + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + java.util.List getBuffIdListList(); + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + int getBuffIdListCount(); + /** + * repeated uint32 buffIdList = 4; + * @param index The index of the element to return. + * @return The buffIdList at the given index. + */ + int getBuffIdList(int index); + + /** + * uint64 weaponGuid = 5; + * @return The weaponGuid. + */ + long getWeaponGuid(); + + /** + * uint32 weaponEntityId = 6; + * @return The weaponEntityId. + */ + int getWeaponEntityId(); + + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @return Whether the weaponAbilityInfo field is set. + */ + boolean hasWeaponAbilityInfo(); + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @return The weaponAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo(); + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder(); + + /** + * repeated .ServerBuff serverBuffList = 8; + */ + java.util.List + getServerBuffListList(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + int getServerBuffListCount(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + java.util.List + getServerBuffListOrBuilderList(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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(); + 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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int AVATARENTITYID_FIELD_NUMBER = 2; + private int avatarEntityId_; + /** + * uint32 avatarEntityId = 2; + * @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_; + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @return Whether the avatarAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasAvatarAbilityInfo() { + return avatarAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @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_; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + @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_; + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + @java.lang.Override + public java.util.List + getBuffIdListList() { + return buffIdList_; + } + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + public int getBuffIdListCount() { + return buffIdList_.size(); + } + /** + * repeated uint32 buffIdList = 4; + * @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_; + /** + * uint64 weaponGuid = 5; + * @return The weaponGuid. + */ + @java.lang.Override + public long getWeaponGuid() { + return weaponGuid_; + } + + public static final int WEAPONENTITYID_FIELD_NUMBER = 6; + private int weaponEntityId_; + /** + * uint32 weaponEntityId = 6; + * @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_; + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @return Whether the weaponAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasWeaponAbilityInfo() { + return weaponAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @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_; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + @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 serverBuffList_; + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public java.util.List getServerBuffListList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public java.util.List + getServerBuffListOrBuilderList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public int getServerBuffListCount() { + return serverBuffList_.size(); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + return serverBuffList_.get(index); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int avatarEntityId_ ; + /** + * uint32 avatarEntityId = 2; + * @return The avatarEntityId. + */ + @java.lang.Override + public int getAvatarEntityId() { + return avatarEntityId_; + } + /** + * uint32 avatarEntityId = 2; + * @param value The avatarEntityId to set. + * @return This builder for chaining. + */ + public Builder setAvatarEntityId(int value) { + + avatarEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarEntityId = 2; + * @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_; + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @return Whether the avatarAbilityInfo field is set. + */ + public boolean hasAvatarAbilityInfo() { + return avatarAbilityInfoBuilder_ != null || avatarAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + * @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(); + } + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + public Builder clearAvatarAbilityInfo() { + if (avatarAbilityInfoBuilder_ == null) { + avatarAbilityInfo_ = null; + onChanged(); + } else { + avatarAbilityInfo_ = null; + avatarAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAvatarAbilityInfoBuilder() { + + onChanged(); + return getAvatarAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 3; + */ + 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; + } + } + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + public java.util.List + getBuffIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(buffIdList_) : buffIdList_; + } + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + public int getBuffIdListCount() { + return buffIdList_.size(); + } + /** + * repeated uint32 buffIdList = 4; + * @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); + } + /** + * repeated uint32 buffIdList = 4; + * @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; + } + /** + * repeated uint32 buffIdList = 4; + * @param value The buffIdList to add. + * @return This builder for chaining. + */ + public Builder addBuffIdList(int value) { + ensureBuffIdListIsMutable(); + buffIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 buffIdList = 4; + * @param values The buffIdList to add. + * @return This builder for chaining. + */ + public Builder addAllBuffIdList( + java.lang.Iterable values) { + ensureBuffIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buffIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 buffIdList = 4; + * @return This builder for chaining. + */ + public Builder clearBuffIdList() { + buffIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long weaponGuid_ ; + /** + * uint64 weaponGuid = 5; + * @return The weaponGuid. + */ + @java.lang.Override + public long getWeaponGuid() { + return weaponGuid_; + } + /** + * uint64 weaponGuid = 5; + * @param value The weaponGuid to set. + * @return This builder for chaining. + */ + public Builder setWeaponGuid(long value) { + + weaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 weaponGuid = 5; + * @return This builder for chaining. + */ + public Builder clearWeaponGuid() { + + weaponGuid_ = 0L; + onChanged(); + return this; + } + + private int weaponEntityId_ ; + /** + * uint32 weaponEntityId = 6; + * @return The weaponEntityId. + */ + @java.lang.Override + public int getWeaponEntityId() { + return weaponEntityId_; + } + /** + * uint32 weaponEntityId = 6; + * @param value The weaponEntityId to set. + * @return This builder for chaining. + */ + public Builder setWeaponEntityId(int value) { + + weaponEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 weaponEntityId = 6; + * @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_; + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @return Whether the weaponAbilityInfo field is set. + */ + public boolean hasWeaponAbilityInfo() { + return weaponAbilityInfoBuilder_ != null || weaponAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + * @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(); + } + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + public Builder clearWeaponAbilityInfo() { + if (weaponAbilityInfoBuilder_ == null) { + weaponAbilityInfo_ = null; + onChanged(); + } else { + weaponAbilityInfo_ = null; + weaponAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getWeaponAbilityInfoBuilder() { + + onChanged(); + return getWeaponAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 7; + */ + 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 serverBuffList_ = + java.util.Collections.emptyList(); + private void ensureServerBuffListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + serverBuffList_ = new java.util.ArrayList(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_; + + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List getServerBuffListList() { + if (serverBuffListBuilder_ == null) { + return java.util.Collections.unmodifiableList(serverBuffList_); + } else { + return serverBuffListBuilder_.getMessageList(); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public int getServerBuffListCount() { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.size(); + } else { + return serverBuffListBuilder_.getCount(); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); + } else { + return serverBuffListBuilder_.getMessage(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder addAllServerBuffList( + java.lang.Iterable values) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverBuffList_); + onChanged(); + } else { + serverBuffListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder clearServerBuffList() { + if (serverBuffListBuilder_ == null) { + serverBuffList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + serverBuffListBuilder_.clear(); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder removeServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + serverBuffList_.remove(index); + onChanged(); + } else { + serverBuffListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().getBuilder(index); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( + int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); } else { + return serverBuffListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List + getServerBuffListOrBuilderList() { + if (serverBuffListBuilder_ != null) { + return serverBuffListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serverBuffList_); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { + return getServerBuffListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0b9374071 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarEquipAffixInfoOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 equipAffixId = 1; + * @return The equipAffixId. + */ + int getEquipAffixId(); + + /** + * uint32 leftCdTime = 2; + * @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_; + /** + * uint32 equipAffixId = 1; + * @return The equipAffixId. + */ + @java.lang.Override + public int getEquipAffixId() { + return equipAffixId_; + } + + public static final int LEFTCDTIME_FIELD_NUMBER = 2; + private int leftCdTime_; + /** + * uint32 leftCdTime = 2; + * @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 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_ ; + /** + * uint32 equipAffixId = 1; + * @return The equipAffixId. + */ + @java.lang.Override + public int getEquipAffixId() { + return equipAffixId_; + } + /** + * uint32 equipAffixId = 1; + * @param value The equipAffixId to set. + * @return This builder for chaining. + */ + public Builder setEquipAffixId(int value) { + + equipAffixId_ = value; + onChanged(); + return this; + } + /** + * uint32 equipAffixId = 1; + * @return This builder for chaining. + */ + public Builder clearEquipAffixId() { + + equipAffixId_ = 0; + onChanged(); + return this; + } + + private int leftCdTime_ ; + /** + * uint32 leftCdTime = 2; + * @return The leftCdTime. + */ + @java.lang.Override + public int getLeftCdTime() { + return leftCdTime_; + } + /** + * uint32 leftCdTime = 2; + * @param value The leftCdTime to set. + * @return This builder for chaining. + */ + public Builder setLeftCdTime(int value) { + + leftCdTime_ = value; + onChanged(); + return this; + } + /** + * uint32 leftCdTime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4ab0fab5e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarEquipChangeNotifyOuterClass.java @@ -0,0 +1,1163 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 equipType = 2; + * @return The equipType. + */ + int getEquipType(); + + /** + * uint32 itemId = 3; + * @return The itemId. + */ + int getItemId(); + + /** + * uint64 equipGuid = 4; + * @return The equipGuid. + */ + long getEquipGuid(); + + /** + * .SceneWeaponInfo weapon = 5; + * @return Whether the weapon field is set. + */ + boolean hasWeapon(); + /** + * .SceneWeaponInfo weapon = 5; + * @return The weapon. + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon(); + /** + * .SceneWeaponInfo weapon = 5; + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder(); + + /** + * .SceneReliquaryInfo reliquary = 6; + * @return Whether the reliquary field is set. + */ + boolean hasReliquary(); + /** + * .SceneReliquaryInfo reliquary = 6; + * @return The reliquary. + */ + emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquary(); + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int EQUIPTYPE_FIELD_NUMBER = 2; + private int equipType_; + /** + * uint32 equipType = 2; + * @return The equipType. + */ + @java.lang.Override + public int getEquipType() { + return equipType_; + } + + public static final int ITEMID_FIELD_NUMBER = 3; + private int itemId_; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int EQUIPGUID_FIELD_NUMBER = 4; + private long equipGuid_; + /** + * uint64 equipGuid = 4; + * @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_; + /** + * .SceneWeaponInfo weapon = 5; + * @return Whether the weapon field is set. + */ + @java.lang.Override + public boolean hasWeapon() { + return weapon_ != null; + } + /** + * .SceneWeaponInfo weapon = 5; + * @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_; + } + /** + * .SceneWeaponInfo weapon = 5; + */ + @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_; + /** + * .SceneReliquaryInfo reliquary = 6; + * @return Whether the reliquary field is set. + */ + @java.lang.Override + public boolean hasReliquary() { + return reliquary_ != null; + } + /** + * .SceneReliquaryInfo reliquary = 6; + * @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_; + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int equipType_ ; + /** + * uint32 equipType = 2; + * @return The equipType. + */ + @java.lang.Override + public int getEquipType() { + return equipType_; + } + /** + * uint32 equipType = 2; + * @param value The equipType to set. + * @return This builder for chaining. + */ + public Builder setEquipType(int value) { + + equipType_ = value; + onChanged(); + return this; + } + /** + * uint32 equipType = 2; + * @return This builder for chaining. + */ + public Builder clearEquipType() { + + equipType_ = 0; + onChanged(); + return this; + } + + private int itemId_ ; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 3; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 3; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private long equipGuid_ ; + /** + * uint64 equipGuid = 4; + * @return The equipGuid. + */ + @java.lang.Override + public long getEquipGuid() { + return equipGuid_; + } + /** + * uint64 equipGuid = 4; + * @param value The equipGuid to set. + * @return This builder for chaining. + */ + public Builder setEquipGuid(long value) { + + equipGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 equipGuid = 4; + * @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_; + /** + * .SceneWeaponInfo weapon = 5; + * @return Whether the weapon field is set. + */ + public boolean hasWeapon() { + return weaponBuilder_ != null || weapon_ != null; + } + /** + * .SceneWeaponInfo weapon = 5; + * @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(); + } + } + /** + * .SceneWeaponInfo weapon = 5; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 5; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 5; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 5; + */ + public Builder clearWeapon() { + if (weaponBuilder_ == null) { + weapon_ = null; + onChanged(); + } else { + weapon_ = null; + weaponBuilder_ = null; + } + + return this; + } + /** + * .SceneWeaponInfo weapon = 5; + */ + public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponBuilder() { + + onChanged(); + return getWeaponFieldBuilder().getBuilder(); + } + /** + * .SceneWeaponInfo weapon = 5; + */ + 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_; + } + } + /** + * .SceneWeaponInfo weapon = 5; + */ + 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_; + /** + * .SceneReliquaryInfo reliquary = 6; + * @return Whether the reliquary field is set. + */ + public boolean hasReliquary() { + return reliquaryBuilder_ != null || reliquary_ != null; + } + /** + * .SceneReliquaryInfo reliquary = 6; + * @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(); + } + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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; + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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; + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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; + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + public Builder clearReliquary() { + if (reliquaryBuilder_ == null) { + reliquary_ = null; + onChanged(); + } else { + reliquary_ = null; + reliquaryBuilder_ = null; + } + + return this; + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder getReliquaryBuilder() { + + onChanged(); + return getReliquaryFieldBuilder().getBuilder(); + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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_; + } + } + /** + * .SceneReliquaryInfo reliquary = 6; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..29f6a3b19 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarExpeditionStateOuterClass.java @@ -0,0 +1,166 @@ +// 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 { + /** + * AvatarExpeditionNone = 0; + */ + AvatarExpeditionNone(0), + /** + * AvatarExpeditionDoing = 1; + */ + AvatarExpeditionDoing(1), + /** + * AvatarExpeditionFinishWaitReward = 2; + */ + AvatarExpeditionFinishWaitReward(2), + /** + * AvatarExpeditionCallbackWaitReward = 3; + */ + AvatarExpeditionCallbackWaitReward(3), + UNRECOGNIZED(-1), + ; + + /** + * AvatarExpeditionNone = 0; + */ + public static final int AvatarExpeditionNone_VALUE = 0; + /** + * AvatarExpeditionDoing = 1; + */ + public static final int AvatarExpeditionDoing_VALUE = 1; + /** + * AvatarExpeditionFinishWaitReward = 2; + */ + public static final int AvatarExpeditionFinishWaitReward_VALUE = 2; + /** + * AvatarExpeditionCallbackWaitReward = 3; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AvatarExpeditionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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/AvatarFetterInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFetterInfoOuterClass.java new file mode 100644 index 000000000..e02b54752 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarFetterInfoOuterClass.java @@ -0,0 +1,1567 @@ +// 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 { + + /** + * uint32 expNumber = 1; + * @return The expNumber. + */ + int getExpNumber(); + + /** + * uint32 expLevel = 2; + * @return The expLevel. + */ + int getExpLevel(); + + /** + * repeated uint32 openIdList = 3; + * @return A list containing the openIdList. + */ + java.util.List getOpenIdListList(); + /** + * repeated uint32 openIdList = 3; + * @return The count of openIdList. + */ + int getOpenIdListCount(); + /** + * repeated uint32 openIdList = 3; + * @param index The index of the element to return. + * @return The openIdList at the given index. + */ + int getOpenIdList(int index); + + /** + * repeated uint32 finishIdList = 4; + * @return A list containing the finishIdList. + */ + java.util.List getFinishIdListList(); + /** + * repeated uint32 finishIdList = 4; + * @return The count of finishIdList. + */ + int getFinishIdListCount(); + /** + * repeated uint32 finishIdList = 4; + * @param index The index of the element to return. + * @return The finishIdList at the given index. + */ + int getFinishIdList(int index); + + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return A list containing the rewardedFetterLevelList. + */ + java.util.List getRewardedFetterLevelListList(); + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return The count of rewardedFetterLevelList. + */ + int getRewardedFetterLevelListCount(); + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @param index The index of the element to return. + * @return The rewardedFetterLevelList at the given index. + */ + int getRewardedFetterLevelList(int index); + + /** + * repeated .FetterData fetterList = 6; + */ + java.util.List + getFetterListList(); + /** + * repeated .FetterData fetterList = 6; + */ + emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index); + /** + * repeated .FetterData fetterList = 6; + */ + int getFetterListCount(); + /** + * repeated .FetterData fetterList = 6; + */ + java.util.List + getFetterListOrBuilderList(); + /** + * repeated .FetterData fetterList = 6; + */ + 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(); + 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_; + /** + * uint32 expNumber = 1; + * @return The expNumber. + */ + @java.lang.Override + public int getExpNumber() { + return expNumber_; + } + + public static final int EXPLEVEL_FIELD_NUMBER = 2; + private int expLevel_; + /** + * uint32 expLevel = 2; + * @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_; + /** + * repeated uint32 openIdList = 3; + * @return A list containing the openIdList. + */ + @java.lang.Override + public java.util.List + getOpenIdListList() { + return openIdList_; + } + /** + * repeated uint32 openIdList = 3; + * @return The count of openIdList. + */ + public int getOpenIdListCount() { + return openIdList_.size(); + } + /** + * repeated uint32 openIdList = 3; + * @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_; + /** + * repeated uint32 finishIdList = 4; + * @return A list containing the finishIdList. + */ + @java.lang.Override + public java.util.List + getFinishIdListList() { + return finishIdList_; + } + /** + * repeated uint32 finishIdList = 4; + * @return The count of finishIdList. + */ + public int getFinishIdListCount() { + return finishIdList_.size(); + } + /** + * repeated uint32 finishIdList = 4; + * @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_; + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return A list containing the rewardedFetterLevelList. + */ + @java.lang.Override + public java.util.List + getRewardedFetterLevelListList() { + return rewardedFetterLevelList_; + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return The count of rewardedFetterLevelList. + */ + public int getRewardedFetterLevelListCount() { + return rewardedFetterLevelList_.size(); + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @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 fetterList_; + /** + * repeated .FetterData fetterList = 6; + */ + @java.lang.Override + public java.util.List getFetterListList() { + return fetterList_; + } + /** + * repeated .FetterData fetterList = 6; + */ + @java.lang.Override + public java.util.List + getFetterListOrBuilderList() { + return fetterList_; + } + /** + * repeated .FetterData fetterList = 6; + */ + @java.lang.Override + public int getFetterListCount() { + return fetterList_.size(); + } + /** + * repeated .FetterData fetterList = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index) { + return fetterList_.get(index); + } + /** + * repeated .FetterData fetterList = 6; + */ + @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 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_ ; + /** + * uint32 expNumber = 1; + * @return The expNumber. + */ + @java.lang.Override + public int getExpNumber() { + return expNumber_; + } + /** + * uint32 expNumber = 1; + * @param value The expNumber to set. + * @return This builder for chaining. + */ + public Builder setExpNumber(int value) { + + expNumber_ = value; + onChanged(); + return this; + } + /** + * uint32 expNumber = 1; + * @return This builder for chaining. + */ + public Builder clearExpNumber() { + + expNumber_ = 0; + onChanged(); + return this; + } + + private int expLevel_ ; + /** + * uint32 expLevel = 2; + * @return The expLevel. + */ + @java.lang.Override + public int getExpLevel() { + return expLevel_; + } + /** + * uint32 expLevel = 2; + * @param value The expLevel to set. + * @return This builder for chaining. + */ + public Builder setExpLevel(int value) { + + expLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 expLevel = 2; + * @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; + } + } + /** + * repeated uint32 openIdList = 3; + * @return A list containing the openIdList. + */ + public java.util.List + getOpenIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(openIdList_) : openIdList_; + } + /** + * repeated uint32 openIdList = 3; + * @return The count of openIdList. + */ + public int getOpenIdListCount() { + return openIdList_.size(); + } + /** + * repeated uint32 openIdList = 3; + * @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); + } + /** + * repeated uint32 openIdList = 3; + * @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; + } + /** + * repeated uint32 openIdList = 3; + * @param value The openIdList to add. + * @return This builder for chaining. + */ + public Builder addOpenIdList(int value) { + ensureOpenIdListIsMutable(); + openIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 openIdList = 3; + * @param values The openIdList to add. + * @return This builder for chaining. + */ + public Builder addAllOpenIdList( + java.lang.Iterable values) { + ensureOpenIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, openIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 openIdList = 3; + * @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; + } + } + /** + * repeated uint32 finishIdList = 4; + * @return A list containing the finishIdList. + */ + public java.util.List + getFinishIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(finishIdList_) : finishIdList_; + } + /** + * repeated uint32 finishIdList = 4; + * @return The count of finishIdList. + */ + public int getFinishIdListCount() { + return finishIdList_.size(); + } + /** + * repeated uint32 finishIdList = 4; + * @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); + } + /** + * repeated uint32 finishIdList = 4; + * @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; + } + /** + * repeated uint32 finishIdList = 4; + * @param value The finishIdList to add. + * @return This builder for chaining. + */ + public Builder addFinishIdList(int value) { + ensureFinishIdListIsMutable(); + finishIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 finishIdList = 4; + * @param values The finishIdList to add. + * @return This builder for chaining. + */ + public Builder addAllFinishIdList( + java.lang.Iterable values) { + ensureFinishIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, finishIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 finishIdList = 4; + * @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; + } + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return A list containing the rewardedFetterLevelList. + */ + public java.util.List + getRewardedFetterLevelListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(rewardedFetterLevelList_) : rewardedFetterLevelList_; + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return The count of rewardedFetterLevelList. + */ + public int getRewardedFetterLevelListCount() { + return rewardedFetterLevelList_.size(); + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @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); + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @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; + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @param value The rewardedFetterLevelList to add. + * @return This builder for chaining. + */ + public Builder addRewardedFetterLevelList(int value) { + ensureRewardedFetterLevelListIsMutable(); + rewardedFetterLevelList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @param values The rewardedFetterLevelList to add. + * @return This builder for chaining. + */ + public Builder addAllRewardedFetterLevelList( + java.lang.Iterable values) { + ensureRewardedFetterLevelListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rewardedFetterLevelList_); + onChanged(); + return this; + } + /** + * repeated uint32 rewardedFetterLevelList = 5; + * @return This builder for chaining. + */ + public Builder clearRewardedFetterLevelList() { + rewardedFetterLevelList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private java.util.List fetterList_ = + java.util.Collections.emptyList(); + private void ensureFetterListIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + fetterList_ = new java.util.ArrayList(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_; + + /** + * repeated .FetterData fetterList = 6; + */ + public java.util.List getFetterListList() { + if (fetterListBuilder_ == null) { + return java.util.Collections.unmodifiableList(fetterList_); + } else { + return fetterListBuilder_.getMessageList(); + } + } + /** + * repeated .FetterData fetterList = 6; + */ + public int getFetterListCount() { + if (fetterListBuilder_ == null) { + return fetterList_.size(); + } else { + return fetterListBuilder_.getCount(); + } + } + /** + * repeated .FetterData fetterList = 6; + */ + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData getFetterList(int index) { + if (fetterListBuilder_ == null) { + return fetterList_.get(index); + } else { + return fetterListBuilder_.getMessage(index); + } + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + 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; + } + /** + * repeated .FetterData fetterList = 6; + */ + public Builder addAllFetterList( + java.lang.Iterable values) { + if (fetterListBuilder_ == null) { + ensureFetterListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fetterList_); + onChanged(); + } else { + fetterListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FetterData fetterList = 6; + */ + public Builder clearFetterList() { + if (fetterListBuilder_ == null) { + fetterList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + fetterListBuilder_.clear(); + } + return this; + } + /** + * repeated .FetterData fetterList = 6; + */ + public Builder removeFetterList(int index) { + if (fetterListBuilder_ == null) { + ensureFetterListIsMutable(); + fetterList_.remove(index); + onChanged(); + } else { + fetterListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FetterData fetterList = 6; + */ + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder getFetterListBuilder( + int index) { + return getFetterListFieldBuilder().getBuilder(index); + } + /** + * repeated .FetterData fetterList = 6; + */ + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterDataOrBuilder getFetterListOrBuilder( + int index) { + if (fetterListBuilder_ == null) { + return fetterList_.get(index); } else { + return fetterListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FetterData fetterList = 6; + */ + public java.util.List + getFetterListOrBuilderList() { + if (fetterListBuilder_ != null) { + return fetterListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fetterList_); + } + } + /** + * repeated .FetterData fetterList = 6; + */ + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder addFetterListBuilder() { + return getFetterListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance()); + } + /** + * repeated .FetterData fetterList = 6; + */ + public emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.Builder addFetterListBuilder( + int index) { + return getFetterListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FetterDataOuterClass.FetterData.getDefaultInstance()); + } + /** + * repeated .FetterData fetterList = 6; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/AvatarFightPropNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/AvatarFightPropNotifyOuterClass.java new file mode 100644 index 000000000..a6bb0857c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarFightPropNotifyOuterClass.java @@ -0,0 +1,871 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * map<uint32, float> fightPropMap = 2; + */ + int getFightPropMapCount(); + /** + * map<uint32, float> fightPropMap = 2; + */ + boolean containsFightPropMap( + int key); + /** + * Use {@link #getFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFightPropMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + java.util.Map + getFightPropMapMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + + float getFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> fightPropMap = 2; + */ + + 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 + 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_; + /** + * uint64 avatarGuid = 1; + * @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 + .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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + + public int getFightPropMapCount() { + return internalGetFightPropMap().getMap().size(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFightPropMap() { + internalGetMutableFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder removeFightPropMap( + int key) { + + internalGetMutableFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFightPropMap() { + return internalGetMutableFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + public Builder putFightPropMap( + int key, + float value) { + + + internalGetMutableFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder putAllFightPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..88e79d2d8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarFightPropUpdateNotifyOuterClass.java @@ -0,0 +1,872 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * map<uint32, float> fightPropMap = 2; + */ + int getFightPropMapCount(); + /** + * map<uint32, float> fightPropMap = 2; + */ + boolean containsFightPropMap( + int key); + /** + * Use {@link #getFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFightPropMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + java.util.Map + getFightPropMapMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + + float getFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> fightPropMap = 2; + */ + + 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 + 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_; + /** + * uint64 avatarGuid = 1; + * @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 + .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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + + public int getFightPropMapCount() { + return internalGetFightPropMap().getMap().size(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFightPropMap() { + internalGetMutableFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder removeFightPropMap( + int key) { + + internalGetMutableFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFightPropMap() { + return internalGetMutableFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + public Builder putFightPropMap( + int key, + float value) { + + + internalGetMutableFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder putAllFightPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9dc1c46a2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarFlycloakChangeNotifyOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 flycloakId = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int FLYCLOAKID_FIELD_NUMBER = 2; + private int flycloakId_; + /** + * uint32 flycloakId = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int flycloakId_ ; + /** + * uint32 flycloakId = 2; + * @return The flycloakId. + */ + @java.lang.Override + public int getFlycloakId() { + return flycloakId_; + } + /** + * uint32 flycloakId = 2; + * @param value The flycloakId to set. + * @return This builder for chaining. + */ + public Builder setFlycloakId(int value) { + + flycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 flycloakId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ea8e4496f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarGainCostumeNotifyOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 costumeId = 1; + * @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_; + /** + * uint32 costumeId = 1; + * @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 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_ ; + /** + * uint32 costumeId = 1; + * @return The costumeId. + */ + @java.lang.Override + public int getCostumeId() { + return costumeId_; + } + /** + * uint32 costumeId = 1; + * @param value The costumeId to set. + * @return This builder for chaining. + */ + public Builder setCostumeId(int value) { + + costumeId_ = value; + onChanged(); + return this; + } + /** + * uint32 costumeId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9b7302b63 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarGainFlycloakNotifyOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 flycloakId = 1; + * @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_; + /** + * uint32 flycloakId = 1; + * @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 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_ ; + /** + * uint32 flycloakId = 1; + * @return The flycloakId. + */ + @java.lang.Override + public int getFlycloakId() { + return flycloakId_; + } + /** + * uint32 flycloakId = 1; + * @param value The flycloakId to set. + * @return This builder for chaining. + */ + public Builder setFlycloakId(int value) { + + flycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 flycloakId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..84338c8f5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarInfoOuterClass.java @@ -0,0 +1,4592 @@ +// 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 { + + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + int getAvatarId(); + + /** + * uint64 guid = 2; + * @return The guid. + */ + long getGuid(); + + /** + * map<uint32, .PropValue> propMap = 3; + */ + int getPropMapCount(); + /** + * map<uint32, .PropValue> propMap = 3; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<uint32, .PropValue> propMap = 3; + */ + java.util.Map + getPropMapMap(); + /** + * map<uint32, .PropValue> propMap = 3; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); + /** + * map<uint32, .PropValue> propMap = 3; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key); + + /** + * uint32 lifeState = 4; + * @return The lifeState. + */ + int getLifeState(); + + /** + * repeated uint64 equipGuidList = 5; + * @return A list containing the equipGuidList. + */ + java.util.List getEquipGuidListList(); + /** + * repeated uint64 equipGuidList = 5; + * @return The count of equipGuidList. + */ + int getEquipGuidListCount(); + /** + * repeated uint64 equipGuidList = 5; + * @param index The index of the element to return. + * @return The equipGuidList at the given index. + */ + long getEquipGuidList(int index); + + /** + * repeated uint32 talentIdList = 6; + * @return A list containing the talentIdList. + */ + java.util.List getTalentIdListList(); + /** + * repeated uint32 talentIdList = 6; + * @return The count of talentIdList. + */ + int getTalentIdListCount(); + /** + * repeated uint32 talentIdList = 6; + * @param index The index of the element to return. + * @return The talentIdList at the given index. + */ + int getTalentIdList(int index); + + /** + * map<uint32, float> fightPropMap = 7; + */ + int getFightPropMapCount(); + /** + * map<uint32, float> fightPropMap = 7; + */ + boolean containsFightPropMap( + int key); + /** + * Use {@link #getFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFightPropMap(); + /** + * map<uint32, float> fightPropMap = 7; + */ + java.util.Map + getFightPropMapMap(); + /** + * map<uint32, float> fightPropMap = 7; + */ + + float getFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> fightPropMap = 7; + */ + + float getFightPropMapOrThrow( + int key); + + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @return Whether the trialAvatarInfoField field is set. + */ + boolean hasTrialAvatarInfoField(); + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @return The trialAvatarInfoField. + */ + emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo getTrialAvatarInfoField(); + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfoOrBuilder getTrialAvatarInfoFieldOrBuilder(); + + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + int getSkillMapCount(); + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + boolean containsSkillMap( + int key); + /** + * Use {@link #getSkillMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillMap(); + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + java.util.Map + getSkillMapMap(); + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue); + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( + int key); + + /** + * uint32 skillDepotId = 11; + * @return The skillDepotId. + */ + int getSkillDepotId(); + + /** + * .AvatarFetterInfo fetterInfo = 12; + * @return Whether the fetterInfo field is set. + */ + boolean hasFetterInfo(); + /** + * .AvatarFetterInfo fetterInfo = 12; + * @return The fetterInfo. + */ + emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo getFetterInfo(); + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder getFetterInfoOrBuilder(); + + /** + * uint32 coreProudSkillLevel = 13; + * @return The coreProudSkillLevel. + */ + int getCoreProudSkillLevel(); + + /** + * repeated uint32 inherentProudSkillList = 14; + * @return A list containing the inherentProudSkillList. + */ + java.util.List getInherentProudSkillListList(); + /** + * repeated uint32 inherentProudSkillList = 14; + * @return The count of inherentProudSkillList. + */ + int getInherentProudSkillListCount(); + /** + * repeated uint32 inherentProudSkillList = 14; + * @param index The index of the element to return. + * @return The inherentProudSkillList at the given index. + */ + int getInherentProudSkillList(int index); + + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + int getSkillLevelMapCount(); + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + boolean containsSkillLevelMap( + int key); + /** + * Use {@link #getSkillLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillLevelMap(); + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + java.util.Map + getSkillLevelMapMap(); + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + int getSkillLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + int getSkillLevelMapOrThrow( + int key); + + /** + * .AvatarExpeditionState expeditionState = 16; + * @return The enum numeric value on the wire for expeditionState. + */ + int getExpeditionStateValue(); + /** + * .AvatarExpeditionState expeditionState = 16; + * @return The expeditionState. + */ + emu.grasscutter.net.proto.AvatarExpeditionStateOuterClass.AvatarExpeditionState getExpeditionState(); + + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + int getProudSkillExtraLevelCount(); + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + boolean containsProudSkillExtraLevel( + int key); + /** + * Use {@link #getProudSkillExtraLevelMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getProudSkillExtraLevel(); + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + java.util.Map + getProudSkillExtraLevelMap(); + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + int getProudSkillExtraLevelOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + int getProudSkillExtraLevelOrThrow( + int key); + + /** + * bool isFocusFieldNumber = 18; + * @return The isFocusFieldNumber. + */ + boolean getIsFocusFieldNumber(); + + /** + * uint32 avatarType = 19; + * @return The avatarType. + */ + int getAvatarType(); + + /** + * repeated uint32 teamResonanceList = 20; + * @return A list containing the teamResonanceList. + */ + java.util.List getTeamResonanceListList(); + /** + * repeated uint32 teamResonanceList = 20; + * @return The count of teamResonanceList. + */ + int getTeamResonanceListCount(); + /** + * repeated uint32 teamResonanceList = 20; + * @param index The index of the element to return. + * @return The teamResonanceList at the given index. + */ + int getTeamResonanceList(int index); + + /** + * uint32 wearingFlycloakId = 21; + * @return The wearingFlycloakId. + */ + int getWearingFlycloakId(); + + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + java.util.List + getEquipAffixListList(); + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index); + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + int getEquipAffixListCount(); + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + java.util.List + getEquipAffixListOrBuilderList(); + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder getEquipAffixListOrBuilder( + int index); + + /** + * uint32 bornTime = 23; + * @return The bornTime. + */ + int getBornTime(); + + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return A list containing the pendingPromoteRewardListFieldNumber. + */ + java.util.List getPendingPromoteRewardListFieldNumberList(); + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return The count of pendingPromoteRewardListFieldNumber. + */ + int getPendingPromoteRewardListFieldNumberCount(); + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @param index The index of the element to return. + * @return The pendingPromoteRewardListFieldNumber at the given index. + */ + int getPendingPromoteRewardListFieldNumber(int index); + + /** + * uint32 costumeId = 25; + * @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 + 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 + 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 + 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 + 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 + 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(); + 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_; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + + public static final int GUID_FIELD_NUMBER = 2; + private long guid_; + /** + * uint64 guid = 2; + * @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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 lifeState = 4; + * @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_; + /** + * repeated uint64 equipGuidList = 5; + * @return A list containing the equipGuidList. + */ + @java.lang.Override + public java.util.List + getEquipGuidListList() { + return equipGuidList_; + } + /** + * repeated uint64 equipGuidList = 5; + * @return The count of equipGuidList. + */ + public int getEquipGuidListCount() { + return equipGuidList_.size(); + } + /** + * repeated uint64 equipGuidList = 5; + * @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_; + /** + * repeated uint32 talentIdList = 6; + * @return A list containing the talentIdList. + */ + @java.lang.Override + public java.util.List + getTalentIdListList() { + return talentIdList_; + } + /** + * repeated uint32 talentIdList = 6; + * @return The count of talentIdList. + */ + public int getTalentIdListCount() { + return talentIdList_.size(); + } + /** + * repeated uint32 talentIdList = 6; + * @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 + .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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + + public int getFightPropMapCount() { + return internalGetFightPropMap().getMap().size(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @return Whether the trialAvatarInfoField field is set. + */ + @java.lang.Override + public boolean hasTrialAvatarInfoField() { + return trialAvatarInfoField_ != null; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @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_; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + @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 + .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 + internalGetSkillMap() { + if (skillMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillMapDefaultEntryHolder.defaultEntry); + } + return skillMap_; + } + + public int getSkillMapCount() { + return internalGetSkillMap().getMap().size(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + @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 getSkillMap() { + return getSkillMapMap(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public java.util.Map getSkillMapMap() { + return internalGetSkillMap().getMap(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue) { + + java.util.Map map = + internalGetSkillMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 skillDepotId = 11; + * @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_; + /** + * .AvatarFetterInfo fetterInfo = 12; + * @return Whether the fetterInfo field is set. + */ + @java.lang.Override + public boolean hasFetterInfo() { + return fetterInfo_ != null; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + * @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_; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfoOrBuilder getFetterInfoOrBuilder() { + return getFetterInfo(); + } + + public static final int COREPROUDSKILLLEVEL_FIELD_NUMBER = 13; + private int coreProudSkillLevel_; + /** + * uint32 coreProudSkillLevel = 13; + * @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_; + /** + * repeated uint32 inherentProudSkillList = 14; + * @return A list containing the inherentProudSkillList. + */ + @java.lang.Override + public java.util.List + getInherentProudSkillListList() { + return inherentProudSkillList_; + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @return The count of inherentProudSkillList. + */ + public int getInherentProudSkillListCount() { + return inherentProudSkillList_.size(); + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @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 + .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 + internalGetSkillLevelMap() { + if (skillLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillLevelMapDefaultEntryHolder.defaultEntry); + } + return skillLevelMap_; + } + + public int getSkillLevelMapCount() { + return internalGetSkillLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + @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 getSkillLevelMap() { + return getSkillLevelMapMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public java.util.Map getSkillLevelMapMap() { + return internalGetSkillLevelMap().getMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public int getSkillLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public int getSkillLevelMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * .AvatarExpeditionState expeditionState = 16; + * @return The enum numeric value on the wire for expeditionState. + */ + @java.lang.Override public int getExpeditionStateValue() { + return expeditionState_; + } + /** + * .AvatarExpeditionState expeditionState = 16; + * @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 + .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 + internalGetProudSkillExtraLevel() { + if (proudSkillExtraLevel_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); + } + return proudSkillExtraLevel_; + } + + public int getProudSkillExtraLevelCount() { + return internalGetProudSkillExtraLevel().getMap().size(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + @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 getProudSkillExtraLevel() { + return getProudSkillExtraLevelMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public java.util.Map getProudSkillExtraLevelMap() { + return internalGetProudSkillExtraLevel().getMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public int getProudSkillExtraLevelOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetProudSkillExtraLevel().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public int getProudSkillExtraLevelOrThrow( + int key) { + + java.util.Map 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_; + /** + * bool isFocusFieldNumber = 18; + * @return The isFocusFieldNumber. + */ + @java.lang.Override + public boolean getIsFocusFieldNumber() { + return isFocusFieldNumber_; + } + + public static final int AVATARTYPE_FIELD_NUMBER = 19; + private int avatarType_; + /** + * uint32 avatarType = 19; + * @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_; + /** + * repeated uint32 teamResonanceList = 20; + * @return A list containing the teamResonanceList. + */ + @java.lang.Override + public java.util.List + getTeamResonanceListList() { + return teamResonanceList_; + } + /** + * repeated uint32 teamResonanceList = 20; + * @return The count of teamResonanceList. + */ + public int getTeamResonanceListCount() { + return teamResonanceList_.size(); + } + /** + * repeated uint32 teamResonanceList = 20; + * @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_; + /** + * uint32 wearingFlycloakId = 21; + * @return The wearingFlycloakId. + */ + @java.lang.Override + public int getWearingFlycloakId() { + return wearingFlycloakId_; + } + + public static final int EQUIPAFFIXLIST_FIELD_NUMBER = 22; + private java.util.List equipAffixList_; + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + @java.lang.Override + public java.util.List getEquipAffixListList() { + return equipAffixList_; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + @java.lang.Override + public java.util.List + getEquipAffixListOrBuilderList() { + return equipAffixList_; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + @java.lang.Override + public int getEquipAffixListCount() { + return equipAffixList_.size(); + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index) { + return equipAffixList_.get(index); + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + @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_; + /** + * uint32 bornTime = 23; + * @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_; + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return A list containing the pendingPromoteRewardListFieldNumber. + */ + @java.lang.Override + public java.util.List + getPendingPromoteRewardListFieldNumberList() { + return pendingPromoteRewardListFieldNumber_; + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return The count of pendingPromoteRewardListFieldNumber. + */ + public int getPendingPromoteRewardListFieldNumberCount() { + return pendingPromoteRewardListFieldNumber_.size(); + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @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_; + /** + * uint32 costumeId = 25; + * @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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetSkillMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetSkillLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetProudSkillExtraLevel().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 1; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarId() { + + avatarId_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 2; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 2; + * @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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + 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; + } + /** + * map<uint32, .PropValue> propMap = 3; + */ + + public Builder putAllPropMap( + java.util.Map values) { + internalGetMutablePropMap().getMutableMap() + .putAll(values); + return this; + } + + private int lifeState_ ; + /** + * uint32 lifeState = 4; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + /** + * uint32 lifeState = 4; + * @param value The lifeState to set. + * @return This builder for chaining. + */ + public Builder setLifeState(int value) { + + lifeState_ = value; + onChanged(); + return this; + } + /** + * uint32 lifeState = 4; + * @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; + } + } + /** + * repeated uint64 equipGuidList = 5; + * @return A list containing the equipGuidList. + */ + public java.util.List + getEquipGuidListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(equipGuidList_) : equipGuidList_; + } + /** + * repeated uint64 equipGuidList = 5; + * @return The count of equipGuidList. + */ + public int getEquipGuidListCount() { + return equipGuidList_.size(); + } + /** + * repeated uint64 equipGuidList = 5; + * @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); + } + /** + * repeated uint64 equipGuidList = 5; + * @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; + } + /** + * repeated uint64 equipGuidList = 5; + * @param value The equipGuidList to add. + * @return This builder for chaining. + */ + public Builder addEquipGuidList(long value) { + ensureEquipGuidListIsMutable(); + equipGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 equipGuidList = 5; + * @param values The equipGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllEquipGuidList( + java.lang.Iterable values) { + ensureEquipGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, equipGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 equipGuidList = 5; + * @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; + } + } + /** + * repeated uint32 talentIdList = 6; + * @return A list containing the talentIdList. + */ + public java.util.List + getTalentIdListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(talentIdList_) : talentIdList_; + } + /** + * repeated uint32 talentIdList = 6; + * @return The count of talentIdList. + */ + public int getTalentIdListCount() { + return talentIdList_.size(); + } + /** + * repeated uint32 talentIdList = 6; + * @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); + } + /** + * repeated uint32 talentIdList = 6; + * @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; + } + /** + * repeated uint32 talentIdList = 6; + * @param value The talentIdList to add. + * @return This builder for chaining. + */ + public Builder addTalentIdList(int value) { + ensureTalentIdListIsMutable(); + talentIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 talentIdList = 6; + * @param values The talentIdList to add. + * @return This builder for chaining. + */ + public Builder addAllTalentIdList( + java.lang.Iterable values) { + ensureTalentIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, talentIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 talentIdList = 6; + * @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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 7; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFightPropMap() { + internalGetMutableFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> fightPropMap = 7; + */ + + public Builder removeFightPropMap( + int key) { + + internalGetMutableFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFightPropMap() { + return internalGetMutableFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> fightPropMap = 7; + */ + public Builder putFightPropMap( + int key, + float value) { + + + internalGetMutableFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> fightPropMap = 7; + */ + + public Builder putAllFightPropMap( + java.util.Map 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_; + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @return Whether the trialAvatarInfoField field is set. + */ + public boolean hasTrialAvatarInfoField() { + return trialAvatarInfoFieldBuilder_ != null || trialAvatarInfoField_ != null; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + * @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(); + } + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + 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; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + 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; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + 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; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + public Builder clearTrialAvatarInfoField() { + if (trialAvatarInfoFieldBuilder_ == null) { + trialAvatarInfoField_ = null; + onChanged(); + } else { + trialAvatarInfoField_ = null; + trialAvatarInfoFieldBuilder_ = null; + } + + return this; + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + public emu.grasscutter.net.proto.TrialAvatarInfoOuterClass.TrialAvatarInfo.Builder getTrialAvatarInfoFieldBuilder() { + + onChanged(); + return getTrialAvatarInfoFieldFieldBuilder().getBuilder(); + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + 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_; + } + } + /** + * .TrialAvatarInfo trialAvatarInfoField = 9; + */ + 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 + internalGetSkillMap() { + if (skillMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillMapDefaultEntryHolder.defaultEntry); + } + return skillMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + @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 getSkillMap() { + return getSkillMapMap(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public java.util.Map getSkillMapMap() { + return internalGetSkillMap().getMap(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo defaultValue) { + + java.util.Map map = + internalGetSkillMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarSkillInfoOuterClass.AvatarSkillInfo getSkillMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillMap() { + internalGetMutableSkillMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + public Builder removeSkillMap( + int key) { + + internalGetMutableSkillMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillMap() { + return internalGetMutableSkillMap().getMutableMap(); + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + 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; + } + /** + * map<uint32, .AvatarSkillInfo> skillMap = 10; + */ + + public Builder putAllSkillMap( + java.util.Map values) { + internalGetMutableSkillMap().getMutableMap() + .putAll(values); + return this; + } + + private int skillDepotId_ ; + /** + * uint32 skillDepotId = 11; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + /** + * uint32 skillDepotId = 11; + * @param value The skillDepotId to set. + * @return This builder for chaining. + */ + public Builder setSkillDepotId(int value) { + + skillDepotId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillDepotId = 11; + * @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_; + /** + * .AvatarFetterInfo fetterInfo = 12; + * @return Whether the fetterInfo field is set. + */ + public boolean hasFetterInfo() { + return fetterInfoBuilder_ != null || fetterInfo_ != null; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + * @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(); + } + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + 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; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + 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; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + 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; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + public Builder clearFetterInfo() { + if (fetterInfoBuilder_ == null) { + fetterInfo_ = null; + onChanged(); + } else { + fetterInfo_ = null; + fetterInfoBuilder_ = null; + } + + return this; + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + public emu.grasscutter.net.proto.AvatarFetterInfoOuterClass.AvatarFetterInfo.Builder getFetterInfoBuilder() { + + onChanged(); + return getFetterInfoFieldBuilder().getBuilder(); + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + 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_; + } + } + /** + * .AvatarFetterInfo fetterInfo = 12; + */ + 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_ ; + /** + * uint32 coreProudSkillLevel = 13; + * @return The coreProudSkillLevel. + */ + @java.lang.Override + public int getCoreProudSkillLevel() { + return coreProudSkillLevel_; + } + /** + * uint32 coreProudSkillLevel = 13; + * @param value The coreProudSkillLevel to set. + * @return This builder for chaining. + */ + public Builder setCoreProudSkillLevel(int value) { + + coreProudSkillLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 coreProudSkillLevel = 13; + * @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; + } + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @return A list containing the inherentProudSkillList. + */ + public java.util.List + getInherentProudSkillListList() { + return ((bitField0_ & 0x00000020) != 0) ? + java.util.Collections.unmodifiableList(inherentProudSkillList_) : inherentProudSkillList_; + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @return The count of inherentProudSkillList. + */ + public int getInherentProudSkillListCount() { + return inherentProudSkillList_.size(); + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @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); + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @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; + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @param value The inherentProudSkillList to add. + * @return This builder for chaining. + */ + public Builder addInherentProudSkillList(int value) { + ensureInherentProudSkillListIsMutable(); + inherentProudSkillList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @param values The inherentProudSkillList to add. + * @return This builder for chaining. + */ + public Builder addAllInherentProudSkillList( + java.lang.Iterable values) { + ensureInherentProudSkillListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inherentProudSkillList_); + onChanged(); + return this; + } + /** + * repeated uint32 inherentProudSkillList = 14; + * @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 + internalGetSkillLevelMap() { + if (skillLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillLevelMapDefaultEntryHolder.defaultEntry); + } + return skillLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + @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 getSkillLevelMap() { + return getSkillLevelMapMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public java.util.Map getSkillLevelMapMap() { + return internalGetSkillLevelMap().getMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public int getSkillLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + @java.lang.Override + + public int getSkillLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillLevelMap() { + internalGetMutableSkillLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + public Builder removeSkillLevelMap( + int key) { + + internalGetMutableSkillLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillLevelMap() { + return internalGetMutableSkillLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + public Builder putSkillLevelMap( + int key, + int value) { + + + internalGetMutableSkillLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillLevelMap = 15; + */ + + public Builder putAllSkillLevelMap( + java.util.Map values) { + internalGetMutableSkillLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private int expeditionState_ = 0; + /** + * .AvatarExpeditionState expeditionState = 16; + * @return The enum numeric value on the wire for expeditionState. + */ + @java.lang.Override public int getExpeditionStateValue() { + return expeditionState_; + } + /** + * .AvatarExpeditionState expeditionState = 16; + * @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; + } + /** + * .AvatarExpeditionState expeditionState = 16; + * @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; + } + /** + * .AvatarExpeditionState expeditionState = 16; + * @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; + } + /** + * .AvatarExpeditionState expeditionState = 16; + * @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 + internalGetProudSkillExtraLevel() { + if (proudSkillExtraLevel_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProudSkillExtraLevelDefaultEntryHolder.defaultEntry); + } + return proudSkillExtraLevel_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + @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 getProudSkillExtraLevel() { + return getProudSkillExtraLevelMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public java.util.Map getProudSkillExtraLevelMap() { + return internalGetProudSkillExtraLevel().getMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public int getProudSkillExtraLevelOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetProudSkillExtraLevel().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + @java.lang.Override + + public int getProudSkillExtraLevelOrThrow( + int key) { + + java.util.Map map = + internalGetProudSkillExtraLevel().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProudSkillExtraLevel() { + internalGetMutableProudSkillExtraLevel().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + public Builder removeProudSkillExtraLevel( + int key) { + + internalGetMutableProudSkillExtraLevel().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableProudSkillExtraLevel() { + return internalGetMutableProudSkillExtraLevel().getMutableMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + public Builder putProudSkillExtraLevel( + int key, + int value) { + + + internalGetMutableProudSkillExtraLevel().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> proudSkillExtraLevel = 17; + */ + + public Builder putAllProudSkillExtraLevel( + java.util.Map values) { + internalGetMutableProudSkillExtraLevel().getMutableMap() + .putAll(values); + return this; + } + + private boolean isFocusFieldNumber_ ; + /** + * bool isFocusFieldNumber = 18; + * @return The isFocusFieldNumber. + */ + @java.lang.Override + public boolean getIsFocusFieldNumber() { + return isFocusFieldNumber_; + } + /** + * bool isFocusFieldNumber = 18; + * @param value The isFocusFieldNumber to set. + * @return This builder for chaining. + */ + public Builder setIsFocusFieldNumber(boolean value) { + + isFocusFieldNumber_ = value; + onChanged(); + return this; + } + /** + * bool isFocusFieldNumber = 18; + * @return This builder for chaining. + */ + public Builder clearIsFocusFieldNumber() { + + isFocusFieldNumber_ = false; + onChanged(); + return this; + } + + private int avatarType_ ; + /** + * uint32 avatarType = 19; + * @return The avatarType. + */ + @java.lang.Override + public int getAvatarType() { + return avatarType_; + } + /** + * uint32 avatarType = 19; + * @param value The avatarType to set. + * @return This builder for chaining. + */ + public Builder setAvatarType(int value) { + + avatarType_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarType = 19; + * @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; + } + } + /** + * repeated uint32 teamResonanceList = 20; + * @return A list containing the teamResonanceList. + */ + public java.util.List + getTeamResonanceListList() { + return ((bitField0_ & 0x00000100) != 0) ? + java.util.Collections.unmodifiableList(teamResonanceList_) : teamResonanceList_; + } + /** + * repeated uint32 teamResonanceList = 20; + * @return The count of teamResonanceList. + */ + public int getTeamResonanceListCount() { + return teamResonanceList_.size(); + } + /** + * repeated uint32 teamResonanceList = 20; + * @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); + } + /** + * repeated uint32 teamResonanceList = 20; + * @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; + } + /** + * repeated uint32 teamResonanceList = 20; + * @param value The teamResonanceList to add. + * @return This builder for chaining. + */ + public Builder addTeamResonanceList(int value) { + ensureTeamResonanceListIsMutable(); + teamResonanceList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 teamResonanceList = 20; + * @param values The teamResonanceList to add. + * @return This builder for chaining. + */ + public Builder addAllTeamResonanceList( + java.lang.Iterable values) { + ensureTeamResonanceListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, teamResonanceList_); + onChanged(); + return this; + } + /** + * repeated uint32 teamResonanceList = 20; + * @return This builder for chaining. + */ + public Builder clearTeamResonanceList() { + teamResonanceList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + private int wearingFlycloakId_ ; + /** + * uint32 wearingFlycloakId = 21; + * @return The wearingFlycloakId. + */ + @java.lang.Override + public int getWearingFlycloakId() { + return wearingFlycloakId_; + } + /** + * uint32 wearingFlycloakId = 21; + * @param value The wearingFlycloakId to set. + * @return This builder for chaining. + */ + public Builder setWearingFlycloakId(int value) { + + wearingFlycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 wearingFlycloakId = 21; + * @return This builder for chaining. + */ + public Builder clearWearingFlycloakId() { + + wearingFlycloakId_ = 0; + onChanged(); + return this; + } + + private java.util.List equipAffixList_ = + java.util.Collections.emptyList(); + private void ensureEquipAffixListIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + equipAffixList_ = new java.util.ArrayList(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_; + + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public java.util.List getEquipAffixListList() { + if (equipAffixListBuilder_ == null) { + return java.util.Collections.unmodifiableList(equipAffixList_); + } else { + return equipAffixListBuilder_.getMessageList(); + } + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public int getEquipAffixListCount() { + if (equipAffixListBuilder_ == null) { + return equipAffixList_.size(); + } else { + return equipAffixListBuilder_.getCount(); + } + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo getEquipAffixList(int index) { + if (equipAffixListBuilder_ == null) { + return equipAffixList_.get(index); + } else { + return equipAffixListBuilder_.getMessage(index); + } + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + 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; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public Builder addAllEquipAffixList( + java.lang.Iterable values) { + if (equipAffixListBuilder_ == null) { + ensureEquipAffixListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, equipAffixList_); + onChanged(); + } else { + equipAffixListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public Builder clearEquipAffixList() { + if (equipAffixListBuilder_ == null) { + equipAffixList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + equipAffixListBuilder_.clear(); + } + return this; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public Builder removeEquipAffixList(int index) { + if (equipAffixListBuilder_ == null) { + ensureEquipAffixListIsMutable(); + equipAffixList_.remove(index); + onChanged(); + } else { + equipAffixListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder getEquipAffixListBuilder( + int index) { + return getEquipAffixListFieldBuilder().getBuilder(index); + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfoOrBuilder getEquipAffixListOrBuilder( + int index) { + if (equipAffixListBuilder_ == null) { + return equipAffixList_.get(index); } else { + return equipAffixListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public java.util.List + getEquipAffixListOrBuilderList() { + if (equipAffixListBuilder_ != null) { + return equipAffixListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(equipAffixList_); + } + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder addEquipAffixListBuilder() { + return getEquipAffixListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance()); + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.Builder addEquipAffixListBuilder( + int index) { + return getEquipAffixListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AvatarEquipAffixInfoOuterClass.AvatarEquipAffixInfo.getDefaultInstance()); + } + /** + * repeated .AvatarEquipAffixInfo equipAffixList = 22; + */ + public java.util.List + 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_ ; + /** + * uint32 bornTime = 23; + * @return The bornTime. + */ + @java.lang.Override + public int getBornTime() { + return bornTime_; + } + /** + * uint32 bornTime = 23; + * @param value The bornTime to set. + * @return This builder for chaining. + */ + public Builder setBornTime(int value) { + + bornTime_ = value; + onChanged(); + return this; + } + /** + * uint32 bornTime = 23; + * @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; + } + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return A list containing the pendingPromoteRewardListFieldNumber. + */ + public java.util.List + getPendingPromoteRewardListFieldNumberList() { + return ((bitField0_ & 0x00000400) != 0) ? + java.util.Collections.unmodifiableList(pendingPromoteRewardListFieldNumber_) : pendingPromoteRewardListFieldNumber_; + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return The count of pendingPromoteRewardListFieldNumber. + */ + public int getPendingPromoteRewardListFieldNumberCount() { + return pendingPromoteRewardListFieldNumber_.size(); + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @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); + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @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; + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @param value The pendingPromoteRewardListFieldNumber to add. + * @return This builder for chaining. + */ + public Builder addPendingPromoteRewardListFieldNumber(int value) { + ensurePendingPromoteRewardListFieldNumberIsMutable(); + pendingPromoteRewardListFieldNumber_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @param values The pendingPromoteRewardListFieldNumber to add. + * @return This builder for chaining. + */ + public Builder addAllPendingPromoteRewardListFieldNumber( + java.lang.Iterable values) { + ensurePendingPromoteRewardListFieldNumberIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pendingPromoteRewardListFieldNumber_); + onChanged(); + return this; + } + /** + * repeated uint32 pendingPromoteRewardListFieldNumber = 24; + * @return This builder for chaining. + */ + public Builder clearPendingPromoteRewardListFieldNumber() { + pendingPromoteRewardListFieldNumber_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + private int costumeId_ ; + /** + * uint32 costumeId = 25; + * @return The costumeId. + */ + @java.lang.Override + public int getCostumeId() { + return costumeId_; + } + /** + * uint32 costumeId = 25; + * @param value The costumeId to set. + * @return This builder for chaining. + */ + public Builder setCostumeId(int value) { + + costumeId_ = value; + onChanged(); + return this; + } + /** + * uint32 costumeId = 25; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fd1c3ecaf --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarLifeStateChangeNotifyOuterClass.java @@ -0,0 +1,1010 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + int getLifeState(); + + /** + * uint32 sourceEntityId = 3; + * @return The sourceEntityId. + */ + int getSourceEntityId(); + + /** + * string attackTag = 4; + * @return The attackTag. + */ + java.lang.String getAttackTag(); + /** + * string attackTag = 4; + * @return The bytes for attackTag. + */ + com.google.protobuf.ByteString + getAttackTagBytes(); + + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + int getDieTypeValue(); + /** + * .PlayerDieType dieType = 5; + * @return The dieType. + */ + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); + + /** + * uint32 moveReliableSeq = 6; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int LIFESTATE_FIELD_NUMBER = 2; + private int lifeState_; + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + + public static final int SOURCEENTITYID_FIELD_NUMBER = 3; + private int sourceEntityId_; + /** + * uint32 sourceEntityId = 3; + * @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_; + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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_; + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 5; + * @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_; + /** + * uint32 moveReliableSeq = 6; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int lifeState_ ; + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + /** + * uint32 lifeState = 2; + * @param value The lifeState to set. + * @return This builder for chaining. + */ + public Builder setLifeState(int value) { + + lifeState_ = value; + onChanged(); + return this; + } + /** + * uint32 lifeState = 2; + * @return This builder for chaining. + */ + public Builder clearLifeState() { + + lifeState_ = 0; + onChanged(); + return this; + } + + private int sourceEntityId_ ; + /** + * uint32 sourceEntityId = 3; + * @return The sourceEntityId. + */ + @java.lang.Override + public int getSourceEntityId() { + return sourceEntityId_; + } + /** + * uint32 sourceEntityId = 3; + * @param value The sourceEntityId to set. + * @return This builder for chaining. + */ + public Builder setSourceEntityId(int value) { + + sourceEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 sourceEntityId = 3; + * @return This builder for chaining. + */ + public Builder clearSourceEntityId() { + + sourceEntityId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object attackTag_ = ""; + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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; + } + /** + * string attackTag = 4; + * @return This builder for chaining. + */ + public Builder clearAttackTag() { + + attackTag_ = getDefaultInstance().getAttackTag(); + onChanged(); + return this; + } + /** + * string attackTag = 4; + * @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; + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @return This builder for chaining. + */ + public Builder clearDieType() { + + dieType_ = 0; + onChanged(); + return this; + } + + private int moveReliableSeq_ ; + /** + * uint32 moveReliableSeq = 6; + * @return The moveReliableSeq. + */ + @java.lang.Override + public int getMoveReliableSeq() { + return moveReliableSeq_; + } + /** + * uint32 moveReliableSeq = 6; + * @param value The moveReliableSeq to set. + * @return This builder for chaining. + */ + public Builder setMoveReliableSeq(int value) { + + moveReliableSeq_ = value; + onChanged(); + return this; + } + /** + * uint32 moveReliableSeq = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a6d7c5d54 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarPromoteReqOuterClass.java @@ -0,0 +1,537 @@ +// 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 { + + /** + * uint64 guid = 1; + * @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_; + /** + * uint64 guid = 1; + * @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 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_ ; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 1; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..be328a2fa --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarPromoteRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 guid = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GUID_FIELD_NUMBER = 2; + private long guid_; + /** + * uint64 guid = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 2; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ee6f27b21 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarPropNotifyOuterClass.java @@ -0,0 +1,870 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * map<uint32, int64> propMap = 2; + */ + int getPropMapCount(); + /** + * map<uint32, int64> propMap = 2; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<uint32, int64> propMap = 2; + */ + java.util.Map + getPropMapMap(); + /** + * map<uint32, int64> propMap = 2; + */ + + long getPropMapOrDefault( + int key, + long defaultValue); + /** + * map<uint32, int64> propMap = 2; + */ + + 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 + 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_; + /** + * uint64 avatarGuid = 1; + * @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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<uint32, int64> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public long getPropMapOrDefault( + int key, + long defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public long getPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, int64> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public long getPropMapOrDefault( + int key, + long defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, int64> propMap = 2; + */ + @java.lang.Override + + public long getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, int64> propMap = 2; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<uint32, int64> propMap = 2; + */ + public Builder putPropMap( + int key, + long value) { + + + internalGetMutablePropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, int64> propMap = 2; + */ + + public Builder putAllPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b3dc83d51 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarSkillChangeNotifyOuterClass.java @@ -0,0 +1,890 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 entityId = 2; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 skillDepotId = 3; + * @return The skillDepotId. + */ + int getSkillDepotId(); + + /** + * uint32 avatarSkillId = 4; + * @return The avatarSkillId. + */ + int getAvatarSkillId(); + + /** + * uint32 oldLevel = 5; + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 curLevel = 6; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int ENTITYID_FIELD_NUMBER = 2; + private int entityId_; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int SKILLDEPOTID_FIELD_NUMBER = 3; + private int skillDepotId_; + /** + * uint32 skillDepotId = 3; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + + public static final int AVATARSKILLID_FIELD_NUMBER = 4; + private int avatarSkillId_; + /** + * uint32 avatarSkillId = 4; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 5; + private int oldLevel_; + /** + * uint32 oldLevel = 5; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CURLEVEL_FIELD_NUMBER = 6; + private int curLevel_; + /** + * uint32 curLevel = 6; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int skillDepotId_ ; + /** + * uint32 skillDepotId = 3; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + /** + * uint32 skillDepotId = 3; + * @param value The skillDepotId to set. + * @return This builder for chaining. + */ + public Builder setSkillDepotId(int value) { + + skillDepotId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillDepotId = 3; + * @return This builder for chaining. + */ + public Builder clearSkillDepotId() { + + skillDepotId_ = 0; + onChanged(); + return this; + } + + private int avatarSkillId_ ; + /** + * uint32 avatarSkillId = 4; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + /** + * uint32 avatarSkillId = 4; + * @param value The avatarSkillId to set. + * @return This builder for chaining. + */ + public Builder setAvatarSkillId(int value) { + + avatarSkillId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarSkillId = 4; + * @return This builder for chaining. + */ + public Builder clearAvatarSkillId() { + + avatarSkillId_ = 0; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 5; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 5; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 5; + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_ ; + /** + * uint32 curLevel = 6; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 curLevel = 6; + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevel = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..67f90049e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarSkillInfoOuterClass.java @@ -0,0 +1,804 @@ +// 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 { + + /** + * uint32 passCdTime = 1; + * @return The passCdTime. + */ + int getPassCdTime(); + + /** + * repeated uint32 fullCdTimeList = 2; + * @return A list containing the fullCdTimeList. + */ + java.util.List getFullCdTimeListList(); + /** + * repeated uint32 fullCdTimeList = 2; + * @return The count of fullCdTimeList. + */ + int getFullCdTimeListCount(); + /** + * repeated uint32 fullCdTimeList = 2; + * @param index The index of the element to return. + * @return The fullCdTimeList at the given index. + */ + int getFullCdTimeList(int index); + + /** + * uint32 maxChargeCount = 3; + * @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_; + /** + * uint32 passCdTime = 1; + * @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_; + /** + * repeated uint32 fullCdTimeList = 2; + * @return A list containing the fullCdTimeList. + */ + @java.lang.Override + public java.util.List + getFullCdTimeListList() { + return fullCdTimeList_; + } + /** + * repeated uint32 fullCdTimeList = 2; + * @return The count of fullCdTimeList. + */ + public int getFullCdTimeListCount() { + return fullCdTimeList_.size(); + } + /** + * repeated uint32 fullCdTimeList = 2; + * @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_; + /** + * uint32 maxChargeCount = 3; + * @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 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_ ; + /** + * uint32 passCdTime = 1; + * @return The passCdTime. + */ + @java.lang.Override + public int getPassCdTime() { + return passCdTime_; + } + /** + * uint32 passCdTime = 1; + * @param value The passCdTime to set. + * @return This builder for chaining. + */ + public Builder setPassCdTime(int value) { + + passCdTime_ = value; + onChanged(); + return this; + } + /** + * uint32 passCdTime = 1; + * @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; + } + } + /** + * repeated uint32 fullCdTimeList = 2; + * @return A list containing the fullCdTimeList. + */ + public java.util.List + getFullCdTimeListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(fullCdTimeList_) : fullCdTimeList_; + } + /** + * repeated uint32 fullCdTimeList = 2; + * @return The count of fullCdTimeList. + */ + public int getFullCdTimeListCount() { + return fullCdTimeList_.size(); + } + /** + * repeated uint32 fullCdTimeList = 2; + * @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); + } + /** + * repeated uint32 fullCdTimeList = 2; + * @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; + } + /** + * repeated uint32 fullCdTimeList = 2; + * @param value The fullCdTimeList to add. + * @return This builder for chaining. + */ + public Builder addFullCdTimeList(int value) { + ensureFullCdTimeListIsMutable(); + fullCdTimeList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 fullCdTimeList = 2; + * @param values The fullCdTimeList to add. + * @return This builder for chaining. + */ + public Builder addAllFullCdTimeList( + java.lang.Iterable values) { + ensureFullCdTimeListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fullCdTimeList_); + onChanged(); + return this; + } + /** + * repeated uint32 fullCdTimeList = 2; + * @return This builder for chaining. + */ + public Builder clearFullCdTimeList() { + fullCdTimeList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int maxChargeCount_ ; + /** + * uint32 maxChargeCount = 3; + * @return The maxChargeCount. + */ + @java.lang.Override + public int getMaxChargeCount() { + return maxChargeCount_; + } + /** + * uint32 maxChargeCount = 3; + * @param value The maxChargeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxChargeCount(int value) { + + maxChargeCount_ = value; + onChanged(); + return this; + } + /** + * uint32 maxChargeCount = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bc3194589 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeReqOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 avatarSkillId = 2; + * @return The avatarSkillId. + */ + int getAvatarSkillId(); + + /** + * uint32 oldLevel = 3; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int AVATARSKILLID_FIELD_NUMBER = 2; + private int avatarSkillId_; + /** + * uint32 avatarSkillId = 2; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 3; + private int oldLevel_; + /** + * uint32 oldLevel = 3; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int avatarSkillId_ ; + /** + * uint32 avatarSkillId = 2; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + /** + * uint32 avatarSkillId = 2; + * @param value The avatarSkillId to set. + * @return This builder for chaining. + */ + public Builder setAvatarSkillId(int value) { + + avatarSkillId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarSkillId = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarSkillId() { + + avatarSkillId_ = 0; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 3; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d94b283eb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarSkillUpgradeRspOuterClass.java @@ -0,0 +1,819 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 avatarSkillId = 3; + * @return The avatarSkillId. + */ + int getAvatarSkillId(); + + /** + * uint32 oldLevel = 4; + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 curLevel = 5; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int AVATARSKILLID_FIELD_NUMBER = 3; + private int avatarSkillId_; + /** + * uint32 avatarSkillId = 3; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 4; + private int oldLevel_; + /** + * uint32 oldLevel = 4; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CURLEVEL_FIELD_NUMBER = 5; + private int curLevel_; + /** + * uint32 curLevel = 5; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int avatarSkillId_ ; + /** + * uint32 avatarSkillId = 3; + * @return The avatarSkillId. + */ + @java.lang.Override + public int getAvatarSkillId() { + return avatarSkillId_; + } + /** + * uint32 avatarSkillId = 3; + * @param value The avatarSkillId to set. + * @return This builder for chaining. + */ + public Builder setAvatarSkillId(int value) { + + avatarSkillId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarSkillId = 3; + * @return This builder for chaining. + */ + public Builder clearAvatarSkillId() { + + avatarSkillId_ = 0; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 4; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 4; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 4; + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_ ; + /** + * uint32 curLevel = 5; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 curLevel = 5; + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevel = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8ef22b989 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarTeamOuterClass.java @@ -0,0 +1,813 @@ +// 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 { + + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + java.util.List getAvatarGuidListList(); + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + int getAvatarGuidListCount(); + /** + * repeated uint64 avatarGuidList = 1; + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + long getAvatarGuidList(int index); + + /** + * string teamName = 2; + * @return The teamName. + */ + java.lang.String getTeamName(); + /** + * string teamName = 2; + * @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_; + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarGuidListList() { + return avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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_; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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 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; + } + } + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + public java.util.List + getAvatarGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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; + } + /** + * repeated uint64 avatarGuidList = 1; + * @param value The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarGuidList(long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 1; + * @param values The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarGuidList( + java.lang.Iterable values) { + ensureAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuidList() { + avatarGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object teamName_ = ""; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + /** + * string teamName = 2; + * @return This builder for chaining. + */ + public Builder clearTeamName() { + + teamName_ = getDefaultInstance().getTeamName(); + onChanged(); + return this; + } + /** + * string teamName = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5513515d9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarTeamResonanceInfoOuterClass.java @@ -0,0 +1,999 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return A list containing the addTeamResonanceIdList. + */ + java.util.List getAddTeamResonanceIdListList(); + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return The count of addTeamResonanceIdList. + */ + int getAddTeamResonanceIdListCount(); + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @param index The index of the element to return. + * @return The addTeamResonanceIdList at the given index. + */ + int getAddTeamResonanceIdList(int index); + + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return A list containing the delTeamResonanceIdList. + */ + java.util.List getDelTeamResonanceIdListList(); + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return The count of delTeamResonanceIdList. + */ + int getDelTeamResonanceIdListCount(); + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @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_; + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return A list containing the addTeamResonanceIdList. + */ + @java.lang.Override + public java.util.List + getAddTeamResonanceIdListList() { + return addTeamResonanceIdList_; + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return The count of addTeamResonanceIdList. + */ + public int getAddTeamResonanceIdListCount() { + return addTeamResonanceIdList_.size(); + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @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_; + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return A list containing the delTeamResonanceIdList. + */ + @java.lang.Override + public java.util.List + getDelTeamResonanceIdListList() { + return delTeamResonanceIdList_; + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return The count of delTeamResonanceIdList. + */ + public int getDelTeamResonanceIdListCount() { + return delTeamResonanceIdList_.size(); + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @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; + } + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return A list containing the addTeamResonanceIdList. + */ + public java.util.List + getAddTeamResonanceIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(addTeamResonanceIdList_) : addTeamResonanceIdList_; + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @return The count of addTeamResonanceIdList. + */ + public int getAddTeamResonanceIdListCount() { + return addTeamResonanceIdList_.size(); + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @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); + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @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; + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @param value The addTeamResonanceIdList to add. + * @return This builder for chaining. + */ + public Builder addAddTeamResonanceIdList(int value) { + ensureAddTeamResonanceIdListIsMutable(); + addTeamResonanceIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @param values The addTeamResonanceIdList to add. + * @return This builder for chaining. + */ + public Builder addAllAddTeamResonanceIdList( + java.lang.Iterable values) { + ensureAddTeamResonanceIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addTeamResonanceIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 addTeamResonanceIdList = 3; + * @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; + } + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return A list containing the delTeamResonanceIdList. + */ + public java.util.List + getDelTeamResonanceIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(delTeamResonanceIdList_) : delTeamResonanceIdList_; + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @return The count of delTeamResonanceIdList. + */ + public int getDelTeamResonanceIdListCount() { + return delTeamResonanceIdList_.size(); + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @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); + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @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; + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @param value The delTeamResonanceIdList to add. + * @return This builder for chaining. + */ + public Builder addDelTeamResonanceIdList(int value) { + ensureDelTeamResonanceIdListIsMutable(); + delTeamResonanceIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @param values The delTeamResonanceIdList to add. + * @return This builder for chaining. + */ + public Builder addAllDelTeamResonanceIdList( + java.lang.Iterable values) { + ensureDelTeamResonanceIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, delTeamResonanceIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 delTeamResonanceIdList = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9567d4419 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarTeamUpdateNotifyOuterClass.java @@ -0,0 +1,997 @@ +// 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 { + + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + int getAvatarTeamMapCount(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + boolean containsAvatarTeamMap( + int key); + /** + * Use {@link #getAvatarTeamMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAvatarTeamMap(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + java.util.Map + getAvatarTeamMapMap(); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue); + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key); + + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return A list containing the tempAvatarGuidList. + */ + java.util.List getTempAvatarGuidListList(); + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return The count of tempAvatarGuidList. + */ + int getTempAvatarGuidListCount(); + /** + * repeated uint64 tempAvatarGuidList = 2; + * @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 + 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 + .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 + internalGetAvatarTeamMap() { + if (avatarTeamMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvatarTeamMapDefaultEntryHolder.defaultEntry); + } + return avatarTeamMap_; + } + + public int getAvatarTeamMapCount() { + return internalGetAvatarTeamMap().getMap().size(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + @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 getAvatarTeamMap() { + return getAvatarTeamMapMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public java.util.Map getAvatarTeamMapMap() { + return internalGetAvatarTeamMap().getMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return A list containing the tempAvatarGuidList. + */ + @java.lang.Override + public java.util.List + getTempAvatarGuidListList() { + return tempAvatarGuidList_; + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return The count of tempAvatarGuidList. + */ + public int getTempAvatarGuidListCount() { + return tempAvatarGuidList_.size(); + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @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 entry + : internalGetAvatarTeamMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetAvatarTeamMap() { + if (avatarTeamMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AvatarTeamMapDefaultEntryHolder.defaultEntry); + } + return avatarTeamMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + @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 getAvatarTeamMap() { + return getAvatarTeamMapMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public java.util.Map getAvatarTeamMapMap() { + return internalGetAvatarTeamMap().getMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault( + int key, + emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow( + int key) { + + java.util.Map map = + internalGetAvatarTeamMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAvatarTeamMap() { + internalGetMutableAvatarTeamMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + public Builder removeAvatarTeamMap( + int key) { + + internalGetMutableAvatarTeamMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAvatarTeamMap() { + return internalGetMutableAvatarTeamMap().getMutableMap(); + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + 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; + } + /** + * map<uint32, .AvatarTeam> avatarTeamMap = 1; + */ + + public Builder putAllAvatarTeamMap( + java.util.Map 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; + } + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return A list containing the tempAvatarGuidList. + */ + public java.util.List + getTempAvatarGuidListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(tempAvatarGuidList_) : tempAvatarGuidList_; + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @return The count of tempAvatarGuidList. + */ + public int getTempAvatarGuidListCount() { + return tempAvatarGuidList_.size(); + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @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); + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @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; + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @param value The tempAvatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addTempAvatarGuidList(long value) { + ensureTempAvatarGuidListIsMutable(); + tempAvatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @param values The tempAvatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllTempAvatarGuidList( + java.lang.Iterable values) { + ensureTempAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tempAvatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 tempAvatarGuidList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2ec0af8ba --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarUnlockTalentNotifyOuterClass.java @@ -0,0 +1,749 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 entityId = 2; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 talentId = 3; + * @return The talentId. + */ + int getTalentId(); + + /** + * uint32 skillDepotId = 4; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int ENTITYID_FIELD_NUMBER = 2; + private int entityId_; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int TALENTID_FIELD_NUMBER = 3; + private int talentId_; + /** + * uint32 talentId = 3; + * @return The talentId. + */ + @java.lang.Override + public int getTalentId() { + return talentId_; + } + + public static final int SKILLDEPOTID_FIELD_NUMBER = 4; + private int skillDepotId_; + /** + * uint32 skillDepotId = 4; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int talentId_ ; + /** + * uint32 talentId = 3; + * @return The talentId. + */ + @java.lang.Override + public int getTalentId() { + return talentId_; + } + /** + * uint32 talentId = 3; + * @param value The talentId to set. + * @return This builder for chaining. + */ + public Builder setTalentId(int value) { + + talentId_ = value; + onChanged(); + return this; + } + /** + * uint32 talentId = 3; + * @return This builder for chaining. + */ + public Builder clearTalentId() { + + talentId_ = 0; + onChanged(); + return this; + } + + private int skillDepotId_ ; + /** + * uint32 skillDepotId = 4; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + /** + * uint32 skillDepotId = 4; + * @param value The skillDepotId to set. + * @return This builder for chaining. + */ + public Builder setSkillDepotId(int value) { + + skillDepotId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillDepotId = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fe62a81e2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeReqOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * uint32 itemId = 1; + * @return The itemId. + */ + int getItemId(); + + /** + * uint32 count = 2; + * @return The count. + */ + int getCount(); + + /** + * uint64 avatarGuid = 3; + * @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_; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 3; + private long avatarGuid_; + /** + * uint64 avatarGuid = 3; + * @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 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_ ; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 1; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 1; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 2; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 2; + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 3; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 3; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b7a0d721d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarUpgradeRspOuterClass.java @@ -0,0 +1,1385 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + int getCurLevel(); + + /** + * map<uint32, float> oldFightPropMap = 5; + */ + int getOldFightPropMapCount(); + /** + * map<uint32, float> oldFightPropMap = 5; + */ + boolean containsOldFightPropMap( + int key); + /** + * Use {@link #getOldFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOldFightPropMap(); + /** + * map<uint32, float> oldFightPropMap = 5; + */ + java.util.Map + getOldFightPropMapMap(); + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + float getOldFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + float getOldFightPropMapOrThrow( + int key); + + /** + * map<uint32, float> curFightPropMap = 6; + */ + int getCurFightPropMapCount(); + /** + * map<uint32, float> curFightPropMap = 6; + */ + boolean containsCurFightPropMap( + int key); + /** + * Use {@link #getCurFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCurFightPropMap(); + /** + * map<uint32, float> curFightPropMap = 6; + */ + java.util.Map + getCurFightPropMapMap(); + /** + * map<uint32, float> curFightPropMap = 6; + */ + + float getCurFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> curFightPropMap = 6; + */ + + 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 + 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 + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 3; + private int oldLevel_; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CURLEVEL_FIELD_NUMBER = 4; + private int curLevel_; + /** + * uint32 curLevel = 4; + * @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 + .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 + internalGetOldFightPropMap() { + if (oldFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + } + return oldFightPropMap_; + } + + public int getOldFightPropMapCount() { + return internalGetOldFightPropMap().getMap().size(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + @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 getOldFightPropMap() { + return getOldFightPropMapMap(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public java.util.Map getOldFightPropMapMap() { + return internalGetOldFightPropMap().getMap(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public float getOldFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetOldFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public float getOldFightPropMapOrThrow( + int key) { + + java.util.Map 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 + .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 + internalGetCurFightPropMap() { + if (curFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + } + return curFightPropMap_; + } + + public int getCurFightPropMapCount() { + return internalGetCurFightPropMap().getMap().size(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + + @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 getCurFightPropMap() { + return getCurFightPropMapMap(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public java.util.Map getCurFightPropMapMap() { + return internalGetCurFightPropMap().getMap(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public float getCurFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetCurFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public float getCurFightPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetOldFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + oldFightPropMap__ = OldFightPropMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, oldFightPropMap__); + } + for (java.util.Map.Entry entry + : internalGetCurFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 3; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 3; + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_ ; + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 curLevel = 4; + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevel = 4; + * @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 + internalGetOldFightPropMap() { + if (oldFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldFightPropMapDefaultEntryHolder.defaultEntry); + } + return oldFightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + @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 getOldFightPropMap() { + return getOldFightPropMapMap(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public java.util.Map getOldFightPropMapMap() { + return internalGetOldFightPropMap().getMap(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public float getOldFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetOldFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + @java.lang.Override + + public float getOldFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetOldFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOldFightPropMap() { + internalGetMutableOldFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + public Builder removeOldFightPropMap( + int key) { + + internalGetMutableOldFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOldFightPropMap() { + return internalGetMutableOldFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + public Builder putOldFightPropMap( + int key, + float value) { + + + internalGetMutableOldFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> oldFightPropMap = 5; + */ + + public Builder putAllOldFightPropMap( + java.util.Map values) { + internalGetMutableOldFightPropMap().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Float> curFightPropMap_; + private com.google.protobuf.MapField + internalGetCurFightPropMap() { + if (curFightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurFightPropMapDefaultEntryHolder.defaultEntry); + } + return curFightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + + @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 getCurFightPropMap() { + return getCurFightPropMapMap(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public java.util.Map getCurFightPropMapMap() { + return internalGetCurFightPropMap().getMap(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public float getCurFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetCurFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + @java.lang.Override + + public float getCurFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetCurFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCurFightPropMap() { + internalGetMutableCurFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + + public Builder removeCurFightPropMap( + int key) { + + internalGetMutableCurFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCurFightPropMap() { + return internalGetMutableCurFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + public Builder putCurFightPropMap( + int key, + float value) { + + + internalGetMutableCurFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> curFightPropMap = 6; + */ + + public Builder putAllCurFightPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5a533f04a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 flycloakId = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int FLYCLOAKID_FIELD_NUMBER = 2; + private int flycloakId_; + /** + * uint32 flycloakId = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int flycloakId_ ; + /** + * uint32 flycloakId = 2; + * @return The flycloakId. + */ + @java.lang.Override + public int getFlycloakId() { + return flycloakId_; + } + /** + * uint32 flycloakId = 2; + * @param value The flycloakId to set. + * @return This builder for chaining. + */ + public Builder setFlycloakId(int value) { + + flycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 flycloakId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..41797e2aa --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/AvatarWearFlycloakRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 flycloakId = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int FLYCLOAKID_FIELD_NUMBER = 3; + private int flycloakId_; + /** + * uint32 flycloakId = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int flycloakId_ ; + /** + * uint32 flycloakId = 3; + * @return The flycloakId. + */ + @java.lang.Override + public int getFlycloakId() { + return flycloakId_; + } + /** + * uint32 flycloakId = 3; + * @param value The flycloakId to set. + * @return This builder for chaining. + */ + public Builder setFlycloakId(int value) { + + flycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 flycloakId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d06d120f7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/BirthdayOuterClass.java @@ -0,0 +1,606 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: 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 { + + /** + * uint32 month = 1; + * @return The month. + */ + int getMonth(); + + /** + * uint32 day = 2; + * @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 (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_; + /** + * uint32 month = 1; + * @return The month. + */ + @java.lang.Override + public int getMonth() { + return month_; + } + + public static final int DAY_FIELD_NUMBER = 2; + private int day_; + /** + * uint32 day = 2; + * @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 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_ ; + /** + * uint32 month = 1; + * @return The month. + */ + @java.lang.Override + public int getMonth() { + return month_; + } + /** + * uint32 month = 1; + * @param value The month to set. + * @return This builder for chaining. + */ + public Builder setMonth(int value) { + + month_ = value; + onChanged(); + return this; + } + /** + * uint32 month = 1; + * @return This builder for chaining. + */ + public Builder clearMonth() { + + month_ = 0; + onChanged(); + return this; + } + + private int day_ ; + /** + * uint32 day = 2; + * @return The day. + */ + @java.lang.Override + public int getDay() { + return day_; + } + /** + * uint32 day = 2; + * @param value The day to set. + * @return This builder for chaining. + */ + public Builder setDay(int value) { + + day_ = value; + onChanged(); + return this; + } + /** + * uint32 day = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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\016Birthday.proto\"&\n\010Birthday\022\r\n\005month\030\001 " + + "\001(\r\022\013\n\003day\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_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 new file mode 100644 index 000000000..8d0d1768a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/BlockInfoOuterClass.java @@ -0,0 +1,752 @@ +// 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 { + + /** + * uint32 blockId = 1; + * @return The blockId. + */ + int getBlockId(); + + /** + * uint32 dataVersion = 2; + * @return The dataVersion. + */ + int getDataVersion(); + + /** + * bytes binData = 3; + * @return The binData. + */ + com.google.protobuf.ByteString getBinData(); + + /** + * bool isDirty = 4; + * @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_; + /** + * uint32 blockId = 1; + * @return The blockId. + */ + @java.lang.Override + public int getBlockId() { + return blockId_; + } + + public static final int DATAVERSION_FIELD_NUMBER = 2; + private int dataVersion_; + /** + * uint32 dataVersion = 2; + * @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_; + /** + * bytes binData = 3; + * @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_; + /** + * bool isDirty = 4; + * @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 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_ ; + /** + * uint32 blockId = 1; + * @return The blockId. + */ + @java.lang.Override + public int getBlockId() { + return blockId_; + } + /** + * uint32 blockId = 1; + * @param value The blockId to set. + * @return This builder for chaining. + */ + public Builder setBlockId(int value) { + + blockId_ = value; + onChanged(); + return this; + } + /** + * uint32 blockId = 1; + * @return This builder for chaining. + */ + public Builder clearBlockId() { + + blockId_ = 0; + onChanged(); + return this; + } + + private int dataVersion_ ; + /** + * uint32 dataVersion = 2; + * @return The dataVersion. + */ + @java.lang.Override + public int getDataVersion() { + return dataVersion_; + } + /** + * uint32 dataVersion = 2; + * @param value The dataVersion to set. + * @return This builder for chaining. + */ + public Builder setDataVersion(int value) { + + dataVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 dataVersion = 2; + * @return This builder for chaining. + */ + public Builder clearDataVersion() { + + dataVersion_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString binData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes binData = 3; + * @return The binData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBinData() { + return binData_; + } + /** + * bytes binData = 3; + * @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; + } + /** + * bytes binData = 3; + * @return This builder for chaining. + */ + public Builder clearBinData() { + + binData_ = getDefaultInstance().getBinData(); + onChanged(); + return this; + } + + private boolean isDirty_ ; + /** + * bool isDirty = 4; + * @return The isDirty. + */ + @java.lang.Override + public boolean getIsDirty() { + return isDirty_; + } + /** + * bool isDirty = 4; + * @param value The isDirty to set. + * @return This builder for chaining. + */ + public Builder setIsDirty(boolean value) { + + isDirty_ = value; + onChanged(); + return this; + } + /** + * bool isDirty = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..dc430f9d1 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsReqOuterClass.java @@ -0,0 +1,1111 @@ +// 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 { + + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + java.util.List getFoodWeaponGuidListList(); + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + int getFoodWeaponGuidListCount(); + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param index The index of the element to return. + * @return The foodWeaponGuidList at the given index. + */ + long getFoodWeaponGuidList(int index); + + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 3; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + 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(); + 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_; + /** + * uint64 targetWeaponGuid = 1; + * @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_; + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + @java.lang.Override + public java.util.List + getFoodWeaponGuidListList() { + return foodWeaponGuidList_; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + public int getFoodWeaponGuidListCount() { + return foodWeaponGuidList_.size(); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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 itemParamList_; + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @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 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_ ; + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 1; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 1; + * @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; + } + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + public java.util.List + getFoodWeaponGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + public int getFoodWeaponGuidListCount() { + return foodWeaponGuidList_.size(); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param value The foodWeaponGuidList to add. + * @return This builder for chaining. + */ + public Builder addFoodWeaponGuidList(long value) { + ensureFoodWeaponGuidListIsMutable(); + foodWeaponGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param values The foodWeaponGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllFoodWeaponGuidList( + java.lang.Iterable values) { + ensureFoodWeaponGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, foodWeaponGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return This builder for chaining. + */ + public Builder clearFoodWeaponGuidList() { + foodWeaponGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1630c3538 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CalcWeaponUpgradeReturnItemsRspOuterClass.java @@ -0,0 +1,987 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 3; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; + private long targetWeaponGuid_; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + + public static final int ITEMPARAMLIST_FIELD_NUMBER = 3; + private java.util.List itemParamList_; + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetWeaponGuid_ ; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 2; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetWeaponGuid() { + + targetWeaponGuid_ = 0L; + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..21e9835d3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeAvatarReqOuterClass.java @@ -0,0 +1,885 @@ +// 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 { + + /** + * uint64 guid = 1; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 skillId = 2; + * @return The skillId. + */ + int getSkillId(); + + /** + * bool isMove = 3; + * @return The isMove. + */ + boolean getIsMove(); + + /** + * .Vector movePos = 4; + * @return Whether the movePos field is set. + */ + boolean hasMovePos(); + /** + * .Vector movePos = 4; + * @return The movePos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getMovePos(); + /** + * .Vector movePos = 4; + */ + 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_; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int SKILLID_FIELD_NUMBER = 2; + private int skillId_; + /** + * uint32 skillId = 2; + * @return The skillId. + */ + @java.lang.Override + public int getSkillId() { + return skillId_; + } + + public static final int ISMOVE_FIELD_NUMBER = 3; + private boolean isMove_; + /** + * bool isMove = 3; + * @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_; + /** + * .Vector movePos = 4; + * @return Whether the movePos field is set. + */ + @java.lang.Override + public boolean hasMovePos() { + return movePos_ != null; + } + /** + * .Vector movePos = 4; + * @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_; + } + /** + * .Vector movePos = 4; + */ + @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 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_ ; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 1; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 1; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int skillId_ ; + /** + * uint32 skillId = 2; + * @return The skillId. + */ + @java.lang.Override + public int getSkillId() { + return skillId_; + } + /** + * uint32 skillId = 2; + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(int value) { + + skillId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillId = 2; + * @return This builder for chaining. + */ + public Builder clearSkillId() { + + skillId_ = 0; + onChanged(); + return this; + } + + private boolean isMove_ ; + /** + * bool isMove = 3; + * @return The isMove. + */ + @java.lang.Override + public boolean getIsMove() { + return isMove_; + } + /** + * bool isMove = 3; + * @param value The isMove to set. + * @return This builder for chaining. + */ + public Builder setIsMove(boolean value) { + + isMove_ = value; + onChanged(); + return this; + } + /** + * bool isMove = 3; + * @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_; + /** + * .Vector movePos = 4; + * @return Whether the movePos field is set. + */ + public boolean hasMovePos() { + return movePosBuilder_ != null || movePos_ != null; + } + /** + * .Vector movePos = 4; + * @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(); + } + } + /** + * .Vector movePos = 4; + */ + 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; + } + /** + * .Vector movePos = 4; + */ + 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; + } + /** + * .Vector movePos = 4; + */ + 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; + } + /** + * .Vector movePos = 4; + */ + public Builder clearMovePos() { + if (movePosBuilder_ == null) { + movePos_ = null; + onChanged(); + } else { + movePos_ = null; + movePosBuilder_ = null; + } + + return this; + } + /** + * .Vector movePos = 4; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getMovePosBuilder() { + + onChanged(); + return getMovePosFieldBuilder().getBuilder(); + } + /** + * .Vector movePos = 4; + */ + 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_; + } + } + /** + * .Vector movePos = 4; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..17b86745f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeAvatarRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * uint32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 currGuid = 2; + * @return The currGuid. + */ + long getCurrGuid(); + + /** + * uint32 skillId = 3; + * @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_; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CURRGUID_FIELD_NUMBER = 2; + private long currGuid_; + /** + * uint64 currGuid = 2; + * @return The currGuid. + */ + @java.lang.Override + public long getCurrGuid() { + return currGuid_; + } + + public static final int SKILLID_FIELD_NUMBER = 3; + private int skillId_; + /** + * uint32 skillId = 3; + * @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 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_ ; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * uint32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * uint32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long currGuid_ ; + /** + * uint64 currGuid = 2; + * @return The currGuid. + */ + @java.lang.Override + public long getCurrGuid() { + return currGuid_; + } + /** + * uint64 currGuid = 2; + * @param value The currGuid to set. + * @return This builder for chaining. + */ + public Builder setCurrGuid(long value) { + + currGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 currGuid = 2; + * @return This builder for chaining. + */ + public Builder clearCurrGuid() { + + currGuid_ = 0L; + onChanged(); + return this; + } + + private int skillId_ ; + /** + * uint32 skillId = 3; + * @return The skillId. + */ + @java.lang.Override + public int getSkillId() { + return skillId_; + } + /** + * uint32 skillId = 3; + * @param value The skillId to set. + * @return This builder for chaining. + */ + public Builder setSkillId(int value) { + + skillId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8dd67f079 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + int getGameTime(); + + /** + * bool isForceSet = 2; + * @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_; + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + @java.lang.Override + public int getGameTime() { + return gameTime_; + } + + public static final int ISFORCESET_FIELD_NUMBER = 2; + private boolean isForceSet_; + /** + * bool isForceSet = 2; + * @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 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_ ; + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + @java.lang.Override + public int getGameTime() { + return gameTime_; + } + /** + * uint32 gameTime = 1; + * @param value The gameTime to set. + * @return This builder for chaining. + */ + public Builder setGameTime(int value) { + + gameTime_ = value; + onChanged(); + return this; + } + /** + * uint32 gameTime = 1; + * @return This builder for chaining. + */ + public Builder clearGameTime() { + + gameTime_ = 0; + onChanged(); + return this; + } + + private boolean isForceSet_ ; + /** + * bool isForceSet = 2; + * @return The isForceSet. + */ + @java.lang.Override + public boolean getIsForceSet() { + return isForceSet_; + } + /** + * bool isForceSet = 2; + * @param value The isForceSet to set. + * @return This builder for chaining. + */ + public Builder setIsForceSet(boolean value) { + + isForceSet_ = value; + onChanged(); + return this; + } + /** + * bool isForceSet = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6ba006075 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeGameTimeRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 curGameTime = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CURGAMETIME_FIELD_NUMBER = 2; + private int curGameTime_; + /** + * uint32 curGameTime = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int curGameTime_ ; + /** + * uint32 curGameTime = 2; + * @return The curGameTime. + */ + @java.lang.Override + public int getCurGameTime() { + return curGameTime_; + } + /** + * uint32 curGameTime = 2; + * @param value The curGameTime to set. + * @return This builder for chaining. + */ + public Builder setCurGameTime(int value) { + + curGameTime_ = value; + onChanged(); + return this; + } + /** + * uint32 curGameTime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..789af4c5c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeHpReasonOuterClass.java @@ -0,0 +1,366 @@ +// 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 { + /** + * ChangeHpNone = 0; + */ + ChangeHpNone(0), + /** + * ChangeHpSubAvatar = 1; + */ + ChangeHpSubAvatar(1), + /** + * ChangeHpSubMonster = 2; + */ + ChangeHpSubMonster(2), + /** + * ChangeHpSubGear = 3; + */ + ChangeHpSubGear(3), + /** + * ChangeHpSubEnvir = 4; + */ + ChangeHpSubEnvir(4), + /** + * ChangeHpSubFall = 5; + */ + ChangeHpSubFall(5), + /** + * ChangeHpSubDrawn = 6; + */ + ChangeHpSubDrawn(6), + /** + * ChangeHpSubAbyss = 7; + */ + ChangeHpSubAbyss(7), + /** + * ChangeHpSubAbility = 8; + */ + ChangeHpSubAbility(8), + /** + * ChangeHpSubSummon = 9; + */ + ChangeHpSubSummon(9), + /** + * ChangeHpSubScript = 10; + */ + ChangeHpSubScript(10), + /** + * ChangeHpSubGm = 11; + */ + ChangeHpSubGm(11), + /** + * ChangeHpSubKillSelf = 12; + */ + ChangeHpSubKillSelf(12), + /** + * ChangeHpSubClimateCold = 13; + */ + ChangeHpSubClimateCold(13), + /** + * ChangeHpSubStormLightning = 14; + */ + ChangeHpSubStormLightning(14), + /** + * ChangeHpSubKillServerGadget = 15; + */ + ChangeHpSubKillServerGadget(15), + /** + * ChangeHpByLua = 51; + */ + ChangeHpByLua(51), + /** + * ChangeHpAddAbility = 101; + */ + ChangeHpAddAbility(101), + /** + * ChangeHpAddItem = 102; + */ + ChangeHpAddItem(102), + /** + * ChangeHpAddRevive = 103; + */ + ChangeHpAddRevive(103), + /** + * ChangeHpAddUpgrade = 104; + */ + ChangeHpAddUpgrade(104), + /** + * ChangeHpAddStatue = 105; + */ + ChangeHpAddStatue(105), + /** + * ChangeHpAddBackground = 106; + */ + ChangeHpAddBackground(106), + /** + * ChangeHpAddGm = 107; + */ + ChangeHpAddGm(107), + /** + * ChangeHpAddTrialAvatarActivity = 108; + */ + ChangeHpAddTrialAvatarActivity(108), + UNRECOGNIZED(-1), + ; + + /** + * ChangeHpNone = 0; + */ + public static final int ChangeHpNone_VALUE = 0; + /** + * ChangeHpSubAvatar = 1; + */ + public static final int ChangeHpSubAvatar_VALUE = 1; + /** + * ChangeHpSubMonster = 2; + */ + public static final int ChangeHpSubMonster_VALUE = 2; + /** + * ChangeHpSubGear = 3; + */ + public static final int ChangeHpSubGear_VALUE = 3; + /** + * ChangeHpSubEnvir = 4; + */ + public static final int ChangeHpSubEnvir_VALUE = 4; + /** + * ChangeHpSubFall = 5; + */ + public static final int ChangeHpSubFall_VALUE = 5; + /** + * ChangeHpSubDrawn = 6; + */ + public static final int ChangeHpSubDrawn_VALUE = 6; + /** + * ChangeHpSubAbyss = 7; + */ + public static final int ChangeHpSubAbyss_VALUE = 7; + /** + * ChangeHpSubAbility = 8; + */ + public static final int ChangeHpSubAbility_VALUE = 8; + /** + * ChangeHpSubSummon = 9; + */ + public static final int ChangeHpSubSummon_VALUE = 9; + /** + * ChangeHpSubScript = 10; + */ + public static final int ChangeHpSubScript_VALUE = 10; + /** + * ChangeHpSubGm = 11; + */ + public static final int ChangeHpSubGm_VALUE = 11; + /** + * ChangeHpSubKillSelf = 12; + */ + public static final int ChangeHpSubKillSelf_VALUE = 12; + /** + * ChangeHpSubClimateCold = 13; + */ + public static final int ChangeHpSubClimateCold_VALUE = 13; + /** + * ChangeHpSubStormLightning = 14; + */ + public static final int ChangeHpSubStormLightning_VALUE = 14; + /** + * ChangeHpSubKillServerGadget = 15; + */ + public static final int ChangeHpSubKillServerGadget_VALUE = 15; + /** + * ChangeHpByLua = 51; + */ + public static final int ChangeHpByLua_VALUE = 51; + /** + * ChangeHpAddAbility = 101; + */ + public static final int ChangeHpAddAbility_VALUE = 101; + /** + * ChangeHpAddItem = 102; + */ + public static final int ChangeHpAddItem_VALUE = 102; + /** + * ChangeHpAddRevive = 103; + */ + public static final int ChangeHpAddRevive_VALUE = 103; + /** + * ChangeHpAddUpgrade = 104; + */ + public static final int ChangeHpAddUpgrade_VALUE = 104; + /** + * ChangeHpAddStatue = 105; + */ + public static final int ChangeHpAddStatue_VALUE = 105; + /** + * ChangeHpAddBackground = 106; + */ + public static final int ChangeHpAddBackground_VALUE = 106; + /** + * ChangeHpAddGm = 107; + */ + public static final int ChangeHpAddGm_VALUE = 107; + /** + * ChangeHpAddTrialAvatarActivity = 108; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ChangeHpReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..8d77cfbfe --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarReqOuterClass.java @@ -0,0 +1,735 @@ +// 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 { + + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + java.util.List getAvatarGuidListList(); + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + int getAvatarGuidListCount(); + /** + * repeated uint64 avatarGuidList = 1; + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + long getAvatarGuidList(int index); + + /** + * uint64 curAvatarGuid = 2; + * @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_; + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarGuidListList() { + return avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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_; + /** + * uint64 curAvatarGuid = 2; + * @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 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; + } + } + /** + * repeated uint64 avatarGuidList = 1; + * @return A list containing the avatarGuidList. + */ + public java.util.List + getAvatarGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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); + } + /** + * repeated uint64 avatarGuidList = 1; + * @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; + } + /** + * repeated uint64 avatarGuidList = 1; + * @param value The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarGuidList(long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 1; + * @param values The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarGuidList( + java.lang.Iterable values) { + ensureAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuidList() { + avatarGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long curAvatarGuid_ ; + /** + * uint64 curAvatarGuid = 2; + * @return The curAvatarGuid. + */ + @java.lang.Override + public long getCurAvatarGuid() { + return curAvatarGuid_; + } + /** + * uint64 curAvatarGuid = 2; + * @param value The curAvatarGuid to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarGuid(long value) { + + curAvatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 curAvatarGuid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bd06efa17 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeMpTeamAvatarRspOuterClass.java @@ -0,0 +1,805 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + java.util.List getAvatarGuidListList(); + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + int getAvatarGuidListCount(); + /** + * repeated uint64 avatarGuidList = 2; + * @param index The index of the element to return. + * @return The avatarGuidList at the given index. + */ + long getAvatarGuidList(int index); + + /** + * uint64 curAvatarGuid = 3; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarGuidListList() { + return avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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_; + /** + * uint64 curAvatarGuid = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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; + } + } + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + public java.util.List + getAvatarGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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; + } + /** + * repeated uint64 avatarGuidList = 2; + * @param value The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarGuidList(long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 2; + * @param values The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarGuidList( + java.lang.Iterable values) { + ensureAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuidList() { + avatarGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long curAvatarGuid_ ; + /** + * uint64 curAvatarGuid = 3; + * @return The curAvatarGuid. + */ + @java.lang.Override + public long getCurAvatarGuid() { + return curAvatarGuid_; + } + /** + * uint64 curAvatarGuid = 3; + * @param value The curAvatarGuid to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarGuid(long value) { + + curAvatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 curAvatarGuid = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..65f9a9290 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameReqOuterClass.java @@ -0,0 +1,686 @@ +// 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 { + + /** + * int32 teamId = 1; + * @return The teamId. + */ + int getTeamId(); + + /** + * string teamName = 2; + * @return The teamName. + */ + java.lang.String getTeamName(); + /** + * string teamName = 2; + * @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_; + /** + * int32 teamId = 1; + * @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_; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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 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_ ; + /** + * int32 teamId = 1; + * @return The teamId. + */ + @java.lang.Override + public int getTeamId() { + return teamId_; + } + /** + * int32 teamId = 1; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId(int value) { + + teamId_ = value; + onChanged(); + return this; + } + /** + * int32 teamId = 1; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + + teamId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object teamName_ = ""; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + /** + * string teamName = 2; + * @return This builder for chaining. + */ + public Builder clearTeamName() { + + teamName_ = getDefaultInstance().getTeamName(); + onChanged(); + return this; + } + /** + * string teamName = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7d1b703df --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChangeTeamNameRspOuterClass.java @@ -0,0 +1,757 @@ +// 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 { + + /** + * int32 teamId = 1; + * @return The teamId. + */ + int getTeamId(); + + /** + * string teamName = 2; + * @return The teamName. + */ + java.lang.String getTeamName(); + /** + * string teamName = 2; + * @return The bytes for teamName. + */ + com.google.protobuf.ByteString + getTeamNameBytes(); + + /** + * int32 retcode = 3; + * @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_; + /** + * int32 teamId = 1; + * @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_; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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_; + /** + * int32 retcode = 3; + * @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 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_ ; + /** + * int32 teamId = 1; + * @return The teamId. + */ + @java.lang.Override + public int getTeamId() { + return teamId_; + } + /** + * int32 teamId = 1; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId(int value) { + + teamId_ = value; + onChanged(); + return this; + } + /** + * int32 teamId = 1; + * @return This builder for chaining. + */ + public Builder clearTeamId() { + + teamId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object teamName_ = ""; + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + } + /** + * string teamName = 2; + * @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; + } + /** + * string teamName = 2; + * @return This builder for chaining. + */ + public Builder clearTeamName() { + + teamName_ = getDefaultInstance().getTeamName(); + onChanged(); + return this; + } + /** + * string teamName = 2; + * @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_ ; + /** + * int32 retcode = 3; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 3; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cb7c4e966 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChatInfoOuterClass.java @@ -0,0 +1,1423 @@ +// 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 { + + /** + * uint32 time = 1; + * @return The time. + */ + int getTime(); + + /** + * uint32 uid = 2; + * @return The uid. + */ + int getUid(); + + /** + * uint32 sequence = 3; + * @return The sequence. + */ + int getSequence(); + + /** + * uint32 toUid = 4; + * @return The toUid. + */ + int getToUid(); + + /** + * bool isRead = 5; + * @return The isRead. + */ + boolean getIsRead(); + + /** + * string text = 100; + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * string text = 100; + * @return The text. + */ + java.lang.String getText(); + /** + * string text = 100; + * @return The bytes for text. + */ + com.google.protobuf.ByteString + getTextBytes(); + + /** + * uint32 icon = 101; + * @return Whether the icon field is set. + */ + boolean hasIcon(); + /** + * uint32 icon = 101; + * @return The icon. + */ + int getIcon(); + + /** + * .SystemHint systemHint = 102; + * @return Whether the systemHint field is set. + */ + boolean hasSystemHint(); + /** + * .SystemHint systemHint = 102; + * @return The systemHint. + */ + emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint getSystemHint(); + /** + * .SystemHint systemHint = 102; + */ + 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_; + /** + * uint32 time = 1; + * @return The time. + */ + @java.lang.Override + public int getTime() { + return time_; + } + + public static final int UID_FIELD_NUMBER = 2; + private int uid_; + /** + * uint32 uid = 2; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + + public static final int SEQUENCE_FIELD_NUMBER = 3; + private int sequence_; + /** + * uint32 sequence = 3; + * @return The sequence. + */ + @java.lang.Override + public int getSequence() { + return sequence_; + } + + public static final int TOUID_FIELD_NUMBER = 4; + private int toUid_; + /** + * uint32 toUid = 4; + * @return The toUid. + */ + @java.lang.Override + public int getToUid() { + return toUid_; + } + + public static final int ISREAD_FIELD_NUMBER = 5; + private boolean isRead_; + /** + * bool isRead = 5; + * @return The isRead. + */ + @java.lang.Override + public boolean getIsRead() { + return isRead_; + } + + public static final int TEXT_FIELD_NUMBER = 100; + /** + * string text = 100; + * @return Whether the text field is set. + */ + public boolean hasText() { + return contentCase_ == 100; + } + /** + * string text = 100; + * @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; + } + } + /** + * string text = 100; + * @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; + /** + * uint32 icon = 101; + * @return Whether the icon field is set. + */ + @java.lang.Override + public boolean hasIcon() { + return contentCase_ == 101; + } + /** + * uint32 icon = 101; + * @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; + /** + * .SystemHint systemHint = 102; + * @return Whether the systemHint field is set. + */ + @java.lang.Override + public boolean hasSystemHint() { + return contentCase_ == 102; + } + /** + * .SystemHint systemHint = 102; + * @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(); + } + /** + * .SystemHint systemHint = 102; + */ + @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 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_ ; + /** + * uint32 time = 1; + * @return The time. + */ + @java.lang.Override + public int getTime() { + return time_; + } + /** + * uint32 time = 1; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(int value) { + + time_ = value; + onChanged(); + return this; + } + /** + * uint32 time = 1; + * @return This builder for chaining. + */ + public Builder clearTime() { + + time_ = 0; + onChanged(); + return this; + } + + private int uid_ ; + /** + * uint32 uid = 2; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 2; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 2; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private int sequence_ ; + /** + * uint32 sequence = 3; + * @return The sequence. + */ + @java.lang.Override + public int getSequence() { + return sequence_; + } + /** + * uint32 sequence = 3; + * @param value The sequence to set. + * @return This builder for chaining. + */ + public Builder setSequence(int value) { + + sequence_ = value; + onChanged(); + return this; + } + /** + * uint32 sequence = 3; + * @return This builder for chaining. + */ + public Builder clearSequence() { + + sequence_ = 0; + onChanged(); + return this; + } + + private int toUid_ ; + /** + * uint32 toUid = 4; + * @return The toUid. + */ + @java.lang.Override + public int getToUid() { + return toUid_; + } + /** + * uint32 toUid = 4; + * @param value The toUid to set. + * @return This builder for chaining. + */ + public Builder setToUid(int value) { + + toUid_ = value; + onChanged(); + return this; + } + /** + * uint32 toUid = 4; + * @return This builder for chaining. + */ + public Builder clearToUid() { + + toUid_ = 0; + onChanged(); + return this; + } + + private boolean isRead_ ; + /** + * bool isRead = 5; + * @return The isRead. + */ + @java.lang.Override + public boolean getIsRead() { + return isRead_; + } + /** + * bool isRead = 5; + * @param value The isRead to set. + * @return This builder for chaining. + */ + public Builder setIsRead(boolean value) { + + isRead_ = value; + onChanged(); + return this; + } + /** + * bool isRead = 5; + * @return This builder for chaining. + */ + public Builder clearIsRead() { + + isRead_ = false; + onChanged(); + return this; + } + + /** + * string text = 100; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return contentCase_ == 100; + } + /** + * string text = 100; + * @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; + } + } + /** + * string text = 100; + * @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; + } + } + /** + * string text = 100; + * @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; + } + /** + * string text = 100; + * @return This builder for chaining. + */ + public Builder clearText() { + if (contentCase_ == 100) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + * string text = 100; + * @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; + } + + /** + * uint32 icon = 101; + * @return Whether the icon field is set. + */ + public boolean hasIcon() { + return contentCase_ == 101; + } + /** + * uint32 icon = 101; + * @return The icon. + */ + public int getIcon() { + if (contentCase_ == 101) { + return (java.lang.Integer) content_; + } + return 0; + } + /** + * uint32 icon = 101; + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon(int value) { + contentCase_ = 101; + content_ = value; + onChanged(); + return this; + } + /** + * uint32 icon = 101; + * @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_; + /** + * .SystemHint systemHint = 102; + * @return Whether the systemHint field is set. + */ + @java.lang.Override + public boolean hasSystemHint() { + return contentCase_ == 102; + } + /** + * .SystemHint systemHint = 102; + * @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(); + } + } + /** + * .SystemHint systemHint = 102; + */ + 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; + } + /** + * .SystemHint systemHint = 102; + */ + 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; + } + /** + * .SystemHint systemHint = 102; + */ + 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; + } + /** + * .SystemHint systemHint = 102; + */ + 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; + } + /** + * .SystemHint systemHint = 102; + */ + public emu.grasscutter.net.proto.SystemHintOuterClass.SystemHint.Builder getSystemHintBuilder() { + return getSystemHintFieldBuilder().getBuilder(); + } + /** + * .SystemHint systemHint = 102; + */ + @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(); + } + } + /** + * .SystemHint systemHint = 102; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b84b531f2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 teamId = 1; + * @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_; + /** + * uint32 teamId = 1; + * @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 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_ ; + /** + * uint32 teamId = 1; + * @return The teamId. + */ + @java.lang.Override + public int getTeamId() { + return teamId_; + } + /** + * uint32 teamId = 1; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId(int value) { + + teamId_ = value; + onChanged(); + return this; + } + /** + * uint32 teamId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1e9ddcab6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ChooseCurAvatarTeamRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 curTeamId = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CURTEAMID_FIELD_NUMBER = 2; + private int curTeamId_; + /** + * uint32 curTeamId = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int curTeamId_ ; + /** + * uint32 curTeamId = 2; + * @return The curTeamId. + */ + @java.lang.Override + public int getCurTeamId() { + return curTeamId_; + } + /** + * uint32 curTeamId = 2; + * @param value The curTeamId to set. + * @return This builder for chaining. + */ + public Builder setCurTeamId(int value) { + + curTeamId_ = value; + onChanged(); + return this; + } + /** + * uint32 curTeamId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2e8711f42 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CityInfoOuterClass.java @@ -0,0 +1,676 @@ +// 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 { + + /** + * uint32 cityId = 1; + * @return The cityId. + */ + int getCityId(); + + /** + * uint32 level = 2; + * @return The level. + */ + int getLevel(); + + /** + * uint32 crystalNum = 3; + * @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_; + /** + * uint32 cityId = 1; + * @return The cityId. + */ + @java.lang.Override + public int getCityId() { + return cityId_; + } + + public static final int LEVEL_FIELD_NUMBER = 2; + private int level_; + /** + * uint32 level = 2; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int CRYSTALNUM_FIELD_NUMBER = 3; + private int crystalNum_; + /** + * uint32 crystalNum = 3; + * @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 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_ ; + /** + * uint32 cityId = 1; + * @return The cityId. + */ + @java.lang.Override + public int getCityId() { + return cityId_; + } + /** + * uint32 cityId = 1; + * @param value The cityId to set. + * @return This builder for chaining. + */ + public Builder setCityId(int value) { + + cityId_ = value; + onChanged(); + return this; + } + /** + * uint32 cityId = 1; + * @return This builder for chaining. + */ + public Builder clearCityId() { + + cityId_ = 0; + onChanged(); + return this; + } + + private int level_ ; + /** + * uint32 level = 2; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 2; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 2; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int crystalNum_ ; + /** + * uint32 crystalNum = 3; + * @return The crystalNum. + */ + @java.lang.Override + public int getCrystalNum() { + return crystalNum_; + } + /** + * uint32 crystalNum = 3; + * @param value The crystalNum to set. + * @return This builder for chaining. + */ + public Builder setCrystalNum(int value) { + + crystalNum_ = value; + onChanged(); + return this; + } + /** + * uint32 crystalNum = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..58f68d365 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ClientAbilityChangeNotifyOuterClass.java @@ -0,0 +1,915 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + java.util.List + getInvokesList(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + int getInvokesCount(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + java.util.List + getInvokesOrBuilderList(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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(); + 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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int INVOKES_FIELD_NUMBER = 2; + private java.util.List invokes_; + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public java.util.List getInvokesList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public java.util.List + getInvokesOrBuilderList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public int getInvokesCount() { + return invokes_.size(); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + return invokes_.get(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private java.util.List invokes_ = + java.util.Collections.emptyList(); + private void ensureInvokesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invokes_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List getInvokesList() { + if (invokesBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokes_); + } else { + return invokesBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public int getInvokesCount() { + if (invokesBuilder_ == null) { + return invokes_.size(); + } else { + return invokesBuilder_.getCount(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); + } else { + return invokesBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder addAllInvokes( + java.lang.Iterable values) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invokes_); + onChanged(); + } else { + invokesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder clearInvokes() { + if (invokesBuilder_ == null) { + invokes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invokesBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder removeInvokes(int index) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + invokes_.remove(index); + onChanged(); + } else { + invokesBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( + int index) { + return getInvokesFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( + int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); } else { + return invokesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List + getInvokesOrBuilderList() { + if (invokesBuilder_ != null) { + return invokesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokes_); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { + return getInvokesFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( + int index) { + return getInvokesFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..98108aa78 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitBeginNotifyOuterClass.java @@ -0,0 +1,537 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @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_; + /** + * uint32 entityId = 1; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..220cf1f65 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ClientAbilityInitFinishNotifyOuterClass.java @@ -0,0 +1,915 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + java.util.List + getInvokesList(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + int getInvokesCount(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + java.util.List + getInvokesOrBuilderList(); + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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(); + 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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int INVOKES_FIELD_NUMBER = 2; + private java.util.List invokes_; + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public java.util.List getInvokesList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public java.util.List + getInvokesOrBuilderList() { + return invokes_; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public int getInvokesCount() { + return invokes_.size(); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + return invokes_.get(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private java.util.List invokes_ = + java.util.Collections.emptyList(); + private void ensureInvokesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invokes_ = new java.util.ArrayList(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_; + + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List getInvokesList() { + if (invokesBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokes_); + } else { + return invokesBuilder_.getMessageList(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public int getInvokesCount() { + if (invokesBuilder_ == null) { + return invokes_.size(); + } else { + return invokesBuilder_.getCount(); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getInvokes(int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); + } else { + return invokesBuilder_.getMessage(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + 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; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder addAllInvokes( + java.lang.Iterable values) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invokes_); + onChanged(); + } else { + invokesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder clearInvokes() { + if (invokesBuilder_ == null) { + invokes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invokesBuilder_.clear(); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public Builder removeInvokes(int index) { + if (invokesBuilder_ == null) { + ensureInvokesIsMutable(); + invokes_.remove(index); + onChanged(); + } else { + invokesBuilder_.remove(index); + } + return this; + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder getInvokesBuilder( + int index) { + return getInvokesFieldBuilder().getBuilder(index); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder getInvokesOrBuilder( + int index) { + if (invokesBuilder_ == null) { + return invokes_.get(index); } else { + return invokesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List + getInvokesOrBuilderList() { + if (invokesBuilder_ != null) { + return invokesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokes_); + } + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder() { + return getInvokesFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.Builder addInvokesBuilder( + int index) { + return getInvokesFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()); + } + /** + * repeated .AbilityInvokeEntry invokes = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ef66ee0d5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CombatInvocationsNotifyOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + java.util.List + getInvokeListList(); + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index); + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + int getInvokeListCount(); + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + java.util.List + getInvokeListOrBuilderList(); + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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(); + 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 invokeList_; + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + @java.lang.Override + public java.util.List getInvokeListList() { + return invokeList_; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + @java.lang.Override + public java.util.List + getInvokeListOrBuilderList() { + return invokeList_; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + @java.lang.Override + public int getInvokeListCount() { + return invokeList_.size(); + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index) { + return invokeList_.get(index); + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + @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 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 invokeList_ = + java.util.Collections.emptyList(); + private void ensureInvokeListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + invokeList_ = new java.util.ArrayList(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_; + + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public java.util.List getInvokeListList() { + if (invokeListBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokeList_); + } else { + return invokeListBuilder_.getMessageList(); + } + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public int getInvokeListCount() { + if (invokeListBuilder_ == null) { + return invokeList_.size(); + } else { + return invokeListBuilder_.getCount(); + } + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry getInvokeList(int index) { + if (invokeListBuilder_ == null) { + return invokeList_.get(index); + } else { + return invokeListBuilder_.getMessage(index); + } + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + 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; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public Builder addAllInvokeList( + java.lang.Iterable values) { + if (invokeListBuilder_ == null) { + ensureInvokeListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, invokeList_); + onChanged(); + } else { + invokeListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public Builder clearInvokeList() { + if (invokeListBuilder_ == null) { + invokeList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + invokeListBuilder_.clear(); + } + return this; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public Builder removeInvokeList(int index) { + if (invokeListBuilder_ == null) { + ensureInvokeListIsMutable(); + invokeList_.remove(index); + onChanged(); + } else { + invokeListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder getInvokeListBuilder( + int index) { + return getInvokeListFieldBuilder().getBuilder(index); + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntryOrBuilder getInvokeListOrBuilder( + int index) { + if (invokeListBuilder_ == null) { + return invokeList_.get(index); } else { + return invokeListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public java.util.List + getInvokeListOrBuilderList() { + if (invokeListBuilder_ != null) { + return invokeListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokeList_); + } + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder addInvokeListBuilder() { + return getInvokeListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance()); + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.Builder addInvokeListBuilder( + int index) { + return getInvokeListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry.getDefaultInstance()); + } + /** + * repeated .CombatInvokeEntry invokeList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0a329e46b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CombatInvokeEntryOuterClass.java @@ -0,0 +1,761 @@ +// 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 { + + /** + * .CombatTypeArgument argumentType = 1; + * @return The enum numeric value on the wire for argumentType. + */ + int getArgumentTypeValue(); + /** + * .CombatTypeArgument argumentType = 1; + * @return The argumentType. + */ + emu.grasscutter.net.proto.CombatTypeArgumentOuterClass.CombatTypeArgument getArgumentType(); + + /** + * .ForwardType forwardType = 2; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 2; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * bytes combatData = 3; + * @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_; + /** + * .CombatTypeArgument argumentType = 1; + * @return The enum numeric value on the wire for argumentType. + */ + @java.lang.Override public int getArgumentTypeValue() { + return argumentType_; + } + /** + * .CombatTypeArgument argumentType = 1; + * @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_; + /** + * .ForwardType forwardType = 2; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 2; + * @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_; + /** + * bytes combatData = 3; + * @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 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; + /** + * .CombatTypeArgument argumentType = 1; + * @return The enum numeric value on the wire for argumentType. + */ + @java.lang.Override public int getArgumentTypeValue() { + return argumentType_; + } + /** + * .CombatTypeArgument argumentType = 1; + * @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; + } + /** + * .CombatTypeArgument argumentType = 1; + * @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; + } + /** + * .CombatTypeArgument argumentType = 1; + * @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; + } + /** + * .CombatTypeArgument argumentType = 1; + * @return This builder for chaining. + */ + public Builder clearArgumentType() { + + argumentType_ = 0; + onChanged(); + return this; + } + + private int forwardType_ = 0; + /** + * .ForwardType forwardType = 2; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 2; + * @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; + } + /** + * .ForwardType forwardType = 2; + * @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; + } + /** + * .ForwardType forwardType = 2; + * @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; + } + /** + * .ForwardType forwardType = 2; + * @return This builder for chaining. + */ + public Builder clearForwardType() { + + forwardType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString combatData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes combatData = 3; + * @return The combatData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCombatData() { + return combatData_; + } + /** + * bytes combatData = 3; + * @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; + } + /** + * bytes combatData = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..26fa4fcb4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CombatTypeArgumentOuterClass.java @@ -0,0 +1,271 @@ +// 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 { + /** + * CombatNone = 0; + */ + CombatNone(0), + /** + * CombatEvtBeingHit = 1; + */ + CombatEvtBeingHit(1), + /** + * CombatAnimatorStateChanged = 2; + */ + CombatAnimatorStateChanged(2), + /** + * CombatFaceToDir = 3; + */ + CombatFaceToDir(3), + /** + * CombatSetAttackTarget = 4; + */ + CombatSetAttackTarget(4), + /** + * CombatRushMove = 5; + */ + CombatRushMove(5), + /** + * CombatAnimatorParameterChanged = 6; + */ + CombatAnimatorParameterChanged(6), + /** + * EntityMove = 7; + */ + EntityMove(7), + /** + * SyncEntityPosition = 8; + */ + SyncEntityPosition(8), + /** + * CombatSteerMotionInfo = 9; + */ + CombatSteerMotionInfo(9), + /** + * CombatForceSetPosInfo = 10; + */ + CombatForceSetPosInfo(10), + /** + * CombatCompensatePosDiff = 11; + */ + CombatCompensatePosDiff(11), + /** + * CombatMonsterDoBlink = 12; + */ + CombatMonsterDoBlink(12), + /** + * CombatFixedRushMove = 13; + */ + CombatFixedRushMove(13), + /** + * CombatSyncTransform = 14; + */ + CombatSyncTransform(14), + UNRECOGNIZED(-1), + ; + + /** + * CombatNone = 0; + */ + public static final int CombatNone_VALUE = 0; + /** + * CombatEvtBeingHit = 1; + */ + public static final int CombatEvtBeingHit_VALUE = 1; + /** + * CombatAnimatorStateChanged = 2; + */ + public static final int CombatAnimatorStateChanged_VALUE = 2; + /** + * CombatFaceToDir = 3; + */ + public static final int CombatFaceToDir_VALUE = 3; + /** + * CombatSetAttackTarget = 4; + */ + public static final int CombatSetAttackTarget_VALUE = 4; + /** + * CombatRushMove = 5; + */ + public static final int CombatRushMove_VALUE = 5; + /** + * CombatAnimatorParameterChanged = 6; + */ + public static final int CombatAnimatorParameterChanged_VALUE = 6; + /** + * EntityMove = 7; + */ + public static final int EntityMove_VALUE = 7; + /** + * SyncEntityPosition = 8; + */ + public static final int SyncEntityPosition_VALUE = 8; + /** + * CombatSteerMotionInfo = 9; + */ + public static final int CombatSteerMotionInfo_VALUE = 9; + /** + * CombatForceSetPosInfo = 10; + */ + public static final int CombatForceSetPosInfo_VALUE = 10; + /** + * CombatCompensatePosDiff = 11; + */ + public static final int CombatCompensatePosDiff_VALUE = 11; + /** + * CombatMonsterDoBlink = 12; + */ + public static final int CombatMonsterDoBlink_VALUE = 12; + /** + * CombatFixedRushMove = 13; + */ + public static final int CombatFixedRushMove_VALUE = 13; + /** + * CombatSyncTransform = 14; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CombatTypeArgument> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..5e53bc5b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopCgOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 id = 1; + * @return The id. + */ + int getId(); + + /** + * bool isUnlock = 2; + * @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_; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int ISUNLOCK_FIELD_NUMBER = 2; + private boolean isUnlock_; + /** + * bool isUnlock = 2; + * @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 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_ ; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + /** + * uint32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private boolean isUnlock_ ; + /** + * bool isUnlock = 2; + * @return The isUnlock. + */ + @java.lang.Override + public boolean getIsUnlock() { + return isUnlock_; + } + /** + * bool isUnlock = 2; + * @param value The isUnlock to set. + * @return This builder for chaining. + */ + public Builder setIsUnlock(boolean value) { + + isUnlock_ = value; + onChanged(); + return this; + } + /** + * bool isUnlock = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c6e920f3d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopChapterOuterClass.java @@ -0,0 +1,2635 @@ +// 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 { + + /** + * uint32 id = 1; + * @return The id. + */ + int getId(); + + /** + * .CoopChapterState state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .CoopChapterState state = 2; + * @return The state. + */ + emu.grasscutter.net.proto.CoopChapterStateOuterClass.CoopChapterState getState(); + + /** + * repeated uint32 lockReasonList = 3; + * @return A list containing the lockReasonList. + */ + java.util.List getLockReasonListList(); + /** + * repeated uint32 lockReasonList = 3; + * @return The count of lockReasonList. + */ + int getLockReasonListCount(); + /** + * repeated uint32 lockReasonList = 3; + * @param index The index of the element to return. + * @return The lockReasonList at the given index. + */ + int getLockReasonList(int index); + + /** + * repeated .CoopPoint coopPointList = 4; + */ + java.util.List + getCoopPointListList(); + /** + * repeated .CoopPoint coopPointList = 4; + */ + emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index); + /** + * repeated .CoopPoint coopPointList = 4; + */ + int getCoopPointListCount(); + /** + * repeated .CoopPoint coopPointList = 4; + */ + java.util.List + getCoopPointListOrBuilderList(); + /** + * repeated .CoopPoint coopPointList = 4; + */ + emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder getCoopPointListOrBuilder( + int index); + + /** + * repeated .CoopReward coopRewardList = 5; + */ + java.util.List + getCoopRewardListList(); + /** + * repeated .CoopReward coopRewardList = 5; + */ + emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index); + /** + * repeated .CoopReward coopRewardList = 5; + */ + int getCoopRewardListCount(); + /** + * repeated .CoopReward coopRewardList = 5; + */ + java.util.List + getCoopRewardListOrBuilderList(); + /** + * repeated .CoopReward coopRewardList = 5; + */ + emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder getCoopRewardListOrBuilder( + int index); + + /** + * repeated .CoopCg coopCgList = 6; + */ + java.util.List + getCoopCgListList(); + /** + * repeated .CoopCg coopCgList = 6; + */ + emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index); + /** + * repeated .CoopCg coopCgList = 6; + */ + int getCoopCgListCount(); + /** + * repeated .CoopCg coopCgList = 6; + */ + java.util.List + getCoopCgListOrBuilderList(); + /** + * repeated .CoopCg coopCgList = 6; + */ + emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder getCoopCgListOrBuilder( + int index); + + /** + * uint32 totalEndCount = 7; + * @return The totalEndCount. + */ + int getTotalEndCount(); + + /** + * uint32 finishedEndCount = 8; + * @return The finishedEndCount. + */ + int getFinishedEndCount(); + + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + int getSeenEndingMapCount(); + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + boolean containsSeenEndingMap( + int key); + /** + * Use {@link #getSeenEndingMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSeenEndingMap(); + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + java.util.Map + getSeenEndingMapMap(); + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + int getSeenEndingMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + int getSeenEndingMapOrThrow( + int key); + + /** + * repeated uint32 finishDialogList = 10; + * @return A list containing the finishDialogList. + */ + java.util.List getFinishDialogListList(); + /** + * repeated uint32 finishDialogList = 10; + * @return The count of finishDialogList. + */ + int getFinishDialogListCount(); + /** + * repeated uint32 finishDialogList = 10; + * @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(); + 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(); + 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(); + 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 + 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_; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * .CoopChapterState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopChapterState state = 2; + * @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_; + /** + * repeated uint32 lockReasonList = 3; + * @return A list containing the lockReasonList. + */ + @java.lang.Override + public java.util.List + getLockReasonListList() { + return lockReasonList_; + } + /** + * repeated uint32 lockReasonList = 3; + * @return The count of lockReasonList. + */ + public int getLockReasonListCount() { + return lockReasonList_.size(); + } + /** + * repeated uint32 lockReasonList = 3; + * @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 coopPointList_; + /** + * repeated .CoopPoint coopPointList = 4; + */ + @java.lang.Override + public java.util.List getCoopPointListList() { + return coopPointList_; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + @java.lang.Override + public java.util.List + getCoopPointListOrBuilderList() { + return coopPointList_; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + @java.lang.Override + public int getCoopPointListCount() { + return coopPointList_.size(); + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index) { + return coopPointList_.get(index); + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + @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 coopRewardList_; + /** + * repeated .CoopReward coopRewardList = 5; + */ + @java.lang.Override + public java.util.List getCoopRewardListList() { + return coopRewardList_; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + @java.lang.Override + public java.util.List + getCoopRewardListOrBuilderList() { + return coopRewardList_; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + @java.lang.Override + public int getCoopRewardListCount() { + return coopRewardList_.size(); + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index) { + return coopRewardList_.get(index); + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + @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 coopCgList_; + /** + * repeated .CoopCg coopCgList = 6; + */ + @java.lang.Override + public java.util.List getCoopCgListList() { + return coopCgList_; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + @java.lang.Override + public java.util.List + getCoopCgListOrBuilderList() { + return coopCgList_; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + @java.lang.Override + public int getCoopCgListCount() { + return coopCgList_.size(); + } + /** + * repeated .CoopCg coopCgList = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index) { + return coopCgList_.get(index); + } + /** + * repeated .CoopCg coopCgList = 6; + */ + @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_; + /** + * uint32 totalEndCount = 7; + * @return The totalEndCount. + */ + @java.lang.Override + public int getTotalEndCount() { + return totalEndCount_; + } + + public static final int FINISHEDENDCOUNT_FIELD_NUMBER = 8; + private int finishedEndCount_; + /** + * uint32 finishedEndCount = 8; + * @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 + .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 + internalGetSeenEndingMap() { + if (seenEndingMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SeenEndingMapDefaultEntryHolder.defaultEntry); + } + return seenEndingMap_; + } + + public int getSeenEndingMapCount() { + return internalGetSeenEndingMap().getMap().size(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + @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 getSeenEndingMap() { + return getSeenEndingMapMap(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public java.util.Map getSeenEndingMapMap() { + return internalGetSeenEndingMap().getMap(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public int getSeenEndingMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSeenEndingMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public int getSeenEndingMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * repeated uint32 finishDialogList = 10; + * @return A list containing the finishDialogList. + */ + @java.lang.Override + public java.util.List + getFinishDialogListList() { + return finishDialogList_; + } + /** + * repeated uint32 finishDialogList = 10; + * @return The count of finishDialogList. + */ + public int getFinishDialogListCount() { + return finishDialogList_.size(); + } + /** + * repeated uint32 finishDialogList = 10; + * @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 entry + : internalGetSeenEndingMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + /** + * uint32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * .CoopChapterState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopChapterState state = 2; + * @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; + } + /** + * .CoopChapterState state = 2; + * @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; + } + /** + * .CoopChapterState state = 2; + * @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; + } + /** + * .CoopChapterState state = 2; + * @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; + } + } + /** + * repeated uint32 lockReasonList = 3; + * @return A list containing the lockReasonList. + */ + public java.util.List + getLockReasonListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(lockReasonList_) : lockReasonList_; + } + /** + * repeated uint32 lockReasonList = 3; + * @return The count of lockReasonList. + */ + public int getLockReasonListCount() { + return lockReasonList_.size(); + } + /** + * repeated uint32 lockReasonList = 3; + * @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); + } + /** + * repeated uint32 lockReasonList = 3; + * @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; + } + /** + * repeated uint32 lockReasonList = 3; + * @param value The lockReasonList to add. + * @return This builder for chaining. + */ + public Builder addLockReasonList(int value) { + ensureLockReasonListIsMutable(); + lockReasonList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 lockReasonList = 3; + * @param values The lockReasonList to add. + * @return This builder for chaining. + */ + public Builder addAllLockReasonList( + java.lang.Iterable values) { + ensureLockReasonListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lockReasonList_); + onChanged(); + return this; + } + /** + * repeated uint32 lockReasonList = 3; + * @return This builder for chaining. + */ + public Builder clearLockReasonList() { + lockReasonList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List coopPointList_ = + java.util.Collections.emptyList(); + private void ensureCoopPointListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + coopPointList_ = new java.util.ArrayList(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_; + + /** + * repeated .CoopPoint coopPointList = 4; + */ + public java.util.List getCoopPointListList() { + if (coopPointListBuilder_ == null) { + return java.util.Collections.unmodifiableList(coopPointList_); + } else { + return coopPointListBuilder_.getMessageList(); + } + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public int getCoopPointListCount() { + if (coopPointListBuilder_ == null) { + return coopPointList_.size(); + } else { + return coopPointListBuilder_.getCount(); + } + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint getCoopPointList(int index) { + if (coopPointListBuilder_ == null) { + return coopPointList_.get(index); + } else { + return coopPointListBuilder_.getMessage(index); + } + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + 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; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public Builder addAllCoopPointList( + java.lang.Iterable values) { + if (coopPointListBuilder_ == null) { + ensureCoopPointListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coopPointList_); + onChanged(); + } else { + coopPointListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public Builder clearCoopPointList() { + if (coopPointListBuilder_ == null) { + coopPointList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + coopPointListBuilder_.clear(); + } + return this; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public Builder removeCoopPointList(int index) { + if (coopPointListBuilder_ == null) { + ensureCoopPointListIsMutable(); + coopPointList_.remove(index); + onChanged(); + } else { + coopPointListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder getCoopPointListBuilder( + int index) { + return getCoopPointListFieldBuilder().getBuilder(index); + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPointOrBuilder getCoopPointListOrBuilder( + int index) { + if (coopPointListBuilder_ == null) { + return coopPointList_.get(index); } else { + return coopPointListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public java.util.List + getCoopPointListOrBuilderList() { + if (coopPointListBuilder_ != null) { + return coopPointListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(coopPointList_); + } + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder addCoopPointListBuilder() { + return getCoopPointListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()); + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.Builder addCoopPointListBuilder( + int index) { + return getCoopPointListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CoopPointOuterClass.CoopPoint.getDefaultInstance()); + } + /** + * repeated .CoopPoint coopPointList = 4; + */ + public java.util.List + 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 coopRewardList_ = + java.util.Collections.emptyList(); + private void ensureCoopRewardListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + coopRewardList_ = new java.util.ArrayList(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_; + + /** + * repeated .CoopReward coopRewardList = 5; + */ + public java.util.List getCoopRewardListList() { + if (coopRewardListBuilder_ == null) { + return java.util.Collections.unmodifiableList(coopRewardList_); + } else { + return coopRewardListBuilder_.getMessageList(); + } + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public int getCoopRewardListCount() { + if (coopRewardListBuilder_ == null) { + return coopRewardList_.size(); + } else { + return coopRewardListBuilder_.getCount(); + } + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward getCoopRewardList(int index) { + if (coopRewardListBuilder_ == null) { + return coopRewardList_.get(index); + } else { + return coopRewardListBuilder_.getMessage(index); + } + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + 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; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public Builder addAllCoopRewardList( + java.lang.Iterable values) { + if (coopRewardListBuilder_ == null) { + ensureCoopRewardListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coopRewardList_); + onChanged(); + } else { + coopRewardListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public Builder clearCoopRewardList() { + if (coopRewardListBuilder_ == null) { + coopRewardList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + coopRewardListBuilder_.clear(); + } + return this; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public Builder removeCoopRewardList(int index) { + if (coopRewardListBuilder_ == null) { + ensureCoopRewardListIsMutable(); + coopRewardList_.remove(index); + onChanged(); + } else { + coopRewardListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder getCoopRewardListBuilder( + int index) { + return getCoopRewardListFieldBuilder().getBuilder(index); + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopRewardOrBuilder getCoopRewardListOrBuilder( + int index) { + if (coopRewardListBuilder_ == null) { + return coopRewardList_.get(index); } else { + return coopRewardListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public java.util.List + getCoopRewardListOrBuilderList() { + if (coopRewardListBuilder_ != null) { + return coopRewardListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(coopRewardList_); + } + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder addCoopRewardListBuilder() { + return getCoopRewardListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance()); + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.Builder addCoopRewardListBuilder( + int index) { + return getCoopRewardListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CoopRewardOuterClass.CoopReward.getDefaultInstance()); + } + /** + * repeated .CoopReward coopRewardList = 5; + */ + public java.util.List + 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 coopCgList_ = + java.util.Collections.emptyList(); + private void ensureCoopCgListIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + coopCgList_ = new java.util.ArrayList(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_; + + /** + * repeated .CoopCg coopCgList = 6; + */ + public java.util.List getCoopCgListList() { + if (coopCgListBuilder_ == null) { + return java.util.Collections.unmodifiableList(coopCgList_); + } else { + return coopCgListBuilder_.getMessageList(); + } + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public int getCoopCgListCount() { + if (coopCgListBuilder_ == null) { + return coopCgList_.size(); + } else { + return coopCgListBuilder_.getCount(); + } + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg getCoopCgList(int index) { + if (coopCgListBuilder_ == null) { + return coopCgList_.get(index); + } else { + return coopCgListBuilder_.getMessage(index); + } + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + 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; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public Builder addAllCoopCgList( + java.lang.Iterable values) { + if (coopCgListBuilder_ == null) { + ensureCoopCgListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, coopCgList_); + onChanged(); + } else { + coopCgListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public Builder clearCoopCgList() { + if (coopCgListBuilder_ == null) { + coopCgList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + coopCgListBuilder_.clear(); + } + return this; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public Builder removeCoopCgList(int index) { + if (coopCgListBuilder_ == null) { + ensureCoopCgListIsMutable(); + coopCgList_.remove(index); + onChanged(); + } else { + coopCgListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder getCoopCgListBuilder( + int index) { + return getCoopCgListFieldBuilder().getBuilder(index); + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCgOrBuilder getCoopCgListOrBuilder( + int index) { + if (coopCgListBuilder_ == null) { + return coopCgList_.get(index); } else { + return coopCgListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public java.util.List + getCoopCgListOrBuilderList() { + if (coopCgListBuilder_ != null) { + return coopCgListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(coopCgList_); + } + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder addCoopCgListBuilder() { + return getCoopCgListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance()); + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.Builder addCoopCgListBuilder( + int index) { + return getCoopCgListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CoopCgOuterClass.CoopCg.getDefaultInstance()); + } + /** + * repeated .CoopCg coopCgList = 6; + */ + public java.util.List + 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_ ; + /** + * uint32 totalEndCount = 7; + * @return The totalEndCount. + */ + @java.lang.Override + public int getTotalEndCount() { + return totalEndCount_; + } + /** + * uint32 totalEndCount = 7; + * @param value The totalEndCount to set. + * @return This builder for chaining. + */ + public Builder setTotalEndCount(int value) { + + totalEndCount_ = value; + onChanged(); + return this; + } + /** + * uint32 totalEndCount = 7; + * @return This builder for chaining. + */ + public Builder clearTotalEndCount() { + + totalEndCount_ = 0; + onChanged(); + return this; + } + + private int finishedEndCount_ ; + /** + * uint32 finishedEndCount = 8; + * @return The finishedEndCount. + */ + @java.lang.Override + public int getFinishedEndCount() { + return finishedEndCount_; + } + /** + * uint32 finishedEndCount = 8; + * @param value The finishedEndCount to set. + * @return This builder for chaining. + */ + public Builder setFinishedEndCount(int value) { + + finishedEndCount_ = value; + onChanged(); + return this; + } + /** + * uint32 finishedEndCount = 8; + * @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 + internalGetSeenEndingMap() { + if (seenEndingMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SeenEndingMapDefaultEntryHolder.defaultEntry); + } + return seenEndingMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + @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 getSeenEndingMap() { + return getSeenEndingMapMap(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public java.util.Map getSeenEndingMapMap() { + return internalGetSeenEndingMap().getMap(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public int getSeenEndingMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSeenEndingMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + @java.lang.Override + + public int getSeenEndingMapOrThrow( + int key) { + + java.util.Map map = + internalGetSeenEndingMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSeenEndingMap() { + internalGetMutableSeenEndingMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + public Builder removeSeenEndingMap( + int key) { + + internalGetMutableSeenEndingMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSeenEndingMap() { + return internalGetMutableSeenEndingMap().getMutableMap(); + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + public Builder putSeenEndingMap( + int key, + int value) { + + + internalGetMutableSeenEndingMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> seenEndingMap = 9; + */ + + public Builder putAllSeenEndingMap( + java.util.Map 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; + } + } + /** + * repeated uint32 finishDialogList = 10; + * @return A list containing the finishDialogList. + */ + public java.util.List + getFinishDialogListList() { + return ((bitField0_ & 0x00000020) != 0) ? + java.util.Collections.unmodifiableList(finishDialogList_) : finishDialogList_; + } + /** + * repeated uint32 finishDialogList = 10; + * @return The count of finishDialogList. + */ + public int getFinishDialogListCount() { + return finishDialogList_.size(); + } + /** + * repeated uint32 finishDialogList = 10; + * @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); + } + /** + * repeated uint32 finishDialogList = 10; + * @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; + } + /** + * repeated uint32 finishDialogList = 10; + * @param value The finishDialogList to add. + * @return This builder for chaining. + */ + public Builder addFinishDialogList(int value) { + ensureFinishDialogListIsMutable(); + finishDialogList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 finishDialogList = 10; + * @param values The finishDialogList to add. + * @return This builder for chaining. + */ + public Builder addAllFinishDialogList( + java.lang.Iterable values) { + ensureFinishDialogListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, finishDialogList_); + onChanged(); + return this; + } + /** + * repeated uint32 finishDialogList = 10; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a9a72f012 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopChapterStateOuterClass.java @@ -0,0 +1,164 @@ +// 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 { + /** + * Close = 0; + */ + Close(0), + /** + * CondNotMeet = 1; + */ + CondNotMeet(1), + /** + * CondMeet = 2; + */ + CondMeet(2), + /** + * Accept = 3; + */ + Accept(3), + UNRECOGNIZED(-1), + ; + + /** + * Close = 0; + */ + public static final int Close_VALUE = 0; + /** + * CondNotMeet = 1; + */ + public static final int CondNotMeet_VALUE = 1; + /** + * CondMeet = 2; + */ + public static final int CondMeet_VALUE = 2; + /** + * Accept = 3; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CoopChapterState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..4da62a010 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopDataNotifyOuterClass.java @@ -0,0 +1,1181 @@ +// 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 { + + /** + * repeated .CoopChapter chapterList = 1; + */ + java.util.List + getChapterListList(); + /** + * repeated .CoopChapter chapterList = 1; + */ + emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index); + /** + * repeated .CoopChapter chapterList = 1; + */ + int getChapterListCount(); + /** + * repeated .CoopChapter chapterList = 1; + */ + java.util.List + getChapterListOrBuilderList(); + /** + * repeated .CoopChapter chapterList = 1; + */ + emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder( + int index); + + /** + * bool isHaveProgress = 2; + * @return The isHaveProgress. + */ + boolean getIsHaveProgress(); + + /** + * uint32 curCoopPoint = 3; + * @return The curCoopPoint. + */ + int getCurCoopPoint(); + + /** + * repeated uint32 viewedChapterList = 4; + * @return A list containing the viewedChapterList. + */ + java.util.List getViewedChapterListList(); + /** + * repeated uint32 viewedChapterList = 4; + * @return The count of viewedChapterList. + */ + int getViewedChapterListCount(); + /** + * repeated uint32 viewedChapterList = 4; + * @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(); + 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 chapterList_; + /** + * repeated .CoopChapter chapterList = 1; + */ + @java.lang.Override + public java.util.List getChapterListList() { + return chapterList_; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + @java.lang.Override + public java.util.List + getChapterListOrBuilderList() { + return chapterList_; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + @java.lang.Override + public int getChapterListCount() { + return chapterList_.size(); + } + /** + * repeated .CoopChapter chapterList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) { + return chapterList_.get(index); + } + /** + * repeated .CoopChapter chapterList = 1; + */ + @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_; + /** + * bool isHaveProgress = 2; + * @return The isHaveProgress. + */ + @java.lang.Override + public boolean getIsHaveProgress() { + return isHaveProgress_; + } + + public static final int CURCOOPPOINT_FIELD_NUMBER = 3; + private int curCoopPoint_; + /** + * uint32 curCoopPoint = 3; + * @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_; + /** + * repeated uint32 viewedChapterList = 4; + * @return A list containing the viewedChapterList. + */ + @java.lang.Override + public java.util.List + getViewedChapterListList() { + return viewedChapterList_; + } + /** + * repeated uint32 viewedChapterList = 4; + * @return The count of viewedChapterList. + */ + public int getViewedChapterListCount() { + return viewedChapterList_.size(); + } + /** + * repeated uint32 viewedChapterList = 4; + * @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 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 chapterList_ = + java.util.Collections.emptyList(); + private void ensureChapterListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + chapterList_ = new java.util.ArrayList(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_; + + /** + * repeated .CoopChapter chapterList = 1; + */ + public java.util.List getChapterListList() { + if (chapterListBuilder_ == null) { + return java.util.Collections.unmodifiableList(chapterList_); + } else { + return chapterListBuilder_.getMessageList(); + } + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public int getChapterListCount() { + if (chapterListBuilder_ == null) { + return chapterList_.size(); + } else { + return chapterListBuilder_.getCount(); + } + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter getChapterList(int index) { + if (chapterListBuilder_ == null) { + return chapterList_.get(index); + } else { + return chapterListBuilder_.getMessage(index); + } + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + 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; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public Builder addAllChapterList( + java.lang.Iterable values) { + if (chapterListBuilder_ == null) { + ensureChapterListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, chapterList_); + onChanged(); + } else { + chapterListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public Builder clearChapterList() { + if (chapterListBuilder_ == null) { + chapterList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + chapterListBuilder_.clear(); + } + return this; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public Builder removeChapterList(int index) { + if (chapterListBuilder_ == null) { + ensureChapterListIsMutable(); + chapterList_.remove(index); + onChanged(); + } else { + chapterListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder getChapterListBuilder( + int index) { + return getChapterListFieldBuilder().getBuilder(index); + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapterOrBuilder getChapterListOrBuilder( + int index) { + if (chapterListBuilder_ == null) { + return chapterList_.get(index); } else { + return chapterListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public java.util.List + getChapterListOrBuilderList() { + if (chapterListBuilder_ != null) { + return chapterListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chapterList_); + } + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder() { + return getChapterListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance()); + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.Builder addChapterListBuilder( + int index) { + return getChapterListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter.getDefaultInstance()); + } + /** + * repeated .CoopChapter chapterList = 1; + */ + public java.util.List + 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_ ; + /** + * bool isHaveProgress = 2; + * @return The isHaveProgress. + */ + @java.lang.Override + public boolean getIsHaveProgress() { + return isHaveProgress_; + } + /** + * bool isHaveProgress = 2; + * @param value The isHaveProgress to set. + * @return This builder for chaining. + */ + public Builder setIsHaveProgress(boolean value) { + + isHaveProgress_ = value; + onChanged(); + return this; + } + /** + * bool isHaveProgress = 2; + * @return This builder for chaining. + */ + public Builder clearIsHaveProgress() { + + isHaveProgress_ = false; + onChanged(); + return this; + } + + private int curCoopPoint_ ; + /** + * uint32 curCoopPoint = 3; + * @return The curCoopPoint. + */ + @java.lang.Override + public int getCurCoopPoint() { + return curCoopPoint_; + } + /** + * uint32 curCoopPoint = 3; + * @param value The curCoopPoint to set. + * @return This builder for chaining. + */ + public Builder setCurCoopPoint(int value) { + + curCoopPoint_ = value; + onChanged(); + return this; + } + /** + * uint32 curCoopPoint = 3; + * @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; + } + } + /** + * repeated uint32 viewedChapterList = 4; + * @return A list containing the viewedChapterList. + */ + public java.util.List + getViewedChapterListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(viewedChapterList_) : viewedChapterList_; + } + /** + * repeated uint32 viewedChapterList = 4; + * @return The count of viewedChapterList. + */ + public int getViewedChapterListCount() { + return viewedChapterList_.size(); + } + /** + * repeated uint32 viewedChapterList = 4; + * @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); + } + /** + * repeated uint32 viewedChapterList = 4; + * @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; + } + /** + * repeated uint32 viewedChapterList = 4; + * @param value The viewedChapterList to add. + * @return This builder for chaining. + */ + public Builder addViewedChapterList(int value) { + ensureViewedChapterListIsMutable(); + viewedChapterList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 viewedChapterList = 4; + * @param values The viewedChapterList to add. + * @return This builder for chaining. + */ + public Builder addAllViewedChapterList( + java.lang.Iterable values) { + ensureViewedChapterListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, viewedChapterList_); + onChanged(); + return this; + } + /** + * repeated uint32 viewedChapterList = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4fae5e181 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopPointOuterClass.java @@ -0,0 +1,716 @@ +// 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 { + + /** + * uint32 id = 1; + * @return The id. + */ + int getId(); + + /** + * .CoopPointState state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .CoopPointState state = 2; + * @return The state. + */ + emu.grasscutter.net.proto.CoopPointStateOuterClass.CoopPointState getState(); + + /** + * uint32 selfConfidence = 3; + * @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_; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * .CoopPointState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopPointState state = 2; + * @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_; + /** + * uint32 selfConfidence = 3; + * @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 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_ ; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + /** + * uint32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * .CoopPointState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopPointState state = 2; + * @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; + } + /** + * .CoopPointState state = 2; + * @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; + } + /** + * .CoopPointState state = 2; + * @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; + } + /** + * .CoopPointState state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int selfConfidence_ ; + /** + * uint32 selfConfidence = 3; + * @return The selfConfidence. + */ + @java.lang.Override + public int getSelfConfidence() { + return selfConfidence_; + } + /** + * uint32 selfConfidence = 3; + * @param value The selfConfidence to set. + * @return This builder for chaining. + */ + public Builder setSelfConfidence(int value) { + + selfConfidence_ = value; + onChanged(); + return this; + } + /** + * uint32 selfConfidence = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..16c60a466 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopPointStateOuterClass.java @@ -0,0 +1,154 @@ +// 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 { + /** + * Unstarted = 0; + */ + Unstarted(0), + /** + * Started = 1; + */ + Started(1), + /** + * Finished = 2; + */ + Finished(2), + UNRECOGNIZED(-1), + ; + + /** + * Unstarted = 0; + */ + public static final int Unstarted_VALUE = 0; + /** + * Started = 1; + */ + public static final int Started_VALUE = 1; + /** + * Finished = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CoopPointState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..480cc09c8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopRewardOuterClass.java @@ -0,0 +1,646 @@ +// 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 { + + /** + * uint32 id = 1; + * @return The id. + */ + int getId(); + + /** + * .CoopRewardState state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .CoopRewardState state = 2; + * @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_; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + * .CoopRewardState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopRewardState state = 2; + * @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 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_ ; + /** + * uint32 id = 1; + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + /** + * uint32 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + /** + * uint32 id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * .CoopRewardState state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .CoopRewardState state = 2; + * @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; + } + /** + * .CoopRewardState state = 2; + * @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; + } + /** + * .CoopRewardState state = 2; + * @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; + } + /** + * .CoopRewardState state = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..567c86ed1 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CoopRewardStateOuterClass.java @@ -0,0 +1,154 @@ +// 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 { + /** + * Unlock = 0; + */ + Unlock(0), + /** + * Lock = 1; + */ + Lock(1), + /** + * Taken = 2; + */ + Taken(2), + UNRECOGNIZED(-1), + ; + + /** + * Unlock = 0; + */ + public static final int Unlock_VALUE = 0; + /** + * Lock = 1; + */ + public static final int Lock_VALUE = 1; + /** + * Taken = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CoopRewardState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..3d0dd8b91 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/CountDownDeleteOuterClass.java @@ -0,0 +1,465 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..282dfbcd9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DateTimeDeleteOuterClass.java @@ -0,0 +1,465 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4c3cc7f57 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DealAddFriendReqOuterClass.java @@ -0,0 +1,647 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + int getDealAddFriendResultValue(); + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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_; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int DEALADDFRIENDRESULT_FIELD_NUMBER = 2; + private int dealAddFriendResult_; + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + @java.lang.Override public int getDealAddFriendResultValue() { + return dealAddFriendResult_; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int dealAddFriendResult_ = 0; + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + @java.lang.Override public int getDealAddFriendResultValue() { + return dealAddFriendResult_; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3449309f7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DealAddFriendResultTypeOuterClass.java @@ -0,0 +1,146 @@ +// 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 { + /** + * DealAddFriendReject = 0; + */ + DealAddFriendReject(0), + /** + * DealAddFriendAccept = 1; + */ + DealAddFriendAccept(1), + UNRECOGNIZED(-1), + ; + + /** + * DealAddFriendReject = 0; + */ + public static final int DealAddFriendReject_VALUE = 0; + /** + * DealAddFriendAccept = 1; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DealAddFriendResultType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..babbab41b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DealAddFriendRspOuterClass.java @@ -0,0 +1,718 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + int getDealAddFriendResultValue(); + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int DEALADDFRIENDRESULT_FIELD_NUMBER = 3; + private int dealAddFriendResult_; + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + @java.lang.Override public int getDealAddFriendResultValue() { + return dealAddFriendResult_; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int dealAddFriendResult_ = 0; + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @return The enum numeric value on the wire for dealAddFriendResult. + */ + @java.lang.Override public int getDealAddFriendResultValue() { + return dealAddFriendResult_; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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; + } + /** + * .DealAddFriendResultType dealAddFriendResult = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..486453fa3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DelTeamEntityNotifyOuterClass.java @@ -0,0 +1,734 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * repeated uint32 delEntityIdList = 2; + * @return A list containing the delEntityIdList. + */ + java.util.List getDelEntityIdListList(); + /** + * repeated uint32 delEntityIdList = 2; + * @return The count of delEntityIdList. + */ + int getDelEntityIdListCount(); + /** + * repeated uint32 delEntityIdList = 2; + * @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_; + /** + * uint32 sceneId = 1; + * @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_; + /** + * repeated uint32 delEntityIdList = 2; + * @return A list containing the delEntityIdList. + */ + @java.lang.Override + public java.util.List + getDelEntityIdListList() { + return delEntityIdList_; + } + /** + * repeated uint32 delEntityIdList = 2; + * @return The count of delEntityIdList. + */ + public int getDelEntityIdListCount() { + return delEntityIdList_.size(); + } + /** + * repeated uint32 delEntityIdList = 2; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @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; + } + } + /** + * repeated uint32 delEntityIdList = 2; + * @return A list containing the delEntityIdList. + */ + public java.util.List + getDelEntityIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(delEntityIdList_) : delEntityIdList_; + } + /** + * repeated uint32 delEntityIdList = 2; + * @return The count of delEntityIdList. + */ + public int getDelEntityIdListCount() { + return delEntityIdList_.size(); + } + /** + * repeated uint32 delEntityIdList = 2; + * @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); + } + /** + * repeated uint32 delEntityIdList = 2; + * @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; + } + /** + * repeated uint32 delEntityIdList = 2; + * @param value The delEntityIdList to add. + * @return This builder for chaining. + */ + public Builder addDelEntityIdList(int value) { + ensureDelEntityIdListIsMutable(); + delEntityIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 delEntityIdList = 2; + * @param values The delEntityIdList to add. + * @return This builder for chaining. + */ + public Builder addAllDelEntityIdList( + java.lang.Iterable values) { + ensureDelEntityIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, delEntityIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 delEntityIdList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b0138c0eb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DelayWeekCountDownDeleteOuterClass.java @@ -0,0 +1,466 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b92e94346 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DeleteFriendNotifyOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @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_; + /** + * uint32 targetUid = 1; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8057bc7e6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DeleteFriendReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @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_; + /** + * uint32 targetUid = 1; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..95889c73b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DeleteFriendRspOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 targetUid = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..abf2a065e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DestroyMaterialReqOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .MaterialInfo materialList = 1; + */ + java.util.List + getMaterialListList(); + /** + * repeated .MaterialInfo materialList = 1; + */ + emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index); + /** + * repeated .MaterialInfo materialList = 1; + */ + int getMaterialListCount(); + /** + * repeated .MaterialInfo materialList = 1; + */ + java.util.List + getMaterialListOrBuilderList(); + /** + * repeated .MaterialInfo materialList = 1; + */ + 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(); + 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 materialList_; + /** + * repeated .MaterialInfo materialList = 1; + */ + @java.lang.Override + public java.util.List getMaterialListList() { + return materialList_; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + @java.lang.Override + public java.util.List + getMaterialListOrBuilderList() { + return materialList_; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + @java.lang.Override + public int getMaterialListCount() { + return materialList_.size(); + } + /** + * repeated .MaterialInfo materialList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index) { + return materialList_.get(index); + } + /** + * repeated .MaterialInfo materialList = 1; + */ + @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 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 materialList_ = + java.util.Collections.emptyList(); + private void ensureMaterialListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + materialList_ = new java.util.ArrayList(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_; + + /** + * repeated .MaterialInfo materialList = 1; + */ + public java.util.List getMaterialListList() { + if (materialListBuilder_ == null) { + return java.util.Collections.unmodifiableList(materialList_); + } else { + return materialListBuilder_.getMessageList(); + } + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public int getMaterialListCount() { + if (materialListBuilder_ == null) { + return materialList_.size(); + } else { + return materialListBuilder_.getCount(); + } + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo getMaterialList(int index) { + if (materialListBuilder_ == null) { + return materialList_.get(index); + } else { + return materialListBuilder_.getMessage(index); + } + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + 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; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public Builder addAllMaterialList( + java.lang.Iterable values) { + if (materialListBuilder_ == null) { + ensureMaterialListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, materialList_); + onChanged(); + } else { + materialListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public Builder clearMaterialList() { + if (materialListBuilder_ == null) { + materialList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + materialListBuilder_.clear(); + } + return this; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public Builder removeMaterialList(int index) { + if (materialListBuilder_ == null) { + ensureMaterialListIsMutable(); + materialList_.remove(index); + onChanged(); + } else { + materialListBuilder_.remove(index); + } + return this; + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder getMaterialListBuilder( + int index) { + return getMaterialListFieldBuilder().getBuilder(index); + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfoOrBuilder getMaterialListOrBuilder( + int index) { + if (materialListBuilder_ == null) { + return materialList_.get(index); } else { + return materialListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public java.util.List + getMaterialListOrBuilderList() { + if (materialListBuilder_ != null) { + return materialListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(materialList_); + } + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder addMaterialListBuilder() { + return getMaterialListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance()); + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.Builder addMaterialListBuilder( + int index) { + return getMaterialListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.MaterialInfoOuterClass.MaterialInfo.getDefaultInstance()); + } + /** + * repeated .MaterialInfo materialList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6caeaaad3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DestroyMaterialRspOuterClass.java @@ -0,0 +1,927 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + java.util.List getItemIdListList(); + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + int getItemIdListCount(); + /** + * repeated uint32 itemIdList = 2; + * @param index The index of the element to return. + * @return The itemIdList at the given index. + */ + int getItemIdList(int index); + + /** + * repeated uint32 itemCountList = 3; + * @return A list containing the itemCountList. + */ + java.util.List getItemCountListList(); + /** + * repeated uint32 itemCountList = 3; + * @return The count of itemCountList. + */ + int getItemCountListCount(); + /** + * repeated uint32 itemCountList = 3; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + @java.lang.Override + public java.util.List + getItemIdListList() { + return itemIdList_; + } + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 2; + * @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_; + /** + * repeated uint32 itemCountList = 3; + * @return A list containing the itemCountList. + */ + @java.lang.Override + public java.util.List + getItemCountListList() { + return itemCountList_; + } + /** + * repeated uint32 itemCountList = 3; + * @return The count of itemCountList. + */ + public int getItemCountListCount() { + return itemCountList_.size(); + } + /** + * repeated uint32 itemCountList = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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; + } + } + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + public java.util.List + getItemIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; + } + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 2; + * @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); + } + /** + * repeated uint32 itemIdList = 2; + * @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; + } + /** + * repeated uint32 itemIdList = 2; + * @param value The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addItemIdList(int value) { + ensureItemIdListIsMutable(); + itemIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 2; + * @param values The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addAllItemIdList( + java.lang.Iterable values) { + ensureItemIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 2; + * @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; + } + } + /** + * repeated uint32 itemCountList = 3; + * @return A list containing the itemCountList. + */ + public java.util.List + getItemCountListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(itemCountList_) : itemCountList_; + } + /** + * repeated uint32 itemCountList = 3; + * @return The count of itemCountList. + */ + public int getItemCountListCount() { + return itemCountList_.size(); + } + /** + * repeated uint32 itemCountList = 3; + * @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); + } + /** + * repeated uint32 itemCountList = 3; + * @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; + } + /** + * repeated uint32 itemCountList = 3; + * @param value The itemCountList to add. + * @return This builder for chaining. + */ + public Builder addItemCountList(int value) { + ensureItemCountListIsMutable(); + itemCountList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 itemCountList = 3; + * @param values The itemCountList to add. + * @return This builder for chaining. + */ + public Builder addAllItemCountList( + java.lang.Iterable values) { + ensureItemCountListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemCountList_); + onChanged(); + return this; + } + /** + * repeated uint32 itemCountList = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f0aacd5cd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DoGachaReqOuterClass.java @@ -0,0 +1,898 @@ +// 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 { + + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + int getGachaType(); + + /** + * uint32 gachaTimes = 2; + * @return The gachaTimes. + */ + int getGachaTimes(); + + /** + * uint32 gachaRandom = 3; + * @return The gachaRandom. + */ + int getGachaRandom(); + + /** + * uint32 gachaScheduleId = 4; + * @return The gachaScheduleId. + */ + int getGachaScheduleId(); + + /** + * string gachaTag = 5; + * @return The gachaTag. + */ + java.lang.String getGachaTag(); + /** + * string gachaTag = 5; + * @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_; + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + + public static final int GACHATIMES_FIELD_NUMBER = 2; + private int gachaTimes_; + /** + * uint32 gachaTimes = 2; + * @return The gachaTimes. + */ + @java.lang.Override + public int getGachaTimes() { + return gachaTimes_; + } + + public static final int GACHARANDOM_FIELD_NUMBER = 3; + private int gachaRandom_; + /** + * uint32 gachaRandom = 3; + * @return The gachaRandom. + */ + @java.lang.Override + public int getGachaRandom() { + return gachaRandom_; + } + + public static final int GACHASCHEDULEID_FIELD_NUMBER = 4; + private int gachaScheduleId_; + /** + * uint32 gachaScheduleId = 4; + * @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_; + /** + * string gachaTag = 5; + * @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; + } + } + /** + * string gachaTag = 5; + * @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 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_ ; + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + /** + * uint32 gachaType = 1; + * @param value The gachaType to set. + * @return This builder for chaining. + */ + public Builder setGachaType(int value) { + + gachaType_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaType = 1; + * @return This builder for chaining. + */ + public Builder clearGachaType() { + + gachaType_ = 0; + onChanged(); + return this; + } + + private int gachaTimes_ ; + /** + * uint32 gachaTimes = 2; + * @return The gachaTimes. + */ + @java.lang.Override + public int getGachaTimes() { + return gachaTimes_; + } + /** + * uint32 gachaTimes = 2; + * @param value The gachaTimes to set. + * @return This builder for chaining. + */ + public Builder setGachaTimes(int value) { + + gachaTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaTimes = 2; + * @return This builder for chaining. + */ + public Builder clearGachaTimes() { + + gachaTimes_ = 0; + onChanged(); + return this; + } + + private int gachaRandom_ ; + /** + * uint32 gachaRandom = 3; + * @return The gachaRandom. + */ + @java.lang.Override + public int getGachaRandom() { + return gachaRandom_; + } + /** + * uint32 gachaRandom = 3; + * @param value The gachaRandom to set. + * @return This builder for chaining. + */ + public Builder setGachaRandom(int value) { + + gachaRandom_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaRandom = 3; + * @return This builder for chaining. + */ + public Builder clearGachaRandom() { + + gachaRandom_ = 0; + onChanged(); + return this; + } + + private int gachaScheduleId_ ; + /** + * uint32 gachaScheduleId = 4; + * @return The gachaScheduleId. + */ + @java.lang.Override + public int getGachaScheduleId() { + return gachaScheduleId_; + } + /** + * uint32 gachaScheduleId = 4; + * @param value The gachaScheduleId to set. + * @return This builder for chaining. + */ + public Builder setGachaScheduleId(int value) { + + gachaScheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaScheduleId = 4; + * @return This builder for chaining. + */ + public Builder clearGachaScheduleId() { + + gachaScheduleId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gachaTag_ = ""; + /** + * string gachaTag = 5; + * @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; + } + } + /** + * string gachaTag = 5; + * @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; + } + } + /** + * string gachaTag = 5; + * @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; + } + /** + * string gachaTag = 5; + * @return This builder for chaining. + */ + public Builder clearGachaTag() { + + gachaTag_ = getDefaultInstance().getGachaTag(); + onChanged(); + return this; + } + /** + * string gachaTag = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2b5367c78 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DoGachaRspOuterClass.java @@ -0,0 +1,1620 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 gachaType = 2; + * @return The gachaType. + */ + int getGachaType(); + + /** + * uint32 gachaTimes = 3; + * @return The gachaTimes. + */ + int getGachaTimes(); + + /** + * uint32 gachaScheduleId = 4; + * @return The gachaScheduleId. + */ + int getGachaScheduleId(); + + /** + * repeated .GachaItem gachaItemList = 5; + */ + java.util.List + getGachaItemListList(); + /** + * repeated .GachaItem gachaItemList = 5; + */ + emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index); + /** + * repeated .GachaItem gachaItemList = 5; + */ + int getGachaItemListCount(); + /** + * repeated .GachaItem gachaItemList = 5; + */ + java.util.List + getGachaItemListOrBuilderList(); + /** + * repeated .GachaItem gachaItemList = 5; + */ + emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( + int index); + + /** + * uint32 newGachaRandom = 6; + * @return The newGachaRandom. + */ + int getNewGachaRandom(); + + /** + * uint32 costItemId = 7; + * @return The costItemId. + */ + int getCostItemId(); + + /** + * uint32 costItemNum = 8; + * @return The costItemNum. + */ + int getCostItemNum(); + + /** + * uint32 tenCostItemId = 9; + * @return The tenCostItemId. + */ + int getTenCostItemId(); + + /** + * uint32 tenCostItemNum = 10; + * @return The tenCostItemNum. + */ + int getTenCostItemNum(); + + /** + * uint32 leftGachaTimes = 11; + * @return The leftGachaTimes. + */ + int getLeftGachaTimes(); + + /** + * uint32 gachaTimesLimit = 12; + * @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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GACHATYPE_FIELD_NUMBER = 2; + private int gachaType_; + /** + * uint32 gachaType = 2; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + + public static final int GACHATIMES_FIELD_NUMBER = 3; + private int gachaTimes_; + /** + * uint32 gachaTimes = 3; + * @return The gachaTimes. + */ + @java.lang.Override + public int getGachaTimes() { + return gachaTimes_; + } + + public static final int GACHASCHEDULEID_FIELD_NUMBER = 4; + private int gachaScheduleId_; + /** + * uint32 gachaScheduleId = 4; + * @return The gachaScheduleId. + */ + @java.lang.Override + public int getGachaScheduleId() { + return gachaScheduleId_; + } + + public static final int GACHAITEMLIST_FIELD_NUMBER = 5; + private java.util.List gachaItemList_; + /** + * repeated .GachaItem gachaItemList = 5; + */ + @java.lang.Override + public java.util.List getGachaItemListList() { + return gachaItemList_; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + @java.lang.Override + public java.util.List + getGachaItemListOrBuilderList() { + return gachaItemList_; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + @java.lang.Override + public int getGachaItemListCount() { + return gachaItemList_.size(); + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { + return gachaItemList_.get(index); + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + @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_; + /** + * uint32 newGachaRandom = 6; + * @return The newGachaRandom. + */ + @java.lang.Override + public int getNewGachaRandom() { + return newGachaRandom_; + } + + public static final int COSTITEMID_FIELD_NUMBER = 7; + private int costItemId_; + /** + * uint32 costItemId = 7; + * @return The costItemId. + */ + @java.lang.Override + public int getCostItemId() { + return costItemId_; + } + + public static final int COSTITEMNUM_FIELD_NUMBER = 8; + private int costItemNum_; + /** + * uint32 costItemNum = 8; + * @return The costItemNum. + */ + @java.lang.Override + public int getCostItemNum() { + return costItemNum_; + } + + public static final int TENCOSTITEMID_FIELD_NUMBER = 9; + private int tenCostItemId_; + /** + * uint32 tenCostItemId = 9; + * @return The tenCostItemId. + */ + @java.lang.Override + public int getTenCostItemId() { + return tenCostItemId_; + } + + public static final int TENCOSTITEMNUM_FIELD_NUMBER = 10; + private int tenCostItemNum_; + /** + * uint32 tenCostItemNum = 10; + * @return The tenCostItemNum. + */ + @java.lang.Override + public int getTenCostItemNum() { + return tenCostItemNum_; + } + + public static final int LEFTGACHATIMES_FIELD_NUMBER = 11; + private int leftGachaTimes_; + /** + * uint32 leftGachaTimes = 11; + * @return The leftGachaTimes. + */ + @java.lang.Override + public int getLeftGachaTimes() { + return leftGachaTimes_; + } + + public static final int GACHATIMESLIMIT_FIELD_NUMBER = 12; + private int gachaTimesLimit_; + /** + * uint32 gachaTimesLimit = 12; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int gachaType_ ; + /** + * uint32 gachaType = 2; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + /** + * uint32 gachaType = 2; + * @param value The gachaType to set. + * @return This builder for chaining. + */ + public Builder setGachaType(int value) { + + gachaType_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaType = 2; + * @return This builder for chaining. + */ + public Builder clearGachaType() { + + gachaType_ = 0; + onChanged(); + return this; + } + + private int gachaTimes_ ; + /** + * uint32 gachaTimes = 3; + * @return The gachaTimes. + */ + @java.lang.Override + public int getGachaTimes() { + return gachaTimes_; + } + /** + * uint32 gachaTimes = 3; + * @param value The gachaTimes to set. + * @return This builder for chaining. + */ + public Builder setGachaTimes(int value) { + + gachaTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaTimes = 3; + * @return This builder for chaining. + */ + public Builder clearGachaTimes() { + + gachaTimes_ = 0; + onChanged(); + return this; + } + + private int gachaScheduleId_ ; + /** + * uint32 gachaScheduleId = 4; + * @return The gachaScheduleId. + */ + @java.lang.Override + public int getGachaScheduleId() { + return gachaScheduleId_; + } + /** + * uint32 gachaScheduleId = 4; + * @param value The gachaScheduleId to set. + * @return This builder for chaining. + */ + public Builder setGachaScheduleId(int value) { + + gachaScheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaScheduleId = 4; + * @return This builder for chaining. + */ + public Builder clearGachaScheduleId() { + + gachaScheduleId_ = 0; + onChanged(); + return this; + } + + private java.util.List gachaItemList_ = + java.util.Collections.emptyList(); + private void ensureGachaItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gachaItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .GachaItem gachaItemList = 5; + */ + public java.util.List getGachaItemListList() { + if (gachaItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(gachaItemList_); + } else { + return gachaItemListBuilder_.getMessageList(); + } + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public int getGachaItemListCount() { + if (gachaItemListBuilder_ == null) { + return gachaItemList_.size(); + } else { + return gachaItemListBuilder_.getCount(); + } + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) { + if (gachaItemListBuilder_ == null) { + return gachaItemList_.get(index); + } else { + return gachaItemListBuilder_.getMessage(index); + } + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + 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; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public Builder addAllGachaItemList( + java.lang.Iterable values) { + if (gachaItemListBuilder_ == null) { + ensureGachaItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gachaItemList_); + onChanged(); + } else { + gachaItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public Builder clearGachaItemList() { + if (gachaItemListBuilder_ == null) { + gachaItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gachaItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public Builder removeGachaItemList(int index) { + if (gachaItemListBuilder_ == null) { + ensureGachaItemListIsMutable(); + gachaItemList_.remove(index); + onChanged(); + } else { + gachaItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder getGachaItemListBuilder( + int index) { + return getGachaItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder( + int index) { + if (gachaItemListBuilder_ == null) { + return gachaItemList_.get(index); } else { + return gachaItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public java.util.List + getGachaItemListOrBuilderList() { + if (gachaItemListBuilder_ != null) { + return gachaItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gachaItemList_); + } + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder() { + return getGachaItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder( + int index) { + return getGachaItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()); + } + /** + * repeated .GachaItem gachaItemList = 5; + */ + public java.util.List + 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_ ; + /** + * uint32 newGachaRandom = 6; + * @return The newGachaRandom. + */ + @java.lang.Override + public int getNewGachaRandom() { + return newGachaRandom_; + } + /** + * uint32 newGachaRandom = 6; + * @param value The newGachaRandom to set. + * @return This builder for chaining. + */ + public Builder setNewGachaRandom(int value) { + + newGachaRandom_ = value; + onChanged(); + return this; + } + /** + * uint32 newGachaRandom = 6; + * @return This builder for chaining. + */ + public Builder clearNewGachaRandom() { + + newGachaRandom_ = 0; + onChanged(); + return this; + } + + private int costItemId_ ; + /** + * uint32 costItemId = 7; + * @return The costItemId. + */ + @java.lang.Override + public int getCostItemId() { + return costItemId_; + } + /** + * uint32 costItemId = 7; + * @param value The costItemId to set. + * @return This builder for chaining. + */ + public Builder setCostItemId(int value) { + + costItemId_ = value; + onChanged(); + return this; + } + /** + * uint32 costItemId = 7; + * @return This builder for chaining. + */ + public Builder clearCostItemId() { + + costItemId_ = 0; + onChanged(); + return this; + } + + private int costItemNum_ ; + /** + * uint32 costItemNum = 8; + * @return The costItemNum. + */ + @java.lang.Override + public int getCostItemNum() { + return costItemNum_; + } + /** + * uint32 costItemNum = 8; + * @param value The costItemNum to set. + * @return This builder for chaining. + */ + public Builder setCostItemNum(int value) { + + costItemNum_ = value; + onChanged(); + return this; + } + /** + * uint32 costItemNum = 8; + * @return This builder for chaining. + */ + public Builder clearCostItemNum() { + + costItemNum_ = 0; + onChanged(); + return this; + } + + private int tenCostItemId_ ; + /** + * uint32 tenCostItemId = 9; + * @return The tenCostItemId. + */ + @java.lang.Override + public int getTenCostItemId() { + return tenCostItemId_; + } + /** + * uint32 tenCostItemId = 9; + * @param value The tenCostItemId to set. + * @return This builder for chaining. + */ + public Builder setTenCostItemId(int value) { + + tenCostItemId_ = value; + onChanged(); + return this; + } + /** + * uint32 tenCostItemId = 9; + * @return This builder for chaining. + */ + public Builder clearTenCostItemId() { + + tenCostItemId_ = 0; + onChanged(); + return this; + } + + private int tenCostItemNum_ ; + /** + * uint32 tenCostItemNum = 10; + * @return The tenCostItemNum. + */ + @java.lang.Override + public int getTenCostItemNum() { + return tenCostItemNum_; + } + /** + * uint32 tenCostItemNum = 10; + * @param value The tenCostItemNum to set. + * @return This builder for chaining. + */ + public Builder setTenCostItemNum(int value) { + + tenCostItemNum_ = value; + onChanged(); + return this; + } + /** + * uint32 tenCostItemNum = 10; + * @return This builder for chaining. + */ + public Builder clearTenCostItemNum() { + + tenCostItemNum_ = 0; + onChanged(); + return this; + } + + private int leftGachaTimes_ ; + /** + * uint32 leftGachaTimes = 11; + * @return The leftGachaTimes. + */ + @java.lang.Override + public int getLeftGachaTimes() { + return leftGachaTimes_; + } + /** + * uint32 leftGachaTimes = 11; + * @param value The leftGachaTimes to set. + * @return This builder for chaining. + */ + public Builder setLeftGachaTimes(int value) { + + leftGachaTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 leftGachaTimes = 11; + * @return This builder for chaining. + */ + public Builder clearLeftGachaTimes() { + + leftGachaTimes_ = 0; + onChanged(); + return this; + } + + private int gachaTimesLimit_ ; + /** + * uint32 gachaTimesLimit = 12; + * @return The gachaTimesLimit. + */ + @java.lang.Override + public int getGachaTimesLimit() { + return gachaTimesLimit_; + } + /** + * uint32 gachaTimesLimit = 12; + * @param value The gachaTimesLimit to set. + * @return This builder for chaining. + */ + public Builder setGachaTimesLimit(int value) { + + gachaTimesLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaTimesLimit = 12; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..729349228 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DropHintNotifyOuterClass.java @@ -0,0 +1,869 @@ +// 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 { + + /** + * repeated uint32 itemIdList = 1; + * @return A list containing the itemIdList. + */ + java.util.List getItemIdListList(); + /** + * repeated uint32 itemIdList = 1; + * @return The count of itemIdList. + */ + int getItemIdListCount(); + /** + * repeated uint32 itemIdList = 1; + * @param index The index of the element to return. + * @return The itemIdList at the given index. + */ + int getItemIdList(int index); + + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * .Vector position = 2; + * @return The position. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); + /** + * .Vector position = 2; + */ + 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_; + /** + * repeated uint32 itemIdList = 1; + * @return A list containing the itemIdList. + */ + @java.lang.Override + public java.util.List + getItemIdListList() { + return itemIdList_; + } + /** + * repeated uint32 itemIdList = 1; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 1; + * @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_; + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return position_ != null; + } + /** + * .Vector position = 2; + * @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_; + } + /** + * .Vector position = 2; + */ + @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 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; + } + } + /** + * repeated uint32 itemIdList = 1; + * @return A list containing the itemIdList. + */ + public java.util.List + getItemIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; + } + /** + * repeated uint32 itemIdList = 1; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 1; + * @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); + } + /** + * repeated uint32 itemIdList = 1; + * @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; + } + /** + * repeated uint32 itemIdList = 1; + * @param value The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addItemIdList(int value) { + ensureItemIdListIsMutable(); + itemIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 1; + * @param values The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addAllItemIdList( + java.lang.Iterable values) { + ensureItemIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 1; + * @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_; + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return positionBuilder_ != null || position_ != null; + } + /** + * .Vector position = 2; + * @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(); + } + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + public Builder clearPosition() { + if (positionBuilder_ == null) { + position_ = null; + onChanged(); + } else { + position_ = null; + positionBuilder_ = null; + } + + return this; + } + /** + * .Vector position = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { + + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * .Vector position = 2; + */ + 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_; + } + } + /** + * .Vector position = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..653c8664f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoOuterClass.java @@ -0,0 +1,1238 @@ +// 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 { + + /** + * uint32 dungeonId = 1; + * @return The dungeonId. + */ + int getDungeonId(); + + /** + * bool isPassed = 2; + * @return The isPassed. + */ + boolean getIsPassed(); + + /** + * uint32 leftTimes = 3; + * @return The leftTimes. + */ + int getLeftTimes(); + + /** + * uint32 startTime = 4; + * @return The startTime. + */ + int getStartTime(); + + /** + * uint32 endTime = 5; + * @return The endTime. + */ + int getEndTime(); + + /** + * uint32 maxBossChestNum = 6; + * @return The maxBossChestNum. + */ + int getMaxBossChestNum(); + + /** + * uint32 bossChestNum = 7; + * @return The bossChestNum. + */ + int getBossChestNum(); + + /** + * uint32 nextRefreshTime = 8; + * @return The nextRefreshTime. + */ + int getNextRefreshTime(); + + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @return Whether the weeklyBossResinDiscountInfo field is set. + */ + boolean hasWeeklyBossResinDiscountInfo(); + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @return The weeklyBossResinDiscountInfo. + */ + emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo getWeeklyBossResinDiscountInfo(); + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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_; + /** + * uint32 dungeonId = 1; + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + + public static final int ISPASSED_FIELD_NUMBER = 2; + private boolean isPassed_; + /** + * bool isPassed = 2; + * @return The isPassed. + */ + @java.lang.Override + public boolean getIsPassed() { + return isPassed_; + } + + public static final int LEFTTIMES_FIELD_NUMBER = 3; + private int leftTimes_; + /** + * uint32 leftTimes = 3; + * @return The leftTimes. + */ + @java.lang.Override + public int getLeftTimes() { + return leftTimes_; + } + + public static final int STARTTIME_FIELD_NUMBER = 4; + private int startTime_; + /** + * uint32 startTime = 4; + * @return The startTime. + */ + @java.lang.Override + public int getStartTime() { + return startTime_; + } + + public static final int ENDTIME_FIELD_NUMBER = 5; + private int endTime_; + /** + * uint32 endTime = 5; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + + public static final int MAXBOSSCHESTNUM_FIELD_NUMBER = 6; + private int maxBossChestNum_; + /** + * uint32 maxBossChestNum = 6; + * @return The maxBossChestNum. + */ + @java.lang.Override + public int getMaxBossChestNum() { + return maxBossChestNum_; + } + + public static final int BOSSCHESTNUM_FIELD_NUMBER = 7; + private int bossChestNum_; + /** + * uint32 bossChestNum = 7; + * @return The bossChestNum. + */ + @java.lang.Override + public int getBossChestNum() { + return bossChestNum_; + } + + public static final int NEXTREFRESHTIME_FIELD_NUMBER = 8; + private int nextRefreshTime_; + /** + * uint32 nextRefreshTime = 8; + * @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_; + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @return Whether the weeklyBossResinDiscountInfo field is set. + */ + @java.lang.Override + public boolean hasWeeklyBossResinDiscountInfo() { + return weeklyBossResinDiscountInfo_ != null; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @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_; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + @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 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_ ; + /** + * uint32 dungeonId = 1; + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + /** + * uint32 dungeonId = 1; + * @param value The dungeonId to set. + * @return This builder for chaining. + */ + public Builder setDungeonId(int value) { + + dungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 dungeonId = 1; + * @return This builder for chaining. + */ + public Builder clearDungeonId() { + + dungeonId_ = 0; + onChanged(); + return this; + } + + private boolean isPassed_ ; + /** + * bool isPassed = 2; + * @return The isPassed. + */ + @java.lang.Override + public boolean getIsPassed() { + return isPassed_; + } + /** + * bool isPassed = 2; + * @param value The isPassed to set. + * @return This builder for chaining. + */ + public Builder setIsPassed(boolean value) { + + isPassed_ = value; + onChanged(); + return this; + } + /** + * bool isPassed = 2; + * @return This builder for chaining. + */ + public Builder clearIsPassed() { + + isPassed_ = false; + onChanged(); + return this; + } + + private int leftTimes_ ; + /** + * uint32 leftTimes = 3; + * @return The leftTimes. + */ + @java.lang.Override + public int getLeftTimes() { + return leftTimes_; + } + /** + * uint32 leftTimes = 3; + * @param value The leftTimes to set. + * @return This builder for chaining. + */ + public Builder setLeftTimes(int value) { + + leftTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 leftTimes = 3; + * @return This builder for chaining. + */ + public Builder clearLeftTimes() { + + leftTimes_ = 0; + onChanged(); + return this; + } + + private int startTime_ ; + /** + * uint32 startTime = 4; + * @return The startTime. + */ + @java.lang.Override + public int getStartTime() { + return startTime_; + } + /** + * uint32 startTime = 4; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(int value) { + + startTime_ = value; + onChanged(); + return this; + } + /** + * uint32 startTime = 4; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = 0; + onChanged(); + return this; + } + + private int endTime_ ; + /** + * uint32 endTime = 5; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + /** + * uint32 endTime = 5; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(int value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * uint32 endTime = 5; + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = 0; + onChanged(); + return this; + } + + private int maxBossChestNum_ ; + /** + * uint32 maxBossChestNum = 6; + * @return The maxBossChestNum. + */ + @java.lang.Override + public int getMaxBossChestNum() { + return maxBossChestNum_; + } + /** + * uint32 maxBossChestNum = 6; + * @param value The maxBossChestNum to set. + * @return This builder for chaining. + */ + public Builder setMaxBossChestNum(int value) { + + maxBossChestNum_ = value; + onChanged(); + return this; + } + /** + * uint32 maxBossChestNum = 6; + * @return This builder for chaining. + */ + public Builder clearMaxBossChestNum() { + + maxBossChestNum_ = 0; + onChanged(); + return this; + } + + private int bossChestNum_ ; + /** + * uint32 bossChestNum = 7; + * @return The bossChestNum. + */ + @java.lang.Override + public int getBossChestNum() { + return bossChestNum_; + } + /** + * uint32 bossChestNum = 7; + * @param value The bossChestNum to set. + * @return This builder for chaining. + */ + public Builder setBossChestNum(int value) { + + bossChestNum_ = value; + onChanged(); + return this; + } + /** + * uint32 bossChestNum = 7; + * @return This builder for chaining. + */ + public Builder clearBossChestNum() { + + bossChestNum_ = 0; + onChanged(); + return this; + } + + private int nextRefreshTime_ ; + /** + * uint32 nextRefreshTime = 8; + * @return The nextRefreshTime. + */ + @java.lang.Override + public int getNextRefreshTime() { + return nextRefreshTime_; + } + /** + * uint32 nextRefreshTime = 8; + * @param value The nextRefreshTime to set. + * @return This builder for chaining. + */ + public Builder setNextRefreshTime(int value) { + + nextRefreshTime_ = value; + onChanged(); + return this; + } + /** + * uint32 nextRefreshTime = 8; + * @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_; + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @return Whether the weeklyBossResinDiscountInfo field is set. + */ + public boolean hasWeeklyBossResinDiscountInfo() { + return weeklyBossResinDiscountInfoBuilder_ != null || weeklyBossResinDiscountInfo_ != null; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + * @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(); + } + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + public Builder clearWeeklyBossResinDiscountInfo() { + if (weeklyBossResinDiscountInfoBuilder_ == null) { + weeklyBossResinDiscountInfo_ = null; + onChanged(); + } else { + weeklyBossResinDiscountInfo_ = null; + weeklyBossResinDiscountInfoBuilder_ = null; + } + + return this; + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + public emu.grasscutter.net.proto.WeeklyBossResinDiscountInfoOuterClass.WeeklyBossResinDiscountInfo.Builder getWeeklyBossResinDiscountInfoBuilder() { + + onChanged(); + return getWeeklyBossResinDiscountInfoFieldBuilder().getBuilder(); + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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_; + } + } + /** + * .WeeklyBossResinDiscountInfo weeklyBossResinDiscountInfo = 9; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a1d272bf3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 pointId = 1; + * @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_; + /** + * uint32 pointId = 1; + * @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 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_ ; + /** + * uint32 pointId = 1; + * @return The pointId. + */ + @java.lang.Override + public int getPointId() { + return pointId_; + } + /** + * uint32 pointId = 1; + * @param value The pointId to set. + * @return This builder for chaining. + */ + public Builder setPointId(int value) { + + pointId_ = value; + onChanged(); + return this; + } + /** + * uint32 pointId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4dc6fa11a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/DungeonEntryInfoRspOuterClass.java @@ -0,0 +1,1056 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 pointId = 2; + * @return The pointId. + */ + int getPointId(); + + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + java.util.List + getDungeonEntryListList(); + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index); + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + int getDungeonEntryListCount(); + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + java.util.List + getDungeonEntryListOrBuilderList(); + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder getDungeonEntryListOrBuilder( + int index); + + /** + * uint32 recommendDungeonId = 4; + * @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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int POINTID_FIELD_NUMBER = 2; + private int pointId_; + /** + * uint32 pointId = 2; + * @return The pointId. + */ + @java.lang.Override + public int getPointId() { + return pointId_; + } + + public static final int DUNGEONENTRYLIST_FIELD_NUMBER = 3; + private java.util.List dungeonEntryList_; + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + @java.lang.Override + public java.util.List getDungeonEntryListList() { + return dungeonEntryList_; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + @java.lang.Override + public java.util.List + getDungeonEntryListOrBuilderList() { + return dungeonEntryList_; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + @java.lang.Override + public int getDungeonEntryListCount() { + return dungeonEntryList_.size(); + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index) { + return dungeonEntryList_.get(index); + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + @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_; + /** + * uint32 recommendDungeonId = 4; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int pointId_ ; + /** + * uint32 pointId = 2; + * @return The pointId. + */ + @java.lang.Override + public int getPointId() { + return pointId_; + } + /** + * uint32 pointId = 2; + * @param value The pointId to set. + * @return This builder for chaining. + */ + public Builder setPointId(int value) { + + pointId_ = value; + onChanged(); + return this; + } + /** + * uint32 pointId = 2; + * @return This builder for chaining. + */ + public Builder clearPointId() { + + pointId_ = 0; + onChanged(); + return this; + } + + private java.util.List dungeonEntryList_ = + java.util.Collections.emptyList(); + private void ensureDungeonEntryListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dungeonEntryList_ = new java.util.ArrayList(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_; + + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public java.util.List getDungeonEntryListList() { + if (dungeonEntryListBuilder_ == null) { + return java.util.Collections.unmodifiableList(dungeonEntryList_); + } else { + return dungeonEntryListBuilder_.getMessageList(); + } + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public int getDungeonEntryListCount() { + if (dungeonEntryListBuilder_ == null) { + return dungeonEntryList_.size(); + } else { + return dungeonEntryListBuilder_.getCount(); + } + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo getDungeonEntryList(int index) { + if (dungeonEntryListBuilder_ == null) { + return dungeonEntryList_.get(index); + } else { + return dungeonEntryListBuilder_.getMessage(index); + } + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + 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; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public Builder addAllDungeonEntryList( + java.lang.Iterable values) { + if (dungeonEntryListBuilder_ == null) { + ensureDungeonEntryListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dungeonEntryList_); + onChanged(); + } else { + dungeonEntryListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public Builder clearDungeonEntryList() { + if (dungeonEntryListBuilder_ == null) { + dungeonEntryList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dungeonEntryListBuilder_.clear(); + } + return this; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public Builder removeDungeonEntryList(int index) { + if (dungeonEntryListBuilder_ == null) { + ensureDungeonEntryListIsMutable(); + dungeonEntryList_.remove(index); + onChanged(); + } else { + dungeonEntryListBuilder_.remove(index); + } + return this; + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder getDungeonEntryListBuilder( + int index) { + return getDungeonEntryListFieldBuilder().getBuilder(index); + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfoOrBuilder getDungeonEntryListOrBuilder( + int index) { + if (dungeonEntryListBuilder_ == null) { + return dungeonEntryList_.get(index); } else { + return dungeonEntryListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public java.util.List + getDungeonEntryListOrBuilderList() { + if (dungeonEntryListBuilder_ != null) { + return dungeonEntryListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dungeonEntryList_); + } + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder addDungeonEntryListBuilder() { + return getDungeonEntryListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance()); + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.Builder addDungeonEntryListBuilder( + int index) { + return getDungeonEntryListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.DungeonEntryInfoOuterClass.DungeonEntryInfo.getDefaultInstance()); + } + /** + * repeated .DungeonEntryInfo dungeonEntryList = 3; + */ + public java.util.List + 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_ ; + /** + * uint32 recommendDungeonId = 4; + * @return The recommendDungeonId. + */ + @java.lang.Override + public int getRecommendDungeonId() { + return recommendDungeonId_; + } + /** + * uint32 recommendDungeonId = 4; + * @param value The recommendDungeonId to set. + * @return This builder for chaining. + */ + public Builder setRecommendDungeonId(int value) { + + recommendDungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 recommendDungeonId = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d7bdb6b67 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterSceneDoneRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 enterSceneToken = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 enterSceneToken = 2; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 2; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..93f188219 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterScenePeerNotifyOuterClass.java @@ -0,0 +1,748 @@ +// 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 { + + /** + * uint32 destSceneId = 1; + * @return The destSceneId. + */ + int getDestSceneId(); + + /** + * uint32 peerId = 2; + * @return The peerId. + */ + int getPeerId(); + + /** + * uint32 hostPeerId = 3; + * @return The hostPeerId. + */ + int getHostPeerId(); + + /** + * uint32 EnterSceneToken = 4; + * @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_; + /** + * uint32 destSceneId = 1; + * @return The destSceneId. + */ + @java.lang.Override + public int getDestSceneId() { + return destSceneId_; + } + + public static final int PEERID_FIELD_NUMBER = 2; + private int peerId_; + /** + * uint32 peerId = 2; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + + public static final int HOSTPEERID_FIELD_NUMBER = 3; + private int hostPeerId_; + /** + * uint32 hostPeerId = 3; + * @return The hostPeerId. + */ + @java.lang.Override + public int getHostPeerId() { + return hostPeerId_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 4; + private int enterSceneToken_; + /** + * uint32 EnterSceneToken = 4; + * @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 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_ ; + /** + * uint32 destSceneId = 1; + * @return The destSceneId. + */ + @java.lang.Override + public int getDestSceneId() { + return destSceneId_; + } + /** + * uint32 destSceneId = 1; + * @param value The destSceneId to set. + * @return This builder for chaining. + */ + public Builder setDestSceneId(int value) { + + destSceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 destSceneId = 1; + * @return This builder for chaining. + */ + public Builder clearDestSceneId() { + + destSceneId_ = 0; + onChanged(); + return this; + } + + private int peerId_ ; + /** + * uint32 peerId = 2; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + /** + * uint32 peerId = 2; + * @param value The peerId to set. + * @return This builder for chaining. + */ + public Builder setPeerId(int value) { + + peerId_ = value; + onChanged(); + return this; + } + /** + * uint32 peerId = 2; + * @return This builder for chaining. + */ + public Builder clearPeerId() { + + peerId_ = 0; + onChanged(); + return this; + } + + private int hostPeerId_ ; + /** + * uint32 hostPeerId = 3; + * @return The hostPeerId. + */ + @java.lang.Override + public int getHostPeerId() { + return hostPeerId_; + } + /** + * uint32 hostPeerId = 3; + * @param value The hostPeerId to set. + * @return This builder for chaining. + */ + public Builder setHostPeerId(int value) { + + hostPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 hostPeerId = 3; + * @return This builder for chaining. + */ + public Builder clearHostPeerId() { + + hostPeerId_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 EnterSceneToken = 4; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 EnterSceneToken = 4; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 EnterSceneToken = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cfe6d6ff9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterSceneReadyRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 enterSceneToken = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 enterSceneToken = 2; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 2; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c48ec6f1f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterTypeOuterClass.java @@ -0,0 +1,230 @@ +// 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 { + /** + * EnterNone = 0; + */ + EnterNone(0), + /** + * EnterSelf = 1; + */ + EnterSelf(1), + /** + * EnterGoto = 2; + */ + EnterGoto(2), + /** + * EnterJump = 3; + */ + EnterJump(3), + /** + * EnterOther = 4; + */ + EnterOther(4), + /** + * EnterBack = 5; + */ + EnterBack(5), + /** + * EnterDungeon = 6; + */ + EnterDungeon(6), + /** + * EnterDungeonReplay = 7; + */ + EnterDungeonReplay(7), + /** + * EnterGotoByPortal = 8; + */ + EnterGotoByPortal(8), + /** + * EnterSelfHome = 9; + */ + EnterSelfHome(9), + /** + * EnterOtherHome = 10; + */ + EnterOtherHome(10), + UNRECOGNIZED(-1), + ; + + /** + * EnterNone = 0; + */ + public static final int EnterNone_VALUE = 0; + /** + * EnterSelf = 1; + */ + public static final int EnterSelf_VALUE = 1; + /** + * EnterGoto = 2; + */ + public static final int EnterGoto_VALUE = 2; + /** + * EnterJump = 3; + */ + public static final int EnterJump_VALUE = 3; + /** + * EnterOther = 4; + */ + public static final int EnterOther_VALUE = 4; + /** + * EnterBack = 5; + */ + public static final int EnterBack_VALUE = 5; + /** + * EnterDungeon = 6; + */ + public static final int EnterDungeon_VALUE = 6; + /** + * EnterDungeonReplay = 7; + */ + public static final int EnterDungeonReplay_VALUE = 7; + /** + * EnterGotoByPortal = 8; + */ + public static final int EnterGotoByPortal_VALUE = 8; + /** + * EnterSelfHome = 9; + */ + public static final int EnterSelfHome_VALUE = 9; + /** + * EnterOtherHome = 10; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EnterType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..4af5357f3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaReqOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 areaType = 1; + * @return The areaType. + */ + int getAreaType(); + + /** + * uint32 areaId = 2; + * @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_; + /** + * uint32 areaType = 1; + * @return The areaType. + */ + @java.lang.Override + public int getAreaType() { + return areaType_; + } + + public static final int AREAID_FIELD_NUMBER = 2; + private int areaId_; + /** + * uint32 areaId = 2; + * @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 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_ ; + /** + * uint32 areaType = 1; + * @return The areaType. + */ + @java.lang.Override + public int getAreaType() { + return areaType_; + } + /** + * uint32 areaType = 1; + * @param value The areaType to set. + * @return This builder for chaining. + */ + public Builder setAreaType(int value) { + + areaType_ = value; + onChanged(); + return this; + } + /** + * uint32 areaType = 1; + * @return This builder for chaining. + */ + public Builder clearAreaType() { + + areaType_ = 0; + onChanged(); + return this; + } + + private int areaId_ ; + /** + * uint32 areaId = 2; + * @return The areaId. + */ + @java.lang.Override + public int getAreaId() { + return areaId_; + } + /** + * uint32 areaId = 2; + * @param value The areaId to set. + * @return This builder for chaining. + */ + public Builder setAreaId(int value) { + + areaId_ = value; + onChanged(); + return this; + } + /** + * uint32 areaId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5b5a85bdf --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EnterWorldAreaRspOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 areaType = 2; + * @return The areaType. + */ + int getAreaType(); + + /** + * uint32 areaId = 3; + * @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_; + /** + * uint32 areaType = 2; + * @return The areaType. + */ + @java.lang.Override + public int getAreaType() { + return areaType_; + } + + public static final int AREAID_FIELD_NUMBER = 3; + private int areaId_; + /** + * uint32 areaId = 3; + * @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 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_ ; + /** + * uint32 areaType = 2; + * @return The areaType. + */ + @java.lang.Override + public int getAreaType() { + return areaType_; + } + /** + * uint32 areaType = 2; + * @param value The areaType to set. + * @return This builder for chaining. + */ + public Builder setAreaType(int value) { + + areaType_ = value; + onChanged(); + return this; + } + /** + * uint32 areaType = 2; + * @return This builder for chaining. + */ + public Builder clearAreaType() { + + areaType_ = 0; + onChanged(); + return this; + } + + private int areaId_ ; + /** + * uint32 areaId = 3; + * @return The areaId. + */ + @java.lang.Override + public int getAreaId() { + return areaId_; + } + /** + * uint32 areaId = 3; + * @param value The areaId to set. + * @return This builder for chaining. + */ + public Builder setAreaId(int value) { + + areaId_ = value; + onChanged(); + return this; + } + /** + * uint32 areaId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b9f25a536 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityAiSyncNotifyOuterClass.java @@ -0,0 +1,1039 @@ +// 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 { + + /** + * repeated .AiSyncInfo infoList = 1; + */ + java.util.List + getInfoListList(); + /** + * repeated .AiSyncInfo infoList = 1; + */ + emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index); + /** + * repeated .AiSyncInfo infoList = 1; + */ + int getInfoListCount(); + /** + * repeated .AiSyncInfo infoList = 1; + */ + java.util.List + getInfoListOrBuilderList(); + /** + * repeated .AiSyncInfo infoList = 1; + */ + emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder getInfoListOrBuilder( + int index); + + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return A list containing the localAvatarAlertedMonsterList. + */ + java.util.List getLocalAvatarAlertedMonsterListList(); + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return The count of localAvatarAlertedMonsterList. + */ + int getLocalAvatarAlertedMonsterListCount(); + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @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(); + 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 infoList_; + /** + * repeated .AiSyncInfo infoList = 1; + */ + @java.lang.Override + public java.util.List getInfoListList() { + return infoList_; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + @java.lang.Override + public java.util.List + getInfoListOrBuilderList() { + return infoList_; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + @java.lang.Override + public int getInfoListCount() { + return infoList_.size(); + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index) { + return infoList_.get(index); + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + @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_; + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return A list containing the localAvatarAlertedMonsterList. + */ + @java.lang.Override + public java.util.List + getLocalAvatarAlertedMonsterListList() { + return localAvatarAlertedMonsterList_; + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return The count of localAvatarAlertedMonsterList. + */ + public int getLocalAvatarAlertedMonsterListCount() { + return localAvatarAlertedMonsterList_.size(); + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @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 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 infoList_ = + java.util.Collections.emptyList(); + private void ensureInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + infoList_ = new java.util.ArrayList(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_; + + /** + * repeated .AiSyncInfo infoList = 1; + */ + public java.util.List getInfoListList() { + if (infoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(infoList_); + } else { + return infoListBuilder_.getMessageList(); + } + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public int getInfoListCount() { + if (infoListBuilder_ == null) { + return infoList_.size(); + } else { + return infoListBuilder_.getCount(); + } + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo getInfoList(int index) { + if (infoListBuilder_ == null) { + return infoList_.get(index); + } else { + return infoListBuilder_.getMessage(index); + } + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + 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; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public Builder addAllInfoList( + java.lang.Iterable values) { + if (infoListBuilder_ == null) { + ensureInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, infoList_); + onChanged(); + } else { + infoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public Builder clearInfoList() { + if (infoListBuilder_ == null) { + infoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoListBuilder_.clear(); + } + return this; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public Builder removeInfoList(int index) { + if (infoListBuilder_ == null) { + ensureInfoListIsMutable(); + infoList_.remove(index); + onChanged(); + } else { + infoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder getInfoListBuilder( + int index) { + return getInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfoOrBuilder getInfoListOrBuilder( + int index) { + if (infoListBuilder_ == null) { + return infoList_.get(index); } else { + return infoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public java.util.List + getInfoListOrBuilderList() { + if (infoListBuilder_ != null) { + return infoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infoList_); + } + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder addInfoListBuilder() { + return getInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance()); + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.Builder addInfoListBuilder( + int index) { + return getInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AiSyncInfoOuterClass.AiSyncInfo.getDefaultInstance()); + } + /** + * repeated .AiSyncInfo infoList = 1; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return A list containing the localAvatarAlertedMonsterList. + */ + public java.util.List + getLocalAvatarAlertedMonsterListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(localAvatarAlertedMonsterList_) : localAvatarAlertedMonsterList_; + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @return The count of localAvatarAlertedMonsterList. + */ + public int getLocalAvatarAlertedMonsterListCount() { + return localAvatarAlertedMonsterList_.size(); + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @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); + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @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; + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @param value The localAvatarAlertedMonsterList to add. + * @return This builder for chaining. + */ + public Builder addLocalAvatarAlertedMonsterList(int value) { + ensureLocalAvatarAlertedMonsterListIsMutable(); + localAvatarAlertedMonsterList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @param values The localAvatarAlertedMonsterList to add. + * @return This builder for chaining. + */ + public Builder addAllLocalAvatarAlertedMonsterList( + java.lang.Iterable values) { + ensureLocalAvatarAlertedMonsterListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, localAvatarAlertedMonsterList_); + onChanged(); + return this; + } + /** + * repeated uint32 localAvatarAlertedMonsterList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..05bee525f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityAuthorityInfoOuterClass.java @@ -0,0 +1,1672 @@ +// 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 { + + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @return Whether the abilityInfo field is set. + */ + boolean hasAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @return The abilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder(); + + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @return Whether the rendererChangedInfo field is set. + */ + boolean hasRendererChangedInfo(); + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @return The rendererChangedInfo. + */ + emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo getRendererChangedInfo(); + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfoOrBuilder getRendererChangedInfoOrBuilder(); + + /** + * .SceneEntityAiInfo aiInfo = 3; + * @return Whether the aiInfo field is set. + */ + boolean hasAiInfo(); + /** + * .SceneEntityAiInfo aiInfo = 3; + * @return The aiInfo. + */ + emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo getAiInfo(); + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfoOrBuilder getAiInfoOrBuilder(); + + /** + * .Vector bornPos = 4; + * @return Whether the bornPos field is set. + */ + boolean hasBornPos(); + /** + * .Vector bornPos = 4; + * @return The bornPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos(); + /** + * .Vector bornPos = 4; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder(); + + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + java.util.List + getPoseParaListList(); + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index); + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + int getPoseParaListCount(); + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + java.util.List + getPoseParaListOrBuilderList(); + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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(); + 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_; + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @return Whether the abilityInfo field is set. + */ + @java.lang.Override + public boolean hasAbilityInfo() { + return abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @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_; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + @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_; + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @return Whether the rendererChangedInfo field is set. + */ + @java.lang.Override + public boolean hasRendererChangedInfo() { + return rendererChangedInfo_ != null; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @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_; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + @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_; + /** + * .SceneEntityAiInfo aiInfo = 3; + * @return Whether the aiInfo field is set. + */ + @java.lang.Override + public boolean hasAiInfo() { + return aiInfo_ != null; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + * @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_; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + @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_; + /** + * .Vector bornPos = 4; + * @return Whether the bornPos field is set. + */ + @java.lang.Override + public boolean hasBornPos() { + return bornPos_ != null; + } + /** + * .Vector bornPos = 4; + * @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_; + } + /** + * .Vector bornPos = 4; + */ + @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 poseParaList_; + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + @java.lang.Override + public java.util.List getPoseParaListList() { + return poseParaList_; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + @java.lang.Override + public java.util.List + getPoseParaListOrBuilderList() { + return poseParaList_; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + @java.lang.Override + public int getPoseParaListCount() { + return poseParaList_.size(); + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index) { + return poseParaList_.get(index); + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + @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 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_; + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @return Whether the abilityInfo field is set. + */ + public boolean hasAbilityInfo() { + return abilityInfoBuilder_ != null || abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + * @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(); + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + public Builder clearAbilityInfo() { + if (abilityInfoBuilder_ == null) { + abilityInfo_ = null; + onChanged(); + } else { + abilityInfo_ = null; + abilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { + + onChanged(); + return getAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 1; + */ + 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_; + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @return Whether the rendererChangedInfo field is set. + */ + public boolean hasRendererChangedInfo() { + return rendererChangedInfoBuilder_ != null || rendererChangedInfo_ != null; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + * @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(); + } + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + 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; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + 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; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + 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; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + public Builder clearRendererChangedInfo() { + if (rendererChangedInfoBuilder_ == null) { + rendererChangedInfo_ = null; + onChanged(); + } else { + rendererChangedInfo_ = null; + rendererChangedInfoBuilder_ = null; + } + + return this; + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + public emu.grasscutter.net.proto.EntityRendererChangedInfoOuterClass.EntityRendererChangedInfo.Builder getRendererChangedInfoBuilder() { + + onChanged(); + return getRendererChangedInfoFieldBuilder().getBuilder(); + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + 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_; + } + } + /** + * .EntityRendererChangedInfo rendererChangedInfo = 2; + */ + 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_; + /** + * .SceneEntityAiInfo aiInfo = 3; + * @return Whether the aiInfo field is set. + */ + public boolean hasAiInfo() { + return aiInfoBuilder_ != null || aiInfo_ != null; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + * @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(); + } + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + 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; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + 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; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + 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; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + public Builder clearAiInfo() { + if (aiInfoBuilder_ == null) { + aiInfo_ = null; + onChanged(); + } else { + aiInfo_ = null; + aiInfoBuilder_ = null; + } + + return this; + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + public emu.grasscutter.net.proto.SceneEntityAiInfoOuterClass.SceneEntityAiInfo.Builder getAiInfoBuilder() { + + onChanged(); + return getAiInfoFieldBuilder().getBuilder(); + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + 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_; + } + } + /** + * .SceneEntityAiInfo aiInfo = 3; + */ + 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_; + /** + * .Vector bornPos = 4; + * @return Whether the bornPos field is set. + */ + public boolean hasBornPos() { + return bornPosBuilder_ != null || bornPos_ != null; + } + /** + * .Vector bornPos = 4; + * @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(); + } + } + /** + * .Vector bornPos = 4; + */ + 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; + } + /** + * .Vector bornPos = 4; + */ + 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; + } + /** + * .Vector bornPos = 4; + */ + 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; + } + /** + * .Vector bornPos = 4; + */ + public Builder clearBornPos() { + if (bornPosBuilder_ == null) { + bornPos_ = null; + onChanged(); + } else { + bornPos_ = null; + bornPosBuilder_ = null; + } + + return this; + } + /** + * .Vector bornPos = 4; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getBornPosBuilder() { + + onChanged(); + return getBornPosFieldBuilder().getBuilder(); + } + /** + * .Vector bornPos = 4; + */ + 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_; + } + } + /** + * .Vector bornPos = 4; + */ + 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 poseParaList_ = + java.util.Collections.emptyList(); + private void ensurePoseParaListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + poseParaList_ = new java.util.ArrayList(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_; + + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public java.util.List getPoseParaListList() { + if (poseParaListBuilder_ == null) { + return java.util.Collections.unmodifiableList(poseParaList_); + } else { + return poseParaListBuilder_.getMessageList(); + } + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public int getPoseParaListCount() { + if (poseParaListBuilder_ == null) { + return poseParaList_.size(); + } else { + return poseParaListBuilder_.getCount(); + } + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getPoseParaList(int index) { + if (poseParaListBuilder_ == null) { + return poseParaList_.get(index); + } else { + return poseParaListBuilder_.getMessage(index); + } + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public Builder addAllPoseParaList( + java.lang.Iterable values) { + if (poseParaListBuilder_ == null) { + ensurePoseParaListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, poseParaList_); + onChanged(); + } else { + poseParaListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public Builder clearPoseParaList() { + if (poseParaListBuilder_ == null) { + poseParaList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + poseParaListBuilder_.clear(); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public Builder removePoseParaList(int index) { + if (poseParaListBuilder_ == null) { + ensurePoseParaListIsMutable(); + poseParaList_.remove(index); + onChanged(); + } else { + poseParaListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder getPoseParaListBuilder( + int index) { + return getPoseParaListFieldBuilder().getBuilder(index); + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getPoseParaListOrBuilder( + int index) { + if (poseParaListBuilder_ == null) { + return poseParaList_.get(index); } else { + return poseParaListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public java.util.List + getPoseParaListOrBuilderList() { + if (poseParaListBuilder_ != null) { + return poseParaListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(poseParaList_); + } + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addPoseParaListBuilder() { + return getPoseParaListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addPoseParaListBuilder( + int index) { + return getPoseParaListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); + } + /** + * repeated .AnimatorParameterValueInfoPair poseParaList = 5; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..592d589c4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityClientDataOuterClass.java @@ -0,0 +1,680 @@ +// 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 { + + /** + * uint32 windChangeSceneTime = 1; + * @return The windChangeSceneTime. + */ + int getWindChangeSceneTime(); + + /** + * float windmillSyncAngle = 2; + * @return The windmillSyncAngle. + */ + float getWindmillSyncAngle(); + + /** + * int32 windChangeTargetLevel = 3; + * @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_; + /** + * uint32 windChangeSceneTime = 1; + * @return The windChangeSceneTime. + */ + @java.lang.Override + public int getWindChangeSceneTime() { + return windChangeSceneTime_; + } + + public static final int WINDMILLSYNCANGLE_FIELD_NUMBER = 2; + private float windmillSyncAngle_; + /** + * float windmillSyncAngle = 2; + * @return The windmillSyncAngle. + */ + @java.lang.Override + public float getWindmillSyncAngle() { + return windmillSyncAngle_; + } + + public static final int WINDCHANGETARGETLEVEL_FIELD_NUMBER = 3; + private int windChangeTargetLevel_; + /** + * int32 windChangeTargetLevel = 3; + * @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 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_ ; + /** + * uint32 windChangeSceneTime = 1; + * @return The windChangeSceneTime. + */ + @java.lang.Override + public int getWindChangeSceneTime() { + return windChangeSceneTime_; + } + /** + * uint32 windChangeSceneTime = 1; + * @param value The windChangeSceneTime to set. + * @return This builder for chaining. + */ + public Builder setWindChangeSceneTime(int value) { + + windChangeSceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 windChangeSceneTime = 1; + * @return This builder for chaining. + */ + public Builder clearWindChangeSceneTime() { + + windChangeSceneTime_ = 0; + onChanged(); + return this; + } + + private float windmillSyncAngle_ ; + /** + * float windmillSyncAngle = 2; + * @return The windmillSyncAngle. + */ + @java.lang.Override + public float getWindmillSyncAngle() { + return windmillSyncAngle_; + } + /** + * float windmillSyncAngle = 2; + * @param value The windmillSyncAngle to set. + * @return This builder for chaining. + */ + public Builder setWindmillSyncAngle(float value) { + + windmillSyncAngle_ = value; + onChanged(); + return this; + } + /** + * float windmillSyncAngle = 2; + * @return This builder for chaining. + */ + public Builder clearWindmillSyncAngle() { + + windmillSyncAngle_ = 0F; + onChanged(); + return this; + } + + private int windChangeTargetLevel_ ; + /** + * int32 windChangeTargetLevel = 3; + * @return The windChangeTargetLevel. + */ + @java.lang.Override + public int getWindChangeTargetLevel() { + return windChangeTargetLevel_; + } + /** + * int32 windChangeTargetLevel = 3; + * @param value The windChangeTargetLevel to set. + * @return This builder for chaining. + */ + public Builder setWindChangeTargetLevel(int value) { + + windChangeTargetLevel_ = value; + onChanged(); + return this; + } + /** + * int32 windChangeTargetLevel = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d356845df --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityEnvironmentInfoOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 jsonClimateType = 1; + * @return The jsonClimateType. + */ + int getJsonClimateType(); + + /** + * uint32 climateAreaId = 2; + * @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_; + /** + * uint32 jsonClimateType = 1; + * @return The jsonClimateType. + */ + @java.lang.Override + public int getJsonClimateType() { + return jsonClimateType_; + } + + public static final int CLIMATEAREAID_FIELD_NUMBER = 2; + private int climateAreaId_; + /** + * uint32 climateAreaId = 2; + * @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 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_ ; + /** + * uint32 jsonClimateType = 1; + * @return The jsonClimateType. + */ + @java.lang.Override + public int getJsonClimateType() { + return jsonClimateType_; + } + /** + * uint32 jsonClimateType = 1; + * @param value The jsonClimateType to set. + * @return This builder for chaining. + */ + public Builder setJsonClimateType(int value) { + + jsonClimateType_ = value; + onChanged(); + return this; + } + /** + * uint32 jsonClimateType = 1; + * @return This builder for chaining. + */ + public Builder clearJsonClimateType() { + + jsonClimateType_ = 0; + onChanged(); + return this; + } + + private int climateAreaId_ ; + /** + * uint32 climateAreaId = 2; + * @return The climateAreaId. + */ + @java.lang.Override + public int getClimateAreaId() { + return climateAreaId_; + } + /** + * uint32 climateAreaId = 2; + * @param value The climateAreaId to set. + * @return This builder for chaining. + */ + public Builder setClimateAreaId(int value) { + + climateAreaId_ = value; + onChanged(); + return this; + } + /** + * uint32 climateAreaId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7270ffbbd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityFightPropChangeReasonNotifyOuterClass.java @@ -0,0 +1,1098 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 propType = 2; + * @return The propType. + */ + int getPropType(); + + /** + * float propDelta = 3; + * @return The propDelta. + */ + float getPropDelta(); + + /** + * .PropChangeReason reason = 4; + * @return The enum numeric value on the wire for reason. + */ + int getReasonValue(); + /** + * .PropChangeReason reason = 4; + * @return The reason. + */ + emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason getReason(); + + /** + * repeated uint32 paramList = 5; + * @return A list containing the paramList. + */ + java.util.List getParamListList(); + /** + * repeated uint32 paramList = 5; + * @return The count of paramList. + */ + int getParamListCount(); + /** + * repeated uint32 paramList = 5; + * @param index The index of the element to return. + * @return The paramList at the given index. + */ + int getParamList(int index); + + /** + * .ChangeHpReason changeHpReason = 6; + * @return The enum numeric value on the wire for changeHpReason. + */ + int getChangeHpReasonValue(); + /** + * .ChangeHpReason changeHpReason = 6; + * @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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int PROPTYPE_FIELD_NUMBER = 2; + private int propType_; + /** + * uint32 propType = 2; + * @return The propType. + */ + @java.lang.Override + public int getPropType() { + return propType_; + } + + public static final int PROPDELTA_FIELD_NUMBER = 3; + private float propDelta_; + /** + * float propDelta = 3; + * @return The propDelta. + */ + @java.lang.Override + public float getPropDelta() { + return propDelta_; + } + + public static final int REASON_FIELD_NUMBER = 4; + private int reason_; + /** + * .PropChangeReason reason = 4; + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override public int getReasonValue() { + return reason_; + } + /** + * .PropChangeReason reason = 4; + * @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_; + /** + * repeated uint32 paramList = 5; + * @return A list containing the paramList. + */ + @java.lang.Override + public java.util.List + getParamListList() { + return paramList_; + } + /** + * repeated uint32 paramList = 5; + * @return The count of paramList. + */ + public int getParamListCount() { + return paramList_.size(); + } + /** + * repeated uint32 paramList = 5; + * @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_; + /** + * .ChangeHpReason changeHpReason = 6; + * @return The enum numeric value on the wire for changeHpReason. + */ + @java.lang.Override public int getChangeHpReasonValue() { + return changeHpReason_; + } + /** + * .ChangeHpReason changeHpReason = 6; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int propType_ ; + /** + * uint32 propType = 2; + * @return The propType. + */ + @java.lang.Override + public int getPropType() { + return propType_; + } + /** + * uint32 propType = 2; + * @param value The propType to set. + * @return This builder for chaining. + */ + public Builder setPropType(int value) { + + propType_ = value; + onChanged(); + return this; + } + /** + * uint32 propType = 2; + * @return This builder for chaining. + */ + public Builder clearPropType() { + + propType_ = 0; + onChanged(); + return this; + } + + private float propDelta_ ; + /** + * float propDelta = 3; + * @return The propDelta. + */ + @java.lang.Override + public float getPropDelta() { + return propDelta_; + } + /** + * float propDelta = 3; + * @param value The propDelta to set. + * @return This builder for chaining. + */ + public Builder setPropDelta(float value) { + + propDelta_ = value; + onChanged(); + return this; + } + /** + * float propDelta = 3; + * @return This builder for chaining. + */ + public Builder clearPropDelta() { + + propDelta_ = 0F; + onChanged(); + return this; + } + + private int reason_ = 0; + /** + * .PropChangeReason reason = 4; + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override public int getReasonValue() { + return reason_; + } + /** + * .PropChangeReason reason = 4; + * @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; + } + /** + * .PropChangeReason reason = 4; + * @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; + } + /** + * .PropChangeReason reason = 4; + * @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; + } + /** + * .PropChangeReason reason = 4; + * @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; + } + } + /** + * repeated uint32 paramList = 5; + * @return A list containing the paramList. + */ + public java.util.List + getParamListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(paramList_) : paramList_; + } + /** + * repeated uint32 paramList = 5; + * @return The count of paramList. + */ + public int getParamListCount() { + return paramList_.size(); + } + /** + * repeated uint32 paramList = 5; + * @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); + } + /** + * repeated uint32 paramList = 5; + * @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; + } + /** + * repeated uint32 paramList = 5; + * @param value The paramList to add. + * @return This builder for chaining. + */ + public Builder addParamList(int value) { + ensureParamListIsMutable(); + paramList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 paramList = 5; + * @param values The paramList to add. + * @return This builder for chaining. + */ + public Builder addAllParamList( + java.lang.Iterable values) { + ensureParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paramList_); + onChanged(); + return this; + } + /** + * repeated uint32 paramList = 5; + * @return This builder for chaining. + */ + public Builder clearParamList() { + paramList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int changeHpReason_ = 0; + /** + * .ChangeHpReason changeHpReason = 6; + * @return The enum numeric value on the wire for changeHpReason. + */ + @java.lang.Override public int getChangeHpReasonValue() { + return changeHpReason_; + } + /** + * .ChangeHpReason changeHpReason = 6; + * @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; + } + /** + * .ChangeHpReason changeHpReason = 6; + * @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; + } + /** + * .ChangeHpReason changeHpReason = 6; + * @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; + } + /** + * .ChangeHpReason changeHpReason = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b18aa26c4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityFightPropUpdateNotifyOuterClass.java @@ -0,0 +1,871 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * map<uint32, float> fightPropMap = 2; + */ + int getFightPropMapCount(); + /** + * map<uint32, float> fightPropMap = 2; + */ + boolean containsFightPropMap( + int key); + /** + * Use {@link #getFightPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFightPropMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + java.util.Map + getFightPropMapMap(); + /** + * map<uint32, float> fightPropMap = 2; + */ + + float getFightPropMapOrDefault( + int key, + float defaultValue); + /** + * map<uint32, float> fightPropMap = 2; + */ + + 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 + 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_; + /** + * uint32 entityId = 1; + * @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 + .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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + + public int getFightPropMapCount() { + return internalGetFightPropMap().getMap().size(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetFightPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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 + internalGetFightPropMap() { + if (fightPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FightPropMapDefaultEntryHolder.defaultEntry); + } + return fightPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + @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 getFightPropMap() { + return getFightPropMapMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public java.util.Map getFightPropMapMap() { + return internalGetFightPropMap().getMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrDefault( + int key, + float defaultValue) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + @java.lang.Override + + public float getFightPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetFightPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFightPropMap() { + internalGetMutableFightPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder removeFightPropMap( + int key) { + + internalGetMutableFightPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFightPropMap() { + return internalGetMutableFightPropMap().getMutableMap(); + } + /** + * map<uint32, float> fightPropMap = 2; + */ + public Builder putFightPropMap( + int key, + float value) { + + + internalGetMutableFightPropMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, float> fightPropMap = 2; + */ + + public Builder putAllFightPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cf9b4411d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityMoveInfoOuterClass.java @@ -0,0 +1,955 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + boolean hasMotionInfo(); + /** + * .MotionInfo motionInfo = 2; + * @return The motionInfo. + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); + /** + * .MotionInfo motionInfo = 2; + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); + + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + int getSceneTime(); + + /** + * uint32 reliableSeq = 4; + * @return The reliableSeq. + */ + int getReliableSeq(); + + /** + * bool isReliable = 5; + * @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_; + /** + * uint32 entityId = 1; + * @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_; + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + @java.lang.Override + public boolean hasMotionInfo() { + return motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 2; + * @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_; + } + /** + * .MotionInfo motionInfo = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { + return getMotionInfo(); + } + + public static final int SCENETIME_FIELD_NUMBER = 3; + private int sceneTime_; + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + + public static final int RELIABLESEQ_FIELD_NUMBER = 4; + private int reliableSeq_; + /** + * uint32 reliableSeq = 4; + * @return The reliableSeq. + */ + @java.lang.Override + public int getReliableSeq() { + return reliableSeq_; + } + + public static final int ISRELIABLE_FIELD_NUMBER = 5; + private boolean isReliable_; + /** + * bool isReliable = 5; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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_; + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + public boolean hasMotionInfo() { + return motionInfoBuilder_ != null || motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 2; + * @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(); + } + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + public Builder clearMotionInfo() { + if (motionInfoBuilder_ == null) { + motionInfo_ = null; + onChanged(); + } else { + motionInfo_ = null; + motionInfoBuilder_ = null; + } + + return this; + } + /** + * .MotionInfo motionInfo = 2; + */ + public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { + + onChanged(); + return getMotionInfoFieldBuilder().getBuilder(); + } + /** + * .MotionInfo motionInfo = 2; + */ + 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_; + } + } + /** + * .MotionInfo motionInfo = 2; + */ + 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_ ; + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + /** + * uint32 sceneTime = 3; + * @param value The sceneTime to set. + * @return This builder for chaining. + */ + public Builder setSceneTime(int value) { + + sceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneTime = 3; + * @return This builder for chaining. + */ + public Builder clearSceneTime() { + + sceneTime_ = 0; + onChanged(); + return this; + } + + private int reliableSeq_ ; + /** + * uint32 reliableSeq = 4; + * @return The reliableSeq. + */ + @java.lang.Override + public int getReliableSeq() { + return reliableSeq_; + } + /** + * uint32 reliableSeq = 4; + * @param value The reliableSeq to set. + * @return This builder for chaining. + */ + public Builder setReliableSeq(int value) { + + reliableSeq_ = value; + onChanged(); + return this; + } + /** + * uint32 reliableSeq = 4; + * @return This builder for chaining. + */ + public Builder clearReliableSeq() { + + reliableSeq_ = 0; + onChanged(); + return this; + } + + private boolean isReliable_ ; + /** + * bool isReliable = 5; + * @return The isReliable. + */ + @java.lang.Override + public boolean getIsReliable() { + return isReliable_; + } + /** + * bool isReliable = 5; + * @param value The isReliable to set. + * @return This builder for chaining. + */ + public Builder setIsReliable(boolean value) { + + isReliable_ = value; + onChanged(); + return this; + } + /** + * bool isReliable = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ce5cb60c0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityPropNotifyOuterClass.java @@ -0,0 +1,872 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * map<uint32, .PropValue> propMap = 2; + */ + int getPropMapCount(); + /** + * map<uint32, .PropValue> propMap = 2; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<uint32, .PropValue> propMap = 2; + */ + java.util.Map + getPropMapMap(); + /** + * map<uint32, .PropValue> propMap = 2; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); + /** + * map<uint32, .PropValue> propMap = 2; + */ + + 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 + 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_; + /** + * uint32 entityId = 1; + * @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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + 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; + } + /** + * map<uint32, .PropValue> propMap = 2; + */ + + public Builder putAllPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6e638b85c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EntityRendererChangedInfoOuterClass.java @@ -0,0 +1,942 @@ +// 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 { + + /** + * map<string, uint32> changedRenderers = 1; + */ + int getChangedRenderersCount(); + /** + * map<string, uint32> changedRenderers = 1; + */ + boolean containsChangedRenderers( + java.lang.String key); + /** + * Use {@link #getChangedRenderersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getChangedRenderers(); + /** + * map<string, uint32> changedRenderers = 1; + */ + java.util.Map + getChangedRenderersMap(); + /** + * map<string, uint32> changedRenderers = 1; + */ + + int getChangedRenderersOrDefault( + java.lang.String key, + int defaultValue); + /** + * map<string, uint32> changedRenderers = 1; + */ + + int getChangedRenderersOrThrow( + java.lang.String key); + + /** + * uint32 visibilityCount = 2; + * @return The visibilityCount. + */ + int getVisibilityCount(); + + /** + * bool isCached = 3; + * @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 + 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 + .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 + internalGetChangedRenderers() { + if (changedRenderers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ChangedRenderersDefaultEntryHolder.defaultEntry); + } + return changedRenderers_; + } + + public int getChangedRenderersCount() { + return internalGetChangedRenderers().getMap().size(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + + @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 getChangedRenderers() { + return getChangedRenderersMap(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public java.util.Map getChangedRenderersMap() { + return internalGetChangedRenderers().getMap(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public int getChangedRenderersOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetChangedRenderers().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public int getChangedRenderersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map 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_; + /** + * uint32 visibilityCount = 2; + * @return The visibilityCount. + */ + @java.lang.Override + public int getVisibilityCount() { + return visibilityCount_; + } + + public static final int ISCACHED_FIELD_NUMBER = 3; + private boolean isCached_; + /** + * bool isCached = 3; + * @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 entry + : internalGetChangedRenderers().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetChangedRenderers() { + if (changedRenderers_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ChangedRenderersDefaultEntryHolder.defaultEntry); + } + return changedRenderers_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + + @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 getChangedRenderers() { + return getChangedRenderersMap(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public java.util.Map getChangedRenderersMap() { + return internalGetChangedRenderers().getMap(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public int getChangedRenderersOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetChangedRenderers().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, uint32> changedRenderers = 1; + */ + @java.lang.Override + + public int getChangedRenderersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetChangedRenderers().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearChangedRenderers() { + internalGetMutableChangedRenderers().getMutableMap() + .clear(); + return this; + } + /** + * map<string, uint32> changedRenderers = 1; + */ + + 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 + getMutableChangedRenderers() { + return internalGetMutableChangedRenderers().getMutableMap(); + } + /** + * map<string, uint32> changedRenderers = 1; + */ + public Builder putChangedRenderers( + java.lang.String key, + int value) { + if (key == null) { throw new java.lang.NullPointerException(); } + + internalGetMutableChangedRenderers().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, uint32> changedRenderers = 1; + */ + + public Builder putAllChangedRenderers( + java.util.Map values) { + internalGetMutableChangedRenderers().getMutableMap() + .putAll(values); + return this; + } + + private int visibilityCount_ ; + /** + * uint32 visibilityCount = 2; + * @return The visibilityCount. + */ + @java.lang.Override + public int getVisibilityCount() { + return visibilityCount_; + } + /** + * uint32 visibilityCount = 2; + * @param value The visibilityCount to set. + * @return This builder for chaining. + */ + public Builder setVisibilityCount(int value) { + + visibilityCount_ = value; + onChanged(); + return this; + } + /** + * uint32 visibilityCount = 2; + * @return This builder for chaining. + */ + public Builder clearVisibilityCount() { + + visibilityCount_ = 0; + onChanged(); + return this; + } + + private boolean isCached_ ; + /** + * bool isCached = 3; + * @return The isCached. + */ + @java.lang.Override + public boolean getIsCached() { + return isCached_; + } + /** + * bool isCached = 3; + * @param value The isCached to set. + * @return This builder for chaining. + */ + public Builder setIsCached(boolean value) { + + isCached_ = value; + onChanged(); + return this; + } + /** + * bool isCached = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..89d73a302 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EquipOuterClass.java @@ -0,0 +1,1072 @@ +// 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 { + + /** + * .Reliquary reliquary = 1; + * @return Whether the reliquary field is set. + */ + boolean hasReliquary(); + /** + * .Reliquary reliquary = 1; + * @return The reliquary. + */ + emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary getReliquary(); + /** + * .Reliquary reliquary = 1; + */ + emu.grasscutter.net.proto.ReliquaryOuterClass.ReliquaryOrBuilder getReliquaryOrBuilder(); + + /** + * .Weapon weapon = 2; + * @return Whether the weapon field is set. + */ + boolean hasWeapon(); + /** + * .Weapon weapon = 2; + * @return The weapon. + */ + emu.grasscutter.net.proto.WeaponOuterClass.Weapon getWeapon(); + /** + * .Weapon weapon = 2; + */ + emu.grasscutter.net.proto.WeaponOuterClass.WeaponOrBuilder getWeaponOrBuilder(); + + /** + * bool isLocked = 3; + * @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; + /** + * .Reliquary reliquary = 1; + * @return Whether the reliquary field is set. + */ + @java.lang.Override + public boolean hasReliquary() { + return detailCase_ == 1; + } + /** + * .Reliquary reliquary = 1; + * @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(); + } + /** + * .Reliquary reliquary = 1; + */ + @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; + /** + * .Weapon weapon = 2; + * @return Whether the weapon field is set. + */ + @java.lang.Override + public boolean hasWeapon() { + return detailCase_ == 2; + } + /** + * .Weapon weapon = 2; + * @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(); + } + /** + * .Weapon weapon = 2; + */ + @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_; + /** + * bool isLocked = 3; + * @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 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_; + /** + * .Reliquary reliquary = 1; + * @return Whether the reliquary field is set. + */ + @java.lang.Override + public boolean hasReliquary() { + return detailCase_ == 1; + } + /** + * .Reliquary reliquary = 1; + * @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(); + } + } + /** + * .Reliquary reliquary = 1; + */ + 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; + } + /** + * .Reliquary reliquary = 1; + */ + 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; + } + /** + * .Reliquary reliquary = 1; + */ + 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; + } + /** + * .Reliquary reliquary = 1; + */ + 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; + } + /** + * .Reliquary reliquary = 1; + */ + public emu.grasscutter.net.proto.ReliquaryOuterClass.Reliquary.Builder getReliquaryBuilder() { + return getReliquaryFieldBuilder().getBuilder(); + } + /** + * .Reliquary reliquary = 1; + */ + @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(); + } + } + /** + * .Reliquary reliquary = 1; + */ + 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_; + /** + * .Weapon weapon = 2; + * @return Whether the weapon field is set. + */ + @java.lang.Override + public boolean hasWeapon() { + return detailCase_ == 2; + } + /** + * .Weapon weapon = 2; + * @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(); + } + } + /** + * .Weapon weapon = 2; + */ + 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; + } + /** + * .Weapon weapon = 2; + */ + 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; + } + /** + * .Weapon weapon = 2; + */ + 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; + } + /** + * .Weapon weapon = 2; + */ + 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; + } + /** + * .Weapon weapon = 2; + */ + public emu.grasscutter.net.proto.WeaponOuterClass.Weapon.Builder getWeaponBuilder() { + return getWeaponFieldBuilder().getBuilder(); + } + /** + * .Weapon weapon = 2; + */ + @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(); + } + } + /** + * .Weapon weapon = 2; + */ + 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_ ; + /** + * bool isLocked = 3; + * @return The isLocked. + */ + @java.lang.Override + public boolean getIsLocked() { + return isLocked_; + } + /** + * bool isLocked = 3; + * @param value The isLocked to set. + * @return This builder for chaining. + */ + public Builder setIsLocked(boolean value) { + + isLocked_ = value; + onChanged(); + return this; + } + /** + * bool isLocked = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f277e1e56 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtAiSyncCombatThreatInfoNotifyOuterClass.java @@ -0,0 +1,804 @@ +// 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 { + + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + int getCombatThreatInfoMapCount(); + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + boolean containsCombatThreatInfoMap( + int key); + /** + * Use {@link #getCombatThreatInfoMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCombatThreatInfoMap(); + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + java.util.Map + getCombatThreatInfoMapMap(); + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue); + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + 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 + 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 + .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 + internalGetCombatThreatInfoMap() { + if (combatThreatInfoMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CombatThreatInfoMapDefaultEntryHolder.defaultEntry); + } + return combatThreatInfoMap_; + } + + public int getCombatThreatInfoMapCount() { + return internalGetCombatThreatInfoMap().getMap().size(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + @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 getCombatThreatInfoMap() { + return getCombatThreatInfoMapMap(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public java.util.Map getCombatThreatInfoMapMap() { + return internalGetCombatThreatInfoMap().getMap(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue) { + + java.util.Map map = + internalGetCombatThreatInfoMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetCombatThreatInfoMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetCombatThreatInfoMap() { + if (combatThreatInfoMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CombatThreatInfoMapDefaultEntryHolder.defaultEntry); + } + return combatThreatInfoMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + @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 getCombatThreatInfoMap() { + return getCombatThreatInfoMapMap(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public java.util.Map getCombatThreatInfoMapMap() { + return internalGetCombatThreatInfoMap().getMap(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo defaultValue) { + + java.util.Map map = + internalGetCombatThreatInfoMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiThreatInfoOuterClass.AiThreatInfo getCombatThreatInfoMapOrThrow( + int key) { + + java.util.Map map = + internalGetCombatThreatInfoMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCombatThreatInfoMap() { + internalGetMutableCombatThreatInfoMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + public Builder removeCombatThreatInfoMap( + int key) { + + internalGetMutableCombatThreatInfoMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCombatThreatInfoMap() { + return internalGetMutableCombatThreatInfoMap().getMutableMap(); + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + 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; + } + /** + * map<uint32, .AiThreatInfo> combatThreatInfoMap = 1; + */ + + public Builder putAllCombatThreatInfoMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c32ec8f44 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtAiSyncSkillCdNotifyOuterClass.java @@ -0,0 +1,802 @@ +// 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 { + + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + int getAiCdMapCount(); + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + boolean containsAiCdMap( + int key); + /** + * Use {@link #getAiCdMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAiCdMap(); + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + java.util.Map + getAiCdMapMap(); + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( + int key, + emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue); + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + 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 + 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 + .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 + internalGetAiCdMap() { + if (aiCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiCdMapDefaultEntryHolder.defaultEntry); + } + return aiCdMap_; + } + + public int getAiCdMapCount() { + return internalGetAiCdMap().getMap().size(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + @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 getAiCdMap() { + return getAiCdMapMap(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public java.util.Map getAiCdMapMap() { + return internalGetAiCdMap().getMap(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( + int key, + emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue) { + + java.util.Map map = + internalGetAiCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetAiCdMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetAiCdMap() { + if (aiCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiCdMapDefaultEntryHolder.defaultEntry); + } + return aiCdMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + @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 getAiCdMap() { + return getAiCdMapMap(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public java.util.Map getAiCdMapMap() { + return internalGetAiCdMap().getMap(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrDefault( + int key, + emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo defaultValue) { + + java.util.Map map = + internalGetAiCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.AiSkillCdInfoOuterClass.AiSkillCdInfo getAiCdMapOrThrow( + int key) { + + java.util.Map map = + internalGetAiCdMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAiCdMap() { + internalGetMutableAiCdMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + public Builder removeAiCdMap( + int key) { + + internalGetMutableAiCdMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAiCdMap() { + return internalGetMutableAiCdMap().getMutableMap(); + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + 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; + } + /** + * map<uint32, .AiSkillCdInfo> aiCdMap = 1; + */ + + public Builder putAllAiCdMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/EvtBeingHitInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitInfoOuterClass.java new file mode 100644 index 000000000..a6967c58e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitInfoOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 peerId = 1; + * @return The peerId. + */ + int getPeerId(); + + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + boolean hasAttackResult(); + /** + * .AttackResult attackResult = 2; + * @return The attackResult. + */ + emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult(); + /** + * .AttackResult attackResult = 2; + */ + 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_; + /** + * uint32 peerId = 1; + * @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_; + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + @java.lang.Override + public boolean hasAttackResult() { + return attackResult_ != null; + } + /** + * .AttackResult attackResult = 2; + * @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_; + } + /** + * .AttackResult attackResult = 2; + */ + @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 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_ ; + /** + * uint32 peerId = 1; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + /** + * uint32 peerId = 1; + * @param value The peerId to set. + * @return This builder for chaining. + */ + public Builder setPeerId(int value) { + + peerId_ = value; + onChanged(); + return this; + } + /** + * uint32 peerId = 1; + * @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_; + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + public boolean hasAttackResult() { + return attackResultBuilder_ != null || attackResult_ != null; + } + /** + * .AttackResult attackResult = 2; + * @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(); + } + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + public Builder clearAttackResult() { + if (attackResultBuilder_ == null) { + attackResult_ = null; + onChanged(); + } else { + attackResult_ = null; + attackResultBuilder_ = null; + } + + return this; + } + /** + * .AttackResult attackResult = 2; + */ + public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder getAttackResultBuilder() { + + onChanged(); + return getAttackResultFieldBuilder().getBuilder(); + } + /** + * .AttackResult attackResult = 2; + */ + 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_; + } + } + /** + * .AttackResult attackResult = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3d017e91b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitNotifyOuterClass.java @@ -0,0 +1,782 @@ +// 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 { + + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 1; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @return Whether the beingHitInfo field is set. + */ + boolean hasBeingHitInfo(); + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @return The beingHitInfo. + */ + emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getBeingHitInfo(); + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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_; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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_; + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @return Whether the beingHitInfo field is set. + */ + @java.lang.Override + public boolean hasBeingHitInfo() { + return beingHitInfo_ != null; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @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_; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + @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 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; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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_; + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @return Whether the beingHitInfo field is set. + */ + public boolean hasBeingHitInfo() { + return beingHitInfoBuilder_ != null || beingHitInfo_ != null; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + * @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(); + } + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + public Builder clearBeingHitInfo() { + if (beingHitInfoBuilder_ == null) { + beingHitInfo_ = null; + onChanged(); + } else { + beingHitInfo_ = null; + beingHitInfoBuilder_ = null; + } + + return this; + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder getBeingHitInfoBuilder() { + + onChanged(); + return getBeingHitInfoFieldBuilder().getBuilder(); + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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_; + } + } + /** + * .EvtBeingHitInfo beingHitInfo = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a0f6df85b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtBeingHitsCombineNotifyOuterClass.java @@ -0,0 +1,955 @@ +// 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 { + + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 1; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + java.util.List + getEvtBeingHitInfoListList(); + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index); + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + int getEvtBeingHitInfoListCount(); + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + java.util.List + getEvtBeingHitInfoListOrBuilderList(); + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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(); + 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_; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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 evtBeingHitInfoList_; + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + @java.lang.Override + public java.util.List getEvtBeingHitInfoListList() { + return evtBeingHitInfoList_; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + @java.lang.Override + public java.util.List + getEvtBeingHitInfoListOrBuilderList() { + return evtBeingHitInfoList_; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + @java.lang.Override + public int getEvtBeingHitInfoListCount() { + return evtBeingHitInfoList_.size(); + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index) { + return evtBeingHitInfoList_.get(index); + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + @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 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; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @return This builder for chaining. + */ + public Builder clearForwardType() { + + forwardType_ = 0; + onChanged(); + return this; + } + + private java.util.List evtBeingHitInfoList_ = + java.util.Collections.emptyList(); + private void ensureEvtBeingHitInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + evtBeingHitInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public java.util.List getEvtBeingHitInfoListList() { + if (evtBeingHitInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(evtBeingHitInfoList_); + } else { + return evtBeingHitInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public int getEvtBeingHitInfoListCount() { + if (evtBeingHitInfoListBuilder_ == null) { + return evtBeingHitInfoList_.size(); + } else { + return evtBeingHitInfoListBuilder_.getCount(); + } + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo getEvtBeingHitInfoList(int index) { + if (evtBeingHitInfoListBuilder_ == null) { + return evtBeingHitInfoList_.get(index); + } else { + return evtBeingHitInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + 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; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public Builder addAllEvtBeingHitInfoList( + java.lang.Iterable values) { + if (evtBeingHitInfoListBuilder_ == null) { + ensureEvtBeingHitInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, evtBeingHitInfoList_); + onChanged(); + } else { + evtBeingHitInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public Builder clearEvtBeingHitInfoList() { + if (evtBeingHitInfoListBuilder_ == null) { + evtBeingHitInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + evtBeingHitInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public Builder removeEvtBeingHitInfoList(int index) { + if (evtBeingHitInfoListBuilder_ == null) { + ensureEvtBeingHitInfoListIsMutable(); + evtBeingHitInfoList_.remove(index); + onChanged(); + } else { + evtBeingHitInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder getEvtBeingHitInfoListBuilder( + int index) { + return getEvtBeingHitInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfoOrBuilder getEvtBeingHitInfoListOrBuilder( + int index) { + if (evtBeingHitInfoListBuilder_ == null) { + return evtBeingHitInfoList_.get(index); } else { + return evtBeingHitInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public java.util.List + getEvtBeingHitInfoListOrBuilderList() { + if (evtBeingHitInfoListBuilder_ != null) { + return evtBeingHitInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evtBeingHitInfoList_); + } + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder addEvtBeingHitInfoListBuilder() { + return getEvtBeingHitInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance()); + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.Builder addEvtBeingHitInfoListBuilder( + int index) { + return getEvtBeingHitInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo.getDefaultInstance()); + } + /** + * repeated .EvtBeingHitInfo evtBeingHitInfoList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ea4919d16 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtCreateGadgetNotifyOuterClass.java @@ -0,0 +1,1835 @@ +// 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 { + + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 1; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * uint32 entityId = 2; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 configId = 3; + * @return The configId. + */ + int getConfigId(); + + /** + * uint32 campId = 4; + * @return The campId. + */ + int getCampId(); + + /** + * uint32 campType = 5; + * @return The campType. + */ + int getCampType(); + + /** + * .Vector initPos = 6; + * @return Whether the initPos field is set. + */ + boolean hasInitPos(); + /** + * .Vector initPos = 6; + * @return The initPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getInitPos(); + /** + * .Vector initPos = 6; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitPosOrBuilder(); + + /** + * .Vector initEulerAngles = 7; + * @return Whether the initEulerAngles field is set. + */ + boolean hasInitEulerAngles(); + /** + * .Vector initEulerAngles = 7; + * @return The initEulerAngles. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getInitEulerAngles(); + /** + * .Vector initEulerAngles = 7; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitEulerAnglesOrBuilder(); + + /** + * uint64 guid = 8; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 ownerEntityId = 9; + * @return The ownerEntityId. + */ + int getOwnerEntityId(); + + /** + * uint32 targetEntityId = 10; + * @return The targetEntityId. + */ + int getTargetEntityId(); + + /** + * bool isAsyncLoad = 11; + * @return The isAsyncLoad. + */ + boolean getIsAsyncLoad(); + + /** + * uint32 targetLockPointIndex = 12; + * @return The targetLockPointIndex. + */ + int getTargetLockPointIndex(); + + /** + * uint32 roomId = 13; + * @return The roomId. + */ + int getRoomId(); + + /** + * uint32 propOwnerEntityId = 14; + * @return The propOwnerEntityId. + */ + int getPropOwnerEntityId(); + + /** + * bool sightGroupWithOwner = 15; + * @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_; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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_; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int CONFIGID_FIELD_NUMBER = 3; + private int configId_; + /** + * uint32 configId = 3; + * @return The configId. + */ + @java.lang.Override + public int getConfigId() { + return configId_; + } + + public static final int CAMPID_FIELD_NUMBER = 4; + private int campId_; + /** + * uint32 campId = 4; + * @return The campId. + */ + @java.lang.Override + public int getCampId() { + return campId_; + } + + public static final int CAMPTYPE_FIELD_NUMBER = 5; + private int campType_; + /** + * uint32 campType = 5; + * @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_; + /** + * .Vector initPos = 6; + * @return Whether the initPos field is set. + */ + @java.lang.Override + public boolean hasInitPos() { + return initPos_ != null; + } + /** + * .Vector initPos = 6; + * @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_; + } + /** + * .Vector initPos = 6; + */ + @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_; + /** + * .Vector initEulerAngles = 7; + * @return Whether the initEulerAngles field is set. + */ + @java.lang.Override + public boolean hasInitEulerAngles() { + return initEulerAngles_ != null; + } + /** + * .Vector initEulerAngles = 7; + * @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_; + } + /** + * .Vector initEulerAngles = 7; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getInitEulerAnglesOrBuilder() { + return getInitEulerAngles(); + } + + public static final int GUID_FIELD_NUMBER = 8; + private long guid_; + /** + * uint64 guid = 8; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int OWNERENTITYID_FIELD_NUMBER = 9; + private int ownerEntityId_; + /** + * uint32 ownerEntityId = 9; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + + public static final int TARGETENTITYID_FIELD_NUMBER = 10; + private int targetEntityId_; + /** + * uint32 targetEntityId = 10; + * @return The targetEntityId. + */ + @java.lang.Override + public int getTargetEntityId() { + return targetEntityId_; + } + + public static final int ISASYNCLOAD_FIELD_NUMBER = 11; + private boolean isAsyncLoad_; + /** + * bool isAsyncLoad = 11; + * @return The isAsyncLoad. + */ + @java.lang.Override + public boolean getIsAsyncLoad() { + return isAsyncLoad_; + } + + public static final int TARGETLOCKPOINTINDEX_FIELD_NUMBER = 12; + private int targetLockPointIndex_; + /** + * uint32 targetLockPointIndex = 12; + * @return The targetLockPointIndex. + */ + @java.lang.Override + public int getTargetLockPointIndex() { + return targetLockPointIndex_; + } + + public static final int ROOMID_FIELD_NUMBER = 13; + private int roomId_; + /** + * uint32 roomId = 13; + * @return The roomId. + */ + @java.lang.Override + public int getRoomId() { + return roomId_; + } + + public static final int PROPOWNERENTITYID_FIELD_NUMBER = 14; + private int propOwnerEntityId_; + /** + * uint32 propOwnerEntityId = 14; + * @return The propOwnerEntityId. + */ + @java.lang.Override + public int getPropOwnerEntityId() { + return propOwnerEntityId_; + } + + public static final int SIGHTGROUPWITHOWNER_FIELD_NUMBER = 15; + private boolean sightGroupWithOwner_; + /** + * bool sightGroupWithOwner = 15; + * @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 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; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @return This builder for chaining. + */ + public Builder clearForwardType() { + + forwardType_ = 0; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int configId_ ; + /** + * uint32 configId = 3; + * @return The configId. + */ + @java.lang.Override + public int getConfigId() { + return configId_; + } + /** + * uint32 configId = 3; + * @param value The configId to set. + * @return This builder for chaining. + */ + public Builder setConfigId(int value) { + + configId_ = value; + onChanged(); + return this; + } + /** + * uint32 configId = 3; + * @return This builder for chaining. + */ + public Builder clearConfigId() { + + configId_ = 0; + onChanged(); + return this; + } + + private int campId_ ; + /** + * uint32 campId = 4; + * @return The campId. + */ + @java.lang.Override + public int getCampId() { + return campId_; + } + /** + * uint32 campId = 4; + * @param value The campId to set. + * @return This builder for chaining. + */ + public Builder setCampId(int value) { + + campId_ = value; + onChanged(); + return this; + } + /** + * uint32 campId = 4; + * @return This builder for chaining. + */ + public Builder clearCampId() { + + campId_ = 0; + onChanged(); + return this; + } + + private int campType_ ; + /** + * uint32 campType = 5; + * @return The campType. + */ + @java.lang.Override + public int getCampType() { + return campType_; + } + /** + * uint32 campType = 5; + * @param value The campType to set. + * @return This builder for chaining. + */ + public Builder setCampType(int value) { + + campType_ = value; + onChanged(); + return this; + } + /** + * uint32 campType = 5; + * @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_; + /** + * .Vector initPos = 6; + * @return Whether the initPos field is set. + */ + public boolean hasInitPos() { + return initPosBuilder_ != null || initPos_ != null; + } + /** + * .Vector initPos = 6; + * @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(); + } + } + /** + * .Vector initPos = 6; + */ + 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; + } + /** + * .Vector initPos = 6; + */ + 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; + } + /** + * .Vector initPos = 6; + */ + 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; + } + /** + * .Vector initPos = 6; + */ + public Builder clearInitPos() { + if (initPosBuilder_ == null) { + initPos_ = null; + onChanged(); + } else { + initPos_ = null; + initPosBuilder_ = null; + } + + return this; + } + /** + * .Vector initPos = 6; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getInitPosBuilder() { + + onChanged(); + return getInitPosFieldBuilder().getBuilder(); + } + /** + * .Vector initPos = 6; + */ + 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_; + } + } + /** + * .Vector initPos = 6; + */ + 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_; + /** + * .Vector initEulerAngles = 7; + * @return Whether the initEulerAngles field is set. + */ + public boolean hasInitEulerAngles() { + return initEulerAnglesBuilder_ != null || initEulerAngles_ != null; + } + /** + * .Vector initEulerAngles = 7; + * @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(); + } + } + /** + * .Vector initEulerAngles = 7; + */ + 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; + } + /** + * .Vector initEulerAngles = 7; + */ + 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; + } + /** + * .Vector initEulerAngles = 7; + */ + 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; + } + /** + * .Vector initEulerAngles = 7; + */ + public Builder clearInitEulerAngles() { + if (initEulerAnglesBuilder_ == null) { + initEulerAngles_ = null; + onChanged(); + } else { + initEulerAngles_ = null; + initEulerAnglesBuilder_ = null; + } + + return this; + } + /** + * .Vector initEulerAngles = 7; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getInitEulerAnglesBuilder() { + + onChanged(); + return getInitEulerAnglesFieldBuilder().getBuilder(); + } + /** + * .Vector initEulerAngles = 7; + */ + 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_; + } + } + /** + * .Vector initEulerAngles = 7; + */ + 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_ ; + /** + * uint64 guid = 8; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 8; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 8; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int ownerEntityId_ ; + /** + * uint32 ownerEntityId = 9; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + /** + * uint32 ownerEntityId = 9; + * @param value The ownerEntityId to set. + * @return This builder for chaining. + */ + public Builder setOwnerEntityId(int value) { + + ownerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 ownerEntityId = 9; + * @return This builder for chaining. + */ + public Builder clearOwnerEntityId() { + + ownerEntityId_ = 0; + onChanged(); + return this; + } + + private int targetEntityId_ ; + /** + * uint32 targetEntityId = 10; + * @return The targetEntityId. + */ + @java.lang.Override + public int getTargetEntityId() { + return targetEntityId_; + } + /** + * uint32 targetEntityId = 10; + * @param value The targetEntityId to set. + * @return This builder for chaining. + */ + public Builder setTargetEntityId(int value) { + + targetEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 targetEntityId = 10; + * @return This builder for chaining. + */ + public Builder clearTargetEntityId() { + + targetEntityId_ = 0; + onChanged(); + return this; + } + + private boolean isAsyncLoad_ ; + /** + * bool isAsyncLoad = 11; + * @return The isAsyncLoad. + */ + @java.lang.Override + public boolean getIsAsyncLoad() { + return isAsyncLoad_; + } + /** + * bool isAsyncLoad = 11; + * @param value The isAsyncLoad to set. + * @return This builder for chaining. + */ + public Builder setIsAsyncLoad(boolean value) { + + isAsyncLoad_ = value; + onChanged(); + return this; + } + /** + * bool isAsyncLoad = 11; + * @return This builder for chaining. + */ + public Builder clearIsAsyncLoad() { + + isAsyncLoad_ = false; + onChanged(); + return this; + } + + private int targetLockPointIndex_ ; + /** + * uint32 targetLockPointIndex = 12; + * @return The targetLockPointIndex. + */ + @java.lang.Override + public int getTargetLockPointIndex() { + return targetLockPointIndex_; + } + /** + * uint32 targetLockPointIndex = 12; + * @param value The targetLockPointIndex to set. + * @return This builder for chaining. + */ + public Builder setTargetLockPointIndex(int value) { + + targetLockPointIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 targetLockPointIndex = 12; + * @return This builder for chaining. + */ + public Builder clearTargetLockPointIndex() { + + targetLockPointIndex_ = 0; + onChanged(); + return this; + } + + private int roomId_ ; + /** + * uint32 roomId = 13; + * @return The roomId. + */ + @java.lang.Override + public int getRoomId() { + return roomId_; + } + /** + * uint32 roomId = 13; + * @param value The roomId to set. + * @return This builder for chaining. + */ + public Builder setRoomId(int value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * uint32 roomId = 13; + * @return This builder for chaining. + */ + public Builder clearRoomId() { + + roomId_ = 0; + onChanged(); + return this; + } + + private int propOwnerEntityId_ ; + /** + * uint32 propOwnerEntityId = 14; + * @return The propOwnerEntityId. + */ + @java.lang.Override + public int getPropOwnerEntityId() { + return propOwnerEntityId_; + } + /** + * uint32 propOwnerEntityId = 14; + * @param value The propOwnerEntityId to set. + * @return This builder for chaining. + */ + public Builder setPropOwnerEntityId(int value) { + + propOwnerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 propOwnerEntityId = 14; + * @return This builder for chaining. + */ + public Builder clearPropOwnerEntityId() { + + propOwnerEntityId_ = 0; + onChanged(); + return this; + } + + private boolean sightGroupWithOwner_ ; + /** + * bool sightGroupWithOwner = 15; + * @return The sightGroupWithOwner. + */ + @java.lang.Override + public boolean getSightGroupWithOwner() { + return sightGroupWithOwner_; + } + /** + * bool sightGroupWithOwner = 15; + * @param value The sightGroupWithOwner to set. + * @return This builder for chaining. + */ + public Builder setSightGroupWithOwner(boolean value) { + + sightGroupWithOwner_ = value; + onChanged(); + return this; + } + /** + * bool sightGroupWithOwner = 15; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..799e5880d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtDestroyGadgetNotifyOuterClass.java @@ -0,0 +1,647 @@ +// 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 { + + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + int getForwardTypeValue(); + /** + * .ForwardType forwardType = 1; + * @return The forwardType. + */ + emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType(); + + /** + * uint32 entityId = 2; + * @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_; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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_; + /** + * uint32 entityId = 2; + * @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 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; + /** + * .ForwardType forwardType = 1; + * @return The enum numeric value on the wire for forwardType. + */ + @java.lang.Override public int getForwardTypeValue() { + return forwardType_; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @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; + } + /** + * .ForwardType forwardType = 1; + * @return This builder for chaining. + */ + public Builder clearForwardType() { + + forwardType_ = 0; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/EvtHittingOtherInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/EvtHittingOtherInfoOuterClass.java new file mode 100644 index 000000000..c4ee6b46a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/EvtHittingOtherInfoOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 peerId = 1; + * @return The peerId. + */ + int getPeerId(); + + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + boolean hasAttackResult(); + /** + * .AttackResult attackResult = 2; + * @return The attackResult. + */ + emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult getAttackResult(); + /** + * .AttackResult attackResult = 2; + */ + 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_; + /** + * uint32 peerId = 1; + * @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_; + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + @java.lang.Override + public boolean hasAttackResult() { + return attackResult_ != null; + } + /** + * .AttackResult attackResult = 2; + * @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_; + } + /** + * .AttackResult attackResult = 2; + */ + @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 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_ ; + /** + * uint32 peerId = 1; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + /** + * uint32 peerId = 1; + * @param value The peerId to set. + * @return This builder for chaining. + */ + public Builder setPeerId(int value) { + + peerId_ = value; + onChanged(); + return this; + } + /** + * uint32 peerId = 1; + * @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_; + /** + * .AttackResult attackResult = 2; + * @return Whether the attackResult field is set. + */ + public boolean hasAttackResult() { + return attackResultBuilder_ != null || attackResult_ != null; + } + /** + * .AttackResult attackResult = 2; + * @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(); + } + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + 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; + } + /** + * .AttackResult attackResult = 2; + */ + public Builder clearAttackResult() { + if (attackResultBuilder_ == null) { + attackResult_ = null; + onChanged(); + } else { + attackResult_ = null; + attackResultBuilder_ = null; + } + + return this; + } + /** + * .AttackResult attackResult = 2; + */ + public emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult.Builder getAttackResultBuilder() { + + onChanged(); + return getAttackResultFieldBuilder().getBuilder(); + } + /** + * .AttackResult attackResult = 2; + */ + 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_; + } + } + /** + * .AttackResult attackResult = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..86cced2a0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FeatureBlockInfoOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 featureType = 1; + * @return The featureType. + */ + int getFeatureType(); + + /** + * uint32 endTime = 2; + * @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_; + /** + * uint32 featureType = 1; + * @return The featureType. + */ + @java.lang.Override + public int getFeatureType() { + return featureType_; + } + + public static final int ENDTIME_FIELD_NUMBER = 2; + private int endTime_; + /** + * uint32 endTime = 2; + * @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 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_ ; + /** + * uint32 featureType = 1; + * @return The featureType. + */ + @java.lang.Override + public int getFeatureType() { + return featureType_; + } + /** + * uint32 featureType = 1; + * @param value The featureType to set. + * @return This builder for chaining. + */ + public Builder setFeatureType(int value) { + + featureType_ = value; + onChanged(); + return this; + } + /** + * uint32 featureType = 1; + * @return This builder for chaining. + */ + public Builder clearFeatureType() { + + featureType_ = 0; + onChanged(); + return this; + } + + private int endTime_ ; + /** + * uint32 endTime = 2; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + /** + * uint32 endTime = 2; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(int value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * uint32 endTime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..be069d55e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FetterDataOuterClass.java @@ -0,0 +1,804 @@ +// 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 { + + /** + * uint32 fetterId = 1; + * @return The fetterId. + */ + int getFetterId(); + + /** + * uint32 fetterState = 2; + * @return The fetterState. + */ + int getFetterState(); + + /** + * repeated uint32 condIndexList = 3; + * @return A list containing the condIndexList. + */ + java.util.List getCondIndexListList(); + /** + * repeated uint32 condIndexList = 3; + * @return The count of condIndexList. + */ + int getCondIndexListCount(); + /** + * repeated uint32 condIndexList = 3; + * @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_; + /** + * uint32 fetterId = 1; + * @return The fetterId. + */ + @java.lang.Override + public int getFetterId() { + return fetterId_; + } + + public static final int FETTERSTATE_FIELD_NUMBER = 2; + private int fetterState_; + /** + * uint32 fetterState = 2; + * @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_; + /** + * repeated uint32 condIndexList = 3; + * @return A list containing the condIndexList. + */ + @java.lang.Override + public java.util.List + getCondIndexListList() { + return condIndexList_; + } + /** + * repeated uint32 condIndexList = 3; + * @return The count of condIndexList. + */ + public int getCondIndexListCount() { + return condIndexList_.size(); + } + /** + * repeated uint32 condIndexList = 3; + * @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 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_ ; + /** + * uint32 fetterId = 1; + * @return The fetterId. + */ + @java.lang.Override + public int getFetterId() { + return fetterId_; + } + /** + * uint32 fetterId = 1; + * @param value The fetterId to set. + * @return This builder for chaining. + */ + public Builder setFetterId(int value) { + + fetterId_ = value; + onChanged(); + return this; + } + /** + * uint32 fetterId = 1; + * @return This builder for chaining. + */ + public Builder clearFetterId() { + + fetterId_ = 0; + onChanged(); + return this; + } + + private int fetterState_ ; + /** + * uint32 fetterState = 2; + * @return The fetterState. + */ + @java.lang.Override + public int getFetterState() { + return fetterState_; + } + /** + * uint32 fetterState = 2; + * @param value The fetterState to set. + * @return This builder for chaining. + */ + public Builder setFetterState(int value) { + + fetterState_ = value; + onChanged(); + return this; + } + /** + * uint32 fetterState = 2; + * @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; + } + } + /** + * repeated uint32 condIndexList = 3; + * @return A list containing the condIndexList. + */ + public java.util.List + getCondIndexListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(condIndexList_) : condIndexList_; + } + /** + * repeated uint32 condIndexList = 3; + * @return The count of condIndexList. + */ + public int getCondIndexListCount() { + return condIndexList_.size(); + } + /** + * repeated uint32 condIndexList = 3; + * @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); + } + /** + * repeated uint32 condIndexList = 3; + * @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; + } + /** + * repeated uint32 condIndexList = 3; + * @param value The condIndexList to add. + * @return This builder for chaining. + */ + public Builder addCondIndexList(int value) { + ensureCondIndexListIsMutable(); + condIndexList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 condIndexList = 3; + * @param values The condIndexList to add. + * @return This builder for chaining. + */ + public Builder addAllCondIndexList( + java.lang.Iterable values) { + ensureCondIndexListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, condIndexList_); + onChanged(); + return this; + } + /** + * repeated uint32 condIndexList = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c807cb205 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FightPropPairOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint32 type = 1; + * @return The type. + */ + int getType(); + + /** + * float propValue = 2; + * @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_; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + + public static final int PROPVALUE_FIELD_NUMBER = 2; + private float propValue_; + /** + * float propValue = 2; + * @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 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_ ; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + /** + * uint32 type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * uint32 type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private float propValue_ ; + /** + * float propValue = 2; + * @return The propValue. + */ + @java.lang.Override + public float getPropValue() { + return propValue_; + } + /** + * float propValue = 2; + * @param value The propValue to set. + * @return This builder for chaining. + */ + public Builder setPropValue(float value) { + + propValue_ = value; + onChanged(); + return this; + } + /** + * float propValue = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b49aef9a3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ForwardTypeOuterClass.java @@ -0,0 +1,212 @@ +// 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 { + /** + * ForwardLocal = 0; + */ + ForwardLocal(0), + /** + * ForwardToAll = 1; + */ + ForwardToAll(1), + /** + * ForwardToAllExceptCur = 2; + */ + ForwardToAllExceptCur(2), + /** + * ForwardToHost = 3; + */ + ForwardToHost(3), + /** + * ForwardToAllGuest = 4; + */ + ForwardToAllGuest(4), + /** + * ForwardToPeer = 5; + */ + ForwardToPeer(5), + /** + * ForwardToPeers = 6; + */ + ForwardToPeers(6), + /** + * ForwardOnlyServer = 7; + */ + ForwardOnlyServer(7), + /** + * ForwardToAllExistExceptCur = 8; + */ + ForwardToAllExistExceptCur(8), + UNRECOGNIZED(-1), + ; + + /** + * ForwardLocal = 0; + */ + public static final int ForwardLocal_VALUE = 0; + /** + * ForwardToAll = 1; + */ + public static final int ForwardToAll_VALUE = 1; + /** + * ForwardToAllExceptCur = 2; + */ + public static final int ForwardToAllExceptCur_VALUE = 2; + /** + * ForwardToHost = 3; + */ + public static final int ForwardToHost_VALUE = 3; + /** + * ForwardToAllGuest = 4; + */ + public static final int ForwardToAllGuest_VALUE = 4; + /** + * ForwardToPeer = 5; + */ + public static final int ForwardToPeer_VALUE = 5; + /** + * ForwardToPeers = 6; + */ + public static final int ForwardToPeers_VALUE = 6; + /** + * ForwardOnlyServer = 7; + */ + public static final int ForwardOnlyServer_VALUE = 7; + /** + * ForwardToAllExistExceptCur = 8; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ForwardType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..424620cd3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FriendBriefOuterClass.java @@ -0,0 +1,2722 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * string nickname = 2; + * @return The nickname. + */ + java.lang.String getNickname(); + /** + * string nickname = 2; + * @return The bytes for nickname. + */ + com.google.protobuf.ByteString + getNicknameBytes(); + + /** + * uint32 level = 3; + * @return The level. + */ + int getLevel(); + + /** + * uint32 worldLevel = 5; + * @return The worldLevel. + */ + int getWorldLevel(); + + /** + * string signature = 6; + * @return The signature. + */ + java.lang.String getSignature(); + /** + * string signature = 6; + * @return The bytes for signature. + */ + com.google.protobuf.ByteString + getSignatureBytes(); + + /** + * .FriendOnlineState onlineState = 7; + * @return The enum numeric value on the wire for onlineState. + */ + int getOnlineStateValue(); + /** + * .FriendOnlineState onlineState = 7; + * @return The onlineState. + */ + emu.grasscutter.net.proto.FriendOnlineStateOuterClass.FriendOnlineState getOnlineState(); + + /** + * uint32 param = 8; + * @return The param. + */ + int getParam(); + + /** + * bool isMpModeAvailable = 10; + * @return The isMpModeAvailable. + */ + boolean getIsMpModeAvailable(); + + /** + * string onlineId = 11; + * @return The onlineId. + */ + java.lang.String getOnlineId(); + /** + * string onlineId = 11; + * @return The bytes for onlineId. + */ + com.google.protobuf.ByteString + getOnlineIdBytes(); + + /** + * uint32 lastActiveTime = 12; + * @return The lastActiveTime. + */ + int getLastActiveTime(); + + /** + * uint32 nameCardId = 13; + * @return The nameCardId. + */ + int getNameCardId(); + + /** + * uint32 mpPlayerNum = 14; + * @return The mpPlayerNum. + */ + int getMpPlayerNum(); + + /** + * bool isChatNoDisturb = 15; + * @return The isChatNoDisturb. + */ + boolean getIsChatNoDisturb(); + + /** + * uint32 chatSequence = 16; + * @return The chatSequence. + */ + int getChatSequence(); + + /** + * string remarkName = 17; + * @return The remarkName. + */ + java.lang.String getRemarkName(); + /** + * string remarkName = 17; + * @return The bytes for remarkName. + */ + com.google.protobuf.ByteString + getRemarkNameBytes(); + + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + java.util.List + getShowAvatarInfoListList(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + int getShowAvatarInfoListCount(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + java.util.List + getShowAvatarInfoListOrBuilderList(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( + int index); + + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + int getFriendEnterHomeOptionValue(); + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The friendEnterHomeOption. + */ + emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption(); + + /** + * .HeadImage avatar = 24; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .HeadImage avatar = 24; + * @return The avatar. + */ + emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); + /** + * .HeadImage avatar = 24; + */ + emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder(); + + /** + * uint32 unk1 = 25; + * @return The unk1. + */ + int getUnk1(); + + /** + * uint32 unk2 = 27; + * @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(); + 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_; + /** + * uint32 uid = 1; + * @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_; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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_; + /** + * uint32 level = 3; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int WORLDLEVEL_FIELD_NUMBER = 5; + private int worldLevel_; + /** + * uint32 worldLevel = 5; + * @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_; + /** + * string signature = 6; + * @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; + } + } + /** + * string signature = 6; + * @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_; + /** + * .FriendOnlineState onlineState = 7; + * @return The enum numeric value on the wire for onlineState. + */ + @java.lang.Override public int getOnlineStateValue() { + return onlineState_; + } + /** + * .FriendOnlineState onlineState = 7; + * @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_; + /** + * uint32 param = 8; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + + public static final int ISMPMODEAVAILABLE_FIELD_NUMBER = 10; + private boolean isMpModeAvailable_; + /** + * bool isMpModeAvailable = 10; + * @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_; + /** + * string onlineId = 11; + * @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; + } + } + /** + * string onlineId = 11; + * @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_; + /** + * uint32 lastActiveTime = 12; + * @return The lastActiveTime. + */ + @java.lang.Override + public int getLastActiveTime() { + return lastActiveTime_; + } + + public static final int NAMECARDID_FIELD_NUMBER = 13; + private int nameCardId_; + /** + * uint32 nameCardId = 13; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + + public static final int MPPLAYERNUM_FIELD_NUMBER = 14; + private int mpPlayerNum_; + /** + * uint32 mpPlayerNum = 14; + * @return The mpPlayerNum. + */ + @java.lang.Override + public int getMpPlayerNum() { + return mpPlayerNum_; + } + + public static final int ISCHATNODISTURB_FIELD_NUMBER = 15; + private boolean isChatNoDisturb_; + /** + * bool isChatNoDisturb = 15; + * @return The isChatNoDisturb. + */ + @java.lang.Override + public boolean getIsChatNoDisturb() { + return isChatNoDisturb_; + } + + public static final int CHATSEQUENCE_FIELD_NUMBER = 16; + private int chatSequence_; + /** + * uint32 chatSequence = 16; + * @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_; + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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 showAvatarInfoList_; + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public java.util.List getShowAvatarInfoListList() { + return showAvatarInfoList_; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public java.util.List + getShowAvatarInfoListOrBuilderList() { + return showAvatarInfoList_; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public int getShowAvatarInfoListCount() { + return showAvatarInfoList_.size(); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { + return showAvatarInfoList_.get(index); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @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_; + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + @java.lang.Override public int getFriendEnterHomeOptionValue() { + return friendEnterHomeOption_; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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_; + /** + * .HeadImage avatar = 24; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return avatar_ != null; + } + /** + * .HeadImage avatar = 24; + * @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_; + } + /** + * .HeadImage avatar = 24; + */ + @java.lang.Override + public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImageOrBuilder getAvatarOrBuilder() { + return getAvatar(); + } + + public static final int UNK1_FIELD_NUMBER = 25; + private int unk1_; + /** + * uint32 unk1 = 25; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + + public static final int UNK2_FIELD_NUMBER = 27; + private int unk2_; + /** + * uint32 unk2 = 27; + * @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nickname_ = ""; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + /** + * string nickname = 2; + * @return This builder for chaining. + */ + public Builder clearNickname() { + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + * string nickname = 2; + * @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_ ; + /** + * uint32 level = 3; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 3; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 3; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int worldLevel_ ; + /** + * uint32 worldLevel = 5; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + /** + * uint32 worldLevel = 5; + * @param value The worldLevel to set. + * @return This builder for chaining. + */ + public Builder setWorldLevel(int value) { + + worldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 worldLevel = 5; + * @return This builder for chaining. + */ + public Builder clearWorldLevel() { + + worldLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object signature_ = ""; + /** + * string signature = 6; + * @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; + } + } + /** + * string signature = 6; + * @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; + } + } + /** + * string signature = 6; + * @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; + } + /** + * string signature = 6; + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + /** + * string signature = 6; + * @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; + /** + * .FriendOnlineState onlineState = 7; + * @return The enum numeric value on the wire for onlineState. + */ + @java.lang.Override public int getOnlineStateValue() { + return onlineState_; + } + /** + * .FriendOnlineState onlineState = 7; + * @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; + } + /** + * .FriendOnlineState onlineState = 7; + * @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; + } + /** + * .FriendOnlineState onlineState = 7; + * @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; + } + /** + * .FriendOnlineState onlineState = 7; + * @return This builder for chaining. + */ + public Builder clearOnlineState() { + + onlineState_ = 0; + onChanged(); + return this; + } + + private int param_ ; + /** + * uint32 param = 8; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + /** + * uint32 param = 8; + * @param value The param to set. + * @return This builder for chaining. + */ + public Builder setParam(int value) { + + param_ = value; + onChanged(); + return this; + } + /** + * uint32 param = 8; + * @return This builder for chaining. + */ + public Builder clearParam() { + + param_ = 0; + onChanged(); + return this; + } + + private boolean isMpModeAvailable_ ; + /** + * bool isMpModeAvailable = 10; + * @return The isMpModeAvailable. + */ + @java.lang.Override + public boolean getIsMpModeAvailable() { + return isMpModeAvailable_; + } + /** + * bool isMpModeAvailable = 10; + * @param value The isMpModeAvailable to set. + * @return This builder for chaining. + */ + public Builder setIsMpModeAvailable(boolean value) { + + isMpModeAvailable_ = value; + onChanged(); + return this; + } + /** + * bool isMpModeAvailable = 10; + * @return This builder for chaining. + */ + public Builder clearIsMpModeAvailable() { + + isMpModeAvailable_ = false; + onChanged(); + return this; + } + + private java.lang.Object onlineId_ = ""; + /** + * string onlineId = 11; + * @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; + } + } + /** + * string onlineId = 11; + * @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; + } + } + /** + * string onlineId = 11; + * @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; + } + /** + * string onlineId = 11; + * @return This builder for chaining. + */ + public Builder clearOnlineId() { + + onlineId_ = getDefaultInstance().getOnlineId(); + onChanged(); + return this; + } + /** + * string onlineId = 11; + * @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_ ; + /** + * uint32 lastActiveTime = 12; + * @return The lastActiveTime. + */ + @java.lang.Override + public int getLastActiveTime() { + return lastActiveTime_; + } + /** + * uint32 lastActiveTime = 12; + * @param value The lastActiveTime to set. + * @return This builder for chaining. + */ + public Builder setLastActiveTime(int value) { + + lastActiveTime_ = value; + onChanged(); + return this; + } + /** + * uint32 lastActiveTime = 12; + * @return This builder for chaining. + */ + public Builder clearLastActiveTime() { + + lastActiveTime_ = 0; + onChanged(); + return this; + } + + private int nameCardId_ ; + /** + * uint32 nameCardId = 13; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 13; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 13; + * @return This builder for chaining. + */ + public Builder clearNameCardId() { + + nameCardId_ = 0; + onChanged(); + return this; + } + + private int mpPlayerNum_ ; + /** + * uint32 mpPlayerNum = 14; + * @return The mpPlayerNum. + */ + @java.lang.Override + public int getMpPlayerNum() { + return mpPlayerNum_; + } + /** + * uint32 mpPlayerNum = 14; + * @param value The mpPlayerNum to set. + * @return This builder for chaining. + */ + public Builder setMpPlayerNum(int value) { + + mpPlayerNum_ = value; + onChanged(); + return this; + } + /** + * uint32 mpPlayerNum = 14; + * @return This builder for chaining. + */ + public Builder clearMpPlayerNum() { + + mpPlayerNum_ = 0; + onChanged(); + return this; + } + + private boolean isChatNoDisturb_ ; + /** + * bool isChatNoDisturb = 15; + * @return The isChatNoDisturb. + */ + @java.lang.Override + public boolean getIsChatNoDisturb() { + return isChatNoDisturb_; + } + /** + * bool isChatNoDisturb = 15; + * @param value The isChatNoDisturb to set. + * @return This builder for chaining. + */ + public Builder setIsChatNoDisturb(boolean value) { + + isChatNoDisturb_ = value; + onChanged(); + return this; + } + /** + * bool isChatNoDisturb = 15; + * @return This builder for chaining. + */ + public Builder clearIsChatNoDisturb() { + + isChatNoDisturb_ = false; + onChanged(); + return this; + } + + private int chatSequence_ ; + /** + * uint32 chatSequence = 16; + * @return The chatSequence. + */ + @java.lang.Override + public int getChatSequence() { + return chatSequence_; + } + /** + * uint32 chatSequence = 16; + * @param value The chatSequence to set. + * @return This builder for chaining. + */ + public Builder setChatSequence(int value) { + + chatSequence_ = value; + onChanged(); + return this; + } + /** + * uint32 chatSequence = 16; + * @return This builder for chaining. + */ + public Builder clearChatSequence() { + + chatSequence_ = 0; + onChanged(); + return this; + } + + private java.lang.Object remarkName_ = ""; + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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; + } + /** + * string remarkName = 17; + * @return This builder for chaining. + */ + public Builder clearRemarkName() { + + remarkName_ = getDefaultInstance().getRemarkName(); + onChanged(); + return this; + } + /** + * string remarkName = 17; + * @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 showAvatarInfoList_ = + java.util.Collections.emptyList(); + private void ensureShowAvatarInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + showAvatarInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List getShowAvatarInfoListList() { + if (showAvatarInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(showAvatarInfoList_); + } else { + return showAvatarInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public int getShowAvatarInfoListCount() { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.size(); + } else { + return showAvatarInfoListBuilder_.getCount(); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.get(index); + } else { + return showAvatarInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder addAllShowAvatarInfoList( + java.lang.Iterable values) { + if (showAvatarInfoListBuilder_ == null) { + ensureShowAvatarInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, showAvatarInfoList_); + onChanged(); + } else { + showAvatarInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder clearShowAvatarInfoList() { + if (showAvatarInfoListBuilder_ == null) { + showAvatarInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + showAvatarInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder removeShowAvatarInfoList(int index) { + if (showAvatarInfoListBuilder_ == null) { + ensureShowAvatarInfoListIsMutable(); + showAvatarInfoList_.remove(index); + onChanged(); + } else { + showAvatarInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder( + int index) { + return getShowAvatarInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( + int index) { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.get(index); } else { + return showAvatarInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List + getShowAvatarInfoListOrBuilderList() { + if (showAvatarInfoListBuilder_ != null) { + return showAvatarInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(showAvatarInfoList_); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() { + return getShowAvatarInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder( + int index) { + return getShowAvatarInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List + 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; + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + @java.lang.Override public int getFriendEnterHomeOptionValue() { + return friendEnterHomeOption_; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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_; + /** + * .HeadImage avatar = 24; + * @return Whether the avatar field is set. + */ + public boolean hasAvatar() { + return avatarBuilder_ != null || avatar_ != null; + } + /** + * .HeadImage avatar = 24; + * @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(); + } + } + /** + * .HeadImage avatar = 24; + */ + 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; + } + /** + * .HeadImage avatar = 24; + */ + 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; + } + /** + * .HeadImage avatar = 24; + */ + 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; + } + /** + * .HeadImage avatar = 24; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + + return this; + } + /** + * .HeadImage avatar = 24; + */ + public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .HeadImage avatar = 24; + */ + 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_; + } + } + /** + * .HeadImage avatar = 24; + */ + 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_ ; + /** + * uint32 unk1 = 25; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + /** + * uint32 unk1 = 25; + * @param value The unk1 to set. + * @return This builder for chaining. + */ + public Builder setUnk1(int value) { + + unk1_ = value; + onChanged(); + return this; + } + /** + * uint32 unk1 = 25; + * @return This builder for chaining. + */ + public Builder clearUnk1() { + + unk1_ = 0; + onChanged(); + return this; + } + + private int unk2_ ; + /** + * uint32 unk2 = 27; + * @return The unk2. + */ + @java.lang.Override + public int getUnk2() { + return unk2_; + } + /** + * uint32 unk2 = 27; + * @param value The unk2 to set. + * @return This builder for chaining. + */ + public Builder setUnk2(int value) { + + unk2_ = value; + onChanged(); + return this; + } + /** + * uint32 unk2 = 27; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e87c08783 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FriendEnterHomeOptionOuterClass.java @@ -0,0 +1,155 @@ +// 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 { + /** + * NeedConfirm = 0; + */ + NeedConfirm(0), + /** + * Refuse = 1; + */ + Refuse(1), + /** + * Direct = 2; + */ + Direct(2), + UNRECOGNIZED(-1), + ; + + /** + * NeedConfirm = 0; + */ + public static final int NeedConfirm_VALUE = 0; + /** + * Refuse = 1; + */ + public static final int Refuse_VALUE = 1; + /** + * Direct = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FriendEnterHomeOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..d1ce7e6e3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FriendOnlineStateOuterClass.java @@ -0,0 +1,146 @@ +// 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 { + /** + * FRIEND_DISCONNECT = 0; + */ + FRIEND_DISCONNECT(0), + /** + * FRIEND_ONLINE = 1; + */ + FRIEND_ONLINE(1), + UNRECOGNIZED(-1), + ; + + /** + * FRIEND_DISCONNECT = 0; + */ + public static final int FRIEND_DISCONNECT_VALUE = 0; + /** + * FRIEND_ONLINE = 1; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FriendOnlineState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..3463d6a95 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/FurnitureOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 count = 1; + * @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_; + /** + * uint32 count = 1; + * @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 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_ ; + /** + * uint32 count = 1; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 1; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ce3d18fb1 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GachaInfoOuterClass.java @@ -0,0 +1,3062 @@ +// 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 { + + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + int getGachaType(); + + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + int getScheduleId(); + + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + int getBeginTime(); + + /** + * uint32 endTime = 4; + * @return The endTime. + */ + int getEndTime(); + + /** + * uint32 costItemId = 5; + * @return The costItemId. + */ + int getCostItemId(); + + /** + * uint32 costItemNum = 6; + * @return The costItemNum. + */ + int getCostItemNum(); + + /** + * string gachaPrefabPath = 7; + * @return The gachaPrefabPath. + */ + java.lang.String getGachaPrefabPath(); + /** + * string gachaPrefabPath = 7; + * @return The bytes for gachaPrefabPath. + */ + com.google.protobuf.ByteString + getGachaPrefabPathBytes(); + + /** + * string gachaProbUrl = 8; + * @return The gachaProbUrl. + */ + java.lang.String getGachaProbUrl(); + /** + * string gachaProbUrl = 8; + * @return The bytes for gachaProbUrl. + */ + com.google.protobuf.ByteString + getGachaProbUrlBytes(); + + /** + * string gachaRecordUrl = 9; + * @return The gachaRecordUrl. + */ + java.lang.String getGachaRecordUrl(); + /** + * string gachaRecordUrl = 9; + * @return The bytes for gachaRecordUrl. + */ + com.google.protobuf.ByteString + getGachaRecordUrlBytes(); + + /** + * string gachaPreviewPrefabPath = 10; + * @return The gachaPreviewPrefabPath. + */ + java.lang.String getGachaPreviewPrefabPath(); + /** + * string gachaPreviewPrefabPath = 10; + * @return The bytes for gachaPreviewPrefabPath. + */ + com.google.protobuf.ByteString + getGachaPreviewPrefabPathBytes(); + + /** + * uint32 tenCostItemId = 11; + * @return The tenCostItemId. + */ + int getTenCostItemId(); + + /** + * uint32 tenCostItemNum = 12; + * @return The tenCostItemNum. + */ + int getTenCostItemNum(); + + /** + * uint32 leftGachaTimes = 13; + * @return The leftGachaTimes. + */ + int getLeftGachaTimes(); + + /** + * uint32 gachaTimesLimit = 14; + * @return The gachaTimesLimit. + */ + int getGachaTimesLimit(); + + /** + * uint32 gachaSortId = 15; + * @return The gachaSortId. + */ + int getGachaSortId(); + + /** + * string gachaProbUrlOversea = 16; + * @return The gachaProbUrlOversea. + */ + java.lang.String getGachaProbUrlOversea(); + /** + * string gachaProbUrlOversea = 16; + * @return The bytes for gachaProbUrlOversea. + */ + com.google.protobuf.ByteString + getGachaProbUrlOverseaBytes(); + + /** + * string gachaRecordUrlOversea = 17; + * @return The gachaRecordUrlOversea. + */ + java.lang.String getGachaRecordUrlOversea(); + /** + * string gachaRecordUrlOversea = 17; + * @return The bytes for gachaRecordUrlOversea. + */ + com.google.protobuf.ByteString + getGachaRecordUrlOverseaBytes(); + + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + java.util.List + getGachaUpInfoListList(); + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index); + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + int getGachaUpInfoListCount(); + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + java.util.List + getGachaUpInfoListOrBuilderList(); + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( + int index); + + /** + * string gachaTitlePath = 19; + * @return The gachaTitlePath. + */ + java.lang.String getGachaTitlePath(); + /** + * string gachaTitlePath = 19; + * @return The bytes for gachaTitlePath. + */ + com.google.protobuf.ByteString + getGachaTitlePathBytes(); + + /** + * repeated uint32 mainNameId = 20; + * @return A list containing the mainNameId. + */ + java.util.List getMainNameIdList(); + /** + * repeated uint32 mainNameId = 20; + * @return The count of mainNameId. + */ + int getMainNameIdCount(); + /** + * repeated uint32 mainNameId = 20; + * @param index The index of the element to return. + * @return The mainNameId at the given index. + */ + int getMainNameId(int index); + + /** + * repeated uint32 subNameId = 21; + * @return A list containing the subNameId. + */ + java.util.List getSubNameIdList(); + /** + * repeated uint32 subNameId = 21; + * @return The count of subNameId. + */ + int getSubNameIdCount(); + /** + * repeated uint32 subNameId = 21; + * @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(); + 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_; + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + + public static final int SCHEDULEID_FIELD_NUMBER = 2; + private int scheduleId_; + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + + public static final int BEGINTIME_FIELD_NUMBER = 3; + private int beginTime_; + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + + public static final int ENDTIME_FIELD_NUMBER = 4; + private int endTime_; + /** + * uint32 endTime = 4; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + + public static final int COSTITEMID_FIELD_NUMBER = 5; + private int costItemId_; + /** + * uint32 costItemId = 5; + * @return The costItemId. + */ + @java.lang.Override + public int getCostItemId() { + return costItemId_; + } + + public static final int COSTITEMNUM_FIELD_NUMBER = 6; + private int costItemNum_; + /** + * uint32 costItemNum = 6; + * @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_; + /** + * string gachaPrefabPath = 7; + * @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; + } + } + /** + * string gachaPrefabPath = 7; + * @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_; + /** + * string gachaProbUrl = 8; + * @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; + } + } + /** + * string gachaProbUrl = 8; + * @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_; + /** + * string gachaRecordUrl = 9; + * @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; + } + } + /** + * string gachaRecordUrl = 9; + * @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_; + /** + * string gachaPreviewPrefabPath = 10; + * @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; + } + } + /** + * string gachaPreviewPrefabPath = 10; + * @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_; + /** + * uint32 tenCostItemId = 11; + * @return The tenCostItemId. + */ + @java.lang.Override + public int getTenCostItemId() { + return tenCostItemId_; + } + + public static final int TENCOSTITEMNUM_FIELD_NUMBER = 12; + private int tenCostItemNum_; + /** + * uint32 tenCostItemNum = 12; + * @return The tenCostItemNum. + */ + @java.lang.Override + public int getTenCostItemNum() { + return tenCostItemNum_; + } + + public static final int LEFTGACHATIMES_FIELD_NUMBER = 13; + private int leftGachaTimes_; + /** + * uint32 leftGachaTimes = 13; + * @return The leftGachaTimes. + */ + @java.lang.Override + public int getLeftGachaTimes() { + return leftGachaTimes_; + } + + public static final int GACHATIMESLIMIT_FIELD_NUMBER = 14; + private int gachaTimesLimit_; + /** + * uint32 gachaTimesLimit = 14; + * @return The gachaTimesLimit. + */ + @java.lang.Override + public int getGachaTimesLimit() { + return gachaTimesLimit_; + } + + public static final int GACHASORTID_FIELD_NUMBER = 15; + private int gachaSortId_; + /** + * uint32 gachaSortId = 15; + * @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_; + /** + * string gachaProbUrlOversea = 16; + * @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; + } + } + /** + * string gachaProbUrlOversea = 16; + * @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_; + /** + * string gachaRecordUrlOversea = 17; + * @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; + } + } + /** + * string gachaRecordUrlOversea = 17; + * @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 gachaUpInfoList_; + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + @java.lang.Override + public java.util.List getGachaUpInfoListList() { + return gachaUpInfoList_; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + @java.lang.Override + public java.util.List + getGachaUpInfoListOrBuilderList() { + return gachaUpInfoList_; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + @java.lang.Override + public int getGachaUpInfoListCount() { + return gachaUpInfoList_.size(); + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + @java.lang.Override + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { + return gachaUpInfoList_.get(index); + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + @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_; + /** + * string gachaTitlePath = 19; + * @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; + } + } + /** + * string gachaTitlePath = 19; + * @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_; + /** + * repeated uint32 mainNameId = 20; + * @return A list containing the mainNameId. + */ + @java.lang.Override + public java.util.List + getMainNameIdList() { + return mainNameId_; + } + /** + * repeated uint32 mainNameId = 20; + * @return The count of mainNameId. + */ + public int getMainNameIdCount() { + return mainNameId_.size(); + } + /** + * repeated uint32 mainNameId = 20; + * @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_; + /** + * repeated uint32 subNameId = 21; + * @return A list containing the subNameId. + */ + @java.lang.Override + public java.util.List + getSubNameIdList() { + return subNameId_; + } + /** + * repeated uint32 subNameId = 21; + * @return The count of subNameId. + */ + public int getSubNameIdCount() { + return subNameId_.size(); + } + /** + * repeated uint32 subNameId = 21; + * @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 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_ ; + /** + * uint32 gachaType = 1; + * @return The gachaType. + */ + @java.lang.Override + public int getGachaType() { + return gachaType_; + } + /** + * uint32 gachaType = 1; + * @param value The gachaType to set. + * @return This builder for chaining. + */ + public Builder setGachaType(int value) { + + gachaType_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaType = 1; + * @return This builder for chaining. + */ + public Builder clearGachaType() { + + gachaType_ = 0; + onChanged(); + return this; + } + + private int scheduleId_ ; + /** + * uint32 scheduleId = 2; + * @return The scheduleId. + */ + @java.lang.Override + public int getScheduleId() { + return scheduleId_; + } + /** + * uint32 scheduleId = 2; + * @param value The scheduleId to set. + * @return This builder for chaining. + */ + public Builder setScheduleId(int value) { + + scheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 scheduleId = 2; + * @return This builder for chaining. + */ + public Builder clearScheduleId() { + + scheduleId_ = 0; + onChanged(); + return this; + } + + private int beginTime_ ; + /** + * uint32 beginTime = 3; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + /** + * uint32 beginTime = 3; + * @param value The beginTime to set. + * @return This builder for chaining. + */ + public Builder setBeginTime(int value) { + + beginTime_ = value; + onChanged(); + return this; + } + /** + * uint32 beginTime = 3; + * @return This builder for chaining. + */ + public Builder clearBeginTime() { + + beginTime_ = 0; + onChanged(); + return this; + } + + private int endTime_ ; + /** + * uint32 endTime = 4; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + /** + * uint32 endTime = 4; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(int value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * uint32 endTime = 4; + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = 0; + onChanged(); + return this; + } + + private int costItemId_ ; + /** + * uint32 costItemId = 5; + * @return The costItemId. + */ + @java.lang.Override + public int getCostItemId() { + return costItemId_; + } + /** + * uint32 costItemId = 5; + * @param value The costItemId to set. + * @return This builder for chaining. + */ + public Builder setCostItemId(int value) { + + costItemId_ = value; + onChanged(); + return this; + } + /** + * uint32 costItemId = 5; + * @return This builder for chaining. + */ + public Builder clearCostItemId() { + + costItemId_ = 0; + onChanged(); + return this; + } + + private int costItemNum_ ; + /** + * uint32 costItemNum = 6; + * @return The costItemNum. + */ + @java.lang.Override + public int getCostItemNum() { + return costItemNum_; + } + /** + * uint32 costItemNum = 6; + * @param value The costItemNum to set. + * @return This builder for chaining. + */ + public Builder setCostItemNum(int value) { + + costItemNum_ = value; + onChanged(); + return this; + } + /** + * uint32 costItemNum = 6; + * @return This builder for chaining. + */ + public Builder clearCostItemNum() { + + costItemNum_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gachaPrefabPath_ = ""; + /** + * string gachaPrefabPath = 7; + * @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; + } + } + /** + * string gachaPrefabPath = 7; + * @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; + } + } + /** + * string gachaPrefabPath = 7; + * @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; + } + /** + * string gachaPrefabPath = 7; + * @return This builder for chaining. + */ + public Builder clearGachaPrefabPath() { + + gachaPrefabPath_ = getDefaultInstance().getGachaPrefabPath(); + onChanged(); + return this; + } + /** + * string gachaPrefabPath = 7; + * @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_ = ""; + /** + * string gachaProbUrl = 8; + * @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; + } + } + /** + * string gachaProbUrl = 8; + * @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; + } + } + /** + * string gachaProbUrl = 8; + * @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; + } + /** + * string gachaProbUrl = 8; + * @return This builder for chaining. + */ + public Builder clearGachaProbUrl() { + + gachaProbUrl_ = getDefaultInstance().getGachaProbUrl(); + onChanged(); + return this; + } + /** + * string gachaProbUrl = 8; + * @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_ = ""; + /** + * string gachaRecordUrl = 9; + * @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; + } + } + /** + * string gachaRecordUrl = 9; + * @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; + } + } + /** + * string gachaRecordUrl = 9; + * @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; + } + /** + * string gachaRecordUrl = 9; + * @return This builder for chaining. + */ + public Builder clearGachaRecordUrl() { + + gachaRecordUrl_ = getDefaultInstance().getGachaRecordUrl(); + onChanged(); + return this; + } + /** + * string gachaRecordUrl = 9; + * @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_ = ""; + /** + * string gachaPreviewPrefabPath = 10; + * @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; + } + } + /** + * string gachaPreviewPrefabPath = 10; + * @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; + } + } + /** + * string gachaPreviewPrefabPath = 10; + * @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; + } + /** + * string gachaPreviewPrefabPath = 10; + * @return This builder for chaining. + */ + public Builder clearGachaPreviewPrefabPath() { + + gachaPreviewPrefabPath_ = getDefaultInstance().getGachaPreviewPrefabPath(); + onChanged(); + return this; + } + /** + * string gachaPreviewPrefabPath = 10; + * @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_ ; + /** + * uint32 tenCostItemId = 11; + * @return The tenCostItemId. + */ + @java.lang.Override + public int getTenCostItemId() { + return tenCostItemId_; + } + /** + * uint32 tenCostItemId = 11; + * @param value The tenCostItemId to set. + * @return This builder for chaining. + */ + public Builder setTenCostItemId(int value) { + + tenCostItemId_ = value; + onChanged(); + return this; + } + /** + * uint32 tenCostItemId = 11; + * @return This builder for chaining. + */ + public Builder clearTenCostItemId() { + + tenCostItemId_ = 0; + onChanged(); + return this; + } + + private int tenCostItemNum_ ; + /** + * uint32 tenCostItemNum = 12; + * @return The tenCostItemNum. + */ + @java.lang.Override + public int getTenCostItemNum() { + return tenCostItemNum_; + } + /** + * uint32 tenCostItemNum = 12; + * @param value The tenCostItemNum to set. + * @return This builder for chaining. + */ + public Builder setTenCostItemNum(int value) { + + tenCostItemNum_ = value; + onChanged(); + return this; + } + /** + * uint32 tenCostItemNum = 12; + * @return This builder for chaining. + */ + public Builder clearTenCostItemNum() { + + tenCostItemNum_ = 0; + onChanged(); + return this; + } + + private int leftGachaTimes_ ; + /** + * uint32 leftGachaTimes = 13; + * @return The leftGachaTimes. + */ + @java.lang.Override + public int getLeftGachaTimes() { + return leftGachaTimes_; + } + /** + * uint32 leftGachaTimes = 13; + * @param value The leftGachaTimes to set. + * @return This builder for chaining. + */ + public Builder setLeftGachaTimes(int value) { + + leftGachaTimes_ = value; + onChanged(); + return this; + } + /** + * uint32 leftGachaTimes = 13; + * @return This builder for chaining. + */ + public Builder clearLeftGachaTimes() { + + leftGachaTimes_ = 0; + onChanged(); + return this; + } + + private int gachaTimesLimit_ ; + /** + * uint32 gachaTimesLimit = 14; + * @return The gachaTimesLimit. + */ + @java.lang.Override + public int getGachaTimesLimit() { + return gachaTimesLimit_; + } + /** + * uint32 gachaTimesLimit = 14; + * @param value The gachaTimesLimit to set. + * @return This builder for chaining. + */ + public Builder setGachaTimesLimit(int value) { + + gachaTimesLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaTimesLimit = 14; + * @return This builder for chaining. + */ + public Builder clearGachaTimesLimit() { + + gachaTimesLimit_ = 0; + onChanged(); + return this; + } + + private int gachaSortId_ ; + /** + * uint32 gachaSortId = 15; + * @return The gachaSortId. + */ + @java.lang.Override + public int getGachaSortId() { + return gachaSortId_; + } + /** + * uint32 gachaSortId = 15; + * @param value The gachaSortId to set. + * @return This builder for chaining. + */ + public Builder setGachaSortId(int value) { + + gachaSortId_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaSortId = 15; + * @return This builder for chaining. + */ + public Builder clearGachaSortId() { + + gachaSortId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gachaProbUrlOversea_ = ""; + /** + * string gachaProbUrlOversea = 16; + * @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; + } + } + /** + * string gachaProbUrlOversea = 16; + * @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; + } + } + /** + * string gachaProbUrlOversea = 16; + * @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; + } + /** + * string gachaProbUrlOversea = 16; + * @return This builder for chaining. + */ + public Builder clearGachaProbUrlOversea() { + + gachaProbUrlOversea_ = getDefaultInstance().getGachaProbUrlOversea(); + onChanged(); + return this; + } + /** + * string gachaProbUrlOversea = 16; + * @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_ = ""; + /** + * string gachaRecordUrlOversea = 17; + * @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; + } + } + /** + * string gachaRecordUrlOversea = 17; + * @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; + } + } + /** + * string gachaRecordUrlOversea = 17; + * @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; + } + /** + * string gachaRecordUrlOversea = 17; + * @return This builder for chaining. + */ + public Builder clearGachaRecordUrlOversea() { + + gachaRecordUrlOversea_ = getDefaultInstance().getGachaRecordUrlOversea(); + onChanged(); + return this; + } + /** + * string gachaRecordUrlOversea = 17; + * @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 gachaUpInfoList_ = + java.util.Collections.emptyList(); + private void ensureGachaUpInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gachaUpInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public java.util.List getGachaUpInfoListList() { + if (gachaUpInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(gachaUpInfoList_); + } else { + return gachaUpInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public int getGachaUpInfoListCount() { + if (gachaUpInfoListBuilder_ == null) { + return gachaUpInfoList_.size(); + } else { + return gachaUpInfoListBuilder_.getCount(); + } + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo getGachaUpInfoList(int index) { + if (gachaUpInfoListBuilder_ == null) { + return gachaUpInfoList_.get(index); + } else { + return gachaUpInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + 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; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public Builder addAllGachaUpInfoList( + java.lang.Iterable values) { + if (gachaUpInfoListBuilder_ == null) { + ensureGachaUpInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gachaUpInfoList_); + onChanged(); + } else { + gachaUpInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public Builder clearGachaUpInfoList() { + if (gachaUpInfoListBuilder_ == null) { + gachaUpInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gachaUpInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public Builder removeGachaUpInfoList(int index) { + if (gachaUpInfoListBuilder_ == null) { + ensureGachaUpInfoListIsMutable(); + gachaUpInfoList_.remove(index); + onChanged(); + } else { + gachaUpInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder getGachaUpInfoListBuilder( + int index) { + return getGachaUpInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfoOrBuilder getGachaUpInfoListOrBuilder( + int index) { + if (gachaUpInfoListBuilder_ == null) { + return gachaUpInfoList_.get(index); } else { + return gachaUpInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public java.util.List + getGachaUpInfoListOrBuilderList() { + if (gachaUpInfoListBuilder_ != null) { + return gachaUpInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gachaUpInfoList_); + } + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder() { + return getGachaUpInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.Builder addGachaUpInfoListBuilder( + int index) { + return getGachaUpInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.GachaUpInfoOuterClass.GachaUpInfo.getDefaultInstance()); + } + /** + * repeated .GachaUpInfo gachaUpInfoList = 18; + */ + public java.util.List + 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_ = ""; + /** + * string gachaTitlePath = 19; + * @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; + } + } + /** + * string gachaTitlePath = 19; + * @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; + } + } + /** + * string gachaTitlePath = 19; + * @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; + } + /** + * string gachaTitlePath = 19; + * @return This builder for chaining. + */ + public Builder clearGachaTitlePath() { + + gachaTitlePath_ = getDefaultInstance().getGachaTitlePath(); + onChanged(); + return this; + } + /** + * string gachaTitlePath = 19; + * @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; + } + } + /** + * repeated uint32 mainNameId = 20; + * @return A list containing the mainNameId. + */ + public java.util.List + getMainNameIdList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(mainNameId_) : mainNameId_; + } + /** + * repeated uint32 mainNameId = 20; + * @return The count of mainNameId. + */ + public int getMainNameIdCount() { + return mainNameId_.size(); + } + /** + * repeated uint32 mainNameId = 20; + * @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); + } + /** + * repeated uint32 mainNameId = 20; + * @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; + } + /** + * repeated uint32 mainNameId = 20; + * @param value The mainNameId to add. + * @return This builder for chaining. + */ + public Builder addMainNameId(int value) { + ensureMainNameIdIsMutable(); + mainNameId_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 mainNameId = 20; + * @param values The mainNameId to add. + * @return This builder for chaining. + */ + public Builder addAllMainNameId( + java.lang.Iterable values) { + ensureMainNameIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mainNameId_); + onChanged(); + return this; + } + /** + * repeated uint32 mainNameId = 20; + * @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; + } + } + /** + * repeated uint32 subNameId = 21; + * @return A list containing the subNameId. + */ + public java.util.List + getSubNameIdList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(subNameId_) : subNameId_; + } + /** + * repeated uint32 subNameId = 21; + * @return The count of subNameId. + */ + public int getSubNameIdCount() { + return subNameId_.size(); + } + /** + * repeated uint32 subNameId = 21; + * @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); + } + /** + * repeated uint32 subNameId = 21; + * @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; + } + /** + * repeated uint32 subNameId = 21; + * @param value The subNameId to add. + * @return This builder for chaining. + */ + public Builder addSubNameId(int value) { + ensureSubNameIdIsMutable(); + subNameId_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 subNameId = 21; + * @param values The subNameId to add. + * @return This builder for chaining. + */ + public Builder addAllSubNameId( + java.lang.Iterable values) { + ensureSubNameIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subNameId_); + onChanged(); + return this; + } + /** + * repeated uint32 subNameId = 21; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..432275dad --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GachaItemOuterClass.java @@ -0,0 +1,1566 @@ +// 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 { + + /** + * .ItemParam gachaItem = 1; + * @return Whether the gachaItem field is set. + */ + boolean hasGachaItem(); + /** + * .ItemParam gachaItem = 1; + * @return The gachaItem. + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem(); + /** + * .ItemParam gachaItem = 1; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder(); + + /** + * repeated .GachaTransferItem transferItems = 2; + */ + java.util.List + getTransferItemsList(); + /** + * repeated .GachaTransferItem transferItems = 2; + */ + emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index); + /** + * repeated .GachaTransferItem transferItems = 2; + */ + int getTransferItemsCount(); + /** + * repeated .GachaTransferItem transferItems = 2; + */ + java.util.List + getTransferItemsOrBuilderList(); + /** + * repeated .GachaTransferItem transferItems = 2; + */ + emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder( + int index); + + /** + * bool isFlashCard = 3; + * @return The isFlashCard. + */ + boolean getIsFlashCard(); + + /** + * bool isGachaItemNew = 4; + * @return The isGachaItemNew. + */ + boolean getIsGachaItemNew(); + + /** + * repeated .ItemParam tokenItemList = 5; + */ + java.util.List + getTokenItemListList(); + /** + * repeated .ItemParam tokenItemList = 5; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index); + /** + * repeated .ItemParam tokenItemList = 5; + */ + int getTokenItemListCount(); + /** + * repeated .ItemParam tokenItemList = 5; + */ + java.util.List + getTokenItemListOrBuilderList(); + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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(); + 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(); + 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_; + /** + * .ItemParam gachaItem = 1; + * @return Whether the gachaItem field is set. + */ + @java.lang.Override + public boolean hasGachaItem() { + return gachaItem_ != null; + } + /** + * .ItemParam gachaItem = 1; + * @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_; + } + /** + * .ItemParam gachaItem = 1; + */ + @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 transferItems_; + /** + * repeated .GachaTransferItem transferItems = 2; + */ + @java.lang.Override + public java.util.List getTransferItemsList() { + return transferItems_; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + @java.lang.Override + public java.util.List + getTransferItemsOrBuilderList() { + return transferItems_; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + @java.lang.Override + public int getTransferItemsCount() { + return transferItems_.size(); + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) { + return transferItems_.get(index); + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + @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_; + /** + * bool isFlashCard = 3; + * @return The isFlashCard. + */ + @java.lang.Override + public boolean getIsFlashCard() { + return isFlashCard_; + } + + public static final int ISGACHAITEMNEW_FIELD_NUMBER = 4; + private boolean isGachaItemNew_; + /** + * bool isGachaItemNew = 4; + * @return The isGachaItemNew. + */ + @java.lang.Override + public boolean getIsGachaItemNew() { + return isGachaItemNew_; + } + + public static final int TOKENITEMLIST_FIELD_NUMBER = 5; + private java.util.List tokenItemList_; + /** + * repeated .ItemParam tokenItemList = 5; + */ + @java.lang.Override + public java.util.List getTokenItemListList() { + return tokenItemList_; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + @java.lang.Override + public java.util.List + getTokenItemListOrBuilderList() { + return tokenItemList_; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + @java.lang.Override + public int getTokenItemListCount() { + return tokenItemList_.size(); + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) { + return tokenItemList_.get(index); + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + @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 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_; + /** + * .ItemParam gachaItem = 1; + * @return Whether the gachaItem field is set. + */ + public boolean hasGachaItem() { + return gachaItemBuilder_ != null || gachaItem_ != null; + } + /** + * .ItemParam gachaItem = 1; + * @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(); + } + } + /** + * .ItemParam gachaItem = 1; + */ + 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; + } + /** + * .ItemParam gachaItem = 1; + */ + 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; + } + /** + * .ItemParam gachaItem = 1; + */ + 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; + } + /** + * .ItemParam gachaItem = 1; + */ + public Builder clearGachaItem() { + if (gachaItemBuilder_ == null) { + gachaItem_ = null; + onChanged(); + } else { + gachaItem_ = null; + gachaItemBuilder_ = null; + } + + return this; + } + /** + * .ItemParam gachaItem = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGachaItemBuilder() { + + onChanged(); + return getGachaItemFieldBuilder().getBuilder(); + } + /** + * .ItemParam gachaItem = 1; + */ + 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_; + } + } + /** + * .ItemParam gachaItem = 1; + */ + 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 transferItems_ = + java.util.Collections.emptyList(); + private void ensureTransferItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + transferItems_ = new java.util.ArrayList(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_; + + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public java.util.List getTransferItemsList() { + if (transferItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(transferItems_); + } else { + return transferItemsBuilder_.getMessageList(); + } + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public int getTransferItemsCount() { + if (transferItemsBuilder_ == null) { + return transferItems_.size(); + } else { + return transferItemsBuilder_.getCount(); + } + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) { + if (transferItemsBuilder_ == null) { + return transferItems_.get(index); + } else { + return transferItemsBuilder_.getMessage(index); + } + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + 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; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public Builder addAllTransferItems( + java.lang.Iterable values) { + if (transferItemsBuilder_ == null) { + ensureTransferItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, transferItems_); + onChanged(); + } else { + transferItemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public Builder clearTransferItems() { + if (transferItemsBuilder_ == null) { + transferItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + transferItemsBuilder_.clear(); + } + return this; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public Builder removeTransferItems(int index) { + if (transferItemsBuilder_ == null) { + ensureTransferItemsIsMutable(); + transferItems_.remove(index); + onChanged(); + } else { + transferItemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder getTransferItemsBuilder( + int index) { + return getTransferItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder( + int index) { + if (transferItemsBuilder_ == null) { + return transferItems_.get(index); } else { + return transferItemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public java.util.List + getTransferItemsOrBuilderList() { + if (transferItemsBuilder_ != null) { + return transferItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transferItems_); + } + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder() { + return getTransferItemsFieldBuilder().addBuilder( + emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance()); + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder( + int index) { + return getTransferItemsFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance()); + } + /** + * repeated .GachaTransferItem transferItems = 2; + */ + public java.util.List + 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_ ; + /** + * bool isFlashCard = 3; + * @return The isFlashCard. + */ + @java.lang.Override + public boolean getIsFlashCard() { + return isFlashCard_; + } + /** + * bool isFlashCard = 3; + * @param value The isFlashCard to set. + * @return This builder for chaining. + */ + public Builder setIsFlashCard(boolean value) { + + isFlashCard_ = value; + onChanged(); + return this; + } + /** + * bool isFlashCard = 3; + * @return This builder for chaining. + */ + public Builder clearIsFlashCard() { + + isFlashCard_ = false; + onChanged(); + return this; + } + + private boolean isGachaItemNew_ ; + /** + * bool isGachaItemNew = 4; + * @return The isGachaItemNew. + */ + @java.lang.Override + public boolean getIsGachaItemNew() { + return isGachaItemNew_; + } + /** + * bool isGachaItemNew = 4; + * @param value The isGachaItemNew to set. + * @return This builder for chaining. + */ + public Builder setIsGachaItemNew(boolean value) { + + isGachaItemNew_ = value; + onChanged(); + return this; + } + /** + * bool isGachaItemNew = 4; + * @return This builder for chaining. + */ + public Builder clearIsGachaItemNew() { + + isGachaItemNew_ = false; + onChanged(); + return this; + } + + private java.util.List tokenItemList_ = + java.util.Collections.emptyList(); + private void ensureTokenItemListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + tokenItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam tokenItemList = 5; + */ + public java.util.List getTokenItemListList() { + if (tokenItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(tokenItemList_); + } else { + return tokenItemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public int getTokenItemListCount() { + if (tokenItemListBuilder_ == null) { + return tokenItemList_.size(); + } else { + return tokenItemListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) { + if (tokenItemListBuilder_ == null) { + return tokenItemList_.get(index); + } else { + return tokenItemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public Builder addAllTokenItemList( + java.lang.Iterable values) { + if (tokenItemListBuilder_ == null) { + ensureTokenItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokenItemList_); + onChanged(); + } else { + tokenItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public Builder clearTokenItemList() { + if (tokenItemListBuilder_ == null) { + tokenItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tokenItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public Builder removeTokenItemList(int index) { + if (tokenItemListBuilder_ == null) { + ensureTokenItemListIsMutable(); + tokenItemList_.remove(index); + onChanged(); + } else { + tokenItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getTokenItemListBuilder( + int index) { + return getTokenItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder( + int index) { + if (tokenItemListBuilder_ == null) { + return tokenItemList_.get(index); } else { + return tokenItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public java.util.List + getTokenItemListOrBuilderList() { + if (tokenItemListBuilder_ != null) { + return tokenItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tokenItemList_); + } + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder() { + return getTokenItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder( + int index) { + return getTokenItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam tokenItemList = 5; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c8f0256e7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GachaTransferItemOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * .ItemParam item = 1; + * @return Whether the item field is set. + */ + boolean hasItem(); + /** + * .ItemParam item = 1; + * @return The item. + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItem(); + /** + * .ItemParam item = 1; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemOrBuilder(); + + /** + * bool isTransferItemNew = 2; + * @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_; + /** + * .ItemParam item = 1; + * @return Whether the item field is set. + */ + @java.lang.Override + public boolean hasItem() { + return item_ != null; + } + /** + * .ItemParam item = 1; + * @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_; + } + /** + * .ItemParam item = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemOrBuilder() { + return getItem(); + } + + public static final int ISTRANSFERITEMNEW_FIELD_NUMBER = 2; + private boolean isTransferItemNew_; + /** + * bool isTransferItemNew = 2; + * @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 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_; + /** + * .ItemParam item = 1; + * @return Whether the item field is set. + */ + public boolean hasItem() { + return itemBuilder_ != null || item_ != null; + } + /** + * .ItemParam item = 1; + * @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(); + } + } + /** + * .ItemParam item = 1; + */ + 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; + } + /** + * .ItemParam item = 1; + */ + 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; + } + /** + * .ItemParam item = 1; + */ + 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; + } + /** + * .ItemParam item = 1; + */ + public Builder clearItem() { + if (itemBuilder_ == null) { + item_ = null; + onChanged(); + } else { + item_ = null; + itemBuilder_ = null; + } + + return this; + } + /** + * .ItemParam item = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemBuilder() { + + onChanged(); + return getItemFieldBuilder().getBuilder(); + } + /** + * .ItemParam item = 1; + */ + 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_; + } + } + /** + * .ItemParam item = 1; + */ + 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_ ; + /** + * bool isTransferItemNew = 2; + * @return The isTransferItemNew. + */ + @java.lang.Override + public boolean getIsTransferItemNew() { + return isTransferItemNew_; + } + /** + * bool isTransferItemNew = 2; + * @param value The isTransferItemNew to set. + * @return This builder for chaining. + */ + public Builder setIsTransferItemNew(boolean value) { + + isTransferItemNew_ = value; + onChanged(); + return this; + } + /** + * bool isTransferItemNew = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c3fb522fb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GachaUpInfoOuterClass.java @@ -0,0 +1,733 @@ +// 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 { + + /** + * uint32 itemParentType = 1; + * @return The itemParentType. + */ + int getItemParentType(); + + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + java.util.List getItemIdListList(); + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + int getItemIdListCount(); + /** + * repeated uint32 itemIdList = 2; + * @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_; + /** + * uint32 itemParentType = 1; + * @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_; + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + @java.lang.Override + public java.util.List + getItemIdListList() { + return itemIdList_; + } + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 2; + * @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 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_ ; + /** + * uint32 itemParentType = 1; + * @return The itemParentType. + */ + @java.lang.Override + public int getItemParentType() { + return itemParentType_; + } + /** + * uint32 itemParentType = 1; + * @param value The itemParentType to set. + * @return This builder for chaining. + */ + public Builder setItemParentType(int value) { + + itemParentType_ = value; + onChanged(); + return this; + } + /** + * uint32 itemParentType = 1; + * @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; + } + } + /** + * repeated uint32 itemIdList = 2; + * @return A list containing the itemIdList. + */ + public java.util.List + getItemIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; + } + /** + * repeated uint32 itemIdList = 2; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 2; + * @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); + } + /** + * repeated uint32 itemIdList = 2; + * @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; + } + /** + * repeated uint32 itemIdList = 2; + * @param value The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addItemIdList(int value) { + ensureItemIdListIsMutable(); + itemIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 2; + * @param values The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addAllItemIdList( + java.lang.Iterable values) { + ensureItemIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1ef7a917d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetBornTypeOuterClass.java @@ -0,0 +1,193 @@ +// 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 { + /** + * GadgetBornNone = 0; + */ + GadgetBornNone(0), + /** + * GadgetBornInAir = 1; + */ + GadgetBornInAir(1), + /** + * GadgetBornPlayer = 2; + */ + GadgetBornPlayer(2), + /** + * GadgetBornMonsterHit = 3; + */ + GadgetBornMonsterHit(3), + /** + * GadgetBornMonsterDie = 4; + */ + GadgetBornMonsterDie(4), + /** + * GadgetBornGadget = 5; + */ + GadgetBornGadget(5), + /** + * GadgetBornGround = 6; + */ + GadgetBornGround(6), + UNRECOGNIZED(-1), + ; + + /** + * GadgetBornNone = 0; + */ + public static final int GadgetBornNone_VALUE = 0; + /** + * GadgetBornInAir = 1; + */ + public static final int GadgetBornInAir_VALUE = 1; + /** + * GadgetBornPlayer = 2; + */ + public static final int GadgetBornPlayer_VALUE = 2; + /** + * GadgetBornMonsterHit = 3; + */ + public static final int GadgetBornMonsterHit_VALUE = 3; + /** + * GadgetBornMonsterDie = 4; + */ + public static final int GadgetBornMonsterDie_VALUE = 4; + /** + * GadgetBornGadget = 5; + */ + public static final int GadgetBornGadget_VALUE = 5; + /** + * GadgetBornGround = 6; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GadgetBornType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..149e9f9c8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetClientParamOuterClass.java @@ -0,0 +1,890 @@ +// 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 { + + /** + * uint32 campId = 1; + * @return The campId. + */ + int getCampId(); + + /** + * uint32 campType = 2; + * @return The campType. + */ + int getCampType(); + + /** + * uint64 guid = 3; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + int getOwnerEntityId(); + + /** + * uint32 targetEntityId = 5; + * @return The targetEntityId. + */ + int getTargetEntityId(); + + /** + * bool asyncLoad = 6; + * @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_; + /** + * uint32 campId = 1; + * @return The campId. + */ + @java.lang.Override + public int getCampId() { + return campId_; + } + + public static final int CAMPTYPE_FIELD_NUMBER = 2; + private int campType_; + /** + * uint32 campType = 2; + * @return The campType. + */ + @java.lang.Override + public int getCampType() { + return campType_; + } + + public static final int GUID_FIELD_NUMBER = 3; + private long guid_; + /** + * uint64 guid = 3; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int OWNERENTITYID_FIELD_NUMBER = 4; + private int ownerEntityId_; + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + + public static final int TARGETENTITYID_FIELD_NUMBER = 5; + private int targetEntityId_; + /** + * uint32 targetEntityId = 5; + * @return The targetEntityId. + */ + @java.lang.Override + public int getTargetEntityId() { + return targetEntityId_; + } + + public static final int ASYNCLOAD_FIELD_NUMBER = 6; + private boolean asyncLoad_; + /** + * bool asyncLoad = 6; + * @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 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_ ; + /** + * uint32 campId = 1; + * @return The campId. + */ + @java.lang.Override + public int getCampId() { + return campId_; + } + /** + * uint32 campId = 1; + * @param value The campId to set. + * @return This builder for chaining. + */ + public Builder setCampId(int value) { + + campId_ = value; + onChanged(); + return this; + } + /** + * uint32 campId = 1; + * @return This builder for chaining. + */ + public Builder clearCampId() { + + campId_ = 0; + onChanged(); + return this; + } + + private int campType_ ; + /** + * uint32 campType = 2; + * @return The campType. + */ + @java.lang.Override + public int getCampType() { + return campType_; + } + /** + * uint32 campType = 2; + * @param value The campType to set. + * @return This builder for chaining. + */ + public Builder setCampType(int value) { + + campType_ = value; + onChanged(); + return this; + } + /** + * uint32 campType = 2; + * @return This builder for chaining. + */ + public Builder clearCampType() { + + campType_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 3; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 3; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 3; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int ownerEntityId_ ; + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + /** + * uint32 ownerEntityId = 4; + * @param value The ownerEntityId to set. + * @return This builder for chaining. + */ + public Builder setOwnerEntityId(int value) { + + ownerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 ownerEntityId = 4; + * @return This builder for chaining. + */ + public Builder clearOwnerEntityId() { + + ownerEntityId_ = 0; + onChanged(); + return this; + } + + private int targetEntityId_ ; + /** + * uint32 targetEntityId = 5; + * @return The targetEntityId. + */ + @java.lang.Override + public int getTargetEntityId() { + return targetEntityId_; + } + /** + * uint32 targetEntityId = 5; + * @param value The targetEntityId to set. + * @return This builder for chaining. + */ + public Builder setTargetEntityId(int value) { + + targetEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 targetEntityId = 5; + * @return This builder for chaining. + */ + public Builder clearTargetEntityId() { + + targetEntityId_ = 0; + onChanged(); + return this; + } + + private boolean asyncLoad_ ; + /** + * bool asyncLoad = 6; + * @return The asyncLoad. + */ + @java.lang.Override + public boolean getAsyncLoad() { + return asyncLoad_; + } + /** + * bool asyncLoad = 6; + * @param value The asyncLoad to set. + * @return This builder for chaining. + */ + public Builder setAsyncLoad(boolean value) { + + asyncLoad_ = value; + onChanged(); + return this; + } + /** + * bool asyncLoad = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c629a7d47 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetCrucibleInfoOuterClass.java @@ -0,0 +1,466 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0c2c0da25 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetInteractReqOuterClass.java @@ -0,0 +1,899 @@ +// 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 { + + /** + * uint32 gadgetEntityId = 1; + * @return The gadgetEntityId. + */ + int getGadgetEntityId(); + + /** + * .InterOpType opType = 2; + * @return The enum numeric value on the wire for opType. + */ + int getOpTypeValue(); + /** + * .InterOpType opType = 2; + * @return The opType. + */ + emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType(); + + /** + * uint32 gadgetId = 3; + * @return The gadgetId. + */ + int getGadgetId(); + + /** + * bool isUseCondenseResin = 4; + * @return The isUseCondenseResin. + */ + boolean getIsUseCondenseResin(); + + /** + * .ResinCostType resinCostType = 5; + * @return The enum numeric value on the wire for resinCostType. + */ + int getResinCostTypeValue(); + /** + * .ResinCostType resinCostType = 5; + * @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_; + /** + * uint32 gadgetEntityId = 1; + * @return The gadgetEntityId. + */ + @java.lang.Override + public int getGadgetEntityId() { + return gadgetEntityId_; + } + + public static final int OPTYPE_FIELD_NUMBER = 2; + private int opType_; + /** + * .InterOpType opType = 2; + * @return The enum numeric value on the wire for opType. + */ + @java.lang.Override public int getOpTypeValue() { + return opType_; + } + /** + * .InterOpType opType = 2; + * @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_; + /** + * uint32 gadgetId = 3; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + + public static final int ISUSECONDENSERESIN_FIELD_NUMBER = 4; + private boolean isUseCondenseResin_; + /** + * bool isUseCondenseResin = 4; + * @return The isUseCondenseResin. + */ + @java.lang.Override + public boolean getIsUseCondenseResin() { + return isUseCondenseResin_; + } + + public static final int RESINCOSTTYPE_FIELD_NUMBER = 5; + private int resinCostType_; + /** + * .ResinCostType resinCostType = 5; + * @return The enum numeric value on the wire for resinCostType. + */ + @java.lang.Override public int getResinCostTypeValue() { + return resinCostType_; + } + /** + * .ResinCostType resinCostType = 5; + * @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 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_ ; + /** + * uint32 gadgetEntityId = 1; + * @return The gadgetEntityId. + */ + @java.lang.Override + public int getGadgetEntityId() { + return gadgetEntityId_; + } + /** + * uint32 gadgetEntityId = 1; + * @param value The gadgetEntityId to set. + * @return This builder for chaining. + */ + public Builder setGadgetEntityId(int value) { + + gadgetEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetEntityId = 1; + * @return This builder for chaining. + */ + public Builder clearGadgetEntityId() { + + gadgetEntityId_ = 0; + onChanged(); + return this; + } + + private int opType_ = 0; + /** + * .InterOpType opType = 2; + * @return The enum numeric value on the wire for opType. + */ + @java.lang.Override public int getOpTypeValue() { + return opType_; + } + /** + * .InterOpType opType = 2; + * @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; + } + /** + * .InterOpType opType = 2; + * @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; + } + /** + * .InterOpType opType = 2; + * @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; + } + /** + * .InterOpType opType = 2; + * @return This builder for chaining. + */ + public Builder clearOpType() { + + opType_ = 0; + onChanged(); + return this; + } + + private int gadgetId_ ; + /** + * uint32 gadgetId = 3; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + /** + * uint32 gadgetId = 3; + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + + gadgetId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetId = 3; + * @return This builder for chaining. + */ + public Builder clearGadgetId() { + + gadgetId_ = 0; + onChanged(); + return this; + } + + private boolean isUseCondenseResin_ ; + /** + * bool isUseCondenseResin = 4; + * @return The isUseCondenseResin. + */ + @java.lang.Override + public boolean getIsUseCondenseResin() { + return isUseCondenseResin_; + } + /** + * bool isUseCondenseResin = 4; + * @param value The isUseCondenseResin to set. + * @return This builder for chaining. + */ + public Builder setIsUseCondenseResin(boolean value) { + + isUseCondenseResin_ = value; + onChanged(); + return this; + } + /** + * bool isUseCondenseResin = 4; + * @return This builder for chaining. + */ + public Builder clearIsUseCondenseResin() { + + isUseCondenseResin_ = false; + onChanged(); + return this; + } + + private int resinCostType_ = 0; + /** + * .ResinCostType resinCostType = 5; + * @return The enum numeric value on the wire for resinCostType. + */ + @java.lang.Override public int getResinCostTypeValue() { + return resinCostType_; + } + /** + * .ResinCostType resinCostType = 5; + * @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; + } + /** + * .ResinCostType resinCostType = 5; + * @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; + } + /** + * .ResinCostType resinCostType = 5; + * @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; + } + /** + * .ResinCostType resinCostType = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3c0b57c2e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetInteractRspOuterClass.java @@ -0,0 +1,898 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 gadgetEntityId = 2; + * @return The gadgetEntityId. + */ + int getGadgetEntityId(); + + /** + * .InteractType interactType = 3; + * @return The enum numeric value on the wire for interactType. + */ + int getInteractTypeValue(); + /** + * .InteractType interactType = 3; + * @return The interactType. + */ + emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType getInteractType(); + + /** + * .InterOpType opType = 4; + * @return The enum numeric value on the wire for opType. + */ + int getOpTypeValue(); + /** + * .InterOpType opType = 4; + * @return The opType. + */ + emu.grasscutter.net.proto.InterOpTypeOuterClass.InterOpType getOpType(); + + /** + * uint32 gadgetId = 5; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GADGETENTITYID_FIELD_NUMBER = 2; + private int gadgetEntityId_; + /** + * uint32 gadgetEntityId = 2; + * @return The gadgetEntityId. + */ + @java.lang.Override + public int getGadgetEntityId() { + return gadgetEntityId_; + } + + public static final int INTERACTTYPE_FIELD_NUMBER = 3; + private int interactType_; + /** + * .InteractType interactType = 3; + * @return The enum numeric value on the wire for interactType. + */ + @java.lang.Override public int getInteractTypeValue() { + return interactType_; + } + /** + * .InteractType interactType = 3; + * @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_; + /** + * .InterOpType opType = 4; + * @return The enum numeric value on the wire for opType. + */ + @java.lang.Override public int getOpTypeValue() { + return opType_; + } + /** + * .InterOpType opType = 4; + * @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_; + /** + * uint32 gadgetId = 5; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int gadgetEntityId_ ; + /** + * uint32 gadgetEntityId = 2; + * @return The gadgetEntityId. + */ + @java.lang.Override + public int getGadgetEntityId() { + return gadgetEntityId_; + } + /** + * uint32 gadgetEntityId = 2; + * @param value The gadgetEntityId to set. + * @return This builder for chaining. + */ + public Builder setGadgetEntityId(int value) { + + gadgetEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetEntityId = 2; + * @return This builder for chaining. + */ + public Builder clearGadgetEntityId() { + + gadgetEntityId_ = 0; + onChanged(); + return this; + } + + private int interactType_ = 0; + /** + * .InteractType interactType = 3; + * @return The enum numeric value on the wire for interactType. + */ + @java.lang.Override public int getInteractTypeValue() { + return interactType_; + } + /** + * .InteractType interactType = 3; + * @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; + } + /** + * .InteractType interactType = 3; + * @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; + } + /** + * .InteractType interactType = 3; + * @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; + } + /** + * .InteractType interactType = 3; + * @return This builder for chaining. + */ + public Builder clearInteractType() { + + interactType_ = 0; + onChanged(); + return this; + } + + private int opType_ = 0; + /** + * .InterOpType opType = 4; + * @return The enum numeric value on the wire for opType. + */ + @java.lang.Override public int getOpTypeValue() { + return opType_; + } + /** + * .InterOpType opType = 4; + * @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; + } + /** + * .InterOpType opType = 4; + * @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; + } + /** + * .InterOpType opType = 4; + * @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; + } + /** + * .InterOpType opType = 4; + * @return This builder for chaining. + */ + public Builder clearOpType() { + + opType_ = 0; + onChanged(); + return this; + } + + private int gadgetId_ ; + /** + * uint32 gadgetId = 5; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + /** + * uint32 gadgetId = 5; + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + + gadgetId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetId = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..09c9db655 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GadgetPlayInfoOuterClass.java @@ -0,0 +1,1319 @@ +// 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 { + + /** + * uint32 playType = 1; + * @return The playType. + */ + int getPlayType(); + + /** + * uint32 duration = 2; + * @return The duration. + */ + int getDuration(); + + /** + * repeated uint32 progressStageList = 3; + * @return A list containing the progressStageList. + */ + java.util.List getProgressStageListList(); + /** + * repeated uint32 progressStageList = 3; + * @return The count of progressStageList. + */ + int getProgressStageListCount(); + /** + * repeated uint32 progressStageList = 3; + * @param index The index of the element to return. + * @return The progressStageList at the given index. + */ + int getProgressStageList(int index); + + /** + * uint32 startCd = 4; + * @return The startCd. + */ + int getStartCd(); + + /** + * uint32 startTime = 5; + * @return The startTime. + */ + int getStartTime(); + + /** + * uint32 progress = 6; + * @return The progress. + */ + int getProgress(); + + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @return Whether the crucibleInfo field is set. + */ + boolean hasCrucibleInfo(); + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @return The crucibleInfo. + */ + emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo getCrucibleInfo(); + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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_; + /** + * uint32 playType = 1; + * @return The playType. + */ + @java.lang.Override + public int getPlayType() { + return playType_; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private int duration_; + /** + * uint32 duration = 2; + * @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_; + /** + * repeated uint32 progressStageList = 3; + * @return A list containing the progressStageList. + */ + @java.lang.Override + public java.util.List + getProgressStageListList() { + return progressStageList_; + } + /** + * repeated uint32 progressStageList = 3; + * @return The count of progressStageList. + */ + public int getProgressStageListCount() { + return progressStageList_.size(); + } + /** + * repeated uint32 progressStageList = 3; + * @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_; + /** + * uint32 startCd = 4; + * @return The startCd. + */ + @java.lang.Override + public int getStartCd() { + return startCd_; + } + + public static final int STARTTIME_FIELD_NUMBER = 5; + private int startTime_; + /** + * uint32 startTime = 5; + * @return The startTime. + */ + @java.lang.Override + public int getStartTime() { + return startTime_; + } + + public static final int PROGRESS_FIELD_NUMBER = 6; + private int progress_; + /** + * uint32 progress = 6; + * @return The progress. + */ + @java.lang.Override + public int getProgress() { + return progress_; + } + + public static final int CRUCIBLEINFO_FIELD_NUMBER = 21; + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @return Whether the crucibleInfo field is set. + */ + @java.lang.Override + public boolean hasCrucibleInfo() { + return playInfoCase_ == 21; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @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(); + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + @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 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_ ; + /** + * uint32 playType = 1; + * @return The playType. + */ + @java.lang.Override + public int getPlayType() { + return playType_; + } + /** + * uint32 playType = 1; + * @param value The playType to set. + * @return This builder for chaining. + */ + public Builder setPlayType(int value) { + + playType_ = value; + onChanged(); + return this; + } + /** + * uint32 playType = 1; + * @return This builder for chaining. + */ + public Builder clearPlayType() { + + playType_ = 0; + onChanged(); + return this; + } + + private int duration_ ; + /** + * uint32 duration = 2; + * @return The duration. + */ + @java.lang.Override + public int getDuration() { + return duration_; + } + /** + * uint32 duration = 2; + * @param value The duration to set. + * @return This builder for chaining. + */ + public Builder setDuration(int value) { + + duration_ = value; + onChanged(); + return this; + } + /** + * uint32 duration = 2; + * @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; + } + } + /** + * repeated uint32 progressStageList = 3; + * @return A list containing the progressStageList. + */ + public java.util.List + getProgressStageListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(progressStageList_) : progressStageList_; + } + /** + * repeated uint32 progressStageList = 3; + * @return The count of progressStageList. + */ + public int getProgressStageListCount() { + return progressStageList_.size(); + } + /** + * repeated uint32 progressStageList = 3; + * @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); + } + /** + * repeated uint32 progressStageList = 3; + * @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; + } + /** + * repeated uint32 progressStageList = 3; + * @param value The progressStageList to add. + * @return This builder for chaining. + */ + public Builder addProgressStageList(int value) { + ensureProgressStageListIsMutable(); + progressStageList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 progressStageList = 3; + * @param values The progressStageList to add. + * @return This builder for chaining. + */ + public Builder addAllProgressStageList( + java.lang.Iterable values) { + ensureProgressStageListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, progressStageList_); + onChanged(); + return this; + } + /** + * repeated uint32 progressStageList = 3; + * @return This builder for chaining. + */ + public Builder clearProgressStageList() { + progressStageList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int startCd_ ; + /** + * uint32 startCd = 4; + * @return The startCd. + */ + @java.lang.Override + public int getStartCd() { + return startCd_; + } + /** + * uint32 startCd = 4; + * @param value The startCd to set. + * @return This builder for chaining. + */ + public Builder setStartCd(int value) { + + startCd_ = value; + onChanged(); + return this; + } + /** + * uint32 startCd = 4; + * @return This builder for chaining. + */ + public Builder clearStartCd() { + + startCd_ = 0; + onChanged(); + return this; + } + + private int startTime_ ; + /** + * uint32 startTime = 5; + * @return The startTime. + */ + @java.lang.Override + public int getStartTime() { + return startTime_; + } + /** + * uint32 startTime = 5; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(int value) { + + startTime_ = value; + onChanged(); + return this; + } + /** + * uint32 startTime = 5; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + + startTime_ = 0; + onChanged(); + return this; + } + + private int progress_ ; + /** + * uint32 progress = 6; + * @return The progress. + */ + @java.lang.Override + public int getProgress() { + return progress_; + } + /** + * uint32 progress = 6; + * @param value The progress to set. + * @return This builder for chaining. + */ + public Builder setProgress(int value) { + + progress_ = value; + onChanged(); + return this; + } + /** + * uint32 progress = 6; + * @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_; + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @return Whether the crucibleInfo field is set. + */ + @java.lang.Override + public boolean hasCrucibleInfo() { + return playInfoCase_ == 21; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + * @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(); + } + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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; + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + public emu.grasscutter.net.proto.GadgetCrucibleInfoOuterClass.GadgetCrucibleInfo.Builder getCrucibleInfoBuilder() { + return getCrucibleInfoFieldBuilder().getBuilder(); + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + @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(); + } + } + /** + * .GadgetCrucibleInfo crucibleInfo = 21; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1db37555e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetActivityInfoRspOuterClass.java @@ -0,0 +1,1109 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + java.util.List + getActivityInfoListList(); + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index); + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + int getActivityInfoListCount(); + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + java.util.List + getActivityInfoListOrBuilderList(); + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder getActivityInfoListOrBuilder( + int index); + + /** + * repeated uint32 activatedSaleIdList = 3; + * @return A list containing the activatedSaleIdList. + */ + java.util.List getActivatedSaleIdListList(); + /** + * repeated uint32 activatedSaleIdList = 3; + * @return The count of activatedSaleIdList. + */ + int getActivatedSaleIdListCount(); + /** + * repeated uint32 activatedSaleIdList = 3; + * @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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ACTIVITYINFOLIST_FIELD_NUMBER = 2; + private java.util.List activityInfoList_; + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + @java.lang.Override + public java.util.List getActivityInfoListList() { + return activityInfoList_; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + @java.lang.Override + public java.util.List + getActivityInfoListOrBuilderList() { + return activityInfoList_; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + @java.lang.Override + public int getActivityInfoListCount() { + return activityInfoList_.size(); + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index) { + return activityInfoList_.get(index); + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + @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_; + /** + * repeated uint32 activatedSaleIdList = 3; + * @return A list containing the activatedSaleIdList. + */ + @java.lang.Override + public java.util.List + getActivatedSaleIdListList() { + return activatedSaleIdList_; + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @return The count of activatedSaleIdList. + */ + public int getActivatedSaleIdListCount() { + return activatedSaleIdList_.size(); + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List activityInfoList_ = + java.util.Collections.emptyList(); + private void ensureActivityInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + activityInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public java.util.List getActivityInfoListList() { + if (activityInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(activityInfoList_); + } else { + return activityInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public int getActivityInfoListCount() { + if (activityInfoListBuilder_ == null) { + return activityInfoList_.size(); + } else { + return activityInfoListBuilder_.getCount(); + } + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo getActivityInfoList(int index) { + if (activityInfoListBuilder_ == null) { + return activityInfoList_.get(index); + } else { + return activityInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + 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; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public Builder addAllActivityInfoList( + java.lang.Iterable values) { + if (activityInfoListBuilder_ == null) { + ensureActivityInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, activityInfoList_); + onChanged(); + } else { + activityInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public Builder clearActivityInfoList() { + if (activityInfoListBuilder_ == null) { + activityInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activityInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public Builder removeActivityInfoList(int index) { + if (activityInfoListBuilder_ == null) { + ensureActivityInfoListIsMutable(); + activityInfoList_.remove(index); + onChanged(); + } else { + activityInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder getActivityInfoListBuilder( + int index) { + return getActivityInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfoOrBuilder getActivityInfoListOrBuilder( + int index) { + if (activityInfoListBuilder_ == null) { + return activityInfoList_.get(index); } else { + return activityInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public java.util.List + getActivityInfoListOrBuilderList() { + if (activityInfoListBuilder_ != null) { + return activityInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activityInfoList_); + } + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder addActivityInfoListBuilder() { + return getActivityInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance()); + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.Builder addActivityInfoListBuilder( + int index) { + return getActivityInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ActivityInfoOuterClass.ActivityInfo.getDefaultInstance()); + } + /** + * repeated .ActivityInfo activityInfoList = 2; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @return A list containing the activatedSaleIdList. + */ + public java.util.List + getActivatedSaleIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(activatedSaleIdList_) : activatedSaleIdList_; + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @return The count of activatedSaleIdList. + */ + public int getActivatedSaleIdListCount() { + return activatedSaleIdList_.size(); + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @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); + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @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; + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @param value The activatedSaleIdList to add. + * @return This builder for chaining. + */ + public Builder addActivatedSaleIdList(int value) { + ensureActivatedSaleIdListIsMutable(); + activatedSaleIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @param values The activatedSaleIdList to add. + * @return This builder for chaining. + */ + public Builder addAllActivatedSaleIdList( + java.lang.Iterable values) { + ensureActivatedSaleIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, activatedSaleIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 activatedSaleIdList = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9e4e6c89e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetAllUnlockNameCardRspOuterClass.java @@ -0,0 +1,734 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated uint32 nameCardList = 2; + * @return A list containing the nameCardList. + */ + java.util.List getNameCardListList(); + /** + * repeated uint32 nameCardList = 2; + * @return The count of nameCardList. + */ + int getNameCardListCount(); + /** + * repeated uint32 nameCardList = 2; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * repeated uint32 nameCardList = 2; + * @return A list containing the nameCardList. + */ + @java.lang.Override + public java.util.List + getNameCardListList() { + return nameCardList_; + } + /** + * repeated uint32 nameCardList = 2; + * @return The count of nameCardList. + */ + public int getNameCardListCount() { + return nameCardList_.size(); + } + /** + * repeated uint32 nameCardList = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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; + } + } + /** + * repeated uint32 nameCardList = 2; + * @return A list containing the nameCardList. + */ + public java.util.List + getNameCardListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(nameCardList_) : nameCardList_; + } + /** + * repeated uint32 nameCardList = 2; + * @return The count of nameCardList. + */ + public int getNameCardListCount() { + return nameCardList_.size(); + } + /** + * repeated uint32 nameCardList = 2; + * @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); + } + /** + * repeated uint32 nameCardList = 2; + * @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; + } + /** + * repeated uint32 nameCardList = 2; + * @param value The nameCardList to add. + * @return This builder for chaining. + */ + public Builder addNameCardList(int value) { + ensureNameCardListIsMutable(); + nameCardList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 nameCardList = 2; + * @param values The nameCardList to add. + * @return This builder for chaining. + */ + public Builder addAllNameCardList( + java.lang.Iterable values) { + ensureNameCardListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nameCardList_); + onChanged(); + return this; + } + /** + * repeated uint32 nameCardList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d9181fdfb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetAuthkeyReqOuterClass.java @@ -0,0 +1,757 @@ +// 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 { + + /** + * string authAppid = 1; + * @return The authAppid. + */ + java.lang.String getAuthAppid(); + /** + * string authAppid = 1; + * @return The bytes for authAppid. + */ + com.google.protobuf.ByteString + getAuthAppidBytes(); + + /** + * uint32 signType = 2; + * @return The signType. + */ + int getSignType(); + + /** + * uint32 authkeyVer = 3; + * @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_; + /** + * string authAppid = 1; + * @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; + } + } + /** + * string authAppid = 1; + * @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_; + /** + * uint32 signType = 2; + * @return The signType. + */ + @java.lang.Override + public int getSignType() { + return signType_; + } + + public static final int AUTHKEYVER_FIELD_NUMBER = 3; + private int authkeyVer_; + /** + * uint32 authkeyVer = 3; + * @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 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_ = ""; + /** + * string authAppid = 1; + * @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; + } + } + /** + * string authAppid = 1; + * @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; + } + } + /** + * string authAppid = 1; + * @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; + } + /** + * string authAppid = 1; + * @return This builder for chaining. + */ + public Builder clearAuthAppid() { + + authAppid_ = getDefaultInstance().getAuthAppid(); + onChanged(); + return this; + } + /** + * string authAppid = 1; + * @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_ ; + /** + * uint32 signType = 2; + * @return The signType. + */ + @java.lang.Override + public int getSignType() { + return signType_; + } + /** + * uint32 signType = 2; + * @param value The signType to set. + * @return This builder for chaining. + */ + public Builder setSignType(int value) { + + signType_ = value; + onChanged(); + return this; + } + /** + * uint32 signType = 2; + * @return This builder for chaining. + */ + public Builder clearSignType() { + + signType_ = 0; + onChanged(); + return this; + } + + private int authkeyVer_ ; + /** + * uint32 authkeyVer = 3; + * @return The authkeyVer. + */ + @java.lang.Override + public int getAuthkeyVer() { + return authkeyVer_; + } + /** + * uint32 authkeyVer = 3; + * @param value The authkeyVer to set. + * @return This builder for chaining. + */ + public Builder setAuthkeyVer(int value) { + + authkeyVer_ = value; + onChanged(); + return this; + } + /** + * uint32 authkeyVer = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fc41b8bb6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetAuthkeyRspOuterClass.java @@ -0,0 +1,1128 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * string authkey = 2; + * @return The authkey. + */ + java.lang.String getAuthkey(); + /** + * string authkey = 2; + * @return The bytes for authkey. + */ + com.google.protobuf.ByteString + getAuthkeyBytes(); + + /** + * string authAppid = 3; + * @return The authAppid. + */ + java.lang.String getAuthAppid(); + /** + * string authAppid = 3; + * @return The bytes for authAppid. + */ + com.google.protobuf.ByteString + getAuthAppidBytes(); + + /** + * uint32 signType = 4; + * @return The signType. + */ + int getSignType(); + + /** + * uint32 authkeyVer = 5; + * @return The authkeyVer. + */ + int getAuthkeyVer(); + + /** + * string gameBiz = 6; + * @return The gameBiz. + */ + java.lang.String getGameBiz(); + /** + * string gameBiz = 6; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * string authkey = 2; + * @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; + } + } + /** + * string authkey = 2; + * @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_; + /** + * string authAppid = 3; + * @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; + } + } + /** + * string authAppid = 3; + * @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_; + /** + * uint32 signType = 4; + * @return The signType. + */ + @java.lang.Override + public int getSignType() { + return signType_; + } + + public static final int AUTHKEYVER_FIELD_NUMBER = 5; + private int authkeyVer_; + /** + * uint32 authkeyVer = 5; + * @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_; + /** + * string gameBiz = 6; + * @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; + } + } + /** + * string gameBiz = 6; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object authkey_ = ""; + /** + * string authkey = 2; + * @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; + } + } + /** + * string authkey = 2; + * @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; + } + } + /** + * string authkey = 2; + * @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; + } + /** + * string authkey = 2; + * @return This builder for chaining. + */ + public Builder clearAuthkey() { + + authkey_ = getDefaultInstance().getAuthkey(); + onChanged(); + return this; + } + /** + * string authkey = 2; + * @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_ = ""; + /** + * string authAppid = 3; + * @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; + } + } + /** + * string authAppid = 3; + * @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; + } + } + /** + * string authAppid = 3; + * @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; + } + /** + * string authAppid = 3; + * @return This builder for chaining. + */ + public Builder clearAuthAppid() { + + authAppid_ = getDefaultInstance().getAuthAppid(); + onChanged(); + return this; + } + /** + * string authAppid = 3; + * @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_ ; + /** + * uint32 signType = 4; + * @return The signType. + */ + @java.lang.Override + public int getSignType() { + return signType_; + } + /** + * uint32 signType = 4; + * @param value The signType to set. + * @return This builder for chaining. + */ + public Builder setSignType(int value) { + + signType_ = value; + onChanged(); + return this; + } + /** + * uint32 signType = 4; + * @return This builder for chaining. + */ + public Builder clearSignType() { + + signType_ = 0; + onChanged(); + return this; + } + + private int authkeyVer_ ; + /** + * uint32 authkeyVer = 5; + * @return The authkeyVer. + */ + @java.lang.Override + public int getAuthkeyVer() { + return authkeyVer_; + } + /** + * uint32 authkeyVer = 5; + * @param value The authkeyVer to set. + * @return This builder for chaining. + */ + public Builder setAuthkeyVer(int value) { + + authkeyVer_ = value; + onChanged(); + return this; + } + /** + * uint32 authkeyVer = 5; + * @return This builder for chaining. + */ + public Builder clearAuthkeyVer() { + + authkeyVer_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gameBiz_ = ""; + /** + * string gameBiz = 6; + * @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; + } + } + /** + * string gameBiz = 6; + * @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; + } + } + /** + * string gameBiz = 6; + * @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; + } + /** + * string gameBiz = 6; + * @return This builder for chaining. + */ + public Builder clearGameBiz() { + + gameBiz_ = getDefaultInstance().getGameBiz(); + onChanged(); + return this; + } + /** + * string gameBiz = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..27d99297c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetGachaInfoRspOuterClass.java @@ -0,0 +1,985 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + java.util.List + getGachaInfoListList(); + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index); + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + int getGachaInfoListCount(); + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + java.util.List + getGachaInfoListOrBuilderList(); + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder getGachaInfoListOrBuilder( + int index); + + /** + * uint32 gachaRandom = 3; + * @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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GACHAINFOLIST_FIELD_NUMBER = 2; + private java.util.List gachaInfoList_; + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + @java.lang.Override + public java.util.List getGachaInfoListList() { + return gachaInfoList_; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + @java.lang.Override + public java.util.List + getGachaInfoListOrBuilderList() { + return gachaInfoList_; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + @java.lang.Override + public int getGachaInfoListCount() { + return gachaInfoList_.size(); + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index) { + return gachaInfoList_.get(index); + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + @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_; + /** + * uint32 gachaRandom = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List gachaInfoList_ = + java.util.Collections.emptyList(); + private void ensureGachaInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + gachaInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public java.util.List getGachaInfoListList() { + if (gachaInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(gachaInfoList_); + } else { + return gachaInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public int getGachaInfoListCount() { + if (gachaInfoListBuilder_ == null) { + return gachaInfoList_.size(); + } else { + return gachaInfoListBuilder_.getCount(); + } + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo getGachaInfoList(int index) { + if (gachaInfoListBuilder_ == null) { + return gachaInfoList_.get(index); + } else { + return gachaInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + 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; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public Builder addAllGachaInfoList( + java.lang.Iterable values) { + if (gachaInfoListBuilder_ == null) { + ensureGachaInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gachaInfoList_); + onChanged(); + } else { + gachaInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public Builder clearGachaInfoList() { + if (gachaInfoListBuilder_ == null) { + gachaInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + gachaInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public Builder removeGachaInfoList(int index) { + if (gachaInfoListBuilder_ == null) { + ensureGachaInfoListIsMutable(); + gachaInfoList_.remove(index); + onChanged(); + } else { + gachaInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder getGachaInfoListBuilder( + int index) { + return getGachaInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfoOrBuilder getGachaInfoListOrBuilder( + int index) { + if (gachaInfoListBuilder_ == null) { + return gachaInfoList_.get(index); } else { + return gachaInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public java.util.List + getGachaInfoListOrBuilderList() { + if (gachaInfoListBuilder_ != null) { + return gachaInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gachaInfoList_); + } + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder addGachaInfoListBuilder() { + return getGachaInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()); + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.Builder addGachaInfoListBuilder( + int index) { + return getGachaInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.GachaInfoOuterClass.GachaInfo.getDefaultInstance()); + } + /** + * repeated .GachaInfo gachaInfoList = 2; + */ + public java.util.List + 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_ ; + /** + * uint32 gachaRandom = 3; + * @return The gachaRandom. + */ + @java.lang.Override + public int getGachaRandom() { + return gachaRandom_; + } + /** + * uint32 gachaRandom = 3; + * @param value The gachaRandom to set. + * @return This builder for chaining. + */ + public Builder setGachaRandom(int value) { + + gachaRandom_ = value; + onChanged(); + return this; + } + /** + * uint32 gachaRandom = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6fd153d32 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerAskFriendListRspOuterClass.java @@ -0,0 +1,915 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .FriendBrief askFriendList = 2; + */ + java.util.List + getAskFriendListList(); + /** + * repeated .FriendBrief askFriendList = 2; + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index); + /** + * repeated .FriendBrief askFriendList = 2; + */ + int getAskFriendListCount(); + /** + * repeated .FriendBrief askFriendList = 2; + */ + java.util.List + getAskFriendListOrBuilderList(); + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ASKFRIENDLIST_FIELD_NUMBER = 2; + private java.util.List askFriendList_; + /** + * repeated .FriendBrief askFriendList = 2; + */ + @java.lang.Override + public java.util.List getAskFriendListList() { + return askFriendList_; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + @java.lang.Override + public java.util.List + getAskFriendListOrBuilderList() { + return askFriendList_; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + @java.lang.Override + public int getAskFriendListCount() { + return askFriendList_.size(); + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { + return askFriendList_.get(index); + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List askFriendList_ = + java.util.Collections.emptyList(); + private void ensureAskFriendListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + askFriendList_ = new java.util.ArrayList(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_; + + /** + * repeated .FriendBrief askFriendList = 2; + */ + public java.util.List getAskFriendListList() { + if (askFriendListBuilder_ == null) { + return java.util.Collections.unmodifiableList(askFriendList_); + } else { + return askFriendListBuilder_.getMessageList(); + } + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public int getAskFriendListCount() { + if (askFriendListBuilder_ == null) { + return askFriendList_.size(); + } else { + return askFriendListBuilder_.getCount(); + } + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { + if (askFriendListBuilder_ == null) { + return askFriendList_.get(index); + } else { + return askFriendListBuilder_.getMessage(index); + } + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public Builder addAllAskFriendList( + java.lang.Iterable values) { + if (askFriendListBuilder_ == null) { + ensureAskFriendListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, askFriendList_); + onChanged(); + } else { + askFriendListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public Builder clearAskFriendList() { + if (askFriendListBuilder_ == null) { + askFriendList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + askFriendListBuilder_.clear(); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public Builder removeAskFriendList(int index) { + if (askFriendListBuilder_ == null) { + ensureAskFriendListIsMutable(); + askFriendList_.remove(index); + onChanged(); + } else { + askFriendListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getAskFriendListBuilder( + int index) { + return getAskFriendListFieldBuilder().getBuilder(index); + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( + int index) { + if (askFriendListBuilder_ == null) { + return askFriendList_.get(index); } else { + return askFriendListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public java.util.List + getAskFriendListOrBuilderList() { + if (askFriendListBuilder_ != null) { + return askFriendListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(askFriendList_); + } + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder() { + return getAskFriendListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder( + int index) { + return getAskFriendListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief askFriendList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..17d64db6f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerBlacklistRspOuterClass.java @@ -0,0 +1,914 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .FriendBrief blacklist = 2; + */ + java.util.List + getBlacklistList(); + /** + * repeated .FriendBrief blacklist = 2; + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index); + /** + * repeated .FriendBrief blacklist = 2; + */ + int getBlacklistCount(); + /** + * repeated .FriendBrief blacklist = 2; + */ + java.util.List + getBlacklistOrBuilderList(); + /** + * repeated .FriendBrief blacklist = 2; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int BLACKLIST_FIELD_NUMBER = 2; + private java.util.List blacklist_; + /** + * repeated .FriendBrief blacklist = 2; + */ + @java.lang.Override + public java.util.List getBlacklistList() { + return blacklist_; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + @java.lang.Override + public java.util.List + getBlacklistOrBuilderList() { + return blacklist_; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + @java.lang.Override + public int getBlacklistCount() { + return blacklist_.size(); + } + /** + * repeated .FriendBrief blacklist = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index) { + return blacklist_.get(index); + } + /** + * repeated .FriendBrief blacklist = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List blacklist_ = + java.util.Collections.emptyList(); + private void ensureBlacklistIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + blacklist_ = new java.util.ArrayList(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_; + + /** + * repeated .FriendBrief blacklist = 2; + */ + public java.util.List getBlacklistList() { + if (blacklistBuilder_ == null) { + return java.util.Collections.unmodifiableList(blacklist_); + } else { + return blacklistBuilder_.getMessageList(); + } + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public int getBlacklistCount() { + if (blacklistBuilder_ == null) { + return blacklist_.size(); + } else { + return blacklistBuilder_.getCount(); + } + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getBlacklist(int index) { + if (blacklistBuilder_ == null) { + return blacklist_.get(index); + } else { + return blacklistBuilder_.getMessage(index); + } + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + 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; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public Builder addAllBlacklist( + java.lang.Iterable values) { + if (blacklistBuilder_ == null) { + ensureBlacklistIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklist_); + onChanged(); + } else { + blacklistBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public Builder clearBlacklist() { + if (blacklistBuilder_ == null) { + blacklist_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + blacklistBuilder_.clear(); + } + return this; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public Builder removeBlacklist(int index) { + if (blacklistBuilder_ == null) { + ensureBlacklistIsMutable(); + blacklist_.remove(index); + onChanged(); + } else { + blacklistBuilder_.remove(index); + } + return this; + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getBlacklistBuilder( + int index) { + return getBlacklistFieldBuilder().getBuilder(index); + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getBlacklistOrBuilder( + int index) { + if (blacklistBuilder_ == null) { + return blacklist_.get(index); } else { + return blacklistBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public java.util.List + getBlacklistOrBuilderList() { + if (blacklistBuilder_ != null) { + return blacklistBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blacklist_); + } + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addBlacklistBuilder() { + return getBlacklistFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addBlacklistBuilder( + int index) { + return getBlacklistFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief blacklist = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e0a1500c4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerFriendListRspOuterClass.java @@ -0,0 +1,1287 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .FriendBrief friendList = 2; + */ + java.util.List + getFriendListList(); + /** + * repeated .FriendBrief friendList = 2; + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index); + /** + * repeated .FriendBrief friendList = 2; + */ + int getFriendListCount(); + /** + * repeated .FriendBrief friendList = 2; + */ + java.util.List + getFriendListOrBuilderList(); + /** + * repeated .FriendBrief friendList = 2; + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getFriendListOrBuilder( + int index); + + /** + * repeated .FriendBrief askFriendList = 3; + */ + java.util.List + getAskFriendListList(); + /** + * repeated .FriendBrief askFriendList = 3; + */ + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index); + /** + * repeated .FriendBrief askFriendList = 3; + */ + int getAskFriendListCount(); + /** + * repeated .FriendBrief askFriendList = 3; + */ + java.util.List + getAskFriendListOrBuilderList(); + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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(); + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int FRIENDLIST_FIELD_NUMBER = 2; + private java.util.List friendList_; + /** + * repeated .FriendBrief friendList = 2; + */ + @java.lang.Override + public java.util.List getFriendListList() { + return friendList_; + } + /** + * repeated .FriendBrief friendList = 2; + */ + @java.lang.Override + public java.util.List + getFriendListOrBuilderList() { + return friendList_; + } + /** + * repeated .FriendBrief friendList = 2; + */ + @java.lang.Override + public int getFriendListCount() { + return friendList_.size(); + } + /** + * repeated .FriendBrief friendList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index) { + return friendList_.get(index); + } + /** + * repeated .FriendBrief friendList = 2; + */ + @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 askFriendList_; + /** + * repeated .FriendBrief askFriendList = 3; + */ + @java.lang.Override + public java.util.List getAskFriendListList() { + return askFriendList_; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + @java.lang.Override + public java.util.List + getAskFriendListOrBuilderList() { + return askFriendList_; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + @java.lang.Override + public int getAskFriendListCount() { + return askFriendList_.size(); + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { + return askFriendList_.get(index); + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List friendList_ = + java.util.Collections.emptyList(); + private void ensureFriendListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + friendList_ = new java.util.ArrayList(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_; + + /** + * repeated .FriendBrief friendList = 2; + */ + public java.util.List getFriendListList() { + if (friendListBuilder_ == null) { + return java.util.Collections.unmodifiableList(friendList_); + } else { + return friendListBuilder_.getMessageList(); + } + } + /** + * repeated .FriendBrief friendList = 2; + */ + public int getFriendListCount() { + if (friendListBuilder_ == null) { + return friendList_.size(); + } else { + return friendListBuilder_.getCount(); + } + } + /** + * repeated .FriendBrief friendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getFriendList(int index) { + if (friendListBuilder_ == null) { + return friendList_.get(index); + } else { + return friendListBuilder_.getMessage(index); + } + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + 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; + } + /** + * repeated .FriendBrief friendList = 2; + */ + public Builder addAllFriendList( + java.lang.Iterable values) { + if (friendListBuilder_ == null) { + ensureFriendListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, friendList_); + onChanged(); + } else { + friendListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FriendBrief friendList = 2; + */ + public Builder clearFriendList() { + if (friendListBuilder_ == null) { + friendList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + friendListBuilder_.clear(); + } + return this; + } + /** + * repeated .FriendBrief friendList = 2; + */ + public Builder removeFriendList(int index) { + if (friendListBuilder_ == null) { + ensureFriendListIsMutable(); + friendList_.remove(index); + onChanged(); + } else { + friendListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FriendBrief friendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getFriendListBuilder( + int index) { + return getFriendListFieldBuilder().getBuilder(index); + } + /** + * repeated .FriendBrief friendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getFriendListOrBuilder( + int index) { + if (friendListBuilder_ == null) { + return friendList_.get(index); } else { + return friendListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FriendBrief friendList = 2; + */ + public java.util.List + getFriendListOrBuilderList() { + if (friendListBuilder_ != null) { + return friendListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(friendList_); + } + } + /** + * repeated .FriendBrief friendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addFriendListBuilder() { + return getFriendListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief friendList = 2; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addFriendListBuilder( + int index) { + return getFriendListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief friendList = 2; + */ + public java.util.List + 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 askFriendList_ = + java.util.Collections.emptyList(); + private void ensureAskFriendListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + askFriendList_ = new java.util.ArrayList(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_; + + /** + * repeated .FriendBrief askFriendList = 3; + */ + public java.util.List getAskFriendListList() { + if (askFriendListBuilder_ == null) { + return java.util.Collections.unmodifiableList(askFriendList_); + } else { + return askFriendListBuilder_.getMessageList(); + } + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public int getAskFriendListCount() { + if (askFriendListBuilder_ == null) { + return askFriendList_.size(); + } else { + return askFriendListBuilder_.getCount(); + } + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief getAskFriendList(int index) { + if (askFriendListBuilder_ == null) { + return askFriendList_.get(index); + } else { + return askFriendListBuilder_.getMessage(index); + } + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + 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; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public Builder addAllAskFriendList( + java.lang.Iterable values) { + if (askFriendListBuilder_ == null) { + ensureAskFriendListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, askFriendList_); + onChanged(); + } else { + askFriendListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public Builder clearAskFriendList() { + if (askFriendListBuilder_ == null) { + askFriendList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + askFriendListBuilder_.clear(); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public Builder removeAskFriendList(int index) { + if (askFriendListBuilder_ == null) { + ensureAskFriendListIsMutable(); + askFriendList_.remove(index); + onChanged(); + } else { + askFriendListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder getAskFriendListBuilder( + int index) { + return getAskFriendListFieldBuilder().getBuilder(index); + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBriefOrBuilder getAskFriendListOrBuilder( + int index) { + if (askFriendListBuilder_ == null) { + return askFriendList_.get(index); } else { + return askFriendListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public java.util.List + getAskFriendListOrBuilderList() { + if (askFriendListBuilder_ != null) { + return askFriendListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(askFriendList_); + } + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder() { + return getAskFriendListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.Builder addAskFriendListBuilder( + int index) { + return getAskFriendListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FriendBriefOuterClass.FriendBrief.getDefaultInstance()); + } + /** + * repeated .FriendBrief askFriendList = 3; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a3de68c08 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 uid = 1; + * @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_; + /** + * uint32 uid = 1; + * @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..463397ebc --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerSocialDetailRspOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * .SocialDetail detailData = 2; + * @return Whether the detailData field is set. + */ + boolean hasDetailData(); + /** + * .SocialDetail detailData = 2; + * @return The detailData. + */ + emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail getDetailData(); + /** + * .SocialDetail detailData = 2; + */ + 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_; + /** + * int32 retcode = 1; + * @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_; + /** + * .SocialDetail detailData = 2; + * @return Whether the detailData field is set. + */ + @java.lang.Override + public boolean hasDetailData() { + return detailData_ != null; + } + /** + * .SocialDetail detailData = 2; + * @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_; + } + /** + * .SocialDetail detailData = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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_; + /** + * .SocialDetail detailData = 2; + * @return Whether the detailData field is set. + */ + public boolean hasDetailData() { + return detailDataBuilder_ != null || detailData_ != null; + } + /** + * .SocialDetail detailData = 2; + * @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(); + } + } + /** + * .SocialDetail detailData = 2; + */ + 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; + } + /** + * .SocialDetail detailData = 2; + */ + 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; + } + /** + * .SocialDetail detailData = 2; + */ + 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; + } + /** + * .SocialDetail detailData = 2; + */ + public Builder clearDetailData() { + if (detailDataBuilder_ == null) { + detailData_ = null; + onChanged(); + } else { + detailData_ = null; + detailDataBuilder_ = null; + } + + return this; + } + /** + * .SocialDetail detailData = 2; + */ + public emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail.Builder getDetailDataBuilder() { + + onChanged(); + return getDetailDataFieldBuilder().getBuilder(); + } + /** + * .SocialDetail detailData = 2; + */ + 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_; + } + } + /** + * .SocialDetail detailData = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a086d4708 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenReqOuterClass.java @@ -0,0 +1,980 @@ +// 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 { + + /** + * uint32 accountType = 1; + * @return The accountType. + */ + int getAccountType(); + + /** + * string accountUid = 2; + * @return The accountUid. + */ + java.lang.String getAccountUid(); + /** + * string accountUid = 2; + * @return The bytes for accountUid. + */ + com.google.protobuf.ByteString + getAccountUidBytes(); + + /** + * string accountToken = 3; + * @return The accountToken. + */ + java.lang.String getAccountToken(); + /** + * string accountToken = 3; + * @return The bytes for accountToken. + */ + com.google.protobuf.ByteString + getAccountTokenBytes(); + + /** + * uint64 platformType = 7; + * @return The platformType. + */ + long getPlatformType(); + + /** + * uint64 schannelId = 11; + * @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_; + /** + * uint32 accountType = 1; + * @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_; + /** + * string accountUid = 2; + * @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; + } + } + /** + * string accountUid = 2; + * @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_; + /** + * string accountToken = 3; + * @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; + } + } + /** + * string accountToken = 3; + * @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_; + /** + * uint64 platformType = 7; + * @return The platformType. + */ + @java.lang.Override + public long getPlatformType() { + return platformType_; + } + + public static final int SCHANNELID_FIELD_NUMBER = 11; + private long schannelId_; + /** + * uint64 schannelId = 11; + * @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 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_ ; + /** + * uint32 accountType = 1; + * @return The accountType. + */ + @java.lang.Override + public int getAccountType() { + return accountType_; + } + /** + * uint32 accountType = 1; + * @param value The accountType to set. + * @return This builder for chaining. + */ + public Builder setAccountType(int value) { + + accountType_ = value; + onChanged(); + return this; + } + /** + * uint32 accountType = 1; + * @return This builder for chaining. + */ + public Builder clearAccountType() { + + accountType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object accountUid_ = ""; + /** + * string accountUid = 2; + * @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; + } + } + /** + * string accountUid = 2; + * @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; + } + } + /** + * string accountUid = 2; + * @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; + } + /** + * string accountUid = 2; + * @return This builder for chaining. + */ + public Builder clearAccountUid() { + + accountUid_ = getDefaultInstance().getAccountUid(); + onChanged(); + return this; + } + /** + * string accountUid = 2; + * @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_ = ""; + /** + * string accountToken = 3; + * @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; + } + } + /** + * string accountToken = 3; + * @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; + } + } + /** + * string accountToken = 3; + * @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; + } + /** + * string accountToken = 3; + * @return This builder for chaining. + */ + public Builder clearAccountToken() { + + accountToken_ = getDefaultInstance().getAccountToken(); + onChanged(); + return this; + } + /** + * string accountToken = 3; + * @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_ ; + /** + * uint64 platformType = 7; + * @return The platformType. + */ + @java.lang.Override + public long getPlatformType() { + return platformType_; + } + /** + * uint64 platformType = 7; + * @param value The platformType to set. + * @return This builder for chaining. + */ + public Builder setPlatformType(long value) { + + platformType_ = value; + onChanged(); + return this; + } + /** + * uint64 platformType = 7; + * @return This builder for chaining. + */ + public Builder clearPlatformType() { + + platformType_ = 0L; + onChanged(); + return this; + } + + private long schannelId_ ; + /** + * uint64 schannelId = 11; + * @return The schannelId. + */ + @java.lang.Override + public long getSchannelId() { + return schannelId_; + } + /** + * uint64 schannelId = 11; + * @param value The schannelId to set. + * @return This builder for chaining. + */ + public Builder setSchannelId(long value) { + + schannelId_ = value; + onChanged(); + return this; + } + /** + * uint64 schannelId = 11; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..589ac01f3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetPlayerTokenRspOuterClass.java @@ -0,0 +1,1709 @@ +// 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 { + + /** + * uint32 playerUid = 3; + * @return The playerUid. + */ + int getPlayerUid(); + + /** + * string accountToken = 4; + * @return The accountToken. + */ + java.lang.String getAccountToken(); + /** + * string accountToken = 4; + * @return The bytes for accountToken. + */ + com.google.protobuf.ByteString + getAccountTokenBytes(); + + /** + * int32 accountType = 6; + * @return The accountType. + */ + int getAccountType(); + + /** + * bool isProficientPlayer = 8; + * @return The isProficientPlayer. + */ + boolean getIsProficientPlayer(); + + /** + * uint32 gmUid = 10; + * @return The gmUid. + */ + int getGmUid(); + + /** + * uint64 secretKey = 11; + * @return The secretKey. + */ + long getSecretKey(); + + /** + * bytes secretKeyBuffer = 12; + * @return The secretKeyBuffer. + */ + com.google.protobuf.ByteString getSecretKeyBuffer(); + + /** + * uint64 platformType = 13; + * @return The platformType. + */ + long getPlatformType(); + + /** + * uint32 channelId = 16; + * @return The channelId. + */ + int getChannelId(); + + /** + * string countryCode = 19; + * @return The countryCode. + */ + java.lang.String getCountryCode(); + /** + * string countryCode = 19; + * @return The bytes for countryCode. + */ + com.google.protobuf.ByteString + getCountryCodeBytes(); + + /** + * string unk1 = 22; + * @return The unk1. + */ + java.lang.String getUnk1(); + /** + * string unk1 = 22; + * @return The bytes for unk1. + */ + com.google.protobuf.ByteString + getUnk1Bytes(); + + /** + * uint32 unk3 = 23; + * @return The unk3. + */ + int getUnk3(); + + /** + * string clientIp = 24; + * @return The clientIp. + */ + java.lang.String getClientIp(); + /** + * string clientIp = 24; + * @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_; + /** + * uint32 playerUid = 3; + * @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_; + /** + * string accountToken = 4; + * @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; + } + } + /** + * string accountToken = 4; + * @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_; + /** + * int32 accountType = 6; + * @return The accountType. + */ + @java.lang.Override + public int getAccountType() { + return accountType_; + } + + public static final int ISPROFICIENTPLAYER_FIELD_NUMBER = 8; + private boolean isProficientPlayer_; + /** + * bool isProficientPlayer = 8; + * @return The isProficientPlayer. + */ + @java.lang.Override + public boolean getIsProficientPlayer() { + return isProficientPlayer_; + } + + public static final int GMUID_FIELD_NUMBER = 10; + private int gmUid_; + /** + * uint32 gmUid = 10; + * @return The gmUid. + */ + @java.lang.Override + public int getGmUid() { + return gmUid_; + } + + public static final int SECRETKEY_FIELD_NUMBER = 11; + private long secretKey_; + /** + * uint64 secretKey = 11; + * @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_; + /** + * bytes secretKeyBuffer = 12; + * @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_; + /** + * uint64 platformType = 13; + * @return The platformType. + */ + @java.lang.Override + public long getPlatformType() { + return platformType_; + } + + public static final int CHANNELID_FIELD_NUMBER = 16; + private int channelId_; + /** + * uint32 channelId = 16; + * @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_; + /** + * string countryCode = 19; + * @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; + } + } + /** + * string countryCode = 19; + * @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_; + /** + * string unk1 = 22; + * @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; + } + } + /** + * string unk1 = 22; + * @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_; + /** + * uint32 unk3 = 23; + * @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_; + /** + * string clientIp = 24; + * @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; + } + } + /** + * string clientIp = 24; + * @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 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_ ; + /** + * uint32 playerUid = 3; + * @return The playerUid. + */ + @java.lang.Override + public int getPlayerUid() { + return playerUid_; + } + /** + * uint32 playerUid = 3; + * @param value The playerUid to set. + * @return This builder for chaining. + */ + public Builder setPlayerUid(int value) { + + playerUid_ = value; + onChanged(); + return this; + } + /** + * uint32 playerUid = 3; + * @return This builder for chaining. + */ + public Builder clearPlayerUid() { + + playerUid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object accountToken_ = ""; + /** + * string accountToken = 4; + * @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; + } + } + /** + * string accountToken = 4; + * @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; + } + } + /** + * string accountToken = 4; + * @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; + } + /** + * string accountToken = 4; + * @return This builder for chaining. + */ + public Builder clearAccountToken() { + + accountToken_ = getDefaultInstance().getAccountToken(); + onChanged(); + return this; + } + /** + * string accountToken = 4; + * @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_ ; + /** + * int32 accountType = 6; + * @return The accountType. + */ + @java.lang.Override + public int getAccountType() { + return accountType_; + } + /** + * int32 accountType = 6; + * @param value The accountType to set. + * @return This builder for chaining. + */ + public Builder setAccountType(int value) { + + accountType_ = value; + onChanged(); + return this; + } + /** + * int32 accountType = 6; + * @return This builder for chaining. + */ + public Builder clearAccountType() { + + accountType_ = 0; + onChanged(); + return this; + } + + private boolean isProficientPlayer_ ; + /** + * bool isProficientPlayer = 8; + * @return The isProficientPlayer. + */ + @java.lang.Override + public boolean getIsProficientPlayer() { + return isProficientPlayer_; + } + /** + * bool isProficientPlayer = 8; + * @param value The isProficientPlayer to set. + * @return This builder for chaining. + */ + public Builder setIsProficientPlayer(boolean value) { + + isProficientPlayer_ = value; + onChanged(); + return this; + } + /** + * bool isProficientPlayer = 8; + * @return This builder for chaining. + */ + public Builder clearIsProficientPlayer() { + + isProficientPlayer_ = false; + onChanged(); + return this; + } + + private int gmUid_ ; + /** + * uint32 gmUid = 10; + * @return The gmUid. + */ + @java.lang.Override + public int getGmUid() { + return gmUid_; + } + /** + * uint32 gmUid = 10; + * @param value The gmUid to set. + * @return This builder for chaining. + */ + public Builder setGmUid(int value) { + + gmUid_ = value; + onChanged(); + return this; + } + /** + * uint32 gmUid = 10; + * @return This builder for chaining. + */ + public Builder clearGmUid() { + + gmUid_ = 0; + onChanged(); + return this; + } + + private long secretKey_ ; + /** + * uint64 secretKey = 11; + * @return The secretKey. + */ + @java.lang.Override + public long getSecretKey() { + return secretKey_; + } + /** + * uint64 secretKey = 11; + * @param value The secretKey to set. + * @return This builder for chaining. + */ + public Builder setSecretKey(long value) { + + secretKey_ = value; + onChanged(); + return this; + } + /** + * uint64 secretKey = 11; + * @return This builder for chaining. + */ + public Builder clearSecretKey() { + + secretKey_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString secretKeyBuffer_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes secretKeyBuffer = 12; + * @return The secretKeyBuffer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretKeyBuffer() { + return secretKeyBuffer_; + } + /** + * bytes secretKeyBuffer = 12; + * @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; + } + /** + * bytes secretKeyBuffer = 12; + * @return This builder for chaining. + */ + public Builder clearSecretKeyBuffer() { + + secretKeyBuffer_ = getDefaultInstance().getSecretKeyBuffer(); + onChanged(); + return this; + } + + private long platformType_ ; + /** + * uint64 platformType = 13; + * @return The platformType. + */ + @java.lang.Override + public long getPlatformType() { + return platformType_; + } + /** + * uint64 platformType = 13; + * @param value The platformType to set. + * @return This builder for chaining. + */ + public Builder setPlatformType(long value) { + + platformType_ = value; + onChanged(); + return this; + } + /** + * uint64 platformType = 13; + * @return This builder for chaining. + */ + public Builder clearPlatformType() { + + platformType_ = 0L; + onChanged(); + return this; + } + + private int channelId_ ; + /** + * uint32 channelId = 16; + * @return The channelId. + */ + @java.lang.Override + public int getChannelId() { + return channelId_; + } + /** + * uint32 channelId = 16; + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(int value) { + + channelId_ = value; + onChanged(); + return this; + } + /** + * uint32 channelId = 16; + * @return This builder for chaining. + */ + public Builder clearChannelId() { + + channelId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object countryCode_ = ""; + /** + * string countryCode = 19; + * @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; + } + } + /** + * string countryCode = 19; + * @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; + } + } + /** + * string countryCode = 19; + * @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; + } + /** + * string countryCode = 19; + * @return This builder for chaining. + */ + public Builder clearCountryCode() { + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); + return this; + } + /** + * string countryCode = 19; + * @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_ = ""; + /** + * string unk1 = 22; + * @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; + } + } + /** + * string unk1 = 22; + * @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; + } + } + /** + * string unk1 = 22; + * @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; + } + /** + * string unk1 = 22; + * @return This builder for chaining. + */ + public Builder clearUnk1() { + + unk1_ = getDefaultInstance().getUnk1(); + onChanged(); + return this; + } + /** + * string unk1 = 22; + * @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_ ; + /** + * uint32 unk3 = 23; + * @return The unk3. + */ + @java.lang.Override + public int getUnk3() { + return unk3_; + } + /** + * uint32 unk3 = 23; + * @param value The unk3 to set. + * @return This builder for chaining. + */ + public Builder setUnk3(int value) { + + unk3_ = value; + onChanged(); + return this; + } + /** + * uint32 unk3 = 23; + * @return This builder for chaining. + */ + public Builder clearUnk3() { + + unk3_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientIp_ = ""; + /** + * string clientIp = 24; + * @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; + } + } + /** + * string clientIp = 24; + * @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; + } + } + /** + * string clientIp = 24; + * @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; + } + /** + * string clientIp = 24; + * @return This builder for chaining. + */ + public Builder clearClientIp() { + + clientIp_ = getDefaultInstance().getClientIp(); + onChanged(); + return this; + } + /** + * string clientIp = 24; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0176372e6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetSceneAreaReqOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * uint32 belongUid = 2; + * @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_; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int BELONGUID_FIELD_NUMBER = 2; + private int belongUid_; + /** + * uint32 belongUid = 2; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private int belongUid_ ; + /** + * uint32 belongUid = 2; + * @return The belongUid. + */ + @java.lang.Override + public int getBelongUid() { + return belongUid_; + } + /** + * uint32 belongUid = 2; + * @param value The belongUid to set. + * @return This builder for chaining. + */ + public Builder setBelongUid(int value) { + + belongUid_ = value; + onChanged(); + return this; + } + /** + * uint32 belongUid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..05eb4e07a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetSceneAreaRspOuterClass.java @@ -0,0 +1,1179 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 sceneId = 2; + * @return The sceneId. + */ + int getSceneId(); + + /** + * repeated uint32 areaIdList = 3; + * @return A list containing the areaIdList. + */ + java.util.List getAreaIdListList(); + /** + * repeated uint32 areaIdList = 3; + * @return The count of areaIdList. + */ + int getAreaIdListCount(); + /** + * repeated uint32 areaIdList = 3; + * @param index The index of the element to return. + * @return The areaIdList at the given index. + */ + int getAreaIdList(int index); + + /** + * repeated .CityInfo cityInfoList = 4; + */ + java.util.List + getCityInfoListList(); + /** + * repeated .CityInfo cityInfoList = 4; + */ + emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index); + /** + * repeated .CityInfo cityInfoList = 4; + */ + int getCityInfoListCount(); + /** + * repeated .CityInfo cityInfoList = 4; + */ + java.util.List + getCityInfoListOrBuilderList(); + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int SCENEID_FIELD_NUMBER = 2; + private int sceneId_; + /** + * uint32 sceneId = 2; + * @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_; + /** + * repeated uint32 areaIdList = 3; + * @return A list containing the areaIdList. + */ + @java.lang.Override + public java.util.List + getAreaIdListList() { + return areaIdList_; + } + /** + * repeated uint32 areaIdList = 3; + * @return The count of areaIdList. + */ + public int getAreaIdListCount() { + return areaIdList_.size(); + } + /** + * repeated uint32 areaIdList = 3; + * @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 cityInfoList_; + /** + * repeated .CityInfo cityInfoList = 4; + */ + @java.lang.Override + public java.util.List getCityInfoListList() { + return cityInfoList_; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + @java.lang.Override + public java.util.List + getCityInfoListOrBuilderList() { + return cityInfoList_; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + @java.lang.Override + public int getCityInfoListCount() { + return cityInfoList_.size(); + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index) { + return cityInfoList_.get(index); + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int sceneId_ ; + /** + * uint32 sceneId = 2; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 2; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 2; + * @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; + } + } + /** + * repeated uint32 areaIdList = 3; + * @return A list containing the areaIdList. + */ + public java.util.List + getAreaIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(areaIdList_) : areaIdList_; + } + /** + * repeated uint32 areaIdList = 3; + * @return The count of areaIdList. + */ + public int getAreaIdListCount() { + return areaIdList_.size(); + } + /** + * repeated uint32 areaIdList = 3; + * @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); + } + /** + * repeated uint32 areaIdList = 3; + * @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; + } + /** + * repeated uint32 areaIdList = 3; + * @param value The areaIdList to add. + * @return This builder for chaining. + */ + public Builder addAreaIdList(int value) { + ensureAreaIdListIsMutable(); + areaIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 areaIdList = 3; + * @param values The areaIdList to add. + * @return This builder for chaining. + */ + public Builder addAllAreaIdList( + java.lang.Iterable values) { + ensureAreaIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, areaIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 areaIdList = 3; + * @return This builder for chaining. + */ + public Builder clearAreaIdList() { + areaIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List cityInfoList_ = + java.util.Collections.emptyList(); + private void ensureCityInfoListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cityInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .CityInfo cityInfoList = 4; + */ + public java.util.List getCityInfoListList() { + if (cityInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(cityInfoList_); + } else { + return cityInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public int getCityInfoListCount() { + if (cityInfoListBuilder_ == null) { + return cityInfoList_.size(); + } else { + return cityInfoListBuilder_.getCount(); + } + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo getCityInfoList(int index) { + if (cityInfoListBuilder_ == null) { + return cityInfoList_.get(index); + } else { + return cityInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + 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; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public Builder addAllCityInfoList( + java.lang.Iterable values) { + if (cityInfoListBuilder_ == null) { + ensureCityInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cityInfoList_); + onChanged(); + } else { + cityInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public Builder clearCityInfoList() { + if (cityInfoListBuilder_ == null) { + cityInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cityInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public Builder removeCityInfoList(int index) { + if (cityInfoListBuilder_ == null) { + ensureCityInfoListIsMutable(); + cityInfoList_.remove(index); + onChanged(); + } else { + cityInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder getCityInfoListBuilder( + int index) { + return getCityInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfoOrBuilder getCityInfoListOrBuilder( + int index) { + if (cityInfoListBuilder_ == null) { + return cityInfoList_.get(index); } else { + return cityInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public java.util.List + getCityInfoListOrBuilderList() { + if (cityInfoListBuilder_ != null) { + return cityInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cityInfoList_); + } + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder addCityInfoListBuilder() { + return getCityInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance()); + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.Builder addCityInfoListBuilder( + int index) { + return getCityInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo.getDefaultInstance()); + } + /** + * repeated .CityInfo cityInfoList = 4; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..01a27b723 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetScenePointReqOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * uint32 belongUid = 2; + * @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_; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int BELONGUID_FIELD_NUMBER = 2; + private int belongUid_; + /** + * uint32 belongUid = 2; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private int belongUid_ ; + /** + * uint32 belongUid = 2; + * @return The belongUid. + */ + @java.lang.Override + public int getBelongUid() { + return belongUid_; + } + /** + * uint32 belongUid = 2; + * @param value The belongUid to set. + * @return This builder for chaining. + */ + public Builder setBelongUid(int value) { + + belongUid_ = value; + onChanged(); + return this; + } + /** + * uint32 belongUid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3f11e6406 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetScenePointRspOuterClass.java @@ -0,0 +1,2037 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 sceneId = 2; + * @return The sceneId. + */ + int getSceneId(); + + /** + * repeated uint32 unlockedPointList = 3; + * @return A list containing the unlockedPointList. + */ + java.util.List getUnlockedPointListList(); + /** + * repeated uint32 unlockedPointList = 3; + * @return The count of unlockedPointList. + */ + int getUnlockedPointListCount(); + /** + * repeated uint32 unlockedPointList = 3; + * @param index The index of the element to return. + * @return The unlockedPointList at the given index. + */ + int getUnlockedPointList(int index); + + /** + * uint32 belongUid = 4; + * @return The belongUid. + */ + int getBelongUid(); + + /** + * repeated uint32 unlockAreaList = 5; + * @return A list containing the unlockAreaList. + */ + java.util.List getUnlockAreaListList(); + /** + * repeated uint32 unlockAreaList = 5; + * @return The count of unlockAreaList. + */ + int getUnlockAreaListCount(); + /** + * repeated uint32 unlockAreaList = 5; + * @param index The index of the element to return. + * @return The unlockAreaList at the given index. + */ + int getUnlockAreaList(int index); + + /** + * repeated uint32 lockedPointList = 6; + * @return A list containing the lockedPointList. + */ + java.util.List getLockedPointListList(); + /** + * repeated uint32 lockedPointList = 6; + * @return The count of lockedPointList. + */ + int getLockedPointListCount(); + /** + * repeated uint32 lockedPointList = 6; + * @param index The index of the element to return. + * @return The lockedPointList at the given index. + */ + int getLockedPointList(int index); + + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return A list containing the toBeExploreDungeonEntryList. + */ + java.util.List getToBeExploreDungeonEntryListList(); + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return The count of toBeExploreDungeonEntryList. + */ + int getToBeExploreDungeonEntryListCount(); + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @param index The index of the element to return. + * @return The toBeExploreDungeonEntryList at the given index. + */ + int getToBeExploreDungeonEntryList(int index); + + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return A list containing the notExploredDungeonEntryList. + */ + java.util.List getNotExploredDungeonEntryListList(); + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return The count of notExploredDungeonEntryList. + */ + int getNotExploredDungeonEntryListCount(); + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @param index The index of the element to return. + * @return The notExploredDungeonEntryList at the given index. + */ + int getNotExploredDungeonEntryList(int index); + + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return A list containing the groupUnlimitPointList. + */ + java.util.List getGroupUnlimitPointListList(); + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return The count of groupUnlimitPointList. + */ + int getGroupUnlimitPointListCount(); + /** + * repeated uint32 groupUnlimitPointList = 9; + * @param index The index of the element to return. + * @return The groupUnlimitPointList at the given index. + */ + int getGroupUnlimitPointList(int index); + + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return A list containing the notInteractDungeonEntryList. + */ + java.util.List getNotInteractDungeonEntryListList(); + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return The count of notInteractDungeonEntryList. + */ + int getNotInteractDungeonEntryListCount(); + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int SCENEID_FIELD_NUMBER = 2; + private int sceneId_; + /** + * uint32 sceneId = 2; + * @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_; + /** + * repeated uint32 unlockedPointList = 3; + * @return A list containing the unlockedPointList. + */ + @java.lang.Override + public java.util.List + getUnlockedPointListList() { + return unlockedPointList_; + } + /** + * repeated uint32 unlockedPointList = 3; + * @return The count of unlockedPointList. + */ + public int getUnlockedPointListCount() { + return unlockedPointList_.size(); + } + /** + * repeated uint32 unlockedPointList = 3; + * @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_; + /** + * uint32 belongUid = 4; + * @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_; + /** + * repeated uint32 unlockAreaList = 5; + * @return A list containing the unlockAreaList. + */ + @java.lang.Override + public java.util.List + getUnlockAreaListList() { + return unlockAreaList_; + } + /** + * repeated uint32 unlockAreaList = 5; + * @return The count of unlockAreaList. + */ + public int getUnlockAreaListCount() { + return unlockAreaList_.size(); + } + /** + * repeated uint32 unlockAreaList = 5; + * @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_; + /** + * repeated uint32 lockedPointList = 6; + * @return A list containing the lockedPointList. + */ + @java.lang.Override + public java.util.List + getLockedPointListList() { + return lockedPointList_; + } + /** + * repeated uint32 lockedPointList = 6; + * @return The count of lockedPointList. + */ + public int getLockedPointListCount() { + return lockedPointList_.size(); + } + /** + * repeated uint32 lockedPointList = 6; + * @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_; + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return A list containing the toBeExploreDungeonEntryList. + */ + @java.lang.Override + public java.util.List + getToBeExploreDungeonEntryListList() { + return toBeExploreDungeonEntryList_; + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return The count of toBeExploreDungeonEntryList. + */ + public int getToBeExploreDungeonEntryListCount() { + return toBeExploreDungeonEntryList_.size(); + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @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_; + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return A list containing the notExploredDungeonEntryList. + */ + @java.lang.Override + public java.util.List + getNotExploredDungeonEntryListList() { + return notExploredDungeonEntryList_; + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return The count of notExploredDungeonEntryList. + */ + public int getNotExploredDungeonEntryListCount() { + return notExploredDungeonEntryList_.size(); + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @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_; + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return A list containing the groupUnlimitPointList. + */ + @java.lang.Override + public java.util.List + getGroupUnlimitPointListList() { + return groupUnlimitPointList_; + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return The count of groupUnlimitPointList. + */ + public int getGroupUnlimitPointListCount() { + return groupUnlimitPointList_.size(); + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @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_; + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return A list containing the notInteractDungeonEntryList. + */ + @java.lang.Override + public java.util.List + getNotInteractDungeonEntryListList() { + return notInteractDungeonEntryList_; + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return The count of notInteractDungeonEntryList. + */ + public int getNotInteractDungeonEntryListCount() { + return notInteractDungeonEntryList_.size(); + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int sceneId_ ; + /** + * uint32 sceneId = 2; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 2; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 2; + * @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; + } + } + /** + * repeated uint32 unlockedPointList = 3; + * @return A list containing the unlockedPointList. + */ + public java.util.List + getUnlockedPointListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(unlockedPointList_) : unlockedPointList_; + } + /** + * repeated uint32 unlockedPointList = 3; + * @return The count of unlockedPointList. + */ + public int getUnlockedPointListCount() { + return unlockedPointList_.size(); + } + /** + * repeated uint32 unlockedPointList = 3; + * @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); + } + /** + * repeated uint32 unlockedPointList = 3; + * @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; + } + /** + * repeated uint32 unlockedPointList = 3; + * @param value The unlockedPointList to add. + * @return This builder for chaining. + */ + public Builder addUnlockedPointList(int value) { + ensureUnlockedPointListIsMutable(); + unlockedPointList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 unlockedPointList = 3; + * @param values The unlockedPointList to add. + * @return This builder for chaining. + */ + public Builder addAllUnlockedPointList( + java.lang.Iterable values) { + ensureUnlockedPointListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unlockedPointList_); + onChanged(); + return this; + } + /** + * repeated uint32 unlockedPointList = 3; + * @return This builder for chaining. + */ + public Builder clearUnlockedPointList() { + unlockedPointList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int belongUid_ ; + /** + * uint32 belongUid = 4; + * @return The belongUid. + */ + @java.lang.Override + public int getBelongUid() { + return belongUid_; + } + /** + * uint32 belongUid = 4; + * @param value The belongUid to set. + * @return This builder for chaining. + */ + public Builder setBelongUid(int value) { + + belongUid_ = value; + onChanged(); + return this; + } + /** + * uint32 belongUid = 4; + * @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; + } + } + /** + * repeated uint32 unlockAreaList = 5; + * @return A list containing the unlockAreaList. + */ + public java.util.List + getUnlockAreaListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(unlockAreaList_) : unlockAreaList_; + } + /** + * repeated uint32 unlockAreaList = 5; + * @return The count of unlockAreaList. + */ + public int getUnlockAreaListCount() { + return unlockAreaList_.size(); + } + /** + * repeated uint32 unlockAreaList = 5; + * @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); + } + /** + * repeated uint32 unlockAreaList = 5; + * @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; + } + /** + * repeated uint32 unlockAreaList = 5; + * @param value The unlockAreaList to add. + * @return This builder for chaining. + */ + public Builder addUnlockAreaList(int value) { + ensureUnlockAreaListIsMutable(); + unlockAreaList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 unlockAreaList = 5; + * @param values The unlockAreaList to add. + * @return This builder for chaining. + */ + public Builder addAllUnlockAreaList( + java.lang.Iterable values) { + ensureUnlockAreaListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unlockAreaList_); + onChanged(); + return this; + } + /** + * repeated uint32 unlockAreaList = 5; + * @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; + } + } + /** + * repeated uint32 lockedPointList = 6; + * @return A list containing the lockedPointList. + */ + public java.util.List + getLockedPointListList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(lockedPointList_) : lockedPointList_; + } + /** + * repeated uint32 lockedPointList = 6; + * @return The count of lockedPointList. + */ + public int getLockedPointListCount() { + return lockedPointList_.size(); + } + /** + * repeated uint32 lockedPointList = 6; + * @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); + } + /** + * repeated uint32 lockedPointList = 6; + * @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; + } + /** + * repeated uint32 lockedPointList = 6; + * @param value The lockedPointList to add. + * @return This builder for chaining. + */ + public Builder addLockedPointList(int value) { + ensureLockedPointListIsMutable(); + lockedPointList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 lockedPointList = 6; + * @param values The lockedPointList to add. + * @return This builder for chaining. + */ + public Builder addAllLockedPointList( + java.lang.Iterable values) { + ensureLockedPointListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, lockedPointList_); + onChanged(); + return this; + } + /** + * repeated uint32 lockedPointList = 6; + * @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; + } + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return A list containing the toBeExploreDungeonEntryList. + */ + public java.util.List + getToBeExploreDungeonEntryListList() { + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(toBeExploreDungeonEntryList_) : toBeExploreDungeonEntryList_; + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @return The count of toBeExploreDungeonEntryList. + */ + public int getToBeExploreDungeonEntryListCount() { + return toBeExploreDungeonEntryList_.size(); + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @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); + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @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; + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @param value The toBeExploreDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addToBeExploreDungeonEntryList(int value) { + ensureToBeExploreDungeonEntryListIsMutable(); + toBeExploreDungeonEntryList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @param values The toBeExploreDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addAllToBeExploreDungeonEntryList( + java.lang.Iterable values) { + ensureToBeExploreDungeonEntryListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, toBeExploreDungeonEntryList_); + onChanged(); + return this; + } + /** + * repeated uint32 toBeExploreDungeonEntryList = 7; + * @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; + } + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return A list containing the notExploredDungeonEntryList. + */ + public java.util.List + getNotExploredDungeonEntryListList() { + return ((bitField0_ & 0x00000010) != 0) ? + java.util.Collections.unmodifiableList(notExploredDungeonEntryList_) : notExploredDungeonEntryList_; + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @return The count of notExploredDungeonEntryList. + */ + public int getNotExploredDungeonEntryListCount() { + return notExploredDungeonEntryList_.size(); + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @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); + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @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; + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @param value The notExploredDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addNotExploredDungeonEntryList(int value) { + ensureNotExploredDungeonEntryListIsMutable(); + notExploredDungeonEntryList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @param values The notExploredDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addAllNotExploredDungeonEntryList( + java.lang.Iterable values) { + ensureNotExploredDungeonEntryListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notExploredDungeonEntryList_); + onChanged(); + return this; + } + /** + * repeated uint32 notExploredDungeonEntryList = 8; + * @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; + } + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return A list containing the groupUnlimitPointList. + */ + public java.util.List + getGroupUnlimitPointListList() { + return ((bitField0_ & 0x00000020) != 0) ? + java.util.Collections.unmodifiableList(groupUnlimitPointList_) : groupUnlimitPointList_; + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @return The count of groupUnlimitPointList. + */ + public int getGroupUnlimitPointListCount() { + return groupUnlimitPointList_.size(); + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @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); + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @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; + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @param value The groupUnlimitPointList to add. + * @return This builder for chaining. + */ + public Builder addGroupUnlimitPointList(int value) { + ensureGroupUnlimitPointListIsMutable(); + groupUnlimitPointList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @param values The groupUnlimitPointList to add. + * @return This builder for chaining. + */ + public Builder addAllGroupUnlimitPointList( + java.lang.Iterable values) { + ensureGroupUnlimitPointListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, groupUnlimitPointList_); + onChanged(); + return this; + } + /** + * repeated uint32 groupUnlimitPointList = 9; + * @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; + } + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return A list containing the notInteractDungeonEntryList. + */ + public java.util.List + getNotInteractDungeonEntryListList() { + return ((bitField0_ & 0x00000040) != 0) ? + java.util.Collections.unmodifiableList(notInteractDungeonEntryList_) : notInteractDungeonEntryList_; + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @return The count of notInteractDungeonEntryList. + */ + public int getNotInteractDungeonEntryListCount() { + return notInteractDungeonEntryList_.size(); + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @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); + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @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; + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @param value The notInteractDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addNotInteractDungeonEntryList(int value) { + ensureNotInteractDungeonEntryListIsMutable(); + notInteractDungeonEntryList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @param values The notInteractDungeonEntryList to add. + * @return This builder for chaining. + */ + public Builder addAllNotInteractDungeonEntryList( + java.lang.Iterable values) { + ensureNotInteractDungeonEntryListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notInteractDungeonEntryList_); + onChanged(); + return this; + } + /** + * repeated uint32 notInteractDungeonEntryList = 10; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e2c10d573 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetShopReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 shopType = 1; + * @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_; + /** + * uint32 shopType = 1; + * @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 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_ ; + /** + * uint32 shopType = 1; + * @return The shopType. + */ + @java.lang.Override + public int getShopType() { + return shopType_; + } + /** + * uint32 shopType = 1; + * @param value The shopType to set. + * @return This builder for chaining. + */ + public Builder setShopType(int value) { + + shopType_ = value; + onChanged(); + return this; + } + /** + * uint32 shopType = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5a2a030d2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetShopRspOuterClass.java @@ -0,0 +1,741 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * .Shop shop = 2; + * @return Whether the shop field is set. + */ + boolean hasShop(); + /** + * .Shop shop = 2; + * @return The shop. + */ + emu.grasscutter.net.proto.ShopOuterClass.Shop getShop(); + /** + * .Shop shop = 2; + */ + 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_; + /** + * int32 retcode = 1; + * @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_; + /** + * .Shop shop = 2; + * @return Whether the shop field is set. + */ + @java.lang.Override + public boolean hasShop() { + return shop_ != null; + } + /** + * .Shop shop = 2; + * @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_; + } + /** + * .Shop shop = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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_; + /** + * .Shop shop = 2; + * @return Whether the shop field is set. + */ + public boolean hasShop() { + return shopBuilder_ != null || shop_ != null; + } + /** + * .Shop shop = 2; + * @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(); + } + } + /** + * .Shop shop = 2; + */ + 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; + } + /** + * .Shop shop = 2; + */ + 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; + } + /** + * .Shop shop = 2; + */ + 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; + } + /** + * .Shop shop = 2; + */ + public Builder clearShop() { + if (shopBuilder_ == null) { + shop_ = null; + onChanged(); + } else { + shop_ = null; + shopBuilder_ = null; + } + + return this; + } + /** + * .Shop shop = 2; + */ + public emu.grasscutter.net.proto.ShopOuterClass.Shop.Builder getShopBuilder() { + + onChanged(); + return getShopFieldBuilder().getBuilder(); + } + /** + * .Shop shop = 2; + */ + 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_; + } + } + /** + * .Shop shop = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..94afcdbd5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetShopmallDataRspOuterClass.java @@ -0,0 +1,734 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated uint32 shopTypeList = 2; + * @return A list containing the shopTypeList. + */ + java.util.List getShopTypeListList(); + /** + * repeated uint32 shopTypeList = 2; + * @return The count of shopTypeList. + */ + int getShopTypeListCount(); + /** + * repeated uint32 shopTypeList = 2; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * repeated uint32 shopTypeList = 2; + * @return A list containing the shopTypeList. + */ + @java.lang.Override + public java.util.List + getShopTypeListList() { + return shopTypeList_; + } + /** + * repeated uint32 shopTypeList = 2; + * @return The count of shopTypeList. + */ + public int getShopTypeListCount() { + return shopTypeList_.size(); + } + /** + * repeated uint32 shopTypeList = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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; + } + } + /** + * repeated uint32 shopTypeList = 2; + * @return A list containing the shopTypeList. + */ + public java.util.List + getShopTypeListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(shopTypeList_) : shopTypeList_; + } + /** + * repeated uint32 shopTypeList = 2; + * @return The count of shopTypeList. + */ + public int getShopTypeListCount() { + return shopTypeList_.size(); + } + /** + * repeated uint32 shopTypeList = 2; + * @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); + } + /** + * repeated uint32 shopTypeList = 2; + * @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; + } + /** + * repeated uint32 shopTypeList = 2; + * @param value The shopTypeList to add. + * @return This builder for chaining. + */ + public Builder addShopTypeList(int value) { + ensureShopTypeListIsMutable(); + shopTypeList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 shopTypeList = 2; + * @param values The shopTypeList to add. + * @return This builder for chaining. + */ + public Builder addAllShopTypeList( + java.lang.Iterable values) { + ensureShopTypeListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shopTypeList_); + onChanged(); + return this; + } + /** + * repeated uint32 shopTypeList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e9c70443f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/GetWorldMpInfoRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * bool isInMpMode = 2; + * @return The isInMpMode. + */ + boolean getIsInMpMode(); + + /** + * uint32 quitMpValidTime = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ISINMPMODE_FIELD_NUMBER = 2; + private boolean isInMpMode_; + /** + * bool isInMpMode = 2; + * @return The isInMpMode. + */ + @java.lang.Override + public boolean getIsInMpMode() { + return isInMpMode_; + } + + public static final int QUITMPVALIDTIME_FIELD_NUMBER = 3; + private int quitMpValidTime_; + /** + * uint32 quitMpValidTime = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private boolean isInMpMode_ ; + /** + * bool isInMpMode = 2; + * @return The isInMpMode. + */ + @java.lang.Override + public boolean getIsInMpMode() { + return isInMpMode_; + } + /** + * bool isInMpMode = 2; + * @param value The isInMpMode to set. + * @return This builder for chaining. + */ + public Builder setIsInMpMode(boolean value) { + + isInMpMode_ = value; + onChanged(); + return this; + } + /** + * bool isInMpMode = 2; + * @return This builder for chaining. + */ + public Builder clearIsInMpMode() { + + isInMpMode_ = false; + onChanged(); + return this; + } + + private int quitMpValidTime_ ; + /** + * uint32 quitMpValidTime = 3; + * @return The quitMpValidTime. + */ + @java.lang.Override + public int getQuitMpValidTime() { + return quitMpValidTime_; + } + /** + * uint32 quitMpValidTime = 3; + * @param value The quitMpValidTime to set. + * @return This builder for chaining. + */ + public Builder setQuitMpValidTime(int value) { + + quitMpValidTime_ = value; + onChanged(); + return this; + } + /** + * uint32 quitMpValidTime = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fbdefa2dc --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/H5ActivityIdsNotifyOuterClass.java @@ -0,0 +1,800 @@ +// 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 { + + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + int getH5ActivityMapCount(); + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + boolean containsH5ActivityMap( + int key); + /** + * Use {@link #getH5ActivityMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getH5ActivityMap(); + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + java.util.Map + getH5ActivityMapMap(); + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + int getH5ActivityMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + 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 + 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 + .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 + internalGetH5ActivityMap() { + if (h5ActivityMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + H5ActivityMapDefaultEntryHolder.defaultEntry); + } + return h5ActivityMap_; + } + + public int getH5ActivityMapCount() { + return internalGetH5ActivityMap().getMap().size(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + @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 getH5ActivityMap() { + return getH5ActivityMapMap(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public java.util.Map getH5ActivityMapMap() { + return internalGetH5ActivityMap().getMap(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public int getH5ActivityMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetH5ActivityMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public int getH5ActivityMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetH5ActivityMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetH5ActivityMap() { + if (h5ActivityMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + H5ActivityMapDefaultEntryHolder.defaultEntry); + } + return h5ActivityMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + @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 getH5ActivityMap() { + return getH5ActivityMapMap(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public java.util.Map getH5ActivityMapMap() { + return internalGetH5ActivityMap().getMap(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public int getH5ActivityMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetH5ActivityMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + @java.lang.Override + + public int getH5ActivityMapOrThrow( + int key) { + + java.util.Map map = + internalGetH5ActivityMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearH5ActivityMap() { + internalGetMutableH5ActivityMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + public Builder removeH5ActivityMap( + int key) { + + internalGetMutableH5ActivityMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableH5ActivityMap() { + return internalGetMutableH5ActivityMap().getMutableMap(); + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + public Builder putH5ActivityMap( + int key, + int value) { + + + internalGetMutableH5ActivityMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> h5ActivityMap = 1; + */ + + public Builder putAllH5ActivityMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9f0d98994 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/HeadImageOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 avatarId = 1; + * @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_; + /** + * uint32 avatarId = 1; + * @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 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_ ; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 1; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..459ffbb97 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/HitColliderTypeOuterClass.java @@ -0,0 +1,165 @@ +// 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 { + /** + * HitColliderInvalid = 0; + */ + HitColliderInvalid(0), + /** + * HitColliderHitBox = 1; + */ + HitColliderHitBox(1), + /** + * HitColliderWetHitBox = 2; + */ + HitColliderWetHitBox(2), + /** + * HitColliderHeadBox = 3; + */ + HitColliderHeadBox(3), + UNRECOGNIZED(-1), + ; + + /** + * HitColliderInvalid = 0; + */ + public static final int HitColliderInvalid_VALUE = 0; + /** + * HitColliderHitBox = 1; + */ + public static final int HitColliderHitBox_VALUE = 1; + /** + * HitColliderWetHitBox = 2; + */ + public static final int HitColliderWetHitBox_VALUE = 2; + /** + * HitColliderHeadBox = 3; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HitColliderType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..2a6b217c6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/HitCollisionOuterClass.java @@ -0,0 +1,1202 @@ +// 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 { + + /** + * .HitColliderType hitColliderType = 1; + * @return The enum numeric value on the wire for hitColliderType. + */ + int getHitColliderTypeValue(); + /** + * .HitColliderType hitColliderType = 1; + * @return The hitColliderType. + */ + emu.grasscutter.net.proto.HitColliderTypeOuterClass.HitColliderType getHitColliderType(); + + /** + * int32 hitBoxIndex = 2; + * @return The hitBoxIndex. + */ + int getHitBoxIndex(); + + /** + * .Vector hitPoint = 3; + * @return Whether the hitPoint field is set. + */ + boolean hasHitPoint(); + /** + * .Vector hitPoint = 3; + * @return The hitPoint. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getHitPoint(); + /** + * .Vector hitPoint = 3; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitPointOrBuilder(); + + /** + * .Vector hitDir = 4; + * @return Whether the hitDir field is set. + */ + boolean hasHitDir(); + /** + * .Vector hitDir = 4; + * @return The hitDir. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getHitDir(); + /** + * .Vector hitDir = 4; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitDirOrBuilder(); + + /** + * float attackeeHitForceAngle = 5; + * @return The attackeeHitForceAngle. + */ + float getAttackeeHitForceAngle(); + + /** + * float attackeeHitEntityAngle = 6; + * @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_; + /** + * .HitColliderType hitColliderType = 1; + * @return The enum numeric value on the wire for hitColliderType. + */ + @java.lang.Override public int getHitColliderTypeValue() { + return hitColliderType_; + } + /** + * .HitColliderType hitColliderType = 1; + * @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_; + /** + * int32 hitBoxIndex = 2; + * @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_; + /** + * .Vector hitPoint = 3; + * @return Whether the hitPoint field is set. + */ + @java.lang.Override + public boolean hasHitPoint() { + return hitPoint_ != null; + } + /** + * .Vector hitPoint = 3; + * @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_; + } + /** + * .Vector hitPoint = 3; + */ + @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_; + /** + * .Vector hitDir = 4; + * @return Whether the hitDir field is set. + */ + @java.lang.Override + public boolean hasHitDir() { + return hitDir_ != null; + } + /** + * .Vector hitDir = 4; + * @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_; + } + /** + * .Vector hitDir = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getHitDirOrBuilder() { + return getHitDir(); + } + + public static final int ATTACKEEHITFORCEANGLE_FIELD_NUMBER = 5; + private float attackeeHitForceAngle_; + /** + * float attackeeHitForceAngle = 5; + * @return The attackeeHitForceAngle. + */ + @java.lang.Override + public float getAttackeeHitForceAngle() { + return attackeeHitForceAngle_; + } + + public static final int ATTACKEEHITENTITYANGLE_FIELD_NUMBER = 6; + private float attackeeHitEntityAngle_; + /** + * float attackeeHitEntityAngle = 6; + * @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 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; + /** + * .HitColliderType hitColliderType = 1; + * @return The enum numeric value on the wire for hitColliderType. + */ + @java.lang.Override public int getHitColliderTypeValue() { + return hitColliderType_; + } + /** + * .HitColliderType hitColliderType = 1; + * @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; + } + /** + * .HitColliderType hitColliderType = 1; + * @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; + } + /** + * .HitColliderType hitColliderType = 1; + * @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; + } + /** + * .HitColliderType hitColliderType = 1; + * @return This builder for chaining. + */ + public Builder clearHitColliderType() { + + hitColliderType_ = 0; + onChanged(); + return this; + } + + private int hitBoxIndex_ ; + /** + * int32 hitBoxIndex = 2; + * @return The hitBoxIndex. + */ + @java.lang.Override + public int getHitBoxIndex() { + return hitBoxIndex_; + } + /** + * int32 hitBoxIndex = 2; + * @param value The hitBoxIndex to set. + * @return This builder for chaining. + */ + public Builder setHitBoxIndex(int value) { + + hitBoxIndex_ = value; + onChanged(); + return this; + } + /** + * int32 hitBoxIndex = 2; + * @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_; + /** + * .Vector hitPoint = 3; + * @return Whether the hitPoint field is set. + */ + public boolean hasHitPoint() { + return hitPointBuilder_ != null || hitPoint_ != null; + } + /** + * .Vector hitPoint = 3; + * @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(); + } + } + /** + * .Vector hitPoint = 3; + */ + 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; + } + /** + * .Vector hitPoint = 3; + */ + 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; + } + /** + * .Vector hitPoint = 3; + */ + 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; + } + /** + * .Vector hitPoint = 3; + */ + public Builder clearHitPoint() { + if (hitPointBuilder_ == null) { + hitPoint_ = null; + onChanged(); + } else { + hitPoint_ = null; + hitPointBuilder_ = null; + } + + return this; + } + /** + * .Vector hitPoint = 3; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getHitPointBuilder() { + + onChanged(); + return getHitPointFieldBuilder().getBuilder(); + } + /** + * .Vector hitPoint = 3; + */ + 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_; + } + } + /** + * .Vector hitPoint = 3; + */ + 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_; + /** + * .Vector hitDir = 4; + * @return Whether the hitDir field is set. + */ + public boolean hasHitDir() { + return hitDirBuilder_ != null || hitDir_ != null; + } + /** + * .Vector hitDir = 4; + * @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(); + } + } + /** + * .Vector hitDir = 4; + */ + 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; + } + /** + * .Vector hitDir = 4; + */ + 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; + } + /** + * .Vector hitDir = 4; + */ + 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; + } + /** + * .Vector hitDir = 4; + */ + public Builder clearHitDir() { + if (hitDirBuilder_ == null) { + hitDir_ = null; + onChanged(); + } else { + hitDir_ = null; + hitDirBuilder_ = null; + } + + return this; + } + /** + * .Vector hitDir = 4; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getHitDirBuilder() { + + onChanged(); + return getHitDirFieldBuilder().getBuilder(); + } + /** + * .Vector hitDir = 4; + */ + 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_; + } + } + /** + * .Vector hitDir = 4; + */ + 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_ ; + /** + * float attackeeHitForceAngle = 5; + * @return The attackeeHitForceAngle. + */ + @java.lang.Override + public float getAttackeeHitForceAngle() { + return attackeeHitForceAngle_; + } + /** + * float attackeeHitForceAngle = 5; + * @param value The attackeeHitForceAngle to set. + * @return This builder for chaining. + */ + public Builder setAttackeeHitForceAngle(float value) { + + attackeeHitForceAngle_ = value; + onChanged(); + return this; + } + /** + * float attackeeHitForceAngle = 5; + * @return This builder for chaining. + */ + public Builder clearAttackeeHitForceAngle() { + + attackeeHitForceAngle_ = 0F; + onChanged(); + return this; + } + + private float attackeeHitEntityAngle_ ; + /** + * float attackeeHitEntityAngle = 6; + * @return The attackeeHitEntityAngle. + */ + @java.lang.Override + public float getAttackeeHitEntityAngle() { + return attackeeHitEntityAngle_; + } + /** + * float attackeeHitEntityAngle = 6; + * @param value The attackeeHitEntityAngle to set. + * @return This builder for chaining. + */ + public Builder setAttackeeHitEntityAngle(float value) { + + attackeeHitEntityAngle_ = value; + onChanged(); + return this; + } + /** + * float attackeeHitEntityAngle = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..24c5d96eb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/HostPlayerNotifyOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 hostUid = 1; + * @return The hostUid. + */ + int getHostUid(); + + /** + * uint32 hostPeerId = 2; + * @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_; + /** + * uint32 hostUid = 1; + * @return The hostUid. + */ + @java.lang.Override + public int getHostUid() { + return hostUid_; + } + + public static final int HOSTPEERID_FIELD_NUMBER = 2; + private int hostPeerId_; + /** + * uint32 hostPeerId = 2; + * @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 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_ ; + /** + * uint32 hostUid = 1; + * @return The hostUid. + */ + @java.lang.Override + public int getHostUid() { + return hostUid_; + } + /** + * uint32 hostUid = 1; + * @param value The hostUid to set. + * @return This builder for chaining. + */ + public Builder setHostUid(int value) { + + hostUid_ = value; + onChanged(); + return this; + } + /** + * uint32 hostUid = 1; + * @return This builder for chaining. + */ + public Builder clearHostUid() { + + hostUid_ = 0; + onChanged(); + return this; + } + + private int hostPeerId_ ; + /** + * uint32 hostPeerId = 2; + * @return The hostPeerId. + */ + @java.lang.Override + public int getHostPeerId() { + return hostPeerId_; + } + /** + * uint32 hostPeerId = 2; + * @param value The hostPeerId to set. + * @return This builder for chaining. + */ + public Builder setHostPeerId(int value) { + + hostPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 hostPeerId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6e20c322a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/InterOpTypeOuterClass.java @@ -0,0 +1,145 @@ +// 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 { + /** + * InterOpFinish = 0; + */ + InterOpFinish(0), + /** + * InterOpStart = 1; + */ + InterOpStart(1), + UNRECOGNIZED(-1), + ; + + /** + * InterOpFinish = 0; + */ + public static final int InterOpFinish_VALUE = 0; + /** + * InterOpStart = 1; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InterOpType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..3cae0e6e6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/InteractTypeOuterClass.java @@ -0,0 +1,232 @@ +// 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 { + /** + * InteractNone = 0; + */ + InteractNone(0), + /** + * InteractPickItem = 1; + */ + InteractPickItem(1), + /** + * InteractGather = 2; + */ + InteractGather(2), + /** + * InteractOpenChest = 3; + */ + InteractOpenChest(3), + /** + * InteractOpenStatue = 4; + */ + InteractOpenStatue(4), + /** + * InteractConsum = 5; + */ + InteractConsum(5), + /** + * InteractMpPlayReward = 6; + */ + InteractMpPlayReward(6), + /** + * InteractView = 7; + */ + InteractView(7), + /** + * InteractGeneralReward = 8; + */ + InteractGeneralReward(8), + /** + * InteractMiracleRing = 9; + */ + InteractMiracleRing(9), + /** + * InteractFoundation = 10; + */ + InteractFoundation(10), + UNRECOGNIZED(-1), + ; + + /** + * InteractNone = 0; + */ + public static final int InteractNone_VALUE = 0; + /** + * InteractPickItem = 1; + */ + public static final int InteractPickItem_VALUE = 1; + /** + * InteractGather = 2; + */ + public static final int InteractGather_VALUE = 2; + /** + * InteractOpenChest = 3; + */ + public static final int InteractOpenChest_VALUE = 3; + /** + * InteractOpenStatue = 4; + */ + public static final int InteractOpenStatue_VALUE = 4; + /** + * InteractConsum = 5; + */ + public static final int InteractConsum_VALUE = 5; + /** + * InteractMpPlayReward = 6; + */ + public static final int InteractMpPlayReward_VALUE = 6; + /** + * InteractView = 7; + */ + public static final int InteractView_VALUE = 7; + /** + * InteractGeneralReward = 8; + */ + public static final int InteractGeneralReward_VALUE = 8; + /** + * InteractMiracleRing = 9; + */ + public static final int InteractMiracleRing_VALUE = 9; + /** + * InteractFoundation = 10; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InteractType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..0b5d4aee6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemAddHintNotifyOuterClass.java @@ -0,0 +1,1707 @@ +// 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 { + + /** + * repeated .ItemHint itemList = 1; + */ + java.util.List + getItemListList(); + /** + * repeated .ItemHint itemList = 1; + */ + emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index); + /** + * repeated .ItemHint itemList = 1; + */ + int getItemListCount(); + /** + * repeated .ItemHint itemList = 1; + */ + java.util.List + getItemListOrBuilderList(); + /** + * repeated .ItemHint itemList = 1; + */ + emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getItemListOrBuilder( + int index); + + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * .Vector position = 2; + * @return The position. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); + /** + * .Vector position = 2; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); + + /** + * bool isPositionValid = 3; + * @return The isPositionValid. + */ + boolean getIsPositionValid(); + + /** + * uint32 reason = 4; + * @return The reason. + */ + int getReason(); + + /** + * uint32 questId = 5; + * @return The questId. + */ + int getQuestId(); + + /** + * bool isTransferedFromAvatarCard = 6; + * @return The isTransferedFromAvatarCard. + */ + boolean getIsTransferedFromAvatarCard(); + + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + java.util.List + getOverflowTransformedItemListList(); + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index); + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + int getOverflowTransformedItemListCount(); + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + java.util.List + getOverflowTransformedItemListOrBuilderList(); + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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(); + 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(); + 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 itemList_; + /** + * repeated .ItemHint itemList = 1; + */ + @java.lang.Override + public java.util.List getItemListList() { + return itemList_; + } + /** + * repeated .ItemHint itemList = 1; + */ + @java.lang.Override + public java.util.List + getItemListOrBuilderList() { + return itemList_; + } + /** + * repeated .ItemHint itemList = 1; + */ + @java.lang.Override + public int getItemListCount() { + return itemList_.size(); + } + /** + * repeated .ItemHint itemList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index) { + return itemList_.get(index); + } + /** + * repeated .ItemHint itemList = 1; + */ + @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_; + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return position_ != null; + } + /** + * .Vector position = 2; + * @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_; + } + /** + * .Vector position = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { + return getPosition(); + } + + public static final int ISPOSITIONVALID_FIELD_NUMBER = 3; + private boolean isPositionValid_; + /** + * bool isPositionValid = 3; + * @return The isPositionValid. + */ + @java.lang.Override + public boolean getIsPositionValid() { + return isPositionValid_; + } + + public static final int REASON_FIELD_NUMBER = 4; + private int reason_; + /** + * uint32 reason = 4; + * @return The reason. + */ + @java.lang.Override + public int getReason() { + return reason_; + } + + public static final int QUESTID_FIELD_NUMBER = 5; + private int questId_; + /** + * uint32 questId = 5; + * @return The questId. + */ + @java.lang.Override + public int getQuestId() { + return questId_; + } + + public static final int ISTRANSFEREDFROMAVATARCARD_FIELD_NUMBER = 6; + private boolean isTransferedFromAvatarCard_; + /** + * bool isTransferedFromAvatarCard = 6; + * @return The isTransferedFromAvatarCard. + */ + @java.lang.Override + public boolean getIsTransferedFromAvatarCard() { + return isTransferedFromAvatarCard_; + } + + public static final int OVERFLOWTRANSFORMEDITEMLIST_FIELD_NUMBER = 7; + private java.util.List overflowTransformedItemList_; + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + @java.lang.Override + public java.util.List getOverflowTransformedItemListList() { + return overflowTransformedItemList_; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + @java.lang.Override + public java.util.List + getOverflowTransformedItemListOrBuilderList() { + return overflowTransformedItemList_; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + @java.lang.Override + public int getOverflowTransformedItemListCount() { + return overflowTransformedItemList_.size(); + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index) { + return overflowTransformedItemList_.get(index); + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + @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 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 itemList_ = + java.util.Collections.emptyList(); + private void ensureItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemHint itemList = 1; + */ + public java.util.List getItemListList() { + if (itemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemList_); + } else { + return itemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemHint itemList = 1; + */ + public int getItemListCount() { + if (itemListBuilder_ == null) { + return itemList_.size(); + } else { + return itemListBuilder_.getCount(); + } + } + /** + * repeated .ItemHint itemList = 1; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getItemList(int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); + } else { + return itemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + 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; + } + /** + * repeated .ItemHint itemList = 1; + */ + public Builder addAllItemList( + java.lang.Iterable values) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemList_); + onChanged(); + } else { + itemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemHint itemList = 1; + */ + public Builder clearItemList() { + if (itemListBuilder_ == null) { + itemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemHint itemList = 1; + */ + public Builder removeItemList(int index) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + itemList_.remove(index); + onChanged(); + } else { + itemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemHint itemList = 1; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder getItemListBuilder( + int index) { + return getItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemHint itemList = 1; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getItemListOrBuilder( + int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); } else { + return itemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemHint itemList = 1; + */ + public java.util.List + getItemListOrBuilderList() { + if (itemListBuilder_ != null) { + return itemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemList_); + } + } + /** + * repeated .ItemHint itemList = 1; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addItemListBuilder() { + return getItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); + } + /** + * repeated .ItemHint itemList = 1; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addItemListBuilder( + int index) { + return getItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); + } + /** + * repeated .ItemHint itemList = 1; + */ + public java.util.List + 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_; + /** + * .Vector position = 2; + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return positionBuilder_ != null || position_ != null; + } + /** + * .Vector position = 2; + * @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(); + } + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + 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; + } + /** + * .Vector position = 2; + */ + public Builder clearPosition() { + if (positionBuilder_ == null) { + position_ = null; + onChanged(); + } else { + position_ = null; + positionBuilder_ = null; + } + + return this; + } + /** + * .Vector position = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { + + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * .Vector position = 2; + */ + 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_; + } + } + /** + * .Vector position = 2; + */ + 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_ ; + /** + * bool isPositionValid = 3; + * @return The isPositionValid. + */ + @java.lang.Override + public boolean getIsPositionValid() { + return isPositionValid_; + } + /** + * bool isPositionValid = 3; + * @param value The isPositionValid to set. + * @return This builder for chaining. + */ + public Builder setIsPositionValid(boolean value) { + + isPositionValid_ = value; + onChanged(); + return this; + } + /** + * bool isPositionValid = 3; + * @return This builder for chaining. + */ + public Builder clearIsPositionValid() { + + isPositionValid_ = false; + onChanged(); + return this; + } + + private int reason_ ; + /** + * uint32 reason = 4; + * @return The reason. + */ + @java.lang.Override + public int getReason() { + return reason_; + } + /** + * uint32 reason = 4; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(int value) { + + reason_ = value; + onChanged(); + return this; + } + /** + * uint32 reason = 4; + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = 0; + onChanged(); + return this; + } + + private int questId_ ; + /** + * uint32 questId = 5; + * @return The questId. + */ + @java.lang.Override + public int getQuestId() { + return questId_; + } + /** + * uint32 questId = 5; + * @param value The questId to set. + * @return This builder for chaining. + */ + public Builder setQuestId(int value) { + + questId_ = value; + onChanged(); + return this; + } + /** + * uint32 questId = 5; + * @return This builder for chaining. + */ + public Builder clearQuestId() { + + questId_ = 0; + onChanged(); + return this; + } + + private boolean isTransferedFromAvatarCard_ ; + /** + * bool isTransferedFromAvatarCard = 6; + * @return The isTransferedFromAvatarCard. + */ + @java.lang.Override + public boolean getIsTransferedFromAvatarCard() { + return isTransferedFromAvatarCard_; + } + /** + * bool isTransferedFromAvatarCard = 6; + * @param value The isTransferedFromAvatarCard to set. + * @return This builder for chaining. + */ + public Builder setIsTransferedFromAvatarCard(boolean value) { + + isTransferedFromAvatarCard_ = value; + onChanged(); + return this; + } + /** + * bool isTransferedFromAvatarCard = 6; + * @return This builder for chaining. + */ + public Builder clearIsTransferedFromAvatarCard() { + + isTransferedFromAvatarCard_ = false; + onChanged(); + return this; + } + + private java.util.List overflowTransformedItemList_ = + java.util.Collections.emptyList(); + private void ensureOverflowTransformedItemListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + overflowTransformedItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public java.util.List getOverflowTransformedItemListList() { + if (overflowTransformedItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(overflowTransformedItemList_); + } else { + return overflowTransformedItemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public int getOverflowTransformedItemListCount() { + if (overflowTransformedItemListBuilder_ == null) { + return overflowTransformedItemList_.size(); + } else { + return overflowTransformedItemListBuilder_.getCount(); + } + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint getOverflowTransformedItemList(int index) { + if (overflowTransformedItemListBuilder_ == null) { + return overflowTransformedItemList_.get(index); + } else { + return overflowTransformedItemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + 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; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public Builder addAllOverflowTransformedItemList( + java.lang.Iterable values) { + if (overflowTransformedItemListBuilder_ == null) { + ensureOverflowTransformedItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, overflowTransformedItemList_); + onChanged(); + } else { + overflowTransformedItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public Builder clearOverflowTransformedItemList() { + if (overflowTransformedItemListBuilder_ == null) { + overflowTransformedItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + overflowTransformedItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public Builder removeOverflowTransformedItemList(int index) { + if (overflowTransformedItemListBuilder_ == null) { + ensureOverflowTransformedItemListIsMutable(); + overflowTransformedItemList_.remove(index); + onChanged(); + } else { + overflowTransformedItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder getOverflowTransformedItemListBuilder( + int index) { + return getOverflowTransformedItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHintOrBuilder getOverflowTransformedItemListOrBuilder( + int index) { + if (overflowTransformedItemListBuilder_ == null) { + return overflowTransformedItemList_.get(index); } else { + return overflowTransformedItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public java.util.List + getOverflowTransformedItemListOrBuilderList() { + if (overflowTransformedItemListBuilder_ != null) { + return overflowTransformedItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(overflowTransformedItemList_); + } + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addOverflowTransformedItemListBuilder() { + return getOverflowTransformedItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.Builder addOverflowTransformedItemListBuilder( + int index) { + return getOverflowTransformedItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemHintOuterClass.ItemHint.getDefaultInstance()); + } + /** + * repeated .ItemHint overflowTransformedItemList = 7; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ea9dafdee --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemExceedLimitNotifyOuterClass.java @@ -0,0 +1,879 @@ +// 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 { + + /** + * bool isMaterialExceedLimit = 1; + * @return The isMaterialExceedLimit. + */ + boolean getIsMaterialExceedLimit(); + + /** + * bool isWeaponExceedLimit = 2; + * @return The isWeaponExceedLimit. + */ + boolean getIsWeaponExceedLimit(); + + /** + * bool isReliquaryExceedLimit = 3; + * @return The isReliquaryExceedLimit. + */ + boolean getIsReliquaryExceedLimit(); + + /** + * repeated uint32 itemIdList = 4; + * @return A list containing the itemIdList. + */ + java.util.List getItemIdListList(); + /** + * repeated uint32 itemIdList = 4; + * @return The count of itemIdList. + */ + int getItemIdListCount(); + /** + * repeated uint32 itemIdList = 4; + * @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_; + /** + * bool isMaterialExceedLimit = 1; + * @return The isMaterialExceedLimit. + */ + @java.lang.Override + public boolean getIsMaterialExceedLimit() { + return isMaterialExceedLimit_; + } + + public static final int ISWEAPONEXCEEDLIMIT_FIELD_NUMBER = 2; + private boolean isWeaponExceedLimit_; + /** + * bool isWeaponExceedLimit = 2; + * @return The isWeaponExceedLimit. + */ + @java.lang.Override + public boolean getIsWeaponExceedLimit() { + return isWeaponExceedLimit_; + } + + public static final int ISRELIQUARYEXCEEDLIMIT_FIELD_NUMBER = 3; + private boolean isReliquaryExceedLimit_; + /** + * bool isReliquaryExceedLimit = 3; + * @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_; + /** + * repeated uint32 itemIdList = 4; + * @return A list containing the itemIdList. + */ + @java.lang.Override + public java.util.List + getItemIdListList() { + return itemIdList_; + } + /** + * repeated uint32 itemIdList = 4; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 4; + * @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 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_ ; + /** + * bool isMaterialExceedLimit = 1; + * @return The isMaterialExceedLimit. + */ + @java.lang.Override + public boolean getIsMaterialExceedLimit() { + return isMaterialExceedLimit_; + } + /** + * bool isMaterialExceedLimit = 1; + * @param value The isMaterialExceedLimit to set. + * @return This builder for chaining. + */ + public Builder setIsMaterialExceedLimit(boolean value) { + + isMaterialExceedLimit_ = value; + onChanged(); + return this; + } + /** + * bool isMaterialExceedLimit = 1; + * @return This builder for chaining. + */ + public Builder clearIsMaterialExceedLimit() { + + isMaterialExceedLimit_ = false; + onChanged(); + return this; + } + + private boolean isWeaponExceedLimit_ ; + /** + * bool isWeaponExceedLimit = 2; + * @return The isWeaponExceedLimit. + */ + @java.lang.Override + public boolean getIsWeaponExceedLimit() { + return isWeaponExceedLimit_; + } + /** + * bool isWeaponExceedLimit = 2; + * @param value The isWeaponExceedLimit to set. + * @return This builder for chaining. + */ + public Builder setIsWeaponExceedLimit(boolean value) { + + isWeaponExceedLimit_ = value; + onChanged(); + return this; + } + /** + * bool isWeaponExceedLimit = 2; + * @return This builder for chaining. + */ + public Builder clearIsWeaponExceedLimit() { + + isWeaponExceedLimit_ = false; + onChanged(); + return this; + } + + private boolean isReliquaryExceedLimit_ ; + /** + * bool isReliquaryExceedLimit = 3; + * @return The isReliquaryExceedLimit. + */ + @java.lang.Override + public boolean getIsReliquaryExceedLimit() { + return isReliquaryExceedLimit_; + } + /** + * bool isReliquaryExceedLimit = 3; + * @param value The isReliquaryExceedLimit to set. + * @return This builder for chaining. + */ + public Builder setIsReliquaryExceedLimit(boolean value) { + + isReliquaryExceedLimit_ = value; + onChanged(); + return this; + } + /** + * bool isReliquaryExceedLimit = 3; + * @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; + } + } + /** + * repeated uint32 itemIdList = 4; + * @return A list containing the itemIdList. + */ + public java.util.List + getItemIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(itemIdList_) : itemIdList_; + } + /** + * repeated uint32 itemIdList = 4; + * @return The count of itemIdList. + */ + public int getItemIdListCount() { + return itemIdList_.size(); + } + /** + * repeated uint32 itemIdList = 4; + * @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); + } + /** + * repeated uint32 itemIdList = 4; + * @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; + } + /** + * repeated uint32 itemIdList = 4; + * @param value The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addItemIdList(int value) { + ensureItemIdListIsMutable(); + itemIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 4; + * @param values The itemIdList to add. + * @return This builder for chaining. + */ + public Builder addAllItemIdList( + java.lang.Iterable values) { + ensureItemIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 itemIdList = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c93b3e08f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemGivingReqOuterClass.java @@ -0,0 +1,1245 @@ +// 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 { + + /** + * uint32 givingId = 1; + * @return The givingId. + */ + int getGivingId(); + + /** + * repeated .ItemParam itemParamList = 2; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 2; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 2; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 2; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 2; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index); + + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + int getItemGuidCountMapCount(); + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + boolean containsItemGuidCountMap( + long key); + /** + * Use {@link #getItemGuidCountMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getItemGuidCountMap(); + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + java.util.Map + getItemGuidCountMapMap(); + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + int getItemGuidCountMapOrDefault( + long key, + int defaultValue); + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + 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(); + 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 + 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_; + /** + * uint32 givingId = 1; + * @return The givingId. + */ + @java.lang.Override + public int getGivingId() { + return givingId_; + } + + public static final int ITEMPARAMLIST_FIELD_NUMBER = 2; + private java.util.List itemParamList_; + /** + * repeated .ItemParam itemParamList = 2; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 2; + */ + @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 + .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 + internalGetItemGuidCountMap() { + if (itemGuidCountMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ItemGuidCountMapDefaultEntryHolder.defaultEntry); + } + return itemGuidCountMap_; + } + + public int getItemGuidCountMapCount() { + return internalGetItemGuidCountMap().getMap().size(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + @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 getItemGuidCountMap() { + return getItemGuidCountMapMap(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public java.util.Map getItemGuidCountMapMap() { + return internalGetItemGuidCountMap().getMap(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public int getItemGuidCountMapOrDefault( + long key, + int defaultValue) { + + java.util.Map map = + internalGetItemGuidCountMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public int getItemGuidCountMapOrThrow( + long key) { + + java.util.Map 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 entry + : internalGetItemGuidCountMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 givingId = 1; + * @return The givingId. + */ + @java.lang.Override + public int getGivingId() { + return givingId_; + } + /** + * uint32 givingId = 1; + * @param value The givingId to set. + * @return This builder for chaining. + */ + public Builder setGivingId(int value) { + + givingId_ = value; + onChanged(); + return this; + } + /** + * uint32 givingId = 1; + * @return This builder for chaining. + */ + public Builder clearGivingId() { + + givingId_ = 0; + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 2; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 2; + */ + public java.util.List + 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 + internalGetItemGuidCountMap() { + if (itemGuidCountMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ItemGuidCountMapDefaultEntryHolder.defaultEntry); + } + return itemGuidCountMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + @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 getItemGuidCountMap() { + return getItemGuidCountMapMap(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public java.util.Map getItemGuidCountMapMap() { + return internalGetItemGuidCountMap().getMap(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public int getItemGuidCountMapOrDefault( + long key, + int defaultValue) { + + java.util.Map map = + internalGetItemGuidCountMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + @java.lang.Override + + public int getItemGuidCountMapOrThrow( + long key) { + + java.util.Map map = + internalGetItemGuidCountMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearItemGuidCountMap() { + internalGetMutableItemGuidCountMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + public Builder removeItemGuidCountMap( + long key) { + + internalGetMutableItemGuidCountMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableItemGuidCountMap() { + return internalGetMutableItemGuidCountMap().getMutableMap(); + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + public Builder putItemGuidCountMap( + long key, + int value) { + + + internalGetMutableItemGuidCountMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint64, uint32> itemGuidCountMap = 3; + */ + + public Builder putAllItemGuidCountMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..106a260c7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemGivingRspOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 givingId = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GIVINGID_FIELD_NUMBER = 2; + private int givingId_; + /** + * uint32 givingId = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int givingId_ ; + /** + * uint32 givingId = 2; + * @return The givingId. + */ + @java.lang.Override + public int getGivingId() { + return givingId_; + } + /** + * uint32 givingId = 2; + * @param value The givingId to set. + * @return This builder for chaining. + */ + public Builder setGivingId(int value) { + + givingId_ = value; + onChanged(); + return this; + } + /** + * uint32 givingId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..87397ac2a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemHintOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * uint32 itemId = 1; + * @return The itemId. + */ + int getItemId(); + + /** + * uint32 count = 2; + * @return The count. + */ + int getCount(); + + /** + * bool isNew = 3; + * @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_; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int ISNEW_FIELD_NUMBER = 3; + private boolean isNew_; + /** + * bool isNew = 3; + * @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 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_ ; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 1; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 1; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 2; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 2; + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private boolean isNew_ ; + /** + * bool isNew = 3; + * @return The isNew. + */ + @java.lang.Override + public boolean getIsNew() { + return isNew_; + } + /** + * bool isNew = 3; + * @param value The isNew to set. + * @return This builder for chaining. + */ + public Builder setIsNew(boolean value) { + + isNew_ = value; + onChanged(); + return this; + } + /** + * bool isNew = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ce521bd08 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemOuterClass.java @@ -0,0 +1,1374 @@ +// 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 { + + /** + * uint32 itemId = 1; + * @return The itemId. + */ + int getItemId(); + + /** + * uint64 guid = 2; + * @return The guid. + */ + long getGuid(); + + /** + * .Material material = 5; + * @return Whether the material field is set. + */ + boolean hasMaterial(); + /** + * .Material material = 5; + * @return The material. + */ + emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial(); + /** + * .Material material = 5; + */ + emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder(); + + /** + * .Equip equip = 6; + * @return Whether the equip field is set. + */ + boolean hasEquip(); + /** + * .Equip equip = 6; + * @return The equip. + */ + emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip(); + /** + * .Equip equip = 6; + */ + emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder(); + + /** + * .Furniture furniture = 7; + * @return Whether the furniture field is set. + */ + boolean hasFurniture(); + /** + * .Furniture furniture = 7; + * @return The furniture. + */ + emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture(); + /** + * .Furniture furniture = 7; + */ + 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_; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int GUID_FIELD_NUMBER = 2; + private long guid_; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int MATERIAL_FIELD_NUMBER = 5; + /** + * .Material material = 5; + * @return Whether the material field is set. + */ + @java.lang.Override + public boolean hasMaterial() { + return detailCase_ == 5; + } + /** + * .Material material = 5; + * @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(); + } + /** + * .Material material = 5; + */ + @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; + /** + * .Equip equip = 6; + * @return Whether the equip field is set. + */ + @java.lang.Override + public boolean hasEquip() { + return detailCase_ == 6; + } + /** + * .Equip equip = 6; + * @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(); + } + /** + * .Equip equip = 6; + */ + @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; + /** + * .Furniture furniture = 7; + * @return Whether the furniture field is set. + */ + @java.lang.Override + public boolean hasFurniture() { + return detailCase_ == 7; + } + /** + * .Furniture furniture = 7; + * @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(); + } + /** + * .Furniture furniture = 7; + */ + @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 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_ ; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 1; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 1; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 2; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 2; + * @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_; + /** + * .Material material = 5; + * @return Whether the material field is set. + */ + @java.lang.Override + public boolean hasMaterial() { + return detailCase_ == 5; + } + /** + * .Material material = 5; + * @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(); + } + } + /** + * .Material material = 5; + */ + 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; + } + /** + * .Material material = 5; + */ + 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; + } + /** + * .Material material = 5; + */ + 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; + } + /** + * .Material material = 5; + */ + 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; + } + /** + * .Material material = 5; + */ + public emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder getMaterialBuilder() { + return getMaterialFieldBuilder().getBuilder(); + } + /** + * .Material material = 5; + */ + @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(); + } + } + /** + * .Material material = 5; + */ + 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_; + /** + * .Equip equip = 6; + * @return Whether the equip field is set. + */ + @java.lang.Override + public boolean hasEquip() { + return detailCase_ == 6; + } + /** + * .Equip equip = 6; + * @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(); + } + } + /** + * .Equip equip = 6; + */ + 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; + } + /** + * .Equip equip = 6; + */ + 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; + } + /** + * .Equip equip = 6; + */ + 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; + } + /** + * .Equip equip = 6; + */ + 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; + } + /** + * .Equip equip = 6; + */ + public emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder getEquipBuilder() { + return getEquipFieldBuilder().getBuilder(); + } + /** + * .Equip equip = 6; + */ + @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(); + } + } + /** + * .Equip equip = 6; + */ + 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_; + /** + * .Furniture furniture = 7; + * @return Whether the furniture field is set. + */ + @java.lang.Override + public boolean hasFurniture() { + return detailCase_ == 7; + } + /** + * .Furniture furniture = 7; + * @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(); + } + } + /** + * .Furniture furniture = 7; + */ + 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; + } + /** + * .Furniture furniture = 7; + */ + 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; + } + /** + * .Furniture furniture = 7; + */ + 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; + } + /** + * .Furniture furniture = 7; + */ + 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; + } + /** + * .Furniture furniture = 7; + */ + public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder getFurnitureBuilder() { + return getFurnitureFieldBuilder().getBuilder(); + } + /** + * .Furniture furniture = 7; + */ + @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(); + } + } + /** + * .Furniture furniture = 7; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fe916babf --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ItemParamOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 itemId = 1; + * @return The itemId. + */ + int getItemId(); + + /** + * uint32 count = 2; + * @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_; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + /** + * uint32 count = 2; + * @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 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_ ; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 1; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 1; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 2; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d9d4bc16e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/LifeStateChangeNotifyOuterClass.java @@ -0,0 +1,1009 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + int getLifeState(); + + /** + * uint32 sourceEntityId = 3; + * @return The sourceEntityId. + */ + int getSourceEntityId(); + + /** + * string attackTag = 4; + * @return The attackTag. + */ + java.lang.String getAttackTag(); + /** + * string attackTag = 4; + * @return The bytes for attackTag. + */ + com.google.protobuf.ByteString + getAttackTagBytes(); + + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + int getDieTypeValue(); + /** + * .PlayerDieType dieType = 5; + * @return The dieType. + */ + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); + + /** + * uint32 moveReliableSeq = 6; + * @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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int LIFESTATE_FIELD_NUMBER = 2; + private int lifeState_; + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + + public static final int SOURCEENTITYID_FIELD_NUMBER = 3; + private int sourceEntityId_; + /** + * uint32 sourceEntityId = 3; + * @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_; + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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_; + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 5; + * @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_; + /** + * uint32 moveReliableSeq = 6; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int lifeState_ ; + /** + * uint32 lifeState = 2; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + /** + * uint32 lifeState = 2; + * @param value The lifeState to set. + * @return This builder for chaining. + */ + public Builder setLifeState(int value) { + + lifeState_ = value; + onChanged(); + return this; + } + /** + * uint32 lifeState = 2; + * @return This builder for chaining. + */ + public Builder clearLifeState() { + + lifeState_ = 0; + onChanged(); + return this; + } + + private int sourceEntityId_ ; + /** + * uint32 sourceEntityId = 3; + * @return The sourceEntityId. + */ + @java.lang.Override + public int getSourceEntityId() { + return sourceEntityId_; + } + /** + * uint32 sourceEntityId = 3; + * @param value The sourceEntityId to set. + * @return This builder for chaining. + */ + public Builder setSourceEntityId(int value) { + + sourceEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 sourceEntityId = 3; + * @return This builder for chaining. + */ + public Builder clearSourceEntityId() { + + sourceEntityId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object attackTag_ = ""; + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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; + } + } + /** + * string attackTag = 4; + * @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; + } + /** + * string attackTag = 4; + * @return This builder for chaining. + */ + public Builder clearAttackTag() { + + attackTag_ = getDefaultInstance().getAttackTag(); + onChanged(); + return this; + } + /** + * string attackTag = 4; + * @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; + /** + * .PlayerDieType dieType = 5; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @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; + } + /** + * .PlayerDieType dieType = 5; + * @return This builder for chaining. + */ + public Builder clearDieType() { + + dieType_ = 0; + onChanged(); + return this; + } + + private int moveReliableSeq_ ; + /** + * uint32 moveReliableSeq = 6; + * @return The moveReliableSeq. + */ + @java.lang.Override + public int getMoveReliableSeq() { + return moveReliableSeq_; + } + /** + * uint32 moveReliableSeq = 6; + * @param value The moveReliableSeq to set. + * @return This builder for chaining. + */ + public Builder setMoveReliableSeq(int value) { + + moveReliableSeq_ = value; + onChanged(); + return this; + } + /** + * uint32 moveReliableSeq = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c84f920ac --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MPLevelEntityInfoOuterClass.java @@ -0,0 +1,813 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 authorityPeerId = 2; + * @return The authorityPeerId. + */ + int getAuthorityPeerId(); + + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @return Whether the abilityInfo field is set. + */ + boolean hasAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @return The abilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int AUTHORITYPEERID_FIELD_NUMBER = 2; + private int authorityPeerId_; + /** + * uint32 authorityPeerId = 2; + * @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_; + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @return Whether the abilityInfo field is set. + */ + @java.lang.Override + public boolean hasAbilityInfo() { + return abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @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_; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int authorityPeerId_ ; + /** + * uint32 authorityPeerId = 2; + * @return The authorityPeerId. + */ + @java.lang.Override + public int getAuthorityPeerId() { + return authorityPeerId_; + } + /** + * uint32 authorityPeerId = 2; + * @param value The authorityPeerId to set. + * @return This builder for chaining. + */ + public Builder setAuthorityPeerId(int value) { + + authorityPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 authorityPeerId = 2; + * @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_; + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @return Whether the abilityInfo field is set. + */ + public boolean hasAbilityInfo() { + return abilityInfoBuilder_ != null || abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + * @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(); + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + public Builder clearAbilityInfo() { + if (abilityInfoBuilder_ == null) { + abilityInfo_ = null; + onChanged(); + } else { + abilityInfo_ = null; + abilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { + + onChanged(); + return getAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cdd2e8d8d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MapMarkFromTypeOuterClass.java @@ -0,0 +1,155 @@ +// 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 { + /** + * None = 0; + */ + None(0), + /** + * MonsterType = 1; + */ + MonsterType(1), + /** + * QuestType = 2; + */ + QuestType(2), + UNRECOGNIZED(-1), + ; + + /** + * None = 0; + */ + public static final int None_VALUE = 0; + /** + * MonsterType = 1; + */ + public static final int MonsterType_VALUE = 1; + /** + * QuestType = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MapMarkFromType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..da5b42222 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MapMarkPointOuterClass.java @@ -0,0 +1,1254 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .Vector pos = 3; + * @return Whether the pos field is set. + */ + boolean hasPos(); + /** + * .Vector pos = 3; + * @return The pos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); + /** + * .Vector pos = 3; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); + + /** + * .MapMarkPointType pointType = 4; + * @return The enum numeric value on the wire for pointType. + */ + int getPointTypeValue(); + /** + * .MapMarkPointType pointType = 4; + * @return The pointType. + */ + emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType getPointType(); + + /** + * uint32 monsterId = 5; + * @return The monsterId. + */ + int getMonsterId(); + + /** + * .MapMarkFromType fromType = 6; + * @return The enum numeric value on the wire for fromType. + */ + int getFromTypeValue(); + /** + * .MapMarkFromType fromType = 6; + * @return The fromType. + */ + emu.grasscutter.net.proto.MapMarkFromTypeOuterClass.MapMarkFromType getFromType(); + + /** + * uint32 questId = 7; + * @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_; + /** + * uint32 sceneId = 1; + * @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_; + /** + * string name = 2; + * @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; + } + } + /** + * string name = 2; + * @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_; + /** + * .Vector pos = 3; + * @return Whether the pos field is set. + */ + @java.lang.Override + public boolean hasPos() { + return pos_ != null; + } + /** + * .Vector pos = 3; + * @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_; + } + /** + * .Vector pos = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { + return getPos(); + } + + public static final int POINTTYPE_FIELD_NUMBER = 4; + private int pointType_; + /** + * .MapMarkPointType pointType = 4; + * @return The enum numeric value on the wire for pointType. + */ + @java.lang.Override public int getPointTypeValue() { + return pointType_; + } + /** + * .MapMarkPointType pointType = 4; + * @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_; + /** + * uint32 monsterId = 5; + * @return The monsterId. + */ + @java.lang.Override + public int getMonsterId() { + return monsterId_; + } + + public static final int FROMTYPE_FIELD_NUMBER = 6; + private int fromType_; + /** + * .MapMarkFromType fromType = 6; + * @return The enum numeric value on the wire for fromType. + */ + @java.lang.Override public int getFromTypeValue() { + return fromType_; + } + /** + * .MapMarkFromType fromType = 6; + * @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_; + /** + * uint32 questId = 7; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + * @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; + } + } + /** + * string name = 2; + * @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; + } + } + /** + * string name = 2; + * @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; + } + /** + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + * @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_; + /** + * .Vector pos = 3; + * @return Whether the pos field is set. + */ + public boolean hasPos() { + return posBuilder_ != null || pos_ != null; + } + /** + * .Vector pos = 3; + * @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(); + } + } + /** + * .Vector pos = 3; + */ + 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; + } + /** + * .Vector pos = 3; + */ + 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; + } + /** + * .Vector pos = 3; + */ + 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; + } + /** + * .Vector pos = 3; + */ + public Builder clearPos() { + if (posBuilder_ == null) { + pos_ = null; + onChanged(); + } else { + pos_ = null; + posBuilder_ = null; + } + + return this; + } + /** + * .Vector pos = 3; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { + + onChanged(); + return getPosFieldBuilder().getBuilder(); + } + /** + * .Vector pos = 3; + */ + 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_; + } + } + /** + * .Vector pos = 3; + */ + 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; + /** + * .MapMarkPointType pointType = 4; + * @return The enum numeric value on the wire for pointType. + */ + @java.lang.Override public int getPointTypeValue() { + return pointType_; + } + /** + * .MapMarkPointType pointType = 4; + * @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; + } + /** + * .MapMarkPointType pointType = 4; + * @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; + } + /** + * .MapMarkPointType pointType = 4; + * @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; + } + /** + * .MapMarkPointType pointType = 4; + * @return This builder for chaining. + */ + public Builder clearPointType() { + + pointType_ = 0; + onChanged(); + return this; + } + + private int monsterId_ ; + /** + * uint32 monsterId = 5; + * @return The monsterId. + */ + @java.lang.Override + public int getMonsterId() { + return monsterId_; + } + /** + * uint32 monsterId = 5; + * @param value The monsterId to set. + * @return This builder for chaining. + */ + public Builder setMonsterId(int value) { + + monsterId_ = value; + onChanged(); + return this; + } + /** + * uint32 monsterId = 5; + * @return This builder for chaining. + */ + public Builder clearMonsterId() { + + monsterId_ = 0; + onChanged(); + return this; + } + + private int fromType_ = 0; + /** + * .MapMarkFromType fromType = 6; + * @return The enum numeric value on the wire for fromType. + */ + @java.lang.Override public int getFromTypeValue() { + return fromType_; + } + /** + * .MapMarkFromType fromType = 6; + * @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; + } + /** + * .MapMarkFromType fromType = 6; + * @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; + } + /** + * .MapMarkFromType fromType = 6; + * @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; + } + /** + * .MapMarkFromType fromType = 6; + * @return This builder for chaining. + */ + public Builder clearFromType() { + + fromType_ = 0; + onChanged(); + return this; + } + + private int questId_ ; + /** + * uint32 questId = 7; + * @return The questId. + */ + @java.lang.Override + public int getQuestId() { + return questId_; + } + /** + * uint32 questId = 7; + * @param value The questId to set. + * @return This builder for chaining. + */ + public Builder setQuestId(int value) { + + questId_ = value; + onChanged(); + return this; + } + /** + * uint32 questId = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..28498c3fa --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MapMarkPointTypeOuterClass.java @@ -0,0 +1,182 @@ +// 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 { + /** + * Npc = 0; + */ + Npc(0), + /** + * Quest = 1; + */ + Quest(1), + /** + * Special = 2; + */ + Special(2), + /** + * Mine = 3; + */ + Mine(3), + /** + * Collection = 4; + */ + Collection(4), + /** + * Monster = 5; + */ + Monster(5), + UNRECOGNIZED(-1), + ; + + /** + * Npc = 0; + */ + public static final int Npc_VALUE = 0; + /** + * Quest = 1; + */ + public static final int Quest_VALUE = 1; + /** + * Special = 2; + */ + public static final int Special_VALUE = 2; + /** + * Mine = 3; + */ + public static final int Mine_VALUE = 3; + /** + * Collection = 4; + */ + public static final int Collection_VALUE = 4; + /** + * Monster = 5; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MapMarkPointType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..c54f602b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MarkMapReqOuterClass.java @@ -0,0 +1,985 @@ +// 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 { + + /** + * .Operation op = 1; + * @return The enum numeric value on the wire for op. + */ + int getOpValue(); + /** + * .Operation op = 1; + * @return The op. + */ + emu.grasscutter.net.proto.OperationOuterClass.Operation getOp(); + + /** + * .MapMarkPoint old = 2; + * @return Whether the old field is set. + */ + boolean hasOld(); + /** + * .MapMarkPoint old = 2; + * @return The old. + */ + emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getOld(); + /** + * .MapMarkPoint old = 2; + */ + emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPointOrBuilder getOldOrBuilder(); + + /** + * .MapMarkPoint mark = 3; + * @return Whether the mark field is set. + */ + boolean hasMark(); + /** + * .MapMarkPoint mark = 3; + * @return The mark. + */ + emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint getMark(); + /** + * .MapMarkPoint mark = 3; + */ + 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_; + /** + * .Operation op = 1; + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override public int getOpValue() { + return op_; + } + /** + * .Operation op = 1; + * @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_; + /** + * .MapMarkPoint old = 2; + * @return Whether the old field is set. + */ + @java.lang.Override + public boolean hasOld() { + return old_ != null; + } + /** + * .MapMarkPoint old = 2; + * @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_; + } + /** + * .MapMarkPoint old = 2; + */ + @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_; + /** + * .MapMarkPoint mark = 3; + * @return Whether the mark field is set. + */ + @java.lang.Override + public boolean hasMark() { + return mark_ != null; + } + /** + * .MapMarkPoint mark = 3; + * @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_; + } + /** + * .MapMarkPoint mark = 3; + */ + @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 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; + /** + * .Operation op = 1; + * @return The enum numeric value on the wire for op. + */ + @java.lang.Override public int getOpValue() { + return op_; + } + /** + * .Operation op = 1; + * @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; + } + /** + * .Operation op = 1; + * @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; + } + /** + * .Operation op = 1; + * @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; + } + /** + * .Operation op = 1; + * @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_; + /** + * .MapMarkPoint old = 2; + * @return Whether the old field is set. + */ + public boolean hasOld() { + return oldBuilder_ != null || old_ != null; + } + /** + * .MapMarkPoint old = 2; + * @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(); + } + } + /** + * .MapMarkPoint old = 2; + */ + 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; + } + /** + * .MapMarkPoint old = 2; + */ + 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; + } + /** + * .MapMarkPoint old = 2; + */ + 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; + } + /** + * .MapMarkPoint old = 2; + */ + public Builder clearOld() { + if (oldBuilder_ == null) { + old_ = null; + onChanged(); + } else { + old_ = null; + oldBuilder_ = null; + } + + return this; + } + /** + * .MapMarkPoint old = 2; + */ + public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder getOldBuilder() { + + onChanged(); + return getOldFieldBuilder().getBuilder(); + } + /** + * .MapMarkPoint old = 2; + */ + 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_; + } + } + /** + * .MapMarkPoint old = 2; + */ + 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_; + /** + * .MapMarkPoint mark = 3; + * @return Whether the mark field is set. + */ + public boolean hasMark() { + return markBuilder_ != null || mark_ != null; + } + /** + * .MapMarkPoint mark = 3; + * @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(); + } + } + /** + * .MapMarkPoint mark = 3; + */ + 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; + } + /** + * .MapMarkPoint mark = 3; + */ + 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; + } + /** + * .MapMarkPoint mark = 3; + */ + 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; + } + /** + * .MapMarkPoint mark = 3; + */ + public Builder clearMark() { + if (markBuilder_ == null) { + mark_ = null; + onChanged(); + } else { + mark_ = null; + markBuilder_ = null; + } + + return this; + } + /** + * .MapMarkPoint mark = 3; + */ + public emu.grasscutter.net.proto.MapMarkPointOuterClass.MapMarkPoint.Builder getMarkBuilder() { + + onChanged(); + return getMarkFieldBuilder().getBuilder(); + } + /** + * .MapMarkPoint mark = 3; + */ + 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_; + } + } + /** + * .MapMarkPoint mark = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c6af0f964 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MassivePropParamOuterClass.java @@ -0,0 +1,872 @@ +// 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 { + + /** + * int32 elementReactionType = 1; + * @return The elementReactionType. + */ + int getElementReactionType(); + + /** + * uint32 casterId = 2; + * @return The casterId. + */ + int getCasterId(); + + /** + * repeated float paramList = 3; + * @return A list containing the paramList. + */ + java.util.List getParamListList(); + /** + * repeated float paramList = 3; + * @return The count of paramList. + */ + int getParamListCount(); + /** + * repeated float paramList = 3; + * @param index The index of the element to return. + * @return The paramList at the given index. + */ + float getParamList(int index); + + /** + * uint32 syncFlag = 4; + * @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_; + /** + * int32 elementReactionType = 1; + * @return The elementReactionType. + */ + @java.lang.Override + public int getElementReactionType() { + return elementReactionType_; + } + + public static final int CASTERID_FIELD_NUMBER = 2; + private int casterId_; + /** + * uint32 casterId = 2; + * @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_; + /** + * repeated float paramList = 3; + * @return A list containing the paramList. + */ + @java.lang.Override + public java.util.List + getParamListList() { + return paramList_; + } + /** + * repeated float paramList = 3; + * @return The count of paramList. + */ + public int getParamListCount() { + return paramList_.size(); + } + /** + * repeated float paramList = 3; + * @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_; + /** + * uint32 syncFlag = 4; + * @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 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_ ; + /** + * int32 elementReactionType = 1; + * @return The elementReactionType. + */ + @java.lang.Override + public int getElementReactionType() { + return elementReactionType_; + } + /** + * int32 elementReactionType = 1; + * @param value The elementReactionType to set. + * @return This builder for chaining. + */ + public Builder setElementReactionType(int value) { + + elementReactionType_ = value; + onChanged(); + return this; + } + /** + * int32 elementReactionType = 1; + * @return This builder for chaining. + */ + public Builder clearElementReactionType() { + + elementReactionType_ = 0; + onChanged(); + return this; + } + + private int casterId_ ; + /** + * uint32 casterId = 2; + * @return The casterId. + */ + @java.lang.Override + public int getCasterId() { + return casterId_; + } + /** + * uint32 casterId = 2; + * @param value The casterId to set. + * @return This builder for chaining. + */ + public Builder setCasterId(int value) { + + casterId_ = value; + onChanged(); + return this; + } + /** + * uint32 casterId = 2; + * @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; + } + } + /** + * repeated float paramList = 3; + * @return A list containing the paramList. + */ + public java.util.List + getParamListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(paramList_) : paramList_; + } + /** + * repeated float paramList = 3; + * @return The count of paramList. + */ + public int getParamListCount() { + return paramList_.size(); + } + /** + * repeated float paramList = 3; + * @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); + } + /** + * repeated float paramList = 3; + * @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; + } + /** + * repeated float paramList = 3; + * @param value The paramList to add. + * @return This builder for chaining. + */ + public Builder addParamList(float value) { + ensureParamListIsMutable(); + paramList_.addFloat(value); + onChanged(); + return this; + } + /** + * repeated float paramList = 3; + * @param values The paramList to add. + * @return This builder for chaining. + */ + public Builder addAllParamList( + java.lang.Iterable values) { + ensureParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paramList_); + onChanged(); + return this; + } + /** + * repeated float paramList = 3; + * @return This builder for chaining. + */ + public Builder clearParamList() { + paramList_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int syncFlag_ ; + /** + * uint32 syncFlag = 4; + * @return The syncFlag. + */ + @java.lang.Override + public int getSyncFlag() { + return syncFlag_; + } + /** + * uint32 syncFlag = 4; + * @param value The syncFlag to set. + * @return This builder for chaining. + */ + public Builder setSyncFlag(int value) { + + syncFlag_ = value; + onChanged(); + return this; + } + /** + * uint32 syncFlag = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..083f1ebde --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MassivePropSyncInfoOuterClass.java @@ -0,0 +1,874 @@ +// 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 { + + /** + * int64 id = 1; + * @return The id. + */ + long getId(); + + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + int getPropMapCount(); + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + java.util.Map + getPropMapMap(); + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue); + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + 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 + 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_; + /** + * int64 id = 1; + * @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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * int64 id = 1; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + * int64 id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + onChanged(); + return this; + } + /** + * int64 id = 1; + * @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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.MassivePropParamOuterClass.MassivePropParam getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + 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; + } + /** + * map<int32, .MassivePropParam> propMap = 2; + */ + + public Builder putAllPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c4b182828 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MaterialDeleteInfoOuterClass.java @@ -0,0 +1,1307 @@ +// 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 { + + /** + * bool hasDeleteConfig = 1; + * @return The hasDeleteConfig. + */ + boolean getHasDeleteConfig(); + + /** + * .CountDownDelete countDownDelete = 2; + * @return Whether the countDownDelete field is set. + */ + boolean hasCountDownDelete(); + /** + * .CountDownDelete countDownDelete = 2; + * @return The countDownDelete. + */ + emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete getCountDownDelete(); + /** + * .CountDownDelete countDownDelete = 2; + */ + emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDeleteOrBuilder getCountDownDeleteOrBuilder(); + + /** + * .DateTimeDelete dateDelete = 3; + * @return Whether the dateDelete field is set. + */ + boolean hasDateDelete(); + /** + * .DateTimeDelete dateDelete = 3; + * @return The dateDelete. + */ + emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete getDateDelete(); + /** + * .DateTimeDelete dateDelete = 3; + */ + emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDeleteOrBuilder getDateDeleteOrBuilder(); + + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @return Whether the delayWeekCountDownDelete field is set. + */ + boolean hasDelayWeekCountDownDelete(); + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @return The delayWeekCountDownDelete. + */ + emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete getDelayWeekCountDownDelete(); + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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_; + /** + * bool hasDeleteConfig = 1; + * @return The hasDeleteConfig. + */ + @java.lang.Override + public boolean getHasDeleteConfig() { + return hasDeleteConfig_; + } + + public static final int COUNTDOWNDELETE_FIELD_NUMBER = 2; + /** + * .CountDownDelete countDownDelete = 2; + * @return Whether the countDownDelete field is set. + */ + @java.lang.Override + public boolean hasCountDownDelete() { + return deleteInfoCase_ == 2; + } + /** + * .CountDownDelete countDownDelete = 2; + * @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(); + } + /** + * .CountDownDelete countDownDelete = 2; + */ + @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; + /** + * .DateTimeDelete dateDelete = 3; + * @return Whether the dateDelete field is set. + */ + @java.lang.Override + public boolean hasDateDelete() { + return deleteInfoCase_ == 3; + } + /** + * .DateTimeDelete dateDelete = 3; + * @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(); + } + /** + * .DateTimeDelete dateDelete = 3; + */ + @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; + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @return Whether the delayWeekCountDownDelete field is set. + */ + @java.lang.Override + public boolean hasDelayWeekCountDownDelete() { + return deleteInfoCase_ == 4; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @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(); + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + @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 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_ ; + /** + * bool hasDeleteConfig = 1; + * @return The hasDeleteConfig. + */ + @java.lang.Override + public boolean getHasDeleteConfig() { + return hasDeleteConfig_; + } + /** + * bool hasDeleteConfig = 1; + * @param value The hasDeleteConfig to set. + * @return This builder for chaining. + */ + public Builder setHasDeleteConfig(boolean value) { + + hasDeleteConfig_ = value; + onChanged(); + return this; + } + /** + * bool hasDeleteConfig = 1; + * @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_; + /** + * .CountDownDelete countDownDelete = 2; + * @return Whether the countDownDelete field is set. + */ + @java.lang.Override + public boolean hasCountDownDelete() { + return deleteInfoCase_ == 2; + } + /** + * .CountDownDelete countDownDelete = 2; + * @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(); + } + } + /** + * .CountDownDelete countDownDelete = 2; + */ + 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; + } + /** + * .CountDownDelete countDownDelete = 2; + */ + 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; + } + /** + * .CountDownDelete countDownDelete = 2; + */ + 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; + } + /** + * .CountDownDelete countDownDelete = 2; + */ + 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; + } + /** + * .CountDownDelete countDownDelete = 2; + */ + public emu.grasscutter.net.proto.CountDownDeleteOuterClass.CountDownDelete.Builder getCountDownDeleteBuilder() { + return getCountDownDeleteFieldBuilder().getBuilder(); + } + /** + * .CountDownDelete countDownDelete = 2; + */ + @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(); + } + } + /** + * .CountDownDelete countDownDelete = 2; + */ + 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_; + /** + * .DateTimeDelete dateDelete = 3; + * @return Whether the dateDelete field is set. + */ + @java.lang.Override + public boolean hasDateDelete() { + return deleteInfoCase_ == 3; + } + /** + * .DateTimeDelete dateDelete = 3; + * @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(); + } + } + /** + * .DateTimeDelete dateDelete = 3; + */ + 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; + } + /** + * .DateTimeDelete dateDelete = 3; + */ + 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; + } + /** + * .DateTimeDelete dateDelete = 3; + */ + 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; + } + /** + * .DateTimeDelete dateDelete = 3; + */ + 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; + } + /** + * .DateTimeDelete dateDelete = 3; + */ + public emu.grasscutter.net.proto.DateTimeDeleteOuterClass.DateTimeDelete.Builder getDateDeleteBuilder() { + return getDateDeleteFieldBuilder().getBuilder(); + } + /** + * .DateTimeDelete dateDelete = 3; + */ + @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(); + } + } + /** + * .DateTimeDelete dateDelete = 3; + */ + 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_; + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @return Whether the delayWeekCountDownDelete field is set. + */ + @java.lang.Override + public boolean hasDelayWeekCountDownDelete() { + return deleteInfoCase_ == 4; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + * @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(); + } + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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; + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + public emu.grasscutter.net.proto.DelayWeekCountDownDeleteOuterClass.DelayWeekCountDownDelete.Builder getDelayWeekCountDownDeleteBuilder() { + return getDelayWeekCountDownDeleteFieldBuilder().getBuilder(); + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + @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(); + } + } + /** + * .DelayWeekCountDownDelete delayWeekCountDownDelete = 4; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f45c560d9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MaterialInfoOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint64 guid = 1; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 count = 2; + * @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_; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + /** + * uint32 count = 2; + * @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 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_ ; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 1; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 1; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 2; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..70feb0221 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MaterialOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 count = 1; + * @return The count. + */ + int getCount(); + + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @return Whether the deleteInfo field is set. + */ + boolean hasDeleteInfo(); + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @return The deleteInfo. + */ + emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo getDeleteInfo(); + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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_; + /** + * uint32 count = 1; + * @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_; + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @return Whether the deleteInfo field is set. + */ + @java.lang.Override + public boolean hasDeleteInfo() { + return deleteInfo_ != null; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @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_; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + @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 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_ ; + /** + * uint32 count = 1; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 1; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 1; + * @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_; + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @return Whether the deleteInfo field is set. + */ + public boolean hasDeleteInfo() { + return deleteInfoBuilder_ != null || deleteInfo_ != null; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + * @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(); + } + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + public Builder clearDeleteInfo() { + if (deleteInfoBuilder_ == null) { + deleteInfo_ = null; + onChanged(); + } else { + deleteInfo_ = null; + deleteInfoBuilder_ = null; + } + + return this; + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + public emu.grasscutter.net.proto.MaterialDeleteInfoOuterClass.MaterialDeleteInfo.Builder getDeleteInfoBuilder() { + + onChanged(); + return getDeleteInfoFieldBuilder().getBuilder(); + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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_; + } + } + /** + * .MaterialDeleteInfo deleteInfo = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a8e139b16 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MathQuaternionOuterClass.java @@ -0,0 +1,755 @@ +// 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 { + + /** + * float x = 1; + * @return The x. + */ + float getX(); + + /** + * float y = 2; + * @return The y. + */ + float getY(); + + /** + * float z = 3; + * @return The z. + */ + float getZ(); + + /** + * float w = 4; + * @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_; + /** + * float x = 1; + * @return The x. + */ + @java.lang.Override + public float getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private float y_; + /** + * float y = 2; + * @return The y. + */ + @java.lang.Override + public float getY() { + return y_; + } + + public static final int Z_FIELD_NUMBER = 3; + private float z_; + /** + * float z = 3; + * @return The z. + */ + @java.lang.Override + public float getZ() { + return z_; + } + + public static final int W_FIELD_NUMBER = 4; + private float w_; + /** + * float w = 4; + * @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 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_ ; + /** + * float x = 1; + * @return The x. + */ + @java.lang.Override + public float getX() { + return x_; + } + /** + * float x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(float value) { + + x_ = value; + onChanged(); + return this; + } + /** + * float x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = 0F; + onChanged(); + return this; + } + + private float y_ ; + /** + * float y = 2; + * @return The y. + */ + @java.lang.Override + public float getY() { + return y_; + } + /** + * float y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(float value) { + + y_ = value; + onChanged(); + return this; + } + /** + * float y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = 0F; + onChanged(); + return this; + } + + private float z_ ; + /** + * float z = 3; + * @return The z. + */ + @java.lang.Override + public float getZ() { + return z_; + } + /** + * float z = 3; + * @param value The z to set. + * @return This builder for chaining. + */ + public Builder setZ(float value) { + + z_ = value; + onChanged(); + return this; + } + /** + * float z = 3; + * @return This builder for chaining. + */ + public Builder clearZ() { + + z_ = 0F; + onChanged(); + return this; + } + + private float w_ ; + /** + * float w = 4; + * @return The w. + */ + @java.lang.Override + public float getW() { + return w_; + } + /** + * float w = 4; + * @param value The w to set. + * @return This builder for chaining. + */ + public Builder setW(float value) { + + w_ = value; + onChanged(); + return this; + } + /** + * float w = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..abded6840 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ModifierDurabilityOuterClass.java @@ -0,0 +1,611 @@ +// 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 { + + /** + * float reduceRatio = 1; + * @return The reduceRatio. + */ + float getReduceRatio(); + + /** + * float remainingDurability = 2; + * @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_; + /** + * float reduceRatio = 1; + * @return The reduceRatio. + */ + @java.lang.Override + public float getReduceRatio() { + return reduceRatio_; + } + + public static final int REMAININGDURABILITY_FIELD_NUMBER = 2; + private float remainingDurability_; + /** + * float remainingDurability = 2; + * @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 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_ ; + /** + * float reduceRatio = 1; + * @return The reduceRatio. + */ + @java.lang.Override + public float getReduceRatio() { + return reduceRatio_; + } + /** + * float reduceRatio = 1; + * @param value The reduceRatio to set. + * @return This builder for chaining. + */ + public Builder setReduceRatio(float value) { + + reduceRatio_ = value; + onChanged(); + return this; + } + /** + * float reduceRatio = 1; + * @return This builder for chaining. + */ + public Builder clearReduceRatio() { + + reduceRatio_ = 0F; + onChanged(); + return this; + } + + private float remainingDurability_ ; + /** + * float remainingDurability = 2; + * @return The remainingDurability. + */ + @java.lang.Override + public float getRemainingDurability() { + return remainingDurability_; + } + /** + * float remainingDurability = 2; + * @param value The remainingDurability to set. + * @return This builder for chaining. + */ + public Builder setRemainingDurability(float value) { + + remainingDurability_ = value; + onChanged(); + return this; + } + /** + * float remainingDurability = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3993d3446 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MonsterBornTypeOuterClass.java @@ -0,0 +1,155 @@ +// 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 { + /** + * MonsterBornNone = 0; + */ + MonsterBornNone(0), + /** + * MonsterBornDefault = 1; + */ + MonsterBornDefault(1), + /** + * MonsterBornRandom = 2; + */ + MonsterBornRandom(2), + UNRECOGNIZED(-1), + ; + + /** + * MonsterBornNone = 0; + */ + public static final int MonsterBornNone_VALUE = 0; + /** + * MonsterBornDefault = 1; + */ + public static final int MonsterBornDefault_VALUE = 1; + /** + * MonsterBornRandom = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MonsterBornType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..b78d0805a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MonsterRouteOuterClass.java @@ -0,0 +1,885 @@ +// 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 { + + /** + * .RoutePoint routePoints = 1; + * @return Whether the routePoints field is set. + */ + boolean hasRoutePoints(); + /** + * .RoutePoint routePoints = 1; + * @return The routePoints. + */ + emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(); + /** + * .RoutePoint routePoints = 1; + */ + emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder(); + + /** + * uint32 speedLevel = 2; + * @return The speedLevel. + */ + int getSpeedLevel(); + + /** + * uint32 routeType = 3; + * @return The routeType. + */ + int getRouteType(); + + /** + * float arriveRange = 4; + * @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_; + /** + * .RoutePoint routePoints = 1; + * @return Whether the routePoints field is set. + */ + @java.lang.Override + public boolean hasRoutePoints() { + return routePoints_ != null; + } + /** + * .RoutePoint routePoints = 1; + * @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_; + } + /** + * .RoutePoint routePoints = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder() { + return getRoutePoints(); + } + + public static final int SPEEDLEVEL_FIELD_NUMBER = 2; + private int speedLevel_; + /** + * uint32 speedLevel = 2; + * @return The speedLevel. + */ + @java.lang.Override + public int getSpeedLevel() { + return speedLevel_; + } + + public static final int ROUTETYPE_FIELD_NUMBER = 3; + private int routeType_; + /** + * uint32 routeType = 3; + * @return The routeType. + */ + @java.lang.Override + public int getRouteType() { + return routeType_; + } + + public static final int ARRIVERANGE_FIELD_NUMBER = 4; + private float arriveRange_; + /** + * float arriveRange = 4; + * @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 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_; + /** + * .RoutePoint routePoints = 1; + * @return Whether the routePoints field is set. + */ + public boolean hasRoutePoints() { + return routePointsBuilder_ != null || routePoints_ != null; + } + /** + * .RoutePoint routePoints = 1; + * @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(); + } + } + /** + * .RoutePoint routePoints = 1; + */ + 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; + } + /** + * .RoutePoint routePoints = 1; + */ + 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; + } + /** + * .RoutePoint routePoints = 1; + */ + 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; + } + /** + * .RoutePoint routePoints = 1; + */ + public Builder clearRoutePoints() { + if (routePointsBuilder_ == null) { + routePoints_ = null; + onChanged(); + } else { + routePoints_ = null; + routePointsBuilder_ = null; + } + + return this; + } + /** + * .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder getRoutePointsBuilder() { + + onChanged(); + return getRoutePointsFieldBuilder().getBuilder(); + } + /** + * .RoutePoint routePoints = 1; + */ + 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_; + } + } + /** + * .RoutePoint routePoints = 1; + */ + 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_ ; + /** + * uint32 speedLevel = 2; + * @return The speedLevel. + */ + @java.lang.Override + public int getSpeedLevel() { + return speedLevel_; + } + /** + * uint32 speedLevel = 2; + * @param value The speedLevel to set. + * @return This builder for chaining. + */ + public Builder setSpeedLevel(int value) { + + speedLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 speedLevel = 2; + * @return This builder for chaining. + */ + public Builder clearSpeedLevel() { + + speedLevel_ = 0; + onChanged(); + return this; + } + + private int routeType_ ; + /** + * uint32 routeType = 3; + * @return The routeType. + */ + @java.lang.Override + public int getRouteType() { + return routeType_; + } + /** + * uint32 routeType = 3; + * @param value The routeType to set. + * @return This builder for chaining. + */ + public Builder setRouteType(int value) { + + routeType_ = value; + onChanged(); + return this; + } + /** + * uint32 routeType = 3; + * @return This builder for chaining. + */ + public Builder clearRouteType() { + + routeType_ = 0; + onChanged(); + return this; + } + + private float arriveRange_ ; + /** + * float arriveRange = 4; + * @return The arriveRange. + */ + @java.lang.Override + public float getArriveRange() { + return arriveRange_; + } + /** + * float arriveRange = 4; + * @param value The arriveRange to set. + * @return This builder for chaining. + */ + public Builder setArriveRange(float value) { + + arriveRange_ = value; + onChanged(); + return this; + } + /** + * float arriveRange = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..daf5036f7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MotionInfoOuterClass.java @@ -0,0 +1,1979 @@ +// 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 { + + /** + * .Vector pos = 1; + * @return Whether the pos field is set. + */ + boolean hasPos(); + /** + * .Vector pos = 1; + * @return The pos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); + /** + * .Vector pos = 1; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); + + /** + * .Vector rot = 2; + * @return Whether the rot field is set. + */ + boolean hasRot(); + /** + * .Vector rot = 2; + * @return The rot. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getRot(); + /** + * .Vector rot = 2; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder(); + + /** + * .Vector speed = 3; + * @return Whether the speed field is set. + */ + boolean hasSpeed(); + /** + * .Vector speed = 3; + * @return The speed. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getSpeed(); + /** + * .Vector speed = 3; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpeedOrBuilder(); + + /** + * .MotionState state = 4; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .MotionState state = 4; + * @return The state. + */ + emu.grasscutter.net.proto.MotionStateOuterClass.MotionState getState(); + + /** + * repeated .Vector params = 5; + */ + java.util.List + getParamsList(); + /** + * repeated .Vector params = 5; + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index); + /** + * repeated .Vector params = 5; + */ + int getParamsCount(); + /** + * repeated .Vector params = 5; + */ + java.util.List + getParamsOrBuilderList(); + /** + * repeated .Vector params = 5; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getParamsOrBuilder( + int index); + + /** + * .Vector refPos = 6; + * @return Whether the refPos field is set. + */ + boolean hasRefPos(); + /** + * .Vector refPos = 6; + * @return The refPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getRefPos(); + /** + * .Vector refPos = 6; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRefPosOrBuilder(); + + /** + * uint32 refId = 7; + * @return The refId. + */ + int getRefId(); + + /** + * uint32 sceneTime = 8; + * @return The sceneTime. + */ + int getSceneTime(); + + /** + * uint32 intervalVelocity = 9; + * @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(); + 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_; + /** + * .Vector pos = 1; + * @return Whether the pos field is set. + */ + @java.lang.Override + public boolean hasPos() { + return pos_ != null; + } + /** + * .Vector pos = 1; + * @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_; + } + /** + * .Vector pos = 1; + */ + @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_; + /** + * .Vector rot = 2; + * @return Whether the rot field is set. + */ + @java.lang.Override + public boolean hasRot() { + return rot_ != null; + } + /** + * .Vector rot = 2; + * @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_; + } + /** + * .Vector rot = 2; + */ + @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_; + /** + * .Vector speed = 3; + * @return Whether the speed field is set. + */ + @java.lang.Override + public boolean hasSpeed() { + return speed_ != null; + } + /** + * .Vector speed = 3; + * @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_; + } + /** + * .Vector speed = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getSpeedOrBuilder() { + return getSpeed(); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** + * .MotionState state = 4; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .MotionState state = 4; + * @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 params_; + /** + * repeated .Vector params = 5; + */ + @java.lang.Override + public java.util.List getParamsList() { + return params_; + } + /** + * repeated .Vector params = 5; + */ + @java.lang.Override + public java.util.List + getParamsOrBuilderList() { + return params_; + } + /** + * repeated .Vector params = 5; + */ + @java.lang.Override + public int getParamsCount() { + return params_.size(); + } + /** + * repeated .Vector params = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index) { + return params_.get(index); + } + /** + * repeated .Vector params = 5; + */ + @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_; + /** + * .Vector refPos = 6; + * @return Whether the refPos field is set. + */ + @java.lang.Override + public boolean hasRefPos() { + return refPos_ != null; + } + /** + * .Vector refPos = 6; + * @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_; + } + /** + * .Vector refPos = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRefPosOrBuilder() { + return getRefPos(); + } + + public static final int REFID_FIELD_NUMBER = 7; + private int refId_; + /** + * uint32 refId = 7; + * @return The refId. + */ + @java.lang.Override + public int getRefId() { + return refId_; + } + + public static final int SCENETIME_FIELD_NUMBER = 8; + private int sceneTime_; + /** + * uint32 sceneTime = 8; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + + public static final int INTERVALVELOCITY_FIELD_NUMBER = 9; + private int intervalVelocity_; + /** + * uint32 intervalVelocity = 9; + * @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 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_; + /** + * .Vector pos = 1; + * @return Whether the pos field is set. + */ + public boolean hasPos() { + return posBuilder_ != null || pos_ != null; + } + /** + * .Vector pos = 1; + * @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(); + } + } + /** + * .Vector pos = 1; + */ + 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; + } + /** + * .Vector pos = 1; + */ + 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; + } + /** + * .Vector pos = 1; + */ + 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; + } + /** + * .Vector pos = 1; + */ + public Builder clearPos() { + if (posBuilder_ == null) { + pos_ = null; + onChanged(); + } else { + pos_ = null; + posBuilder_ = null; + } + + return this; + } + /** + * .Vector pos = 1; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { + + onChanged(); + return getPosFieldBuilder().getBuilder(); + } + /** + * .Vector pos = 1; + */ + 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_; + } + } + /** + * .Vector pos = 1; + */ + 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_; + /** + * .Vector rot = 2; + * @return Whether the rot field is set. + */ + public boolean hasRot() { + return rotBuilder_ != null || rot_ != null; + } + /** + * .Vector rot = 2; + * @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(); + } + } + /** + * .Vector rot = 2; + */ + 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; + } + /** + * .Vector rot = 2; + */ + 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; + } + /** + * .Vector rot = 2; + */ + 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; + } + /** + * .Vector rot = 2; + */ + public Builder clearRot() { + if (rotBuilder_ == null) { + rot_ = null; + onChanged(); + } else { + rot_ = null; + rotBuilder_ = null; + } + + return this; + } + /** + * .Vector rot = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() { + + onChanged(); + return getRotFieldBuilder().getBuilder(); + } + /** + * .Vector rot = 2; + */ + 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_; + } + } + /** + * .Vector rot = 2; + */ + 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_; + /** + * .Vector speed = 3; + * @return Whether the speed field is set. + */ + public boolean hasSpeed() { + return speedBuilder_ != null || speed_ != null; + } + /** + * .Vector speed = 3; + * @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(); + } + } + /** + * .Vector speed = 3; + */ + 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; + } + /** + * .Vector speed = 3; + */ + 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; + } + /** + * .Vector speed = 3; + */ + 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; + } + /** + * .Vector speed = 3; + */ + public Builder clearSpeed() { + if (speedBuilder_ == null) { + speed_ = null; + onChanged(); + } else { + speed_ = null; + speedBuilder_ = null; + } + + return this; + } + /** + * .Vector speed = 3; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getSpeedBuilder() { + + onChanged(); + return getSpeedFieldBuilder().getBuilder(); + } + /** + * .Vector speed = 3; + */ + 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_; + } + } + /** + * .Vector speed = 3; + */ + 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; + /** + * .MotionState state = 4; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .MotionState state = 4; + * @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; + } + /** + * .MotionState state = 4; + * @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; + } + /** + * .MotionState state = 4; + * @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; + } + /** + * .MotionState state = 4; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.util.List params_ = + java.util.Collections.emptyList(); + private void ensureParamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + params_ = new java.util.ArrayList(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_; + + /** + * repeated .Vector params = 5; + */ + public java.util.List getParamsList() { + if (paramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(params_); + } else { + return paramsBuilder_.getMessageList(); + } + } + /** + * repeated .Vector params = 5; + */ + public int getParamsCount() { + if (paramsBuilder_ == null) { + return params_.size(); + } else { + return paramsBuilder_.getCount(); + } + } + /** + * repeated .Vector params = 5; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector getParams(int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessage(index); + } + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + 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; + } + /** + * repeated .Vector params = 5; + */ + public Builder addAllParams( + java.lang.Iterable values) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, params_); + onChanged(); + } else { + paramsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Vector params = 5; + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + paramsBuilder_.clear(); + } + return this; + } + /** + * repeated .Vector params = 5; + */ + public Builder removeParams(int index) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.remove(index); + onChanged(); + } else { + paramsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Vector params = 5; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getParamsBuilder( + int index) { + return getParamsFieldBuilder().getBuilder(index); + } + /** + * repeated .Vector params = 5; + */ + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getParamsOrBuilder( + int index) { + if (paramsBuilder_ == null) { + return params_.get(index); } else { + return paramsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Vector params = 5; + */ + public java.util.List + getParamsOrBuilderList() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(params_); + } + } + /** + * repeated .Vector params = 5; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addParamsBuilder() { + return getParamsFieldBuilder().addBuilder( + emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()); + } + /** + * repeated .Vector params = 5; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder addParamsBuilder( + int index) { + return getParamsFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance()); + } + /** + * repeated .Vector params = 5; + */ + public java.util.List + 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_; + /** + * .Vector refPos = 6; + * @return Whether the refPos field is set. + */ + public boolean hasRefPos() { + return refPosBuilder_ != null || refPos_ != null; + } + /** + * .Vector refPos = 6; + * @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(); + } + } + /** + * .Vector refPos = 6; + */ + 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; + } + /** + * .Vector refPos = 6; + */ + 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; + } + /** + * .Vector refPos = 6; + */ + 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; + } + /** + * .Vector refPos = 6; + */ + public Builder clearRefPos() { + if (refPosBuilder_ == null) { + refPos_ = null; + onChanged(); + } else { + refPos_ = null; + refPosBuilder_ = null; + } + + return this; + } + /** + * .Vector refPos = 6; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRefPosBuilder() { + + onChanged(); + return getRefPosFieldBuilder().getBuilder(); + } + /** + * .Vector refPos = 6; + */ + 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_; + } + } + /** + * .Vector refPos = 6; + */ + 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_ ; + /** + * uint32 refId = 7; + * @return The refId. + */ + @java.lang.Override + public int getRefId() { + return refId_; + } + /** + * uint32 refId = 7; + * @param value The refId to set. + * @return This builder for chaining. + */ + public Builder setRefId(int value) { + + refId_ = value; + onChanged(); + return this; + } + /** + * uint32 refId = 7; + * @return This builder for chaining. + */ + public Builder clearRefId() { + + refId_ = 0; + onChanged(); + return this; + } + + private int sceneTime_ ; + /** + * uint32 sceneTime = 8; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + /** + * uint32 sceneTime = 8; + * @param value The sceneTime to set. + * @return This builder for chaining. + */ + public Builder setSceneTime(int value) { + + sceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneTime = 8; + * @return This builder for chaining. + */ + public Builder clearSceneTime() { + + sceneTime_ = 0; + onChanged(); + return this; + } + + private int intervalVelocity_ ; + /** + * uint32 intervalVelocity = 9; + * @return The intervalVelocity. + */ + @java.lang.Override + public int getIntervalVelocity() { + return intervalVelocity_; + } + /** + * uint32 intervalVelocity = 9; + * @param value The intervalVelocity to set. + * @return This builder for chaining. + */ + public Builder setIntervalVelocity(int value) { + + intervalVelocity_ = value; + onChanged(); + return this; + } + /** + * uint32 intervalVelocity = 9; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6e87f96f2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MotionStateOuterClass.java @@ -0,0 +1,574 @@ +// 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 { + /** + * MotionNone = 0; + */ + MotionNone(0), + /** + * MotionReset = 1; + */ + MotionReset(1), + /** + * MotionStandby = 2; + */ + MotionStandby(2), + /** + * MotionStandbyMove = 3; + */ + MotionStandbyMove(3), + /** + * MotionWalk = 4; + */ + MotionWalk(4), + /** + * MotionRun = 5; + */ + MotionRun(5), + /** + * MotionDash = 6; + */ + MotionDash(6), + /** + * MotionClimb = 7; + */ + MotionClimb(7), + /** + * MotionClimbJump = 8; + */ + MotionClimbJump(8), + /** + * MotionStandbyToClimb = 9; + */ + MotionStandbyToClimb(9), + /** + * MotionFight = 10; + */ + MotionFight(10), + /** + * MotionJump = 11; + */ + MotionJump(11), + /** + * MotionDrop = 12; + */ + MotionDrop(12), + /** + * MotionFly = 13; + */ + MotionFly(13), + /** + * MotionSwimMove = 14; + */ + MotionSwimMove(14), + /** + * MotionSwimIdle = 15; + */ + MotionSwimIdle(15), + /** + * MotionSwimDash = 16; + */ + MotionSwimDash(16), + /** + * MotionSwimJump = 17; + */ + MotionSwimJump(17), + /** + * MotionSlip = 18; + */ + MotionSlip(18), + /** + * MotionGoUpstairs = 19; + */ + MotionGoUpstairs(19), + /** + * MotionFallOnGround = 20; + */ + MotionFallOnGround(20), + /** + * MotionJumpUpWallForStandby = 21; + */ + MotionJumpUpWallForStandby(21), + /** + * MotionJumpOffWall = 22; + */ + MotionJumpOffWall(22), + /** + * MotionPoweredFly = 23; + */ + MotionPoweredFly(23), + /** + * MotionLadderIdle = 24; + */ + MotionLadderIdle(24), + /** + * MotionLadderMove = 25; + */ + MotionLadderMove(25), + /** + * MotionLadderSlip = 26; + */ + MotionLadderSlip(26), + /** + * MotionStandbyToLadder = 27; + */ + MotionStandbyToLadder(27), + /** + * MotionLadderToStandby = 28; + */ + MotionLadderToStandby(28), + /** + * MotionDangerStandby = 29; + */ + MotionDangerStandby(29), + /** + * MotionDangerStandbyMove = 30; + */ + MotionDangerStandbyMove(30), + /** + * MotionDangerWalk = 31; + */ + MotionDangerWalk(31), + /** + * MotionDangerRun = 32; + */ + MotionDangerRun(32), + /** + * MotionDangerDash = 33; + */ + MotionDangerDash(33), + /** + * MotionCrouchIdle = 34; + */ + MotionCrouchIdle(34), + /** + * MotionCrouchMove = 35; + */ + MotionCrouchMove(35), + /** + * MotionCrouchRoll = 36; + */ + MotionCrouchRoll(36), + /** + * MotionNotify = 37; + */ + MotionNotify(37), + /** + * MotionLandSpeed = 38; + */ + MotionLandSpeed(38), + /** + * MotionMoveFailAck = 39; + */ + MotionMoveFailAck(39), + /** + * MotionWaterfall = 40; + */ + MotionWaterfall(40), + /** + * MotionDashBeforeShake = 41; + */ + MotionDashBeforeShake(41), + /** + * MotionSitIdle = 42; + */ + MotionSitIdle(42), + /** + * MotionForceSetPos = 43; + */ + MotionForceSetPos(43), + /** + * MotionQuestForceDrag = 44; + */ + MotionQuestForceDrag(44), + /** + * MotionFollowRoute = 45; + */ + MotionFollowRoute(45), + /** + * MotionNum = 46; + */ + MotionNum(46), + UNRECOGNIZED(-1), + ; + + /** + * MotionNone = 0; + */ + public static final int MotionNone_VALUE = 0; + /** + * MotionReset = 1; + */ + public static final int MotionReset_VALUE = 1; + /** + * MotionStandby = 2; + */ + public static final int MotionStandby_VALUE = 2; + /** + * MotionStandbyMove = 3; + */ + public static final int MotionStandbyMove_VALUE = 3; + /** + * MotionWalk = 4; + */ + public static final int MotionWalk_VALUE = 4; + /** + * MotionRun = 5; + */ + public static final int MotionRun_VALUE = 5; + /** + * MotionDash = 6; + */ + public static final int MotionDash_VALUE = 6; + /** + * MotionClimb = 7; + */ + public static final int MotionClimb_VALUE = 7; + /** + * MotionClimbJump = 8; + */ + public static final int MotionClimbJump_VALUE = 8; + /** + * MotionStandbyToClimb = 9; + */ + public static final int MotionStandbyToClimb_VALUE = 9; + /** + * MotionFight = 10; + */ + public static final int MotionFight_VALUE = 10; + /** + * MotionJump = 11; + */ + public static final int MotionJump_VALUE = 11; + /** + * MotionDrop = 12; + */ + public static final int MotionDrop_VALUE = 12; + /** + * MotionFly = 13; + */ + public static final int MotionFly_VALUE = 13; + /** + * MotionSwimMove = 14; + */ + public static final int MotionSwimMove_VALUE = 14; + /** + * MotionSwimIdle = 15; + */ + public static final int MotionSwimIdle_VALUE = 15; + /** + * MotionSwimDash = 16; + */ + public static final int MotionSwimDash_VALUE = 16; + /** + * MotionSwimJump = 17; + */ + public static final int MotionSwimJump_VALUE = 17; + /** + * MotionSlip = 18; + */ + public static final int MotionSlip_VALUE = 18; + /** + * MotionGoUpstairs = 19; + */ + public static final int MotionGoUpstairs_VALUE = 19; + /** + * MotionFallOnGround = 20; + */ + public static final int MotionFallOnGround_VALUE = 20; + /** + * MotionJumpUpWallForStandby = 21; + */ + public static final int MotionJumpUpWallForStandby_VALUE = 21; + /** + * MotionJumpOffWall = 22; + */ + public static final int MotionJumpOffWall_VALUE = 22; + /** + * MotionPoweredFly = 23; + */ + public static final int MotionPoweredFly_VALUE = 23; + /** + * MotionLadderIdle = 24; + */ + public static final int MotionLadderIdle_VALUE = 24; + /** + * MotionLadderMove = 25; + */ + public static final int MotionLadderMove_VALUE = 25; + /** + * MotionLadderSlip = 26; + */ + public static final int MotionLadderSlip_VALUE = 26; + /** + * MotionStandbyToLadder = 27; + */ + public static final int MotionStandbyToLadder_VALUE = 27; + /** + * MotionLadderToStandby = 28; + */ + public static final int MotionLadderToStandby_VALUE = 28; + /** + * MotionDangerStandby = 29; + */ + public static final int MotionDangerStandby_VALUE = 29; + /** + * MotionDangerStandbyMove = 30; + */ + public static final int MotionDangerStandbyMove_VALUE = 30; + /** + * MotionDangerWalk = 31; + */ + public static final int MotionDangerWalk_VALUE = 31; + /** + * MotionDangerRun = 32; + */ + public static final int MotionDangerRun_VALUE = 32; + /** + * MotionDangerDash = 33; + */ + public static final int MotionDangerDash_VALUE = 33; + /** + * MotionCrouchIdle = 34; + */ + public static final int MotionCrouchIdle_VALUE = 34; + /** + * MotionCrouchMove = 35; + */ + public static final int MotionCrouchMove_VALUE = 35; + /** + * MotionCrouchRoll = 36; + */ + public static final int MotionCrouchRoll_VALUE = 36; + /** + * MotionNotify = 37; + */ + public static final int MotionNotify_VALUE = 37; + /** + * MotionLandSpeed = 38; + */ + public static final int MotionLandSpeed_VALUE = 38; + /** + * MotionMoveFailAck = 39; + */ + public static final int MotionMoveFailAck_VALUE = 39; + /** + * MotionWaterfall = 40; + */ + public static final int MotionWaterfall_VALUE = 40; + /** + * MotionDashBeforeShake = 41; + */ + public static final int MotionDashBeforeShake_VALUE = 41; + /** + * MotionSitIdle = 42; + */ + public static final int MotionSitIdle_VALUE = 42; + /** + * MotionForceSetPos = 43; + */ + public static final int MotionForceSetPos_VALUE = 43; + /** + * MotionQuestForceDrag = 44; + */ + public static final int MotionQuestForceDrag_VALUE = 44; + /** + * MotionFollowRoute = 45; + */ + public static final int MotionFollowRoute_VALUE = 45; + /** + * MotionNum = 46; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MotionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..d03ca6bf5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MovingPlatformTypeOuterClass.java @@ -0,0 +1,466 @@ +// 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 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..528a7d412 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/MpSettingTypeOuterClass.java @@ -0,0 +1,155 @@ +// 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 { + /** + * MpSettingNoEnter = 0; + */ + MpSettingNoEnter(0), + /** + * MpSettingEnterFreely = 1; + */ + MpSettingEnterFreely(1), + /** + * MpSettingEnterAfterApply = 2; + */ + MpSettingEnterAfterApply(2), + UNRECOGNIZED(-1), + ; + + /** + * MpSettingNoEnter = 0; + */ + public static final int MpSettingNoEnter_VALUE = 0; + /** + * MpSettingEnterFreely = 1; + */ + public static final int MpSettingEnterFreely_VALUE = 1; + /** + * MpSettingEnterAfterApply = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MpSettingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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/OnlinePlayerInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/OnlinePlayerInfoOuterClass.java new file mode 100644 index 000000000..98e9c3c42 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/OnlinePlayerInfoOuterClass.java @@ -0,0 +1,1784 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * string nickname = 2; + * @return The nickname. + */ + java.lang.String getNickname(); + /** + * string nickname = 2; + * @return The bytes for nickname. + */ + com.google.protobuf.ByteString + getNicknameBytes(); + + /** + * uint32 playerLevel = 3; + * @return The playerLevel. + */ + int getPlayerLevel(); + + /** + * .MpSettingType mpSettingType = 5; + * @return The enum numeric value on the wire for mpSettingType. + */ + int getMpSettingTypeValue(); + /** + * .MpSettingType mpSettingType = 5; + * @return The mpSettingType. + */ + emu.grasscutter.net.proto.MpSettingTypeOuterClass.MpSettingType getMpSettingType(); + + /** + * uint32 curPlayerNumInWorld = 6; + * @return The curPlayerNumInWorld. + */ + int getCurPlayerNumInWorld(); + + /** + * uint32 worldLevel = 7; + * @return The worldLevel. + */ + int getWorldLevel(); + + /** + * string onlineId = 8; + * @return The onlineId. + */ + java.lang.String getOnlineId(); + /** + * string onlineId = 8; + * @return The bytes for onlineId. + */ + com.google.protobuf.ByteString + getOnlineIdBytes(); + + /** + * uint32 nameCardId = 9; + * @return The nameCardId. + */ + int getNameCardId(); + + /** + * repeated uint32 blacklistUidList = 10; + * @return A list containing the blacklistUidList. + */ + java.util.List getBlacklistUidListList(); + /** + * repeated uint32 blacklistUidList = 10; + * @return The count of blacklistUidList. + */ + int getBlacklistUidListCount(); + /** + * repeated uint32 blacklistUidList = 10; + * @param index The index of the element to return. + * @return The blacklistUidList at the given index. + */ + int getBlacklistUidList(int index); + + /** + * string signature = 11; + * @return The signature. + */ + java.lang.String getSignature(); + /** + * string signature = 11; + * @return The bytes for signature. + */ + com.google.protobuf.ByteString + getSignatureBytes(); + + /** + * .HeadImage avatar = 12; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .HeadImage avatar = 12; + * @return The avatar. + */ + emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); + /** + * .HeadImage avatar = 12; + */ + 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_; + /** + * uint32 uid = 1; + * @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_; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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_; + /** + * uint32 playerLevel = 3; + * @return The playerLevel. + */ + @java.lang.Override + public int getPlayerLevel() { + return playerLevel_; + } + + public static final int MPSETTINGTYPE_FIELD_NUMBER = 5; + private int mpSettingType_; + /** + * .MpSettingType mpSettingType = 5; + * @return The enum numeric value on the wire for mpSettingType. + */ + @java.lang.Override public int getMpSettingTypeValue() { + return mpSettingType_; + } + /** + * .MpSettingType mpSettingType = 5; + * @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_; + /** + * uint32 curPlayerNumInWorld = 6; + * @return The curPlayerNumInWorld. + */ + @java.lang.Override + public int getCurPlayerNumInWorld() { + return curPlayerNumInWorld_; + } + + public static final int WORLDLEVEL_FIELD_NUMBER = 7; + private int worldLevel_; + /** + * uint32 worldLevel = 7; + * @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_; + /** + * string onlineId = 8; + * @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; + } + } + /** + * string onlineId = 8; + * @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_; + /** + * uint32 nameCardId = 9; + * @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_; + /** + * repeated uint32 blacklistUidList = 10; + * @return A list containing the blacklistUidList. + */ + @java.lang.Override + public java.util.List + getBlacklistUidListList() { + return blacklistUidList_; + } + /** + * repeated uint32 blacklistUidList = 10; + * @return The count of blacklistUidList. + */ + public int getBlacklistUidListCount() { + return blacklistUidList_.size(); + } + /** + * repeated uint32 blacklistUidList = 10; + * @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_; + /** + * string signature = 11; + * @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; + } + } + /** + * string signature = 11; + * @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_; + /** + * .HeadImage avatar = 12; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return avatar_ != null; + } + /** + * .HeadImage avatar = 12; + * @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_; + } + /** + * .HeadImage avatar = 12; + */ + @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nickname_ = ""; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + /** + * string nickname = 2; + * @return This builder for chaining. + */ + public Builder clearNickname() { + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + * string nickname = 2; + * @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_ ; + /** + * uint32 playerLevel = 3; + * @return The playerLevel. + */ + @java.lang.Override + public int getPlayerLevel() { + return playerLevel_; + } + /** + * uint32 playerLevel = 3; + * @param value The playerLevel to set. + * @return This builder for chaining. + */ + public Builder setPlayerLevel(int value) { + + playerLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 playerLevel = 3; + * @return This builder for chaining. + */ + public Builder clearPlayerLevel() { + + playerLevel_ = 0; + onChanged(); + return this; + } + + private int mpSettingType_ = 0; + /** + * .MpSettingType mpSettingType = 5; + * @return The enum numeric value on the wire for mpSettingType. + */ + @java.lang.Override public int getMpSettingTypeValue() { + return mpSettingType_; + } + /** + * .MpSettingType mpSettingType = 5; + * @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; + } + /** + * .MpSettingType mpSettingType = 5; + * @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; + } + /** + * .MpSettingType mpSettingType = 5; + * @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; + } + /** + * .MpSettingType mpSettingType = 5; + * @return This builder for chaining. + */ + public Builder clearMpSettingType() { + + mpSettingType_ = 0; + onChanged(); + return this; + } + + private int curPlayerNumInWorld_ ; + /** + * uint32 curPlayerNumInWorld = 6; + * @return The curPlayerNumInWorld. + */ + @java.lang.Override + public int getCurPlayerNumInWorld() { + return curPlayerNumInWorld_; + } + /** + * uint32 curPlayerNumInWorld = 6; + * @param value The curPlayerNumInWorld to set. + * @return This builder for chaining. + */ + public Builder setCurPlayerNumInWorld(int value) { + + curPlayerNumInWorld_ = value; + onChanged(); + return this; + } + /** + * uint32 curPlayerNumInWorld = 6; + * @return This builder for chaining. + */ + public Builder clearCurPlayerNumInWorld() { + + curPlayerNumInWorld_ = 0; + onChanged(); + return this; + } + + private int worldLevel_ ; + /** + * uint32 worldLevel = 7; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + /** + * uint32 worldLevel = 7; + * @param value The worldLevel to set. + * @return This builder for chaining. + */ + public Builder setWorldLevel(int value) { + + worldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 worldLevel = 7; + * @return This builder for chaining. + */ + public Builder clearWorldLevel() { + + worldLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object onlineId_ = ""; + /** + * string onlineId = 8; + * @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; + } + } + /** + * string onlineId = 8; + * @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; + } + } + /** + * string onlineId = 8; + * @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; + } + /** + * string onlineId = 8; + * @return This builder for chaining. + */ + public Builder clearOnlineId() { + + onlineId_ = getDefaultInstance().getOnlineId(); + onChanged(); + return this; + } + /** + * string onlineId = 8; + * @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_ ; + /** + * uint32 nameCardId = 9; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 9; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 9; + * @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; + } + } + /** + * repeated uint32 blacklistUidList = 10; + * @return A list containing the blacklistUidList. + */ + public java.util.List + getBlacklistUidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(blacklistUidList_) : blacklistUidList_; + } + /** + * repeated uint32 blacklistUidList = 10; + * @return The count of blacklistUidList. + */ + public int getBlacklistUidListCount() { + return blacklistUidList_.size(); + } + /** + * repeated uint32 blacklistUidList = 10; + * @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); + } + /** + * repeated uint32 blacklistUidList = 10; + * @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; + } + /** + * repeated uint32 blacklistUidList = 10; + * @param value The blacklistUidList to add. + * @return This builder for chaining. + */ + public Builder addBlacklistUidList(int value) { + ensureBlacklistUidListIsMutable(); + blacklistUidList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 blacklistUidList = 10; + * @param values The blacklistUidList to add. + * @return This builder for chaining. + */ + public Builder addAllBlacklistUidList( + java.lang.Iterable values) { + ensureBlacklistUidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistUidList_); + onChanged(); + return this; + } + /** + * repeated uint32 blacklistUidList = 10; + * @return This builder for chaining. + */ + public Builder clearBlacklistUidList() { + blacklistUidList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object signature_ = ""; + /** + * string signature = 11; + * @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; + } + } + /** + * string signature = 11; + * @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; + } + } + /** + * string signature = 11; + * @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; + } + /** + * string signature = 11; + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + /** + * string signature = 11; + * @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_; + /** + * .HeadImage avatar = 12; + * @return Whether the avatar field is set. + */ + public boolean hasAvatar() { + return avatarBuilder_ != null || avatar_ != null; + } + /** + * .HeadImage avatar = 12; + * @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(); + } + } + /** + * .HeadImage avatar = 12; + */ + 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; + } + /** + * .HeadImage avatar = 12; + */ + 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; + } + /** + * .HeadImage avatar = 12; + */ + 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; + } + /** + * .HeadImage avatar = 12; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + + return this; + } + /** + * .HeadImage avatar = 12; + */ + public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .HeadImage avatar = 12; + */ + 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_; + } + } + /** + * .HeadImage avatar = 12; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d642fd5b6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/OpenStateUpdateNotifyOuterClass.java @@ -0,0 +1,800 @@ +// 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 { + + /** + * map<uint32, uint32> openStateMap = 1; + */ + int getOpenStateMapCount(); + /** + * map<uint32, uint32> openStateMap = 1; + */ + boolean containsOpenStateMap( + int key); + /** + * Use {@link #getOpenStateMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOpenStateMap(); + /** + * map<uint32, uint32> openStateMap = 1; + */ + java.util.Map + getOpenStateMapMap(); + /** + * map<uint32, uint32> openStateMap = 1; + */ + + int getOpenStateMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> openStateMap = 1; + */ + + 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 + 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 + .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 + internalGetOpenStateMap() { + if (openStateMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OpenStateMapDefaultEntryHolder.defaultEntry); + } + return openStateMap_; + } + + public int getOpenStateMapCount() { + return internalGetOpenStateMap().getMap().size(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + + @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 getOpenStateMap() { + return getOpenStateMapMap(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public java.util.Map getOpenStateMapMap() { + return internalGetOpenStateMap().getMap(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public int getOpenStateMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetOpenStateMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public int getOpenStateMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetOpenStateMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetOpenStateMap() { + if (openStateMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OpenStateMapDefaultEntryHolder.defaultEntry); + } + return openStateMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + + @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 getOpenStateMap() { + return getOpenStateMapMap(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public java.util.Map getOpenStateMapMap() { + return internalGetOpenStateMap().getMap(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public int getOpenStateMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetOpenStateMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + @java.lang.Override + + public int getOpenStateMapOrThrow( + int key) { + + java.util.Map map = + internalGetOpenStateMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOpenStateMap() { + internalGetMutableOpenStateMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + + public Builder removeOpenStateMap( + int key) { + + internalGetMutableOpenStateMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOpenStateMap() { + return internalGetMutableOpenStateMap().getMutableMap(); + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + public Builder putOpenStateMap( + int key, + int value) { + + + internalGetMutableOpenStateMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> openStateMap = 1; + */ + + public Builder putAllOpenStateMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f155640d9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/OperationOuterClass.java @@ -0,0 +1,163 @@ +// 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 { + /** + * Add = 0; + */ + Add(0), + /** + * Mod = 1; + */ + Mod(1), + /** + * Del = 2; + */ + Del(2), + /** + * Get = 3; + */ + Get(3), + UNRECOGNIZED(-1), + ; + + /** + * Add = 0; + */ + public static final int Add_VALUE = 0; + /** + * Mod = 1; + */ + public static final int Mod_VALUE = 1; + /** + * Del = 2; + */ + public static final int Del_VALUE = 2; + /** + * Get = 3; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..d21f8255e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PacketHeadOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 clientSequenceId = 3; + * @return The clientSequenceId. + */ + int getClientSequenceId(); + + /** + * uint64 timestamp = 6; + * @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_; + /** + * uint32 clientSequenceId = 3; + * @return The clientSequenceId. + */ + @java.lang.Override + public int getClientSequenceId() { + return clientSequenceId_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 6; + private long timestamp_; + /** + * uint64 timestamp = 6; + * @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 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_ ; + /** + * uint32 clientSequenceId = 3; + * @return The clientSequenceId. + */ + @java.lang.Override + public int getClientSequenceId() { + return clientSequenceId_; + } + /** + * uint32 clientSequenceId = 3; + * @param value The clientSequenceId to set. + * @return This builder for chaining. + */ + public Builder setClientSequenceId(int value) { + + clientSequenceId_ = value; + onChanged(); + return this; + } + /** + * uint32 clientSequenceId = 3; + * @return This builder for chaining. + */ + public Builder clearClientSequenceId() { + + clientSequenceId_ = 0; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * uint64 timestamp = 6; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + * uint64 timestamp = 6; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + onChanged(); + return this; + } + /** + * uint64 timestamp = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..14f4a9dad --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PingReqOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * int32 seq = 1; + * @return The seq. + */ + int getSeq(); + + /** + * int32 clientTime = 2; + * @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_; + /** + * int32 seq = 1; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + + public static final int CLIENTTIME_FIELD_NUMBER = 2; + private int clientTime_; + /** + * int32 clientTime = 2; + * @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 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_ ; + /** + * int32 seq = 1; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + /** + * int32 seq = 1; + * @param value The seq to set. + * @return This builder for chaining. + */ + public Builder setSeq(int value) { + + seq_ = value; + onChanged(); + return this; + } + /** + * int32 seq = 1; + * @return This builder for chaining. + */ + public Builder clearSeq() { + + seq_ = 0; + onChanged(); + return this; + } + + private int clientTime_ ; + /** + * int32 clientTime = 2; + * @return The clientTime. + */ + @java.lang.Override + public int getClientTime() { + return clientTime_; + } + /** + * int32 clientTime = 2; + * @param value The clientTime to set. + * @return This builder for chaining. + */ + public Builder setClientTime(int value) { + + clientTime_ = value; + onChanged(); + return this; + } + /** + * int32 clientTime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..db84e7830 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PingRspOuterClass.java @@ -0,0 +1,676 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 seq = 2; + * @return The seq. + */ + int getSeq(); + + /** + * uint32 clientTime = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int SEQ_FIELD_NUMBER = 2; + private int seq_; + /** + * uint32 seq = 2; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + + public static final int CLIENTTIME_FIELD_NUMBER = 3; + private int clientTime_; + /** + * uint32 clientTime = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int seq_ ; + /** + * uint32 seq = 2; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + /** + * uint32 seq = 2; + * @param value The seq to set. + * @return This builder for chaining. + */ + public Builder setSeq(int value) { + + seq_ = value; + onChanged(); + return this; + } + /** + * uint32 seq = 2; + * @return This builder for chaining. + */ + public Builder clearSeq() { + + seq_ = 0; + onChanged(); + return this; + } + + private int clientTime_ ; + /** + * uint32 clientTime = 3; + * @return The clientTime. + */ + @java.lang.Override + public int getClientTime() { + return clientTime_; + } + /** + * uint32 clientTime = 3; + * @param value The clientTime to set. + * @return This builder for chaining. + */ + public Builder setClientTime(int value) { + + clientTime_ = value; + onChanged(); + return this; + } + /** + * uint32 clientTime = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b9191f0dc --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlatformInfoOuterClass.java @@ -0,0 +1,2264 @@ +// 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 { + + /** + * uint32 routeId = 1; + * @return The routeId. + */ + int getRouteId(); + + /** + * int32 startIndex = 2; + * @return The startIndex. + */ + int getStartIndex(); + + /** + * uint32 startRouteTime = 3; + * @return The startRouteTime. + */ + int getStartRouteTime(); + + /** + * uint32 startSceneTime = 4; + * @return The startSceneTime. + */ + int getStartSceneTime(); + + /** + * .Vector startPos = 7; + * @return Whether the startPos field is set. + */ + boolean hasStartPos(); + /** + * .Vector startPos = 7; + * @return The startPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getStartPos(); + /** + * .Vector startPos = 7; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getStartPosOrBuilder(); + + /** + * bool isStarted = 8; + * @return The isStarted. + */ + boolean getIsStarted(); + + /** + * .MathQuaternion startRot = 9; + * @return Whether the startRot field is set. + */ + boolean hasStartRot(); + /** + * .MathQuaternion startRot = 9; + * @return The startRot. + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getStartRot(); + /** + * .MathQuaternion startRot = 9; + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getStartRotOrBuilder(); + + /** + * uint32 stopSceneTime = 10; + * @return The stopSceneTime. + */ + int getStopSceneTime(); + + /** + * .Vector posOffset = 11; + * @return Whether the posOffset field is set. + */ + boolean hasPosOffset(); + /** + * .Vector posOffset = 11; + * @return The posOffset. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPosOffset(); + /** + * .Vector posOffset = 11; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOffsetOrBuilder(); + + /** + * .MathQuaternion rotOffset = 12; + * @return Whether the rotOffset field is set. + */ + boolean hasRotOffset(); + /** + * .MathQuaternion rotOffset = 12; + * @return The rotOffset. + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotOffset(); + /** + * .MathQuaternion rotOffset = 12; + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotOffsetOrBuilder(); + + /** + * .MovingPlatformType movingPlatformType = 13; + * @return Whether the movingPlatformType field is set. + */ + boolean hasMovingPlatformType(); + /** + * .MovingPlatformType movingPlatformType = 13; + * @return The movingPlatformType. + */ + emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType getMovingPlatformType(); + /** + * .MovingPlatformType movingPlatformType = 13; + */ + emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder getMovingPlatformTypeOrBuilder(); + + /** + * bool isActive = 14; + * @return The isActive. + */ + boolean getIsActive(); + + /** + * .Route route = 15; + * @return Whether the route field is set. + */ + boolean hasRoute(); + /** + * .Route route = 15; + * @return The route. + */ + emu.grasscutter.net.proto.RouteOuterClass.Route getRoute(); + /** + * .Route route = 15; + */ + emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder getRouteOrBuilder(); + + /** + * uint32 pointId = 16; + * @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_; + /** + * uint32 routeId = 1; + * @return The routeId. + */ + @java.lang.Override + public int getRouteId() { + return routeId_; + } + + public static final int STARTINDEX_FIELD_NUMBER = 2; + private int startIndex_; + /** + * int32 startIndex = 2; + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int STARTROUTETIME_FIELD_NUMBER = 3; + private int startRouteTime_; + /** + * uint32 startRouteTime = 3; + * @return The startRouteTime. + */ + @java.lang.Override + public int getStartRouteTime() { + return startRouteTime_; + } + + public static final int STARTSCENETIME_FIELD_NUMBER = 4; + private int startSceneTime_; + /** + * uint32 startSceneTime = 4; + * @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_; + /** + * .Vector startPos = 7; + * @return Whether the startPos field is set. + */ + @java.lang.Override + public boolean hasStartPos() { + return startPos_ != null; + } + /** + * .Vector startPos = 7; + * @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_; + } + /** + * .Vector startPos = 7; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getStartPosOrBuilder() { + return getStartPos(); + } + + public static final int ISSTARTED_FIELD_NUMBER = 8; + private boolean isStarted_; + /** + * bool isStarted = 8; + * @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_; + /** + * .MathQuaternion startRot = 9; + * @return Whether the startRot field is set. + */ + @java.lang.Override + public boolean hasStartRot() { + return startRot_ != null; + } + /** + * .MathQuaternion startRot = 9; + * @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_; + } + /** + * .MathQuaternion startRot = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getStartRotOrBuilder() { + return getStartRot(); + } + + public static final int STOPSCENETIME_FIELD_NUMBER = 10; + private int stopSceneTime_; + /** + * uint32 stopSceneTime = 10; + * @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_; + /** + * .Vector posOffset = 11; + * @return Whether the posOffset field is set. + */ + @java.lang.Override + public boolean hasPosOffset() { + return posOffset_ != null; + } + /** + * .Vector posOffset = 11; + * @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_; + } + /** + * .Vector posOffset = 11; + */ + @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_; + /** + * .MathQuaternion rotOffset = 12; + * @return Whether the rotOffset field is set. + */ + @java.lang.Override + public boolean hasRotOffset() { + return rotOffset_ != null; + } + /** + * .MathQuaternion rotOffset = 12; + * @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_; + } + /** + * .MathQuaternion rotOffset = 12; + */ + @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_; + /** + * .MovingPlatformType movingPlatformType = 13; + * @return Whether the movingPlatformType field is set. + */ + @java.lang.Override + public boolean hasMovingPlatformType() { + return movingPlatformType_ != null; + } + /** + * .MovingPlatformType movingPlatformType = 13; + * @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_; + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformTypeOrBuilder getMovingPlatformTypeOrBuilder() { + return getMovingPlatformType(); + } + + public static final int ISACTIVE_FIELD_NUMBER = 14; + private boolean isActive_; + /** + * bool isActive = 14; + * @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_; + /** + * .Route route = 15; + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return route_ != null; + } + /** + * .Route route = 15; + * @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_; + } + /** + * .Route route = 15; + */ + @java.lang.Override + public emu.grasscutter.net.proto.RouteOuterClass.RouteOrBuilder getRouteOrBuilder() { + return getRoute(); + } + + public static final int POINTID_FIELD_NUMBER = 16; + private int pointId_; + /** + * uint32 pointId = 16; + * @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 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_ ; + /** + * uint32 routeId = 1; + * @return The routeId. + */ + @java.lang.Override + public int getRouteId() { + return routeId_; + } + /** + * uint32 routeId = 1; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(int value) { + + routeId_ = value; + onChanged(); + return this; + } + /** + * uint32 routeId = 1; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + + routeId_ = 0; + onChanged(); + return this; + } + + private int startIndex_ ; + /** + * int32 startIndex = 2; + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * int32 startIndex = 2; + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + onChanged(); + return this; + } + /** + * int32 startIndex = 2; + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + + startIndex_ = 0; + onChanged(); + return this; + } + + private int startRouteTime_ ; + /** + * uint32 startRouteTime = 3; + * @return The startRouteTime. + */ + @java.lang.Override + public int getStartRouteTime() { + return startRouteTime_; + } + /** + * uint32 startRouteTime = 3; + * @param value The startRouteTime to set. + * @return This builder for chaining. + */ + public Builder setStartRouteTime(int value) { + + startRouteTime_ = value; + onChanged(); + return this; + } + /** + * uint32 startRouteTime = 3; + * @return This builder for chaining. + */ + public Builder clearStartRouteTime() { + + startRouteTime_ = 0; + onChanged(); + return this; + } + + private int startSceneTime_ ; + /** + * uint32 startSceneTime = 4; + * @return The startSceneTime. + */ + @java.lang.Override + public int getStartSceneTime() { + return startSceneTime_; + } + /** + * uint32 startSceneTime = 4; + * @param value The startSceneTime to set. + * @return This builder for chaining. + */ + public Builder setStartSceneTime(int value) { + + startSceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 startSceneTime = 4; + * @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_; + /** + * .Vector startPos = 7; + * @return Whether the startPos field is set. + */ + public boolean hasStartPos() { + return startPosBuilder_ != null || startPos_ != null; + } + /** + * .Vector startPos = 7; + * @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(); + } + } + /** + * .Vector startPos = 7; + */ + 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; + } + /** + * .Vector startPos = 7; + */ + 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; + } + /** + * .Vector startPos = 7; + */ + 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; + } + /** + * .Vector startPos = 7; + */ + public Builder clearStartPos() { + if (startPosBuilder_ == null) { + startPos_ = null; + onChanged(); + } else { + startPos_ = null; + startPosBuilder_ = null; + } + + return this; + } + /** + * .Vector startPos = 7; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getStartPosBuilder() { + + onChanged(); + return getStartPosFieldBuilder().getBuilder(); + } + /** + * .Vector startPos = 7; + */ + 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_; + } + } + /** + * .Vector startPos = 7; + */ + 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_ ; + /** + * bool isStarted = 8; + * @return The isStarted. + */ + @java.lang.Override + public boolean getIsStarted() { + return isStarted_; + } + /** + * bool isStarted = 8; + * @param value The isStarted to set. + * @return This builder for chaining. + */ + public Builder setIsStarted(boolean value) { + + isStarted_ = value; + onChanged(); + return this; + } + /** + * bool isStarted = 8; + * @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_; + /** + * .MathQuaternion startRot = 9; + * @return Whether the startRot field is set. + */ + public boolean hasStartRot() { + return startRotBuilder_ != null || startRot_ != null; + } + /** + * .MathQuaternion startRot = 9; + * @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(); + } + } + /** + * .MathQuaternion startRot = 9; + */ + 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; + } + /** + * .MathQuaternion startRot = 9; + */ + 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; + } + /** + * .MathQuaternion startRot = 9; + */ + 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; + } + /** + * .MathQuaternion startRot = 9; + */ + public Builder clearStartRot() { + if (startRotBuilder_ == null) { + startRot_ = null; + onChanged(); + } else { + startRot_ = null; + startRotBuilder_ = null; + } + + return this; + } + /** + * .MathQuaternion startRot = 9; + */ + public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getStartRotBuilder() { + + onChanged(); + return getStartRotFieldBuilder().getBuilder(); + } + /** + * .MathQuaternion startRot = 9; + */ + 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_; + } + } + /** + * .MathQuaternion startRot = 9; + */ + 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_ ; + /** + * uint32 stopSceneTime = 10; + * @return The stopSceneTime. + */ + @java.lang.Override + public int getStopSceneTime() { + return stopSceneTime_; + } + /** + * uint32 stopSceneTime = 10; + * @param value The stopSceneTime to set. + * @return This builder for chaining. + */ + public Builder setStopSceneTime(int value) { + + stopSceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 stopSceneTime = 10; + * @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_; + /** + * .Vector posOffset = 11; + * @return Whether the posOffset field is set. + */ + public boolean hasPosOffset() { + return posOffsetBuilder_ != null || posOffset_ != null; + } + /** + * .Vector posOffset = 11; + * @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(); + } + } + /** + * .Vector posOffset = 11; + */ + 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; + } + /** + * .Vector posOffset = 11; + */ + 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; + } + /** + * .Vector posOffset = 11; + */ + 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; + } + /** + * .Vector posOffset = 11; + */ + public Builder clearPosOffset() { + if (posOffsetBuilder_ == null) { + posOffset_ = null; + onChanged(); + } else { + posOffset_ = null; + posOffsetBuilder_ = null; + } + + return this; + } + /** + * .Vector posOffset = 11; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosOffsetBuilder() { + + onChanged(); + return getPosOffsetFieldBuilder().getBuilder(); + } + /** + * .Vector posOffset = 11; + */ + 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_; + } + } + /** + * .Vector posOffset = 11; + */ + 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_; + /** + * .MathQuaternion rotOffset = 12; + * @return Whether the rotOffset field is set. + */ + public boolean hasRotOffset() { + return rotOffsetBuilder_ != null || rotOffset_ != null; + } + /** + * .MathQuaternion rotOffset = 12; + * @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(); + } + } + /** + * .MathQuaternion rotOffset = 12; + */ + 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; + } + /** + * .MathQuaternion rotOffset = 12; + */ + 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; + } + /** + * .MathQuaternion rotOffset = 12; + */ + 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; + } + /** + * .MathQuaternion rotOffset = 12; + */ + public Builder clearRotOffset() { + if (rotOffsetBuilder_ == null) { + rotOffset_ = null; + onChanged(); + } else { + rotOffset_ = null; + rotOffsetBuilder_ = null; + } + + return this; + } + /** + * .MathQuaternion rotOffset = 12; + */ + public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getRotOffsetBuilder() { + + onChanged(); + return getRotOffsetFieldBuilder().getBuilder(); + } + /** + * .MathQuaternion rotOffset = 12; + */ + 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_; + } + } + /** + * .MathQuaternion rotOffset = 12; + */ + 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_; + /** + * .MovingPlatformType movingPlatformType = 13; + * @return Whether the movingPlatformType field is set. + */ + public boolean hasMovingPlatformType() { + return movingPlatformTypeBuilder_ != null || movingPlatformType_ != null; + } + /** + * .MovingPlatformType movingPlatformType = 13; + * @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(); + } + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + 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; + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + 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; + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + 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; + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + public Builder clearMovingPlatformType() { + if (movingPlatformTypeBuilder_ == null) { + movingPlatformType_ = null; + onChanged(); + } else { + movingPlatformType_ = null; + movingPlatformTypeBuilder_ = null; + } + + return this; + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + public emu.grasscutter.net.proto.MovingPlatformTypeOuterClass.MovingPlatformType.Builder getMovingPlatformTypeBuilder() { + + onChanged(); + return getMovingPlatformTypeFieldBuilder().getBuilder(); + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + 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_; + } + } + /** + * .MovingPlatformType movingPlatformType = 13; + */ + 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_ ; + /** + * bool isActive = 14; + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + /** + * bool isActive = 14; + * @param value The isActive to set. + * @return This builder for chaining. + */ + public Builder setIsActive(boolean value) { + + isActive_ = value; + onChanged(); + return this; + } + /** + * bool isActive = 14; + * @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_; + /** + * .Route route = 15; + * @return Whether the route field is set. + */ + public boolean hasRoute() { + return routeBuilder_ != null || route_ != null; + } + /** + * .Route route = 15; + * @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(); + } + } + /** + * .Route route = 15; + */ + 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; + } + /** + * .Route route = 15; + */ + 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; + } + /** + * .Route route = 15; + */ + 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; + } + /** + * .Route route = 15; + */ + public Builder clearRoute() { + if (routeBuilder_ == null) { + route_ = null; + onChanged(); + } else { + route_ = null; + routeBuilder_ = null; + } + + return this; + } + /** + * .Route route = 15; + */ + public emu.grasscutter.net.proto.RouteOuterClass.Route.Builder getRouteBuilder() { + + onChanged(); + return getRouteFieldBuilder().getBuilder(); + } + /** + * .Route route = 15; + */ + 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_; + } + } + /** + * .Route route = 15; + */ + 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_ ; + /** + * uint32 pointId = 16; + * @return The pointId. + */ + @java.lang.Override + public int getPointId() { + return pointId_; + } + /** + * uint32 pointId = 16; + * @param value The pointId to set. + * @return This builder for chaining. + */ + public Builder setPointId(int value) { + + pointId_ = value; + onChanged(); + return this; + } + /** + * uint32 pointId = 16; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..728dcc0ca --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpNotifyOuterClass.java @@ -0,0 +1,743 @@ +// 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 { + + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @return Whether the srcPlayerInfo field is set. + */ + boolean hasSrcPlayerInfo(); + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @return The srcPlayerInfo. + */ + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getSrcPlayerInfo(); + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getSrcPlayerInfoOrBuilder(); + + /** + * uint32 srcAppId = 2; + * @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_; + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @return Whether the srcPlayerInfo field is set. + */ + @java.lang.Override + public boolean hasSrcPlayerInfo() { + return srcPlayerInfo_ != null; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @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_; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getSrcPlayerInfoOrBuilder() { + return getSrcPlayerInfo(); + } + + public static final int SRCAPPID_FIELD_NUMBER = 2; + private int srcAppId_; + /** + * uint32 srcAppId = 2; + * @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 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_; + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @return Whether the srcPlayerInfo field is set. + */ + public boolean hasSrcPlayerInfo() { + return srcPlayerInfoBuilder_ != null || srcPlayerInfo_ != null; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + * @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(); + } + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + 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; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + 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; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + 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; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + public Builder clearSrcPlayerInfo() { + if (srcPlayerInfoBuilder_ == null) { + srcPlayerInfo_ = null; + onChanged(); + } else { + srcPlayerInfo_ = null; + srcPlayerInfoBuilder_ = null; + } + + return this; + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getSrcPlayerInfoBuilder() { + + onChanged(); + return getSrcPlayerInfoFieldBuilder().getBuilder(); + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + 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_; + } + } + /** + * .OnlinePlayerInfo srcPlayerInfo = 1; + */ + 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_ ; + /** + * uint32 srcAppId = 2; + * @return The srcAppId. + */ + @java.lang.Override + public int getSrcAppId() { + return srcAppId_; + } + /** + * uint32 srcAppId = 2; + * @param value The srcAppId to set. + * @return This builder for chaining. + */ + public Builder setSrcAppId(int value) { + + srcAppId_ = value; + onChanged(); + return this; + } + /** + * uint32 srcAppId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..15ab9190a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReasonOuterClass.java @@ -0,0 +1,252 @@ +// 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 { + /** + * PlayerJudge = 0; + */ + PlayerJudge(0), + /** + * SceneCannotEnter = 1; + */ + SceneCannotEnter(1), + /** + * PlayerCannotEnterMp = 2; + */ + PlayerCannotEnterMp(2), + /** + * SystemJudge = 3; + */ + SystemJudge(3), + /** + * AllowEnterPlayerFull = 4; + */ + AllowEnterPlayerFull(4), + /** + * WorldLevelLowerThanHost = 5; + */ + WorldLevelLowerThanHost(5), + /** + * HostInMatch = 6; + */ + HostInMatch(6), + /** + * PlayerInBlacklist = 7; + */ + PlayerInBlacklist(7), + /** + * PsPlayerNotAcceptOthers = 8; + */ + PsPlayerNotAcceptOthers(8), + /** + * HostIsBlocked = 9; + */ + HostIsBlocked(9), + /** + * OtherDataVersionNotLatest = 10; + */ + OtherDataVersionNotLatest(10), + /** + * DataVersionNotLatest = 11; + */ + DataVersionNotLatest(11), + /** + * PlayerNotInPlayerWorld = 12; + */ + PlayerNotInPlayerWorld(12), + UNRECOGNIZED(-1), + ; + + /** + * PlayerJudge = 0; + */ + public static final int PlayerJudge_VALUE = 0; + /** + * SceneCannotEnter = 1; + */ + public static final int SceneCannotEnter_VALUE = 1; + /** + * PlayerCannotEnterMp = 2; + */ + public static final int PlayerCannotEnterMp_VALUE = 2; + /** + * SystemJudge = 3; + */ + public static final int SystemJudge_VALUE = 3; + /** + * AllowEnterPlayerFull = 4; + */ + public static final int AllowEnterPlayerFull_VALUE = 4; + /** + * WorldLevelLowerThanHost = 5; + */ + public static final int WorldLevelLowerThanHost_VALUE = 5; + /** + * HostInMatch = 6; + */ + public static final int HostInMatch_VALUE = 6; + /** + * PlayerInBlacklist = 7; + */ + public static final int PlayerInBlacklist_VALUE = 7; + /** + * PsPlayerNotAcceptOthers = 8; + */ + public static final int PsPlayerNotAcceptOthers_VALUE = 8; + /** + * HostIsBlocked = 9; + */ + public static final int HostIsBlocked_VALUE = 9; + /** + * OtherDataVersionNotLatest = 10; + */ + public static final int OtherDataVersionNotLatest_VALUE = 10; + /** + * DataVersionNotLatest = 11; + */ + public static final int DataVersionNotLatest_VALUE = 11; + /** + * PlayerNotInPlayerWorld = 12; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PlayerApplyEnterMpReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..886c3ae36 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @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_; + /** + * uint32 targetUid = 1; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9297d9a74 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultNotifyOuterClass.java @@ -0,0 +1,870 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * bool isAgreed = 2; + * @return The isAgreed. + */ + boolean getIsAgreed(); + + /** + * .PlayerApplyEnterMpReason reason = 3; + * @return The enum numeric value on the wire for reason. + */ + int getReasonValue(); + /** + * .PlayerApplyEnterMpReason reason = 3; + * @return The reason. + */ + emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason getReason(); + + /** + * string targetNickname = 4; + * @return The targetNickname. + */ + java.lang.String getTargetNickname(); + /** + * string targetNickname = 4; + * @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_; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int ISAGREED_FIELD_NUMBER = 2; + private boolean isAgreed_; + /** + * bool isAgreed = 2; + * @return The isAgreed. + */ + @java.lang.Override + public boolean getIsAgreed() { + return isAgreed_; + } + + public static final int REASON_FIELD_NUMBER = 3; + private int reason_; + /** + * .PlayerApplyEnterMpReason reason = 3; + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override public int getReasonValue() { + return reason_; + } + /** + * .PlayerApplyEnterMpReason reason = 3; + * @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_; + /** + * string targetNickname = 4; + * @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; + } + } + /** + * string targetNickname = 4; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private boolean isAgreed_ ; + /** + * bool isAgreed = 2; + * @return The isAgreed. + */ + @java.lang.Override + public boolean getIsAgreed() { + return isAgreed_; + } + /** + * bool isAgreed = 2; + * @param value The isAgreed to set. + * @return This builder for chaining. + */ + public Builder setIsAgreed(boolean value) { + + isAgreed_ = value; + onChanged(); + return this; + } + /** + * bool isAgreed = 2; + * @return This builder for chaining. + */ + public Builder clearIsAgreed() { + + isAgreed_ = false; + onChanged(); + return this; + } + + private int reason_ = 0; + /** + * .PlayerApplyEnterMpReason reason = 3; + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override public int getReasonValue() { + return reason_; + } + /** + * .PlayerApplyEnterMpReason reason = 3; + * @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; + } + /** + * .PlayerApplyEnterMpReason reason = 3; + * @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; + } + /** + * .PlayerApplyEnterMpReason reason = 3; + * @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; + } + /** + * .PlayerApplyEnterMpReason reason = 3; + * @return This builder for chaining. + */ + public Builder clearReason() { + + reason_ = 0; + onChanged(); + return this; + } + + private java.lang.Object targetNickname_ = ""; + /** + * string targetNickname = 4; + * @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; + } + } + /** + * string targetNickname = 4; + * @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; + } + } + /** + * string targetNickname = 4; + * @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; + } + /** + * string targetNickname = 4; + * @return This builder for chaining. + */ + public Builder clearTargetNickname() { + + targetNickname_ = getDefaultInstance().getTargetNickname(); + onChanged(); + return this; + } + /** + * string targetNickname = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d147908e1 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint32 applyUid = 1; + * @return The applyUid. + */ + int getApplyUid(); + + /** + * bool isAgreed = 2; + * @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_; + /** + * uint32 applyUid = 1; + * @return The applyUid. + */ + @java.lang.Override + public int getApplyUid() { + return applyUid_; + } + + public static final int ISAGREED_FIELD_NUMBER = 2; + private boolean isAgreed_; + /** + * bool isAgreed = 2; + * @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 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_ ; + /** + * uint32 applyUid = 1; + * @return The applyUid. + */ + @java.lang.Override + public int getApplyUid() { + return applyUid_; + } + /** + * uint32 applyUid = 1; + * @param value The applyUid to set. + * @return This builder for chaining. + */ + public Builder setApplyUid(int value) { + + applyUid_ = value; + onChanged(); + return this; + } + /** + * uint32 applyUid = 1; + * @return This builder for chaining. + */ + public Builder clearApplyUid() { + + applyUid_ = 0; + onChanged(); + return this; + } + + private boolean isAgreed_ ; + /** + * bool isAgreed = 2; + * @return The isAgreed. + */ + @java.lang.Override + public boolean getIsAgreed() { + return isAgreed_; + } + /** + * bool isAgreed = 2; + * @param value The isAgreed to set. + * @return This builder for chaining. + */ + public Builder setIsAgreed(boolean value) { + + isAgreed_ = value; + onChanged(); + return this; + } + /** + * bool isAgreed = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7f3146f85 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpResultRspOuterClass.java @@ -0,0 +1,749 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 applyUid = 2; + * @return The applyUid. + */ + int getApplyUid(); + + /** + * bool isAgreed = 3; + * @return The isAgreed. + */ + boolean getIsAgreed(); + + /** + * uint32 param = 4; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int APPLYUID_FIELD_NUMBER = 2; + private int applyUid_; + /** + * uint32 applyUid = 2; + * @return The applyUid. + */ + @java.lang.Override + public int getApplyUid() { + return applyUid_; + } + + public static final int ISAGREED_FIELD_NUMBER = 3; + private boolean isAgreed_; + /** + * bool isAgreed = 3; + * @return The isAgreed. + */ + @java.lang.Override + public boolean getIsAgreed() { + return isAgreed_; + } + + public static final int PARAM_FIELD_NUMBER = 4; + private int param_; + /** + * uint32 param = 4; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int applyUid_ ; + /** + * uint32 applyUid = 2; + * @return The applyUid. + */ + @java.lang.Override + public int getApplyUid() { + return applyUid_; + } + /** + * uint32 applyUid = 2; + * @param value The applyUid to set. + * @return This builder for chaining. + */ + public Builder setApplyUid(int value) { + + applyUid_ = value; + onChanged(); + return this; + } + /** + * uint32 applyUid = 2; + * @return This builder for chaining. + */ + public Builder clearApplyUid() { + + applyUid_ = 0; + onChanged(); + return this; + } + + private boolean isAgreed_ ; + /** + * bool isAgreed = 3; + * @return The isAgreed. + */ + @java.lang.Override + public boolean getIsAgreed() { + return isAgreed_; + } + /** + * bool isAgreed = 3; + * @param value The isAgreed to set. + * @return This builder for chaining. + */ + public Builder setIsAgreed(boolean value) { + + isAgreed_ = value; + onChanged(); + return this; + } + /** + * bool isAgreed = 3; + * @return This builder for chaining. + */ + public Builder clearIsAgreed() { + + isAgreed_ = false; + onChanged(); + return this; + } + + private int param_ ; + /** + * uint32 param = 4; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + /** + * uint32 param = 4; + * @param value The param to set. + * @return This builder for chaining. + */ + public Builder setParam(int value) { + + param_ = value; + onChanged(); + return this; + } + /** + * uint32 param = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..027faca30 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerApplyEnterMpRspOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint32 param = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int PARAM_FIELD_NUMBER = 3; + private int param_; + /** + * uint32 param = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int param_ ; + /** + * uint32 param = 3; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + /** + * uint32 param = 3; + * @param value The param to set. + * @return This builder for chaining. + */ + public Builder setParam(int value) { + + param_ = value; + onChanged(); + return this; + } + /** + * uint32 param = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..55840f59f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerChatNotifyOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 channelId = 1; + * @return The channelId. + */ + int getChannelId(); + + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + boolean hasChatInfo(); + /** + * .ChatInfo chatInfo = 2; + * @return The chatInfo. + */ + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); + /** + * .ChatInfo chatInfo = 2; + */ + 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_; + /** + * uint32 channelId = 1; + * @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_; + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + @java.lang.Override + public boolean hasChatInfo() { + return chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 2; + * @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_; + } + /** + * .ChatInfo chatInfo = 2; + */ + @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 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_ ; + /** + * uint32 channelId = 1; + * @return The channelId. + */ + @java.lang.Override + public int getChannelId() { + return channelId_; + } + /** + * uint32 channelId = 1; + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(int value) { + + channelId_ = value; + onChanged(); + return this; + } + /** + * uint32 channelId = 1; + * @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_; + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + public boolean hasChatInfo() { + return chatInfoBuilder_ != null || chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 2; + * @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(); + } + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + public Builder clearChatInfo() { + if (chatInfoBuilder_ == null) { + chatInfo_ = null; + onChanged(); + } else { + chatInfo_ = null; + chatInfoBuilder_ = null; + } + + return this; + } + /** + * .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { + + onChanged(); + return getChatInfoFieldBuilder().getBuilder(); + } + /** + * .ChatInfo chatInfo = 2; + */ + 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_; + } + } + /** + * .ChatInfo chatInfo = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cee2c3705 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerChatReqOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 channelId = 1; + * @return The channelId. + */ + int getChannelId(); + + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + boolean hasChatInfo(); + /** + * .ChatInfo chatInfo = 2; + * @return The chatInfo. + */ + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); + /** + * .ChatInfo chatInfo = 2; + */ + 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_; + /** + * uint32 channelId = 1; + * @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_; + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + @java.lang.Override + public boolean hasChatInfo() { + return chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 2; + * @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_; + } + /** + * .ChatInfo chatInfo = 2; + */ + @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 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_ ; + /** + * uint32 channelId = 1; + * @return The channelId. + */ + @java.lang.Override + public int getChannelId() { + return channelId_; + } + /** + * uint32 channelId = 1; + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(int value) { + + channelId_ = value; + onChanged(); + return this; + } + /** + * uint32 channelId = 1; + * @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_; + /** + * .ChatInfo chatInfo = 2; + * @return Whether the chatInfo field is set. + */ + public boolean hasChatInfo() { + return chatInfoBuilder_ != null || chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 2; + * @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(); + } + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * .ChatInfo chatInfo = 2; + */ + public Builder clearChatInfo() { + if (chatInfoBuilder_ == null) { + chatInfo_ = null; + onChanged(); + } else { + chatInfo_ = null; + chatInfoBuilder_ = null; + } + + return this; + } + /** + * .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { + + onChanged(); + return getChatInfoFieldBuilder().getBuilder(); + } + /** + * .ChatInfo chatInfo = 2; + */ + 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_; + } + } + /** + * .ChatInfo chatInfo = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b85aeb04e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerChatRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 chatForbiddenEndtime = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CHATFORBIDDENENDTIME_FIELD_NUMBER = 2; + private int chatForbiddenEndtime_; + /** + * uint32 chatForbiddenEndtime = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int chatForbiddenEndtime_ ; + /** + * uint32 chatForbiddenEndtime = 2; + * @return The chatForbiddenEndtime. + */ + @java.lang.Override + public int getChatForbiddenEndtime() { + return chatForbiddenEndtime_; + } + /** + * uint32 chatForbiddenEndtime = 2; + * @param value The chatForbiddenEndtime to set. + * @return This builder for chaining. + */ + public Builder setChatForbiddenEndtime(int value) { + + chatForbiddenEndtime_ = value; + onChanged(); + return this; + } + /** + * uint32 chatForbiddenEndtime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..813089dee --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerDataNotifyOuterClass.java @@ -0,0 +1,1166 @@ +// 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 { + + /** + * string nickName = 1; + * @return The nickName. + */ + java.lang.String getNickName(); + /** + * string nickName = 1; + * @return The bytes for nickName. + */ + com.google.protobuf.ByteString + getNickNameBytes(); + + /** + * uint64 clientTime = 2; + * @return The clientTime. + */ + long getClientTime(); + + /** + * bool isFirstLoginToday = 3; + * @return The isFirstLoginToday. + */ + boolean getIsFirstLoginToday(); + + /** + * uint32 regionId = 4; + * @return The regionId. + */ + int getRegionId(); + + /** + * map<uint32, .PropValue> propMap = 6; + */ + int getPropMapCount(); + /** + * map<uint32, .PropValue> propMap = 6; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<uint32, .PropValue> propMap = 6; + */ + java.util.Map + getPropMapMap(); + /** + * map<uint32, .PropValue> propMap = 6; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); + /** + * map<uint32, .PropValue> propMap = 6; + */ + + 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 + 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_; + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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_; + /** + * uint64 clientTime = 2; + * @return The clientTime. + */ + @java.lang.Override + public long getClientTime() { + return clientTime_; + } + + public static final int ISFIRSTLOGINTODAY_FIELD_NUMBER = 3; + private boolean isFirstLoginToday_; + /** + * bool isFirstLoginToday = 3; + * @return The isFirstLoginToday. + */ + @java.lang.Override + public boolean getIsFirstLoginToday() { + return isFirstLoginToday_; + } + + public static final int REGIONID_FIELD_NUMBER = 4; + private int regionId_; + /** + * uint32 regionId = 4; + * @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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ = ""; + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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; + } + /** + * string nickName = 1; + * @return This builder for chaining. + */ + public Builder clearNickName() { + + nickName_ = getDefaultInstance().getNickName(); + onChanged(); + return this; + } + /** + * string nickName = 1; + * @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_ ; + /** + * uint64 clientTime = 2; + * @return The clientTime. + */ + @java.lang.Override + public long getClientTime() { + return clientTime_; + } + /** + * uint64 clientTime = 2; + * @param value The clientTime to set. + * @return This builder for chaining. + */ + public Builder setClientTime(long value) { + + clientTime_ = value; + onChanged(); + return this; + } + /** + * uint64 clientTime = 2; + * @return This builder for chaining. + */ + public Builder clearClientTime() { + + clientTime_ = 0L; + onChanged(); + return this; + } + + private boolean isFirstLoginToday_ ; + /** + * bool isFirstLoginToday = 3; + * @return The isFirstLoginToday. + */ + @java.lang.Override + public boolean getIsFirstLoginToday() { + return isFirstLoginToday_; + } + /** + * bool isFirstLoginToday = 3; + * @param value The isFirstLoginToday to set. + * @return This builder for chaining. + */ + public Builder setIsFirstLoginToday(boolean value) { + + isFirstLoginToday_ = value; + onChanged(); + return this; + } + /** + * bool isFirstLoginToday = 3; + * @return This builder for chaining. + */ + public Builder clearIsFirstLoginToday() { + + isFirstLoginToday_ = false; + onChanged(); + return this; + } + + private int regionId_ ; + /** + * uint32 regionId = 4; + * @return The regionId. + */ + @java.lang.Override + public int getRegionId() { + return regionId_; + } + /** + * uint32 regionId = 4; + * @param value The regionId to set. + * @return This builder for chaining. + */ + public Builder setRegionId(int value) { + + regionId_ = value; + onChanged(); + return this; + } + /** + * uint32 regionId = 4; + * @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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + 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; + } + /** + * map<uint32, .PropValue> propMap = 6; + */ + + public Builder putAllPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cb46fb3f7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerDieTypeOuterClass.java @@ -0,0 +1,212 @@ +// 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 { + /** + * PlayerDieNone = 0; + */ + PlayerDieNone(0), + /** + * PlayerDieKillByMonster = 1; + */ + PlayerDieKillByMonster(1), + /** + * PlayerDieKillByGear = 2; + */ + PlayerDieKillByGear(2), + /** + * PlayerDieFall = 3; + */ + PlayerDieFall(3), + /** + * PlayerDieDrawn = 4; + */ + PlayerDieDrawn(4), + /** + * PlayerDieAbyss = 5; + */ + PlayerDieAbyss(5), + /** + * PlayerDieGm = 6; + */ + PlayerDieGm(6), + /** + * PlayerDieClimateCold = 7; + */ + PlayerDieClimateCold(7), + /** + * PlayerDieStormLighting = 8; + */ + PlayerDieStormLighting(8), + UNRECOGNIZED(-1), + ; + + /** + * PlayerDieNone = 0; + */ + public static final int PlayerDieNone_VALUE = 0; + /** + * PlayerDieKillByMonster = 1; + */ + public static final int PlayerDieKillByMonster_VALUE = 1; + /** + * PlayerDieKillByGear = 2; + */ + public static final int PlayerDieKillByGear_VALUE = 2; + /** + * PlayerDieFall = 3; + */ + public static final int PlayerDieFall_VALUE = 3; + /** + * PlayerDieDrawn = 4; + */ + public static final int PlayerDieDrawn_VALUE = 4; + /** + * PlayerDieAbyss = 5; + */ + public static final int PlayerDieAbyss_VALUE = 5; + /** + * PlayerDieGm = 6; + */ + public static final int PlayerDieGm_VALUE = 6; + /** + * PlayerDieClimateCold = 7; + */ + public static final int PlayerDieClimateCold_VALUE = 7; + /** + * PlayerDieStormLighting = 8; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PlayerDieType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..656c49908 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneInfoNotifyOuterClass.java @@ -0,0 +1,1400 @@ +// 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 { + + /** + * uint32 curAvatarEntityId = 1; + * @return The curAvatarEntityId. + */ + int getCurAvatarEntityId(); + + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + java.util.List + getAvatarEnterInfoList(); + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index); + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + int getAvatarEnterInfoCount(); + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + java.util.List + getAvatarEnterInfoOrBuilderList(); + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder getAvatarEnterInfoOrBuilder( + int index); + + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @return Whether the teamEnterInfo field is set. + */ + boolean hasTeamEnterInfo(); + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @return The teamEnterInfo. + */ + emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo getTeamEnterInfo(); + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfoOrBuilder getTeamEnterInfoOrBuilder(); + + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @return Whether the mpLevelEntityInfo field is set. + */ + boolean hasMpLevelEntityInfo(); + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @return The mpLevelEntityInfo. + */ + emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo getMpLevelEntityInfo(); + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder getMpLevelEntityInfoOrBuilder(); + + /** + * uint32 enterSceneToken = 5; + * @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(); + 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_; + /** + * uint32 curAvatarEntityId = 1; + * @return The curAvatarEntityId. + */ + @java.lang.Override + public int getCurAvatarEntityId() { + return curAvatarEntityId_; + } + + public static final int AVATARENTERINFO_FIELD_NUMBER = 2; + private java.util.List avatarEnterInfo_; + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + @java.lang.Override + public java.util.List getAvatarEnterInfoList() { + return avatarEnterInfo_; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + @java.lang.Override + public java.util.List + getAvatarEnterInfoOrBuilderList() { + return avatarEnterInfo_; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + @java.lang.Override + public int getAvatarEnterInfoCount() { + return avatarEnterInfo_.size(); + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index) { + return avatarEnterInfo_.get(index); + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + @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_; + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @return Whether the teamEnterInfo field is set. + */ + @java.lang.Override + public boolean hasTeamEnterInfo() { + return teamEnterInfo_ != null; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @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_; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + @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_; + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @return Whether the mpLevelEntityInfo field is set. + */ + @java.lang.Override + public boolean hasMpLevelEntityInfo() { + return mpLevelEntityInfo_ != null; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @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_; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfoOrBuilder getMpLevelEntityInfoOrBuilder() { + return getMpLevelEntityInfo(); + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 5; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 5; + * @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 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_ ; + /** + * uint32 curAvatarEntityId = 1; + * @return The curAvatarEntityId. + */ + @java.lang.Override + public int getCurAvatarEntityId() { + return curAvatarEntityId_; + } + /** + * uint32 curAvatarEntityId = 1; + * @param value The curAvatarEntityId to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarEntityId(int value) { + + curAvatarEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 curAvatarEntityId = 1; + * @return This builder for chaining. + */ + public Builder clearCurAvatarEntityId() { + + curAvatarEntityId_ = 0; + onChanged(); + return this; + } + + private java.util.List avatarEnterInfo_ = + java.util.Collections.emptyList(); + private void ensureAvatarEnterInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + avatarEnterInfo_ = new java.util.ArrayList(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_; + + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public java.util.List getAvatarEnterInfoList() { + if (avatarEnterInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(avatarEnterInfo_); + } else { + return avatarEnterInfoBuilder_.getMessageList(); + } + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public int getAvatarEnterInfoCount() { + if (avatarEnterInfoBuilder_ == null) { + return avatarEnterInfo_.size(); + } else { + return avatarEnterInfoBuilder_.getCount(); + } + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo getAvatarEnterInfo(int index) { + if (avatarEnterInfoBuilder_ == null) { + return avatarEnterInfo_.get(index); + } else { + return avatarEnterInfoBuilder_.getMessage(index); + } + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + 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; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public Builder addAllAvatarEnterInfo( + java.lang.Iterable values) { + if (avatarEnterInfoBuilder_ == null) { + ensureAvatarEnterInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarEnterInfo_); + onChanged(); + } else { + avatarEnterInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public Builder clearAvatarEnterInfo() { + if (avatarEnterInfoBuilder_ == null) { + avatarEnterInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + avatarEnterInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public Builder removeAvatarEnterInfo(int index) { + if (avatarEnterInfoBuilder_ == null) { + ensureAvatarEnterInfoIsMutable(); + avatarEnterInfo_.remove(index); + onChanged(); + } else { + avatarEnterInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder getAvatarEnterInfoBuilder( + int index) { + return getAvatarEnterInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfoOrBuilder getAvatarEnterInfoOrBuilder( + int index) { + if (avatarEnterInfoBuilder_ == null) { + return avatarEnterInfo_.get(index); } else { + return avatarEnterInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public java.util.List + getAvatarEnterInfoOrBuilderList() { + if (avatarEnterInfoBuilder_ != null) { + return avatarEnterInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(avatarEnterInfo_); + } + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder addAvatarEnterInfoBuilder() { + return getAvatarEnterInfoFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance()); + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.Builder addAvatarEnterInfoBuilder( + int index) { + return getAvatarEnterInfoFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AvatarEnterSceneInfoOuterClass.AvatarEnterSceneInfo.getDefaultInstance()); + } + /** + * repeated .AvatarEnterSceneInfo avatarEnterInfo = 2; + */ + public java.util.List + 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_; + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @return Whether the teamEnterInfo field is set. + */ + public boolean hasTeamEnterInfo() { + return teamEnterInfoBuilder_ != null || teamEnterInfo_ != null; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + * @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(); + } + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + 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; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + 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; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + 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; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + public Builder clearTeamEnterInfo() { + if (teamEnterInfoBuilder_ == null) { + teamEnterInfo_ = null; + onChanged(); + } else { + teamEnterInfo_ = null; + teamEnterInfoBuilder_ = null; + } + + return this; + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + public emu.grasscutter.net.proto.TeamEnterSceneInfoOuterClass.TeamEnterSceneInfo.Builder getTeamEnterInfoBuilder() { + + onChanged(); + return getTeamEnterInfoFieldBuilder().getBuilder(); + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + 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_; + } + } + /** + * .TeamEnterSceneInfo teamEnterInfo = 3; + */ + 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_; + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @return Whether the mpLevelEntityInfo field is set. + */ + public boolean hasMpLevelEntityInfo() { + return mpLevelEntityInfoBuilder_ != null || mpLevelEntityInfo_ != null; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + * @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(); + } + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + 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; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + 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; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + 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; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + public Builder clearMpLevelEntityInfo() { + if (mpLevelEntityInfoBuilder_ == null) { + mpLevelEntityInfo_ = null; + onChanged(); + } else { + mpLevelEntityInfo_ = null; + mpLevelEntityInfoBuilder_ = null; + } + + return this; + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + public emu.grasscutter.net.proto.MPLevelEntityInfoOuterClass.MPLevelEntityInfo.Builder getMpLevelEntityInfoBuilder() { + + onChanged(); + return getMpLevelEntityInfoFieldBuilder().getBuilder(); + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + 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_; + } + } + /** + * .MPLevelEntityInfo mpLevelEntityInfo = 4; + */ + 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_ ; + /** + * uint32 enterSceneToken = 5; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 5; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fa0c571b6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerEnterSceneNotifyOuterClass.java @@ -0,0 +1,2112 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + boolean hasPos(); + /** + * .Vector pos = 2; + * @return The pos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); + /** + * .Vector pos = 2; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); + + /** + * uint64 sceneBeginTime = 3; + * @return The sceneBeginTime. + */ + long getSceneBeginTime(); + + /** + * .EnterType type = 4; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * .EnterType type = 4; + * @return The type. + */ + emu.grasscutter.net.proto.EnterTypeOuterClass.EnterType getType(); + + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint32 prevSceneId = 9; + * @return The prevSceneId. + */ + int getPrevSceneId(); + + /** + * .Vector prevPos = 10; + * @return Whether the prevPos field is set. + */ + boolean hasPrevPos(); + /** + * .Vector prevPos = 10; + * @return The prevPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPrevPos(); + /** + * .Vector prevPos = 10; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPrevPosOrBuilder(); + + /** + * uint32 dungeonId = 11; + * @return The dungeonId. + */ + int getDungeonId(); + + /** + * uint32 worldLevel = 12; + * @return The worldLevel. + */ + int getWorldLevel(); + + /** + * uint32 enterSceneToken = 13; + * @return The enterSceneToken. + */ + int getEnterSceneToken(); + + /** + * bool isFirstLoginEnterScene = 14; + * @return The isFirstLoginEnterScene. + */ + boolean getIsFirstLoginEnterScene(); + + /** + * repeated uint32 sceneTagIdList = 15; + * @return A list containing the sceneTagIdList. + */ + java.util.List getSceneTagIdListList(); + /** + * repeated uint32 sceneTagIdList = 15; + * @return The count of sceneTagIdList. + */ + int getSceneTagIdListCount(); + /** + * repeated uint32 sceneTagIdList = 15; + * @param index The index of the element to return. + * @return The sceneTagIdList at the given index. + */ + int getSceneTagIdList(int index); + + /** + * bool isSkipUi = 16; + * @return The isSkipUi. + */ + boolean getIsSkipUi(); + + /** + * uint32 enterReason = 17; + * @return The enterReason. + */ + int getEnterReason(); + + /** + * uint32 unk1 = 18; + * @return The unk1. + */ + int getUnk1(); + + /** + * string unk2 = 19; + * @return The unk2. + */ + java.lang.String getUnk2(); + /** + * string unk2 = 19; + * @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_; + /** + * uint32 sceneId = 1; + * @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_; + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + @java.lang.Override + public boolean hasPos() { + return pos_ != null; + } + /** + * .Vector pos = 2; + * @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_; + } + /** + * .Vector pos = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() { + return getPos(); + } + + public static final int SCENEBEGINTIME_FIELD_NUMBER = 3; + private long sceneBeginTime_; + /** + * uint64 sceneBeginTime = 3; + * @return The sceneBeginTime. + */ + @java.lang.Override + public long getSceneBeginTime() { + return sceneBeginTime_; + } + + public static final int TYPE_FIELD_NUMBER = 4; + private int type_; + /** + * .EnterType type = 4; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .EnterType type = 4; + * @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_; + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int PREVSCENEID_FIELD_NUMBER = 9; + private int prevSceneId_; + /** + * uint32 prevSceneId = 9; + * @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_; + /** + * .Vector prevPos = 10; + * @return Whether the prevPos field is set. + */ + @java.lang.Override + public boolean hasPrevPos() { + return prevPos_ != null; + } + /** + * .Vector prevPos = 10; + * @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_; + } + /** + * .Vector prevPos = 10; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPrevPosOrBuilder() { + return getPrevPos(); + } + + public static final int DUNGEONID_FIELD_NUMBER = 11; + private int dungeonId_; + /** + * uint32 dungeonId = 11; + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + + public static final int WORLDLEVEL_FIELD_NUMBER = 12; + private int worldLevel_; + /** + * uint32 worldLevel = 12; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 13; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 13; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + + public static final int ISFIRSTLOGINENTERSCENE_FIELD_NUMBER = 14; + private boolean isFirstLoginEnterScene_; + /** + * bool isFirstLoginEnterScene = 14; + * @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_; + /** + * repeated uint32 sceneTagIdList = 15; + * @return A list containing the sceneTagIdList. + */ + @java.lang.Override + public java.util.List + getSceneTagIdListList() { + return sceneTagIdList_; + } + /** + * repeated uint32 sceneTagIdList = 15; + * @return The count of sceneTagIdList. + */ + public int getSceneTagIdListCount() { + return sceneTagIdList_.size(); + } + /** + * repeated uint32 sceneTagIdList = 15; + * @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_; + /** + * bool isSkipUi = 16; + * @return The isSkipUi. + */ + @java.lang.Override + public boolean getIsSkipUi() { + return isSkipUi_; + } + + public static final int ENTERREASON_FIELD_NUMBER = 17; + private int enterReason_; + /** + * uint32 enterReason = 17; + * @return The enterReason. + */ + @java.lang.Override + public int getEnterReason() { + return enterReason_; + } + + public static final int UNK1_FIELD_NUMBER = 18; + private int unk1_; + /** + * uint32 unk1 = 18; + * @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_; + /** + * string unk2 = 19; + * @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; + } + } + /** + * string unk2 = 19; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @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_; + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + public boolean hasPos() { + return posBuilder_ != null || pos_ != null; + } + /** + * .Vector pos = 2; + * @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(); + } + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + public Builder clearPos() { + if (posBuilder_ == null) { + pos_ = null; + onChanged(); + } else { + pos_ = null; + posBuilder_ = null; + } + + return this; + } + /** + * .Vector pos = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { + + onChanged(); + return getPosFieldBuilder().getBuilder(); + } + /** + * .Vector pos = 2; + */ + 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_; + } + } + /** + * .Vector pos = 2; + */ + 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_ ; + /** + * uint64 sceneBeginTime = 3; + * @return The sceneBeginTime. + */ + @java.lang.Override + public long getSceneBeginTime() { + return sceneBeginTime_; + } + /** + * uint64 sceneBeginTime = 3; + * @param value The sceneBeginTime to set. + * @return This builder for chaining. + */ + public Builder setSceneBeginTime(long value) { + + sceneBeginTime_ = value; + onChanged(); + return this; + } + /** + * uint64 sceneBeginTime = 3; + * @return This builder for chaining. + */ + public Builder clearSceneBeginTime() { + + sceneBeginTime_ = 0L; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * .EnterType type = 4; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + * .EnterType type = 4; + * @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; + } + /** + * .EnterType type = 4; + * @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; + } + /** + * .EnterType type = 4; + * @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; + } + /** + * .EnterType type = 4; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 6; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 6; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int prevSceneId_ ; + /** + * uint32 prevSceneId = 9; + * @return The prevSceneId. + */ + @java.lang.Override + public int getPrevSceneId() { + return prevSceneId_; + } + /** + * uint32 prevSceneId = 9; + * @param value The prevSceneId to set. + * @return This builder for chaining. + */ + public Builder setPrevSceneId(int value) { + + prevSceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 prevSceneId = 9; + * @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_; + /** + * .Vector prevPos = 10; + * @return Whether the prevPos field is set. + */ + public boolean hasPrevPos() { + return prevPosBuilder_ != null || prevPos_ != null; + } + /** + * .Vector prevPos = 10; + * @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(); + } + } + /** + * .Vector prevPos = 10; + */ + 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; + } + /** + * .Vector prevPos = 10; + */ + 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; + } + /** + * .Vector prevPos = 10; + */ + 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; + } + /** + * .Vector prevPos = 10; + */ + public Builder clearPrevPos() { + if (prevPosBuilder_ == null) { + prevPos_ = null; + onChanged(); + } else { + prevPos_ = null; + prevPosBuilder_ = null; + } + + return this; + } + /** + * .Vector prevPos = 10; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPrevPosBuilder() { + + onChanged(); + return getPrevPosFieldBuilder().getBuilder(); + } + /** + * .Vector prevPos = 10; + */ + 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_; + } + } + /** + * .Vector prevPos = 10; + */ + 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_ ; + /** + * uint32 dungeonId = 11; + * @return The dungeonId. + */ + @java.lang.Override + public int getDungeonId() { + return dungeonId_; + } + /** + * uint32 dungeonId = 11; + * @param value The dungeonId to set. + * @return This builder for chaining. + */ + public Builder setDungeonId(int value) { + + dungeonId_ = value; + onChanged(); + return this; + } + /** + * uint32 dungeonId = 11; + * @return This builder for chaining. + */ + public Builder clearDungeonId() { + + dungeonId_ = 0; + onChanged(); + return this; + } + + private int worldLevel_ ; + /** + * uint32 worldLevel = 12; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + /** + * uint32 worldLevel = 12; + * @param value The worldLevel to set. + * @return This builder for chaining. + */ + public Builder setWorldLevel(int value) { + + worldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 worldLevel = 12; + * @return This builder for chaining. + */ + public Builder clearWorldLevel() { + + worldLevel_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 enterSceneToken = 13; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 13; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 13; + * @return This builder for chaining. + */ + public Builder clearEnterSceneToken() { + + enterSceneToken_ = 0; + onChanged(); + return this; + } + + private boolean isFirstLoginEnterScene_ ; + /** + * bool isFirstLoginEnterScene = 14; + * @return The isFirstLoginEnterScene. + */ + @java.lang.Override + public boolean getIsFirstLoginEnterScene() { + return isFirstLoginEnterScene_; + } + /** + * bool isFirstLoginEnterScene = 14; + * @param value The isFirstLoginEnterScene to set. + * @return This builder for chaining. + */ + public Builder setIsFirstLoginEnterScene(boolean value) { + + isFirstLoginEnterScene_ = value; + onChanged(); + return this; + } + /** + * bool isFirstLoginEnterScene = 14; + * @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; + } + } + /** + * repeated uint32 sceneTagIdList = 15; + * @return A list containing the sceneTagIdList. + */ + public java.util.List + getSceneTagIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(sceneTagIdList_) : sceneTagIdList_; + } + /** + * repeated uint32 sceneTagIdList = 15; + * @return The count of sceneTagIdList. + */ + public int getSceneTagIdListCount() { + return sceneTagIdList_.size(); + } + /** + * repeated uint32 sceneTagIdList = 15; + * @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); + } + /** + * repeated uint32 sceneTagIdList = 15; + * @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; + } + /** + * repeated uint32 sceneTagIdList = 15; + * @param value The sceneTagIdList to add. + * @return This builder for chaining. + */ + public Builder addSceneTagIdList(int value) { + ensureSceneTagIdListIsMutable(); + sceneTagIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 sceneTagIdList = 15; + * @param values The sceneTagIdList to add. + * @return This builder for chaining. + */ + public Builder addAllSceneTagIdList( + java.lang.Iterable values) { + ensureSceneTagIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sceneTagIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 sceneTagIdList = 15; + * @return This builder for chaining. + */ + public Builder clearSceneTagIdList() { + sceneTagIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean isSkipUi_ ; + /** + * bool isSkipUi = 16; + * @return The isSkipUi. + */ + @java.lang.Override + public boolean getIsSkipUi() { + return isSkipUi_; + } + /** + * bool isSkipUi = 16; + * @param value The isSkipUi to set. + * @return This builder for chaining. + */ + public Builder setIsSkipUi(boolean value) { + + isSkipUi_ = value; + onChanged(); + return this; + } + /** + * bool isSkipUi = 16; + * @return This builder for chaining. + */ + public Builder clearIsSkipUi() { + + isSkipUi_ = false; + onChanged(); + return this; + } + + private int enterReason_ ; + /** + * uint32 enterReason = 17; + * @return The enterReason. + */ + @java.lang.Override + public int getEnterReason() { + return enterReason_; + } + /** + * uint32 enterReason = 17; + * @param value The enterReason to set. + * @return This builder for chaining. + */ + public Builder setEnterReason(int value) { + + enterReason_ = value; + onChanged(); + return this; + } + /** + * uint32 enterReason = 17; + * @return This builder for chaining. + */ + public Builder clearEnterReason() { + + enterReason_ = 0; + onChanged(); + return this; + } + + private int unk1_ ; + /** + * uint32 unk1 = 18; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + /** + * uint32 unk1 = 18; + * @param value The unk1 to set. + * @return This builder for chaining. + */ + public Builder setUnk1(int value) { + + unk1_ = value; + onChanged(); + return this; + } + /** + * uint32 unk1 = 18; + * @return This builder for chaining. + */ + public Builder clearUnk1() { + + unk1_ = 0; + onChanged(); + return this; + } + + private java.lang.Object unk2_ = ""; + /** + * string unk2 = 19; + * @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; + } + } + /** + * string unk2 = 19; + * @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; + } + } + /** + * string unk2 = 19; + * @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; + } + /** + * string unk2 = 19; + * @return This builder for chaining. + */ + public Builder clearUnk2() { + + unk2_ = getDefaultInstance().getUnk2(); + onChanged(); + return this; + } + /** + * string unk2 = 19; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..219a1c940 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerGameTimeNotifyOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + int getGameTime(); + + /** + * uint32 uid = 2; + * @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_; + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + @java.lang.Override + public int getGameTime() { + return gameTime_; + } + + public static final int UID_FIELD_NUMBER = 2; + private int uid_; + /** + * uint32 uid = 2; + * @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 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_ ; + /** + * uint32 gameTime = 1; + * @return The gameTime. + */ + @java.lang.Override + public int getGameTime() { + return gameTime_; + } + /** + * uint32 gameTime = 1; + * @param value The gameTime to set. + * @return This builder for chaining. + */ + public Builder setGameTime(int value) { + + gameTime_ = value; + onChanged(); + return this; + } + /** + * uint32 gameTime = 1; + * @return This builder for chaining. + */ + public Builder clearGameTime() { + + gameTime_ = 0; + onChanged(); + return this; + } + + private int uid_ ; + /** + * uint32 uid = 2; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 2; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bcb422868 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerGetForceQuitBanInfoRspOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 matchId = 2; + * @return The matchId. + */ + int getMatchId(); + + /** + * uint32 expireTime = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int MATCHID_FIELD_NUMBER = 2; + private int matchId_; + /** + * uint32 matchId = 2; + * @return The matchId. + */ + @java.lang.Override + public int getMatchId() { + return matchId_; + } + + public static final int EXPIRETIME_FIELD_NUMBER = 3; + private int expireTime_; + /** + * uint32 expireTime = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int matchId_ ; + /** + * uint32 matchId = 2; + * @return The matchId. + */ + @java.lang.Override + public int getMatchId() { + return matchId_; + } + /** + * uint32 matchId = 2; + * @param value The matchId to set. + * @return This builder for chaining. + */ + public Builder setMatchId(int value) { + + matchId_ = value; + onChanged(); + return this; + } + /** + * uint32 matchId = 2; + * @return This builder for chaining. + */ + public Builder clearMatchId() { + + matchId_ = 0; + onChanged(); + return this; + } + + private int expireTime_ ; + /** + * uint32 expireTime = 3; + * @return The expireTime. + */ + @java.lang.Override + public int getExpireTime() { + return expireTime_; + } + /** + * uint32 expireTime = 3; + * @param value The expireTime to set. + * @return This builder for chaining. + */ + public Builder setExpireTime(int value) { + + expireTime_ = value; + onChanged(); + return this; + } + /** + * uint32 expireTime = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/PlayerLocationInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/PlayerLocationInfoOuterClass.java new file mode 100644 index 000000000..2cd579cac --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerLocationInfoOuterClass.java @@ -0,0 +1,945 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + boolean hasPos(); + /** + * .Vector pos = 2; + * @return The pos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPos(); + /** + * .Vector pos = 2; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder(); + + /** + * .Vector rot = 3; + * @return Whether the rot field is set. + */ + boolean hasRot(); + /** + * .Vector rot = 3; + * @return The rot. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getRot(); + /** + * .Vector rot = 3; + */ + 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_; + /** + * uint32 uid = 1; + * @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_; + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + @java.lang.Override + public boolean hasPos() { + return pos_ != null; + } + /** + * .Vector pos = 2; + * @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_; + } + /** + * .Vector pos = 2; + */ + @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_; + /** + * .Vector rot = 3; + * @return Whether the rot field is set. + */ + @java.lang.Override + public boolean hasRot() { + return rot_ != null; + } + /** + * .Vector rot = 3; + * @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_; + } + /** + * .Vector rot = 3; + */ + @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @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_; + /** + * .Vector pos = 2; + * @return Whether the pos field is set. + */ + public boolean hasPos() { + return posBuilder_ != null || pos_ != null; + } + /** + * .Vector pos = 2; + * @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(); + } + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + 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; + } + /** + * .Vector pos = 2; + */ + public Builder clearPos() { + if (posBuilder_ == null) { + pos_ = null; + onChanged(); + } else { + pos_ = null; + posBuilder_ = null; + } + + return this; + } + /** + * .Vector pos = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() { + + onChanged(); + return getPosFieldBuilder().getBuilder(); + } + /** + * .Vector pos = 2; + */ + 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_; + } + } + /** + * .Vector pos = 2; + */ + 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_; + /** + * .Vector rot = 3; + * @return Whether the rot field is set. + */ + public boolean hasRot() { + return rotBuilder_ != null || rot_ != null; + } + /** + * .Vector rot = 3; + * @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(); + } + } + /** + * .Vector rot = 3; + */ + 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; + } + /** + * .Vector rot = 3; + */ + 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; + } + /** + * .Vector rot = 3; + */ + 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; + } + /** + * .Vector rot = 3; + */ + public Builder clearRot() { + if (rotBuilder_ == null) { + rot_ = null; + onChanged(); + } else { + rot_ = null; + rotBuilder_ = null; + } + + return this; + } + /** + * .Vector rot = 3; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() { + + onChanged(); + return getRotFieldBuilder().getBuilder(); + } + /** + * .Vector rot = 3; + */ + 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_; + } + } + /** + * .Vector rot = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c4861beaf --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerLoginReqOuterClass.java @@ -0,0 +1,4063 @@ +// 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 { + + /** + * string token = 1; + * @return The token. + */ + java.lang.String getToken(); + /** + * string token = 1; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + * string clientVersion = 2; + * @return The clientVersion. + */ + java.lang.String getClientVersion(); + /** + * string clientVersion = 2; + * @return The bytes for clientVersion. + */ + com.google.protobuf.ByteString + getClientVersionBytes(); + + /** + * string systemVersion = 3; + * @return The systemVersion. + */ + java.lang.String getSystemVersion(); + /** + * string systemVersion = 3; + * @return The bytes for systemVersion. + */ + com.google.protobuf.ByteString + getSystemVersionBytes(); + + /** + * string deviceName = 4; + * @return The deviceName. + */ + java.lang.String getDeviceName(); + /** + * string deviceName = 4; + * @return The bytes for deviceName. + */ + com.google.protobuf.ByteString + getDeviceNameBytes(); + + /** + * string deviceUuid = 5; + * @return The deviceUuid. + */ + java.lang.String getDeviceUuid(); + /** + * string deviceUuid = 5; + * @return The bytes for deviceUuid. + */ + com.google.protobuf.ByteString + getDeviceUuidBytes(); + + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint64 loginRand = 7; + * @return The loginRand. + */ + long getLoginRand(); + + /** + * bool isEditor = 8; + * @return The isEditor. + */ + boolean getIsEditor(); + + /** + * uint32 languageType = 9; + * @return The languageType. + */ + int getLanguageType(); + + /** + * uint32 accountType = 10; + * @return The accountType. + */ + int getAccountType(); + + /** + * string accountUid = 11; + * @return The accountUid. + */ + java.lang.String getAccountUid(); + /** + * string accountUid = 11; + * @return The bytes for accountUid. + */ + com.google.protobuf.ByteString + getAccountUidBytes(); + + /** + * string platform = 12; + * @return The platform. + */ + java.lang.String getPlatform(); + /** + * string platform = 12; + * @return The bytes for platform. + */ + com.google.protobuf.ByteString + getPlatformBytes(); + + /** + * string deviceInfo = 13; + * @return The deviceInfo. + */ + java.lang.String getDeviceInfo(); + /** + * string deviceInfo = 13; + * @return The bytes for deviceInfo. + */ + com.google.protobuf.ByteString + getDeviceInfoBytes(); + + /** + * uint32 platformType = 14; + * @return The platformType. + */ + int getPlatformType(); + + /** + * bool isGuest = 15; + * @return The isGuest. + */ + boolean getIsGuest(); + + /** + * uint32 cloudClientIp = 16; + * @return The cloudClientIp. + */ + int getCloudClientIp(); + + /** + * uint32 gmUid = 17; + * @return The gmUid. + */ + int getGmUid(); + + /** + * string checksum = 18; + * @return The checksum. + */ + java.lang.String getChecksum(); + /** + * string checksum = 18; + * @return The bytes for checksum. + */ + com.google.protobuf.ByteString + getChecksumBytes(); + + /** + * string onlineId = 19; + * @return The onlineId. + */ + java.lang.String getOnlineId(); + /** + * string onlineId = 19; + * @return The bytes for onlineId. + */ + com.google.protobuf.ByteString + getOnlineIdBytes(); + + /** + * uint32 clientToken = 20; + * @return The clientToken. + */ + int getClientToken(); + + /** + * bytes securityCmdReply = 21; + * @return The securityCmdReply. + */ + com.google.protobuf.ByteString getSecurityCmdReply(); + + /** + * bytes extraBinData = 22; + * @return The extraBinData. + */ + com.google.protobuf.ByteString getExtraBinData(); + + /** + * string cps = 23; + * @return The cps. + */ + java.lang.String getCps(); + /** + * string cps = 23; + * @return The bytes for cps. + */ + com.google.protobuf.ByteString + getCpsBytes(); + + /** + * uint32 channelId = 24; + * @return The channelId. + */ + int getChannelId(); + + /** + * uint32 subChannelId = 25; + * @return The subChannelId. + */ + int getSubChannelId(); + + /** + * string checksumClientVersion = 26; + * @return The checksumClientVersion. + */ + java.lang.String getChecksumClientVersion(); + /** + * string checksumClientVersion = 26; + * @return The bytes for checksumClientVersion. + */ + com.google.protobuf.ByteString + getChecksumClientVersionBytes(); + + /** + * uint32 tag = 27; + * @return The tag. + */ + int getTag(); + + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @return Whether the trackingIoInfo field is set. + */ + boolean hasTrackingIoInfo(); + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @return The trackingIoInfo. + */ + emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo getTrackingIoInfo(); + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfoOrBuilder getTrackingIoInfoOrBuilder(); + + /** + * string countryCode = 29; + * @return The countryCode. + */ + java.lang.String getCountryCode(); + /** + * string countryCode = 29; + * @return The bytes for countryCode. + */ + com.google.protobuf.ByteString + getCountryCodeBytes(); + + /** + * uint32 clientDataVersion = 30; + * @return The clientDataVersion. + */ + int getClientDataVersion(); + + /** + * bytes environmentErrorCode = 31; + * @return The environmentErrorCode. + */ + com.google.protobuf.ByteString getEnvironmentErrorCode(); + + /** + * uint32 targetHomeOwnerUid = 32; + * @return The targetHomeOwnerUid. + */ + int getTargetHomeOwnerUid(); + + /** + * string psnId = 33; + * @return The psnId. + */ + java.lang.String getPsnId(); + /** + * string psnId = 33; + * @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_; + /** + * string token = 1; + * @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; + } + } + /** + * string token = 1; + * @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_; + /** + * string clientVersion = 2; + * @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; + } + } + /** + * string clientVersion = 2; + * @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_; + /** + * string systemVersion = 3; + * @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; + } + } + /** + * string systemVersion = 3; + * @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_; + /** + * string deviceName = 4; + * @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; + } + } + /** + * string deviceName = 4; + * @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_; + /** + * string deviceUuid = 5; + * @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; + } + } + /** + * string deviceUuid = 5; + * @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_; + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int LOGINRAND_FIELD_NUMBER = 7; + private long loginRand_; + /** + * uint64 loginRand = 7; + * @return The loginRand. + */ + @java.lang.Override + public long getLoginRand() { + return loginRand_; + } + + public static final int ISEDITOR_FIELD_NUMBER = 8; + private boolean isEditor_; + /** + * bool isEditor = 8; + * @return The isEditor. + */ + @java.lang.Override + public boolean getIsEditor() { + return isEditor_; + } + + public static final int LANGUAGETYPE_FIELD_NUMBER = 9; + private int languageType_; + /** + * uint32 languageType = 9; + * @return The languageType. + */ + @java.lang.Override + public int getLanguageType() { + return languageType_; + } + + public static final int ACCOUNTTYPE_FIELD_NUMBER = 10; + private int accountType_; + /** + * uint32 accountType = 10; + * @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_; + /** + * string accountUid = 11; + * @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; + } + } + /** + * string accountUid = 11; + * @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_; + /** + * string platform = 12; + * @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; + } + } + /** + * string platform = 12; + * @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_; + /** + * string deviceInfo = 13; + * @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; + } + } + /** + * string deviceInfo = 13; + * @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_; + /** + * uint32 platformType = 14; + * @return The platformType. + */ + @java.lang.Override + public int getPlatformType() { + return platformType_; + } + + public static final int ISGUEST_FIELD_NUMBER = 15; + private boolean isGuest_; + /** + * bool isGuest = 15; + * @return The isGuest. + */ + @java.lang.Override + public boolean getIsGuest() { + return isGuest_; + } + + public static final int CLOUDCLIENTIP_FIELD_NUMBER = 16; + private int cloudClientIp_; + /** + * uint32 cloudClientIp = 16; + * @return The cloudClientIp. + */ + @java.lang.Override + public int getCloudClientIp() { + return cloudClientIp_; + } + + public static final int GMUID_FIELD_NUMBER = 17; + private int gmUid_; + /** + * uint32 gmUid = 17; + * @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_; + /** + * string checksum = 18; + * @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; + } + } + /** + * string checksum = 18; + * @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_; + /** + * string onlineId = 19; + * @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; + } + } + /** + * string onlineId = 19; + * @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_; + /** + * uint32 clientToken = 20; + * @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_; + /** + * bytes securityCmdReply = 21; + * @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_; + /** + * bytes extraBinData = 22; + * @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_; + /** + * string cps = 23; + * @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; + } + } + /** + * string cps = 23; + * @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_; + /** + * uint32 channelId = 24; + * @return The channelId. + */ + @java.lang.Override + public int getChannelId() { + return channelId_; + } + + public static final int SUBCHANNELID_FIELD_NUMBER = 25; + private int subChannelId_; + /** + * uint32 subChannelId = 25; + * @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_; + /** + * string checksumClientVersion = 26; + * @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; + } + } + /** + * string checksumClientVersion = 26; + * @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_; + /** + * uint32 tag = 27; + * @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_; + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @return Whether the trackingIoInfo field is set. + */ + @java.lang.Override + public boolean hasTrackingIoInfo() { + return trackingIoInfo_ != null; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @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_; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + @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_; + /** + * string countryCode = 29; + * @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; + } + } + /** + * string countryCode = 29; + * @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_; + /** + * uint32 clientDataVersion = 30; + * @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_; + /** + * bytes environmentErrorCode = 31; + * @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_; + /** + * uint32 targetHomeOwnerUid = 32; + * @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_; + /** + * string psnId = 33; + * @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; + } + } + /** + * string psnId = 33; + * @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 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_ = ""; + /** + * string token = 1; + * @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; + } + } + /** + * string token = 1; + * @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; + } + } + /** + * string token = 1; + * @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; + } + /** + * string token = 1; + * @return This builder for chaining. + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + * string token = 1; + * @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_ = ""; + /** + * string clientVersion = 2; + * @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; + } + } + /** + * string clientVersion = 2; + * @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; + } + } + /** + * string clientVersion = 2; + * @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; + } + /** + * string clientVersion = 2; + * @return This builder for chaining. + */ + public Builder clearClientVersion() { + + clientVersion_ = getDefaultInstance().getClientVersion(); + onChanged(); + return this; + } + /** + * string clientVersion = 2; + * @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_ = ""; + /** + * string systemVersion = 3; + * @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; + } + } + /** + * string systemVersion = 3; + * @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; + } + } + /** + * string systemVersion = 3; + * @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; + } + /** + * string systemVersion = 3; + * @return This builder for chaining. + */ + public Builder clearSystemVersion() { + + systemVersion_ = getDefaultInstance().getSystemVersion(); + onChanged(); + return this; + } + /** + * string systemVersion = 3; + * @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_ = ""; + /** + * string deviceName = 4; + * @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; + } + } + /** + * string deviceName = 4; + * @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; + } + } + /** + * string deviceName = 4; + * @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; + } + /** + * string deviceName = 4; + * @return This builder for chaining. + */ + public Builder clearDeviceName() { + + deviceName_ = getDefaultInstance().getDeviceName(); + onChanged(); + return this; + } + /** + * string deviceName = 4; + * @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_ = ""; + /** + * string deviceUuid = 5; + * @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; + } + } + /** + * string deviceUuid = 5; + * @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; + } + } + /** + * string deviceUuid = 5; + * @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; + } + /** + * string deviceUuid = 5; + * @return This builder for chaining. + */ + public Builder clearDeviceUuid() { + + deviceUuid_ = getDefaultInstance().getDeviceUuid(); + onChanged(); + return this; + } + /** + * string deviceUuid = 5; + * @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_ ; + /** + * uint32 targetUid = 6; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 6; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 6; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private long loginRand_ ; + /** + * uint64 loginRand = 7; + * @return The loginRand. + */ + @java.lang.Override + public long getLoginRand() { + return loginRand_; + } + /** + * uint64 loginRand = 7; + * @param value The loginRand to set. + * @return This builder for chaining. + */ + public Builder setLoginRand(long value) { + + loginRand_ = value; + onChanged(); + return this; + } + /** + * uint64 loginRand = 7; + * @return This builder for chaining. + */ + public Builder clearLoginRand() { + + loginRand_ = 0L; + onChanged(); + return this; + } + + private boolean isEditor_ ; + /** + * bool isEditor = 8; + * @return The isEditor. + */ + @java.lang.Override + public boolean getIsEditor() { + return isEditor_; + } + /** + * bool isEditor = 8; + * @param value The isEditor to set. + * @return This builder for chaining. + */ + public Builder setIsEditor(boolean value) { + + isEditor_ = value; + onChanged(); + return this; + } + /** + * bool isEditor = 8; + * @return This builder for chaining. + */ + public Builder clearIsEditor() { + + isEditor_ = false; + onChanged(); + return this; + } + + private int languageType_ ; + /** + * uint32 languageType = 9; + * @return The languageType. + */ + @java.lang.Override + public int getLanguageType() { + return languageType_; + } + /** + * uint32 languageType = 9; + * @param value The languageType to set. + * @return This builder for chaining. + */ + public Builder setLanguageType(int value) { + + languageType_ = value; + onChanged(); + return this; + } + /** + * uint32 languageType = 9; + * @return This builder for chaining. + */ + public Builder clearLanguageType() { + + languageType_ = 0; + onChanged(); + return this; + } + + private int accountType_ ; + /** + * uint32 accountType = 10; + * @return The accountType. + */ + @java.lang.Override + public int getAccountType() { + return accountType_; + } + /** + * uint32 accountType = 10; + * @param value The accountType to set. + * @return This builder for chaining. + */ + public Builder setAccountType(int value) { + + accountType_ = value; + onChanged(); + return this; + } + /** + * uint32 accountType = 10; + * @return This builder for chaining. + */ + public Builder clearAccountType() { + + accountType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object accountUid_ = ""; + /** + * string accountUid = 11; + * @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; + } + } + /** + * string accountUid = 11; + * @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; + } + } + /** + * string accountUid = 11; + * @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; + } + /** + * string accountUid = 11; + * @return This builder for chaining. + */ + public Builder clearAccountUid() { + + accountUid_ = getDefaultInstance().getAccountUid(); + onChanged(); + return this; + } + /** + * string accountUid = 11; + * @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_ = ""; + /** + * string platform = 12; + * @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; + } + } + /** + * string platform = 12; + * @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; + } + } + /** + * string platform = 12; + * @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; + } + /** + * string platform = 12; + * @return This builder for chaining. + */ + public Builder clearPlatform() { + + platform_ = getDefaultInstance().getPlatform(); + onChanged(); + return this; + } + /** + * string platform = 12; + * @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_ = ""; + /** + * string deviceInfo = 13; + * @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; + } + } + /** + * string deviceInfo = 13; + * @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; + } + } + /** + * string deviceInfo = 13; + * @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; + } + /** + * string deviceInfo = 13; + * @return This builder for chaining. + */ + public Builder clearDeviceInfo() { + + deviceInfo_ = getDefaultInstance().getDeviceInfo(); + onChanged(); + return this; + } + /** + * string deviceInfo = 13; + * @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_ ; + /** + * uint32 platformType = 14; + * @return The platformType. + */ + @java.lang.Override + public int getPlatformType() { + return platformType_; + } + /** + * uint32 platformType = 14; + * @param value The platformType to set. + * @return This builder for chaining. + */ + public Builder setPlatformType(int value) { + + platformType_ = value; + onChanged(); + return this; + } + /** + * uint32 platformType = 14; + * @return This builder for chaining. + */ + public Builder clearPlatformType() { + + platformType_ = 0; + onChanged(); + return this; + } + + private boolean isGuest_ ; + /** + * bool isGuest = 15; + * @return The isGuest. + */ + @java.lang.Override + public boolean getIsGuest() { + return isGuest_; + } + /** + * bool isGuest = 15; + * @param value The isGuest to set. + * @return This builder for chaining. + */ + public Builder setIsGuest(boolean value) { + + isGuest_ = value; + onChanged(); + return this; + } + /** + * bool isGuest = 15; + * @return This builder for chaining. + */ + public Builder clearIsGuest() { + + isGuest_ = false; + onChanged(); + return this; + } + + private int cloudClientIp_ ; + /** + * uint32 cloudClientIp = 16; + * @return The cloudClientIp. + */ + @java.lang.Override + public int getCloudClientIp() { + return cloudClientIp_; + } + /** + * uint32 cloudClientIp = 16; + * @param value The cloudClientIp to set. + * @return This builder for chaining. + */ + public Builder setCloudClientIp(int value) { + + cloudClientIp_ = value; + onChanged(); + return this; + } + /** + * uint32 cloudClientIp = 16; + * @return This builder for chaining. + */ + public Builder clearCloudClientIp() { + + cloudClientIp_ = 0; + onChanged(); + return this; + } + + private int gmUid_ ; + /** + * uint32 gmUid = 17; + * @return The gmUid. + */ + @java.lang.Override + public int getGmUid() { + return gmUid_; + } + /** + * uint32 gmUid = 17; + * @param value The gmUid to set. + * @return This builder for chaining. + */ + public Builder setGmUid(int value) { + + gmUid_ = value; + onChanged(); + return this; + } + /** + * uint32 gmUid = 17; + * @return This builder for chaining. + */ + public Builder clearGmUid() { + + gmUid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object checksum_ = ""; + /** + * string checksum = 18; + * @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; + } + } + /** + * string checksum = 18; + * @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; + } + } + /** + * string checksum = 18; + * @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; + } + /** + * string checksum = 18; + * @return This builder for chaining. + */ + public Builder clearChecksum() { + + checksum_ = getDefaultInstance().getChecksum(); + onChanged(); + return this; + } + /** + * string checksum = 18; + * @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_ = ""; + /** + * string onlineId = 19; + * @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; + } + } + /** + * string onlineId = 19; + * @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; + } + } + /** + * string onlineId = 19; + * @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; + } + /** + * string onlineId = 19; + * @return This builder for chaining. + */ + public Builder clearOnlineId() { + + onlineId_ = getDefaultInstance().getOnlineId(); + onChanged(); + return this; + } + /** + * string onlineId = 19; + * @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_ ; + /** + * uint32 clientToken = 20; + * @return The clientToken. + */ + @java.lang.Override + public int getClientToken() { + return clientToken_; + } + /** + * uint32 clientToken = 20; + * @param value The clientToken to set. + * @return This builder for chaining. + */ + public Builder setClientToken(int value) { + + clientToken_ = value; + onChanged(); + return this; + } + /** + * uint32 clientToken = 20; + * @return This builder for chaining. + */ + public Builder clearClientToken() { + + clientToken_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString securityCmdReply_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes securityCmdReply = 21; + * @return The securityCmdReply. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecurityCmdReply() { + return securityCmdReply_; + } + /** + * bytes securityCmdReply = 21; + * @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; + } + /** + * bytes securityCmdReply = 21; + * @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; + /** + * bytes extraBinData = 22; + * @return The extraBinData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtraBinData() { + return extraBinData_; + } + /** + * bytes extraBinData = 22; + * @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; + } + /** + * bytes extraBinData = 22; + * @return This builder for chaining. + */ + public Builder clearExtraBinData() { + + extraBinData_ = getDefaultInstance().getExtraBinData(); + onChanged(); + return this; + } + + private java.lang.Object cps_ = ""; + /** + * string cps = 23; + * @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; + } + } + /** + * string cps = 23; + * @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; + } + } + /** + * string cps = 23; + * @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; + } + /** + * string cps = 23; + * @return This builder for chaining. + */ + public Builder clearCps() { + + cps_ = getDefaultInstance().getCps(); + onChanged(); + return this; + } + /** + * string cps = 23; + * @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_ ; + /** + * uint32 channelId = 24; + * @return The channelId. + */ + @java.lang.Override + public int getChannelId() { + return channelId_; + } + /** + * uint32 channelId = 24; + * @param value The channelId to set. + * @return This builder for chaining. + */ + public Builder setChannelId(int value) { + + channelId_ = value; + onChanged(); + return this; + } + /** + * uint32 channelId = 24; + * @return This builder for chaining. + */ + public Builder clearChannelId() { + + channelId_ = 0; + onChanged(); + return this; + } + + private int subChannelId_ ; + /** + * uint32 subChannelId = 25; + * @return The subChannelId. + */ + @java.lang.Override + public int getSubChannelId() { + return subChannelId_; + } + /** + * uint32 subChannelId = 25; + * @param value The subChannelId to set. + * @return This builder for chaining. + */ + public Builder setSubChannelId(int value) { + + subChannelId_ = value; + onChanged(); + return this; + } + /** + * uint32 subChannelId = 25; + * @return This builder for chaining. + */ + public Builder clearSubChannelId() { + + subChannelId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object checksumClientVersion_ = ""; + /** + * string checksumClientVersion = 26; + * @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; + } + } + /** + * string checksumClientVersion = 26; + * @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; + } + } + /** + * string checksumClientVersion = 26; + * @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; + } + /** + * string checksumClientVersion = 26; + * @return This builder for chaining. + */ + public Builder clearChecksumClientVersion() { + + checksumClientVersion_ = getDefaultInstance().getChecksumClientVersion(); + onChanged(); + return this; + } + /** + * string checksumClientVersion = 26; + * @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_ ; + /** + * uint32 tag = 27; + * @return The tag. + */ + @java.lang.Override + public int getTag() { + return tag_; + } + /** + * uint32 tag = 27; + * @param value The tag to set. + * @return This builder for chaining. + */ + public Builder setTag(int value) { + + tag_ = value; + onChanged(); + return this; + } + /** + * uint32 tag = 27; + * @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_; + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @return Whether the trackingIoInfo field is set. + */ + public boolean hasTrackingIoInfo() { + return trackingIoInfoBuilder_ != null || trackingIoInfo_ != null; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + * @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(); + } + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + 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; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + 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; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + 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; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + public Builder clearTrackingIoInfo() { + if (trackingIoInfoBuilder_ == null) { + trackingIoInfo_ = null; + onChanged(); + } else { + trackingIoInfo_ = null; + trackingIoInfoBuilder_ = null; + } + + return this; + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + public emu.grasscutter.net.proto.TrackingIOInfoOuterClass.TrackingIOInfo.Builder getTrackingIoInfoBuilder() { + + onChanged(); + return getTrackingIoInfoFieldBuilder().getBuilder(); + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + 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_; + } + } + /** + * .TrackingIOInfo trackingIoInfo = 28; + */ + 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_ = ""; + /** + * string countryCode = 29; + * @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; + } + } + /** + * string countryCode = 29; + * @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; + } + } + /** + * string countryCode = 29; + * @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; + } + /** + * string countryCode = 29; + * @return This builder for chaining. + */ + public Builder clearCountryCode() { + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); + return this; + } + /** + * string countryCode = 29; + * @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_ ; + /** + * uint32 clientDataVersion = 30; + * @return The clientDataVersion. + */ + @java.lang.Override + public int getClientDataVersion() { + return clientDataVersion_; + } + /** + * uint32 clientDataVersion = 30; + * @param value The clientDataVersion to set. + * @return This builder for chaining. + */ + public Builder setClientDataVersion(int value) { + + clientDataVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 clientDataVersion = 30; + * @return This builder for chaining. + */ + public Builder clearClientDataVersion() { + + clientDataVersion_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString environmentErrorCode_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes environmentErrorCode = 31; + * @return The environmentErrorCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentErrorCode() { + return environmentErrorCode_; + } + /** + * bytes environmentErrorCode = 31; + * @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; + } + /** + * bytes environmentErrorCode = 31; + * @return This builder for chaining. + */ + public Builder clearEnvironmentErrorCode() { + + environmentErrorCode_ = getDefaultInstance().getEnvironmentErrorCode(); + onChanged(); + return this; + } + + private int targetHomeOwnerUid_ ; + /** + * uint32 targetHomeOwnerUid = 32; + * @return The targetHomeOwnerUid. + */ + @java.lang.Override + public int getTargetHomeOwnerUid() { + return targetHomeOwnerUid_; + } + /** + * uint32 targetHomeOwnerUid = 32; + * @param value The targetHomeOwnerUid to set. + * @return This builder for chaining. + */ + public Builder setTargetHomeOwnerUid(int value) { + + targetHomeOwnerUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetHomeOwnerUid = 32; + * @return This builder for chaining. + */ + public Builder clearTargetHomeOwnerUid() { + + targetHomeOwnerUid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object psnId_ = ""; + /** + * string psnId = 33; + * @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; + } + } + /** + * string psnId = 33; + * @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; + } + } + /** + * string psnId = 33; + * @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; + } + /** + * string psnId = 33; + * @return This builder for chaining. + */ + public Builder clearPsnId() { + + psnId_ = getDefaultInstance().getPsnId(); + onChanged(); + return this; + } + /** + * string psnId = 33; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..99a92e0cb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerLoginRspOuterClass.java @@ -0,0 +1,4616 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * bytes playerData = 2; + * @return The playerData. + */ + com.google.protobuf.ByteString getPlayerData(); + + /** + * bool isNewPlayer = 3; + * @return The isNewPlayer. + */ + boolean getIsNewPlayer(); + + /** + * uint32 targetUid = 4; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint64 loginRand = 5; + * @return The loginRand. + */ + long getLoginRand(); + + /** + * bool isUseAbilityHash = 6; + * @return The isUseAbilityHash. + */ + boolean getIsUseAbilityHash(); + + /** + * int32 abilityHashCode = 7; + * @return The abilityHashCode. + */ + int getAbilityHashCode(); + + /** + * map<string, int32> abilityHashMap = 8; + */ + int getAbilityHashMapCount(); + /** + * map<string, int32> abilityHashMap = 8; + */ + boolean containsAbilityHashMap( + java.lang.String key); + /** + * Use {@link #getAbilityHashMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAbilityHashMap(); + /** + * map<string, int32> abilityHashMap = 8; + */ + java.util.Map + getAbilityHashMapMap(); + /** + * map<string, int32> abilityHashMap = 8; + */ + + int getAbilityHashMapOrDefault( + java.lang.String key, + int defaultValue); + /** + * map<string, int32> abilityHashMap = 8; + */ + + int getAbilityHashMapOrThrow( + java.lang.String key); + + /** + * uint32 clientDataVersion = 9; + * @return The clientDataVersion. + */ + int getClientDataVersion(); + + /** + * bool isRelogin = 11; + * @return The isRelogin. + */ + boolean getIsRelogin(); + + /** + * uint32 clientSilenceDataVersion = 13; + * @return The clientSilenceDataVersion. + */ + int getClientSilenceDataVersion(); + + /** + * string gameBiz = 14; + * @return The gameBiz. + */ + java.lang.String getGameBiz(); + /** + * string gameBiz = 14; + * @return The bytes for gameBiz. + */ + com.google.protobuf.ByteString + getGameBizBytes(); + + /** + * uint32 playerDataVersion = 15; + * @return The playerDataVersion. + */ + int getPlayerDataVersion(); + + /** + * string clientMd5 = 16; + * @return The clientMd5. + */ + java.lang.String getClientMd5(); + /** + * string clientMd5 = 16; + * @return The bytes for clientMd5. + */ + com.google.protobuf.ByteString + getClientMd5Bytes(); + + /** + * string clientSilenceMd5 = 17; + * @return The clientSilenceMd5. + */ + java.lang.String getClientSilenceMd5(); + /** + * string clientSilenceMd5 = 17; + * @return The bytes for clientSilenceMd5. + */ + com.google.protobuf.ByteString + getClientSilenceMd5Bytes(); + + /** + * .ResVersionConfig resVersionConfig = 20; + * @return Whether the resVersionConfig field is set. + */ + boolean hasResVersionConfig(); + /** + * .ResVersionConfig resVersionConfig = 20; + * @return The resVersionConfig. + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getResVersionConfig(); + /** + * .ResVersionConfig resVersionConfig = 20; + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getResVersionConfigOrBuilder(); + + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + int getBlockInfoMapCount(); + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + boolean containsBlockInfoMap( + int key); + /** + * Use {@link #getBlockInfoMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getBlockInfoMap(); + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + java.util.Map + getBlockInfoMapMap(); + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue); + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( + int key); + + /** + * string clientVersionSuffix = 24; + * @return The clientVersionSuffix. + */ + java.lang.String getClientVersionSuffix(); + /** + * string clientVersionSuffix = 24; + * @return The bytes for clientVersionSuffix. + */ + com.google.protobuf.ByteString + getClientVersionSuffixBytes(); + + /** + * string clientSilenceVersionSuffix = 25; + * @return The clientSilenceVersionSuffix. + */ + java.lang.String getClientSilenceVersionSuffix(); + /** + * string clientSilenceVersionSuffix = 25; + * @return The bytes for clientSilenceVersionSuffix. + */ + com.google.protobuf.ByteString + getClientSilenceVersionSuffixBytes(); + + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + java.util.List + getShortAbilityHashMapList(); + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index); + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + int getShortAbilityHashMapCount(); + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + java.util.List + getShortAbilityHashMapOrBuilderList(); + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder getShortAbilityHashMapOrBuilder( + int index); + + /** + * bytes scInfo = 28; + * @return The scInfo. + */ + com.google.protobuf.ByteString getScInfo(); + + /** + * bool isAudit = 29; + * @return The isAudit. + */ + boolean getIsAudit(); + + /** + * bool isScOpen = 30; + * @return The isScOpen. + */ + boolean getIsScOpen(); + + /** + * string registerCps = 31; + * @return The registerCps. + */ + java.lang.String getRegisterCps(); + /** + * string registerCps = 31; + * @return The bytes for registerCps. + */ + com.google.protobuf.ByteString + getRegisterCpsBytes(); + + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + java.util.List + getFeatureBlockInfoListList(); + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index); + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + int getFeatureBlockInfoListCount(); + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + java.util.List + getFeatureBlockInfoListOrBuilderList(); + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder getFeatureBlockInfoListOrBuilder( + int index); + + /** + * bool isDataNeedRelogin = 33; + * @return The isDataNeedRelogin. + */ + boolean getIsDataNeedRelogin(); + + /** + * string countryCode = 34; + * @return The countryCode. + */ + java.lang.String getCountryCode(); + /** + * string countryCode = 34; + * @return The bytes for countryCode. + */ + com.google.protobuf.ByteString + getCountryCodeBytes(); + + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @return Whether the nextResVersionConfig field is set. + */ + boolean hasNextResVersionConfig(); + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @return The nextResVersionConfig. + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getNextResVersionConfig(); + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getNextResVersionConfigOrBuilder(); + + /** + * string nextResourceUrl = 36; + * @return The nextResourceUrl. + */ + java.lang.String getNextResourceUrl(); + /** + * string nextResourceUrl = 36; + * @return The bytes for nextResourceUrl. + */ + com.google.protobuf.ByteString + getNextResourceUrlBytes(); + + /** + * uint32 targetHomeOwnerUid = 37; + * @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 + 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 + 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(); + 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(); + 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_; + /** + * int32 retcode = 1; + * @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_; + /** + * bytes playerData = 2; + * @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_; + /** + * bool isNewPlayer = 3; + * @return The isNewPlayer. + */ + @java.lang.Override + public boolean getIsNewPlayer() { + return isNewPlayer_; + } + + public static final int TARGETUID_FIELD_NUMBER = 4; + private int targetUid_; + /** + * uint32 targetUid = 4; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int LOGINRAND_FIELD_NUMBER = 5; + private long loginRand_; + /** + * uint64 loginRand = 5; + * @return The loginRand. + */ + @java.lang.Override + public long getLoginRand() { + return loginRand_; + } + + public static final int ISUSEABILITYHASH_FIELD_NUMBER = 6; + private boolean isUseAbilityHash_; + /** + * bool isUseAbilityHash = 6; + * @return The isUseAbilityHash. + */ + @java.lang.Override + public boolean getIsUseAbilityHash() { + return isUseAbilityHash_; + } + + public static final int ABILITYHASHCODE_FIELD_NUMBER = 7; + private int abilityHashCode_; + /** + * int32 abilityHashCode = 7; + * @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 + .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 + internalGetAbilityHashMap() { + if (abilityHashMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AbilityHashMapDefaultEntryHolder.defaultEntry); + } + return abilityHashMap_; + } + + public int getAbilityHashMapCount() { + return internalGetAbilityHashMap().getMap().size(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + + @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 getAbilityHashMap() { + return getAbilityHashMapMap(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public java.util.Map getAbilityHashMapMap() { + return internalGetAbilityHashMap().getMap(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public int getAbilityHashMapOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAbilityHashMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public int getAbilityHashMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map 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_; + /** + * uint32 clientDataVersion = 9; + * @return The clientDataVersion. + */ + @java.lang.Override + public int getClientDataVersion() { + return clientDataVersion_; + } + + public static final int ISRELOGIN_FIELD_NUMBER = 11; + private boolean isRelogin_; + /** + * bool isRelogin = 11; + * @return The isRelogin. + */ + @java.lang.Override + public boolean getIsRelogin() { + return isRelogin_; + } + + public static final int CLIENTSILENCEDATAVERSION_FIELD_NUMBER = 13; + private int clientSilenceDataVersion_; + /** + * uint32 clientSilenceDataVersion = 13; + * @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_; + /** + * string gameBiz = 14; + * @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; + } + } + /** + * string gameBiz = 14; + * @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_; + /** + * uint32 playerDataVersion = 15; + * @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_; + /** + * string clientMd5 = 16; + * @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; + } + } + /** + * string clientMd5 = 16; + * @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_; + /** + * string clientSilenceMd5 = 17; + * @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; + } + } + /** + * string clientSilenceMd5 = 17; + * @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_; + /** + * .ResVersionConfig resVersionConfig = 20; + * @return Whether the resVersionConfig field is set. + */ + @java.lang.Override + public boolean hasResVersionConfig() { + return resVersionConfig_ != null; + } + /** + * .ResVersionConfig resVersionConfig = 20; + * @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_; + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + @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 + .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 + internalGetBlockInfoMap() { + if (blockInfoMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BlockInfoMapDefaultEntryHolder.defaultEntry); + } + return blockInfoMap_; + } + + public int getBlockInfoMapCount() { + return internalGetBlockInfoMap().getMap().size(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + @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 getBlockInfoMap() { + return getBlockInfoMapMap(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public java.util.Map getBlockInfoMapMap() { + return internalGetBlockInfoMap().getMap(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue) { + + java.util.Map map = + internalGetBlockInfoMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * string clientVersionSuffix = 24; + * @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; + } + } + /** + * string clientVersionSuffix = 24; + * @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_; + /** + * string clientSilenceVersionSuffix = 25; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 25; + * @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 shortAbilityHashMap_; + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + @java.lang.Override + public java.util.List getShortAbilityHashMapList() { + return shortAbilityHashMap_; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + @java.lang.Override + public java.util.List + getShortAbilityHashMapOrBuilderList() { + return shortAbilityHashMap_; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + @java.lang.Override + public int getShortAbilityHashMapCount() { + return shortAbilityHashMap_.size(); + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index) { + return shortAbilityHashMap_.get(index); + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + @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_; + /** + * bytes scInfo = 28; + * @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_; + /** + * bool isAudit = 29; + * @return The isAudit. + */ + @java.lang.Override + public boolean getIsAudit() { + return isAudit_; + } + + public static final int ISSCOPEN_FIELD_NUMBER = 30; + private boolean isScOpen_; + /** + * bool isScOpen = 30; + * @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_; + /** + * string registerCps = 31; + * @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; + } + } + /** + * string registerCps = 31; + * @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 featureBlockInfoList_; + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + @java.lang.Override + public java.util.List getFeatureBlockInfoListList() { + return featureBlockInfoList_; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + @java.lang.Override + public java.util.List + getFeatureBlockInfoListOrBuilderList() { + return featureBlockInfoList_; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + @java.lang.Override + public int getFeatureBlockInfoListCount() { + return featureBlockInfoList_.size(); + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index) { + return featureBlockInfoList_.get(index); + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + @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_; + /** + * bool isDataNeedRelogin = 33; + * @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_; + /** + * string countryCode = 34; + * @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; + } + } + /** + * string countryCode = 34; + * @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_; + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @return Whether the nextResVersionConfig field is set. + */ + @java.lang.Override + public boolean hasNextResVersionConfig() { + return nextResVersionConfig_ != null; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @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_; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + @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_; + /** + * string nextResourceUrl = 36; + * @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; + } + } + /** + * string nextResourceUrl = 36; + * @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_; + /** + * uint32 targetHomeOwnerUid = 37; + * @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 entry + : internalGetAbilityHashMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetBlockInfoMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString playerData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes playerData = 2; + * @return The playerData. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlayerData() { + return playerData_; + } + /** + * bytes playerData = 2; + * @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; + } + /** + * bytes playerData = 2; + * @return This builder for chaining. + */ + public Builder clearPlayerData() { + + playerData_ = getDefaultInstance().getPlayerData(); + onChanged(); + return this; + } + + private boolean isNewPlayer_ ; + /** + * bool isNewPlayer = 3; + * @return The isNewPlayer. + */ + @java.lang.Override + public boolean getIsNewPlayer() { + return isNewPlayer_; + } + /** + * bool isNewPlayer = 3; + * @param value The isNewPlayer to set. + * @return This builder for chaining. + */ + public Builder setIsNewPlayer(boolean value) { + + isNewPlayer_ = value; + onChanged(); + return this; + } + /** + * bool isNewPlayer = 3; + * @return This builder for chaining. + */ + public Builder clearIsNewPlayer() { + + isNewPlayer_ = false; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 4; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 4; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 4; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private long loginRand_ ; + /** + * uint64 loginRand = 5; + * @return The loginRand. + */ + @java.lang.Override + public long getLoginRand() { + return loginRand_; + } + /** + * uint64 loginRand = 5; + * @param value The loginRand to set. + * @return This builder for chaining. + */ + public Builder setLoginRand(long value) { + + loginRand_ = value; + onChanged(); + return this; + } + /** + * uint64 loginRand = 5; + * @return This builder for chaining. + */ + public Builder clearLoginRand() { + + loginRand_ = 0L; + onChanged(); + return this; + } + + private boolean isUseAbilityHash_ ; + /** + * bool isUseAbilityHash = 6; + * @return The isUseAbilityHash. + */ + @java.lang.Override + public boolean getIsUseAbilityHash() { + return isUseAbilityHash_; + } + /** + * bool isUseAbilityHash = 6; + * @param value The isUseAbilityHash to set. + * @return This builder for chaining. + */ + public Builder setIsUseAbilityHash(boolean value) { + + isUseAbilityHash_ = value; + onChanged(); + return this; + } + /** + * bool isUseAbilityHash = 6; + * @return This builder for chaining. + */ + public Builder clearIsUseAbilityHash() { + + isUseAbilityHash_ = false; + onChanged(); + return this; + } + + private int abilityHashCode_ ; + /** + * int32 abilityHashCode = 7; + * @return The abilityHashCode. + */ + @java.lang.Override + public int getAbilityHashCode() { + return abilityHashCode_; + } + /** + * int32 abilityHashCode = 7; + * @param value The abilityHashCode to set. + * @return This builder for chaining. + */ + public Builder setAbilityHashCode(int value) { + + abilityHashCode_ = value; + onChanged(); + return this; + } + /** + * int32 abilityHashCode = 7; + * @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 + internalGetAbilityHashMap() { + if (abilityHashMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AbilityHashMapDefaultEntryHolder.defaultEntry); + } + return abilityHashMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + + @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 getAbilityHashMap() { + return getAbilityHashMapMap(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public java.util.Map getAbilityHashMapMap() { + return internalGetAbilityHashMap().getMap(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public int getAbilityHashMapOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAbilityHashMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, int32> abilityHashMap = 8; + */ + @java.lang.Override + + public int getAbilityHashMapOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAbilityHashMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAbilityHashMap() { + internalGetMutableAbilityHashMap().getMutableMap() + .clear(); + return this; + } + /** + * map<string, int32> abilityHashMap = 8; + */ + + 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 + getMutableAbilityHashMap() { + return internalGetMutableAbilityHashMap().getMutableMap(); + } + /** + * map<string, int32> abilityHashMap = 8; + */ + public Builder putAbilityHashMap( + java.lang.String key, + int value) { + if (key == null) { throw new java.lang.NullPointerException(); } + + internalGetMutableAbilityHashMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, int32> abilityHashMap = 8; + */ + + public Builder putAllAbilityHashMap( + java.util.Map values) { + internalGetMutableAbilityHashMap().getMutableMap() + .putAll(values); + return this; + } + + private int clientDataVersion_ ; + /** + * uint32 clientDataVersion = 9; + * @return The clientDataVersion. + */ + @java.lang.Override + public int getClientDataVersion() { + return clientDataVersion_; + } + /** + * uint32 clientDataVersion = 9; + * @param value The clientDataVersion to set. + * @return This builder for chaining. + */ + public Builder setClientDataVersion(int value) { + + clientDataVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 clientDataVersion = 9; + * @return This builder for chaining. + */ + public Builder clearClientDataVersion() { + + clientDataVersion_ = 0; + onChanged(); + return this; + } + + private boolean isRelogin_ ; + /** + * bool isRelogin = 11; + * @return The isRelogin. + */ + @java.lang.Override + public boolean getIsRelogin() { + return isRelogin_; + } + /** + * bool isRelogin = 11; + * @param value The isRelogin to set. + * @return This builder for chaining. + */ + public Builder setIsRelogin(boolean value) { + + isRelogin_ = value; + onChanged(); + return this; + } + /** + * bool isRelogin = 11; + * @return This builder for chaining. + */ + public Builder clearIsRelogin() { + + isRelogin_ = false; + onChanged(); + return this; + } + + private int clientSilenceDataVersion_ ; + /** + * uint32 clientSilenceDataVersion = 13; + * @return The clientSilenceDataVersion. + */ + @java.lang.Override + public int getClientSilenceDataVersion() { + return clientSilenceDataVersion_; + } + /** + * uint32 clientSilenceDataVersion = 13; + * @param value The clientSilenceDataVersion to set. + * @return This builder for chaining. + */ + public Builder setClientSilenceDataVersion(int value) { + + clientSilenceDataVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 clientSilenceDataVersion = 13; + * @return This builder for chaining. + */ + public Builder clearClientSilenceDataVersion() { + + clientSilenceDataVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gameBiz_ = ""; + /** + * string gameBiz = 14; + * @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; + } + } + /** + * string gameBiz = 14; + * @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; + } + } + /** + * string gameBiz = 14; + * @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; + } + /** + * string gameBiz = 14; + * @return This builder for chaining. + */ + public Builder clearGameBiz() { + + gameBiz_ = getDefaultInstance().getGameBiz(); + onChanged(); + return this; + } + /** + * string gameBiz = 14; + * @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_ ; + /** + * uint32 playerDataVersion = 15; + * @return The playerDataVersion. + */ + @java.lang.Override + public int getPlayerDataVersion() { + return playerDataVersion_; + } + /** + * uint32 playerDataVersion = 15; + * @param value The playerDataVersion to set. + * @return This builder for chaining. + */ + public Builder setPlayerDataVersion(int value) { + + playerDataVersion_ = value; + onChanged(); + return this; + } + /** + * uint32 playerDataVersion = 15; + * @return This builder for chaining. + */ + public Builder clearPlayerDataVersion() { + + playerDataVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientMd5_ = ""; + /** + * string clientMd5 = 16; + * @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; + } + } + /** + * string clientMd5 = 16; + * @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; + } + } + /** + * string clientMd5 = 16; + * @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; + } + /** + * string clientMd5 = 16; + * @return This builder for chaining. + */ + public Builder clearClientMd5() { + + clientMd5_ = getDefaultInstance().getClientMd5(); + onChanged(); + return this; + } + /** + * string clientMd5 = 16; + * @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_ = ""; + /** + * string clientSilenceMd5 = 17; + * @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; + } + } + /** + * string clientSilenceMd5 = 17; + * @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; + } + } + /** + * string clientSilenceMd5 = 17; + * @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; + } + /** + * string clientSilenceMd5 = 17; + * @return This builder for chaining. + */ + public Builder clearClientSilenceMd5() { + + clientSilenceMd5_ = getDefaultInstance().getClientSilenceMd5(); + onChanged(); + return this; + } + /** + * string clientSilenceMd5 = 17; + * @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_; + /** + * .ResVersionConfig resVersionConfig = 20; + * @return Whether the resVersionConfig field is set. + */ + public boolean hasResVersionConfig() { + return resVersionConfigBuilder_ != null || resVersionConfig_ != null; + } + /** + * .ResVersionConfig resVersionConfig = 20; + * @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(); + } + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + 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; + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + 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; + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + 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; + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + public Builder clearResVersionConfig() { + if (resVersionConfigBuilder_ == null) { + resVersionConfig_ = null; + onChanged(); + } else { + resVersionConfig_ = null; + resVersionConfigBuilder_ = null; + } + + return this; + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getResVersionConfigBuilder() { + + onChanged(); + return getResVersionConfigFieldBuilder().getBuilder(); + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + 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_; + } + } + /** + * .ResVersionConfig resVersionConfig = 20; + */ + 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 + internalGetBlockInfoMap() { + if (blockInfoMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BlockInfoMapDefaultEntryHolder.defaultEntry); + } + return blockInfoMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + @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 getBlockInfoMap() { + return getBlockInfoMapMap(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public java.util.Map getBlockInfoMapMap() { + return internalGetBlockInfoMap().getMap(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrDefault( + int key, + emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo defaultValue) { + + java.util.Map map = + internalGetBlockInfoMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.BlockInfoOuterClass.BlockInfo getBlockInfoMapOrThrow( + int key) { + + java.util.Map map = + internalGetBlockInfoMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBlockInfoMap() { + internalGetMutableBlockInfoMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + public Builder removeBlockInfoMap( + int key) { + + internalGetMutableBlockInfoMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableBlockInfoMap() { + return internalGetMutableBlockInfoMap().getMutableMap(); + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + 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; + } + /** + * map<uint32, .BlockInfo> blockInfoMap = 21; + */ + + public Builder putAllBlockInfoMap( + java.util.Map values) { + internalGetMutableBlockInfoMap().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object clientVersionSuffix_ = ""; + /** + * string clientVersionSuffix = 24; + * @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; + } + } + /** + * string clientVersionSuffix = 24; + * @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; + } + } + /** + * string clientVersionSuffix = 24; + * @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; + } + /** + * string clientVersionSuffix = 24; + * @return This builder for chaining. + */ + public Builder clearClientVersionSuffix() { + + clientVersionSuffix_ = getDefaultInstance().getClientVersionSuffix(); + onChanged(); + return this; + } + /** + * string clientVersionSuffix = 24; + * @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_ = ""; + /** + * string clientSilenceVersionSuffix = 25; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 25; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 25; + * @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; + } + /** + * string clientSilenceVersionSuffix = 25; + * @return This builder for chaining. + */ + public Builder clearClientSilenceVersionSuffix() { + + clientSilenceVersionSuffix_ = getDefaultInstance().getClientSilenceVersionSuffix(); + onChanged(); + return this; + } + /** + * string clientSilenceVersionSuffix = 25; + * @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 shortAbilityHashMap_ = + java.util.Collections.emptyList(); + private void ensureShortAbilityHashMapIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + shortAbilityHashMap_ = new java.util.ArrayList(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_; + + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public java.util.List getShortAbilityHashMapList() { + if (shortAbilityHashMapBuilder_ == null) { + return java.util.Collections.unmodifiableList(shortAbilityHashMap_); + } else { + return shortAbilityHashMapBuilder_.getMessageList(); + } + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public int getShortAbilityHashMapCount() { + if (shortAbilityHashMapBuilder_ == null) { + return shortAbilityHashMap_.size(); + } else { + return shortAbilityHashMapBuilder_.getCount(); + } + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair getShortAbilityHashMap(int index) { + if (shortAbilityHashMapBuilder_ == null) { + return shortAbilityHashMap_.get(index); + } else { + return shortAbilityHashMapBuilder_.getMessage(index); + } + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + 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; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public Builder addAllShortAbilityHashMap( + java.lang.Iterable values) { + if (shortAbilityHashMapBuilder_ == null) { + ensureShortAbilityHashMapIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shortAbilityHashMap_); + onChanged(); + } else { + shortAbilityHashMapBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public Builder clearShortAbilityHashMap() { + if (shortAbilityHashMapBuilder_ == null) { + shortAbilityHashMap_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + shortAbilityHashMapBuilder_.clear(); + } + return this; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public Builder removeShortAbilityHashMap(int index) { + if (shortAbilityHashMapBuilder_ == null) { + ensureShortAbilityHashMapIsMutable(); + shortAbilityHashMap_.remove(index); + onChanged(); + } else { + shortAbilityHashMapBuilder_.remove(index); + } + return this; + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder getShortAbilityHashMapBuilder( + int index) { + return getShortAbilityHashMapFieldBuilder().getBuilder(index); + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPairOrBuilder getShortAbilityHashMapOrBuilder( + int index) { + if (shortAbilityHashMapBuilder_ == null) { + return shortAbilityHashMap_.get(index); } else { + return shortAbilityHashMapBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public java.util.List + getShortAbilityHashMapOrBuilderList() { + if (shortAbilityHashMapBuilder_ != null) { + return shortAbilityHashMapBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shortAbilityHashMap_); + } + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder addShortAbilityHashMapBuilder() { + return getShortAbilityHashMapFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance()); + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.Builder addShortAbilityHashMapBuilder( + int index) { + return getShortAbilityHashMapFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ShortAbilityHashPairOuterClass.ShortAbilityHashPair.getDefaultInstance()); + } + /** + * repeated .ShortAbilityHashPair shortAbilityHashMap = 27; + */ + public java.util.List + 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; + /** + * bytes scInfo = 28; + * @return The scInfo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getScInfo() { + return scInfo_; + } + /** + * bytes scInfo = 28; + * @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; + } + /** + * bytes scInfo = 28; + * @return This builder for chaining. + */ + public Builder clearScInfo() { + + scInfo_ = getDefaultInstance().getScInfo(); + onChanged(); + return this; + } + + private boolean isAudit_ ; + /** + * bool isAudit = 29; + * @return The isAudit. + */ + @java.lang.Override + public boolean getIsAudit() { + return isAudit_; + } + /** + * bool isAudit = 29; + * @param value The isAudit to set. + * @return This builder for chaining. + */ + public Builder setIsAudit(boolean value) { + + isAudit_ = value; + onChanged(); + return this; + } + /** + * bool isAudit = 29; + * @return This builder for chaining. + */ + public Builder clearIsAudit() { + + isAudit_ = false; + onChanged(); + return this; + } + + private boolean isScOpen_ ; + /** + * bool isScOpen = 30; + * @return The isScOpen. + */ + @java.lang.Override + public boolean getIsScOpen() { + return isScOpen_; + } + /** + * bool isScOpen = 30; + * @param value The isScOpen to set. + * @return This builder for chaining. + */ + public Builder setIsScOpen(boolean value) { + + isScOpen_ = value; + onChanged(); + return this; + } + /** + * bool isScOpen = 30; + * @return This builder for chaining. + */ + public Builder clearIsScOpen() { + + isScOpen_ = false; + onChanged(); + return this; + } + + private java.lang.Object registerCps_ = ""; + /** + * string registerCps = 31; + * @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; + } + } + /** + * string registerCps = 31; + * @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; + } + } + /** + * string registerCps = 31; + * @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; + } + /** + * string registerCps = 31; + * @return This builder for chaining. + */ + public Builder clearRegisterCps() { + + registerCps_ = getDefaultInstance().getRegisterCps(); + onChanged(); + return this; + } + /** + * string registerCps = 31; + * @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 featureBlockInfoList_ = + java.util.Collections.emptyList(); + private void ensureFeatureBlockInfoListIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + featureBlockInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public java.util.List getFeatureBlockInfoListList() { + if (featureBlockInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(featureBlockInfoList_); + } else { + return featureBlockInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public int getFeatureBlockInfoListCount() { + if (featureBlockInfoListBuilder_ == null) { + return featureBlockInfoList_.size(); + } else { + return featureBlockInfoListBuilder_.getCount(); + } + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo getFeatureBlockInfoList(int index) { + if (featureBlockInfoListBuilder_ == null) { + return featureBlockInfoList_.get(index); + } else { + return featureBlockInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + 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; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public Builder addAllFeatureBlockInfoList( + java.lang.Iterable values) { + if (featureBlockInfoListBuilder_ == null) { + ensureFeatureBlockInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, featureBlockInfoList_); + onChanged(); + } else { + featureBlockInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public Builder clearFeatureBlockInfoList() { + if (featureBlockInfoListBuilder_ == null) { + featureBlockInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + featureBlockInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public Builder removeFeatureBlockInfoList(int index) { + if (featureBlockInfoListBuilder_ == null) { + ensureFeatureBlockInfoListIsMutable(); + featureBlockInfoList_.remove(index); + onChanged(); + } else { + featureBlockInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder getFeatureBlockInfoListBuilder( + int index) { + return getFeatureBlockInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfoOrBuilder getFeatureBlockInfoListOrBuilder( + int index) { + if (featureBlockInfoListBuilder_ == null) { + return featureBlockInfoList_.get(index); } else { + return featureBlockInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public java.util.List + getFeatureBlockInfoListOrBuilderList() { + if (featureBlockInfoListBuilder_ != null) { + return featureBlockInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(featureBlockInfoList_); + } + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder addFeatureBlockInfoListBuilder() { + return getFeatureBlockInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance()); + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.Builder addFeatureBlockInfoListBuilder( + int index) { + return getFeatureBlockInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FeatureBlockInfoOuterClass.FeatureBlockInfo.getDefaultInstance()); + } + /** + * repeated .FeatureBlockInfo featureBlockInfoList = 32; + */ + public java.util.List + 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_ ; + /** + * bool isDataNeedRelogin = 33; + * @return The isDataNeedRelogin. + */ + @java.lang.Override + public boolean getIsDataNeedRelogin() { + return isDataNeedRelogin_; + } + /** + * bool isDataNeedRelogin = 33; + * @param value The isDataNeedRelogin to set. + * @return This builder for chaining. + */ + public Builder setIsDataNeedRelogin(boolean value) { + + isDataNeedRelogin_ = value; + onChanged(); + return this; + } + /** + * bool isDataNeedRelogin = 33; + * @return This builder for chaining. + */ + public Builder clearIsDataNeedRelogin() { + + isDataNeedRelogin_ = false; + onChanged(); + return this; + } + + private java.lang.Object countryCode_ = ""; + /** + * string countryCode = 34; + * @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; + } + } + /** + * string countryCode = 34; + * @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; + } + } + /** + * string countryCode = 34; + * @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; + } + /** + * string countryCode = 34; + * @return This builder for chaining. + */ + public Builder clearCountryCode() { + + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); + return this; + } + /** + * string countryCode = 34; + * @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_; + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @return Whether the nextResVersionConfig field is set. + */ + public boolean hasNextResVersionConfig() { + return nextResVersionConfigBuilder_ != null || nextResVersionConfig_ != null; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + * @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(); + } + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + 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; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + 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; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + 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; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + public Builder clearNextResVersionConfig() { + if (nextResVersionConfigBuilder_ == null) { + nextResVersionConfig_ = null; + onChanged(); + } else { + nextResVersionConfig_ = null; + nextResVersionConfigBuilder_ = null; + } + + return this; + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getNextResVersionConfigBuilder() { + + onChanged(); + return getNextResVersionConfigFieldBuilder().getBuilder(); + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + 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_; + } + } + /** + * .ResVersionConfig nextResVersionConfig = 35; + */ + 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_ = ""; + /** + * string nextResourceUrl = 36; + * @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; + } + } + /** + * string nextResourceUrl = 36; + * @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; + } + } + /** + * string nextResourceUrl = 36; + * @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; + } + /** + * string nextResourceUrl = 36; + * @return This builder for chaining. + */ + public Builder clearNextResourceUrl() { + + nextResourceUrl_ = getDefaultInstance().getNextResourceUrl(); + onChanged(); + return this; + } + /** + * string nextResourceUrl = 36; + * @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_ ; + /** + * uint32 targetHomeOwnerUid = 37; + * @return The targetHomeOwnerUid. + */ + @java.lang.Override + public int getTargetHomeOwnerUid() { + return targetHomeOwnerUid_; + } + /** + * uint32 targetHomeOwnerUid = 37; + * @param value The targetHomeOwnerUid to set. + * @return This builder for chaining. + */ + public Builder setTargetHomeOwnerUid(int value) { + + targetHomeOwnerUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetHomeOwnerUid = 37; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8c613c5d2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerPropNotifyOuterClass.java @@ -0,0 +1,802 @@ +// 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 { + + /** + * map<uint32, .PropValue> propMap = 1; + */ + int getPropMapCount(); + /** + * map<uint32, .PropValue> propMap = 1; + */ + boolean containsPropMap( + int key); + /** + * Use {@link #getPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPropMap(); + /** + * map<uint32, .PropValue> propMap = 1; + */ + java.util.Map + getPropMapMap(); + /** + * map<uint32, .PropValue> propMap = 1; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); + /** + * map<uint32, .PropValue> propMap = 1; + */ + + 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 + 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 + .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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + + public int getPropMapCount() { + return internalGetPropMap().getMap().size(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetPropMap() { + if (propMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropMapDefaultEntryHolder.defaultEntry); + } + return propMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + + @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 getPropMap() { + return getPropMapMap(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public java.util.Map getPropMapMap() { + return internalGetPropMap().getMap(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPropMap() { + internalGetMutablePropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + + public Builder removePropMap( + int key) { + + internalGetMutablePropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePropMap() { + return internalGetMutablePropMap().getMutableMap(); + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + 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; + } + /** + * map<uint32, .PropValue> propMap = 1; + */ + + public Builder putAllPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5fce8f9ab --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerRTTInfoOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * uint32 rtt = 2; + * @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_; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + + public static final int RTT_FIELD_NUMBER = 2; + private int rtt_; + /** + * uint32 rtt = 2; + * @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private int rtt_ ; + /** + * uint32 rtt = 2; + * @return The rtt. + */ + @java.lang.Override + public int getRtt() { + return rtt_; + } + /** + * uint32 rtt = 2; + * @param value The rtt to set. + * @return This builder for chaining. + */ + public Builder setRtt(int value) { + + rtt_ = value; + onChanged(); + return this; + } + /** + * uint32 rtt = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1cb93bc68 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerSetPauseReqOuterClass.java @@ -0,0 +1,537 @@ +// 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 { + + /** + * bool isPaused = 1; + * @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_; + /** + * bool isPaused = 1; + * @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 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_ ; + /** + * bool isPaused = 1; + * @return The isPaused. + */ + @java.lang.Override + public boolean getIsPaused() { + return isPaused_; + } + /** + * bool isPaused = 1; + * @param value The isPaused to set. + * @return This builder for chaining. + */ + public Builder setIsPaused(boolean value) { + + isPaused_ = value; + onChanged(); + return this; + } + /** + * bool isPaused = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6eb4f5bbc --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerStoreNotifyOuterClass.java @@ -0,0 +1,1024 @@ +// 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 { + + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + int getStoreTypeValue(); + /** + * .StoreType storeType = 1; + * @return The storeType. + */ + emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); + + /** + * repeated .Item itemList = 2; + */ + java.util.List + getItemListList(); + /** + * repeated .Item itemList = 2; + */ + emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index); + /** + * repeated .Item itemList = 2; + */ + int getItemListCount(); + /** + * repeated .Item itemList = 2; + */ + java.util.List + getItemListOrBuilderList(); + /** + * repeated .Item itemList = 2; + */ + emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( + int index); + + /** + * uint32 weightLimit = 3; + * @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(); + 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_; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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 itemList_; + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public java.util.List getItemListList() { + return itemList_; + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public java.util.List + getItemListOrBuilderList() { + return itemList_; + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public int getItemListCount() { + return itemList_.size(); + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { + return itemList_.get(index); + } + /** + * repeated .Item itemList = 2; + */ + @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_; + /** + * uint32 weightLimit = 3; + * @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 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; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @return This builder for chaining. + */ + public Builder clearStoreType() { + + storeType_ = 0; + onChanged(); + return this; + } + + private java.util.List itemList_ = + java.util.Collections.emptyList(); + private void ensureItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemList_ = new java.util.ArrayList(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_; + + /** + * repeated .Item itemList = 2; + */ + public java.util.List getItemListList() { + if (itemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemList_); + } else { + return itemListBuilder_.getMessageList(); + } + } + /** + * repeated .Item itemList = 2; + */ + public int getItemListCount() { + if (itemListBuilder_ == null) { + return itemList_.size(); + } else { + return itemListBuilder_.getCount(); + } + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); + } else { + return itemListBuilder_.getMessage(index); + } + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + public Builder addAllItemList( + java.lang.Iterable values) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemList_); + onChanged(); + } else { + itemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public Builder clearItemList() { + if (itemListBuilder_ == null) { + itemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemListBuilder_.clear(); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public Builder removeItemList(int index) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + itemList_.remove(index); + onChanged(); + } else { + itemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getItemListBuilder( + int index) { + return getItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( + int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); } else { + return itemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Item itemList = 2; + */ + public java.util.List + getItemListOrBuilderList() { + if (itemListBuilder_ != null) { + return itemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemList_); + } + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder() { + return getItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder( + int index) { + return getItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item itemList = 2; + */ + public java.util.List + 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_ ; + /** + * uint32 weightLimit = 3; + * @return The weightLimit. + */ + @java.lang.Override + public int getWeightLimit() { + return weightLimit_; + } + /** + * uint32 weightLimit = 3; + * @param value The weightLimit to set. + * @return This builder for chaining. + */ + public Builder setWeightLimit(int value) { + + weightLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 weightLimit = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..33a06cc67 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PlayerTimeNotifyOuterClass.java @@ -0,0 +1,680 @@ +// 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 { + + /** + * bool isPaused = 1; + * @return The isPaused. + */ + boolean getIsPaused(); + + /** + * uint64 playerTime = 2; + * @return The playerTime. + */ + long getPlayerTime(); + + /** + * uint64 serverTime = 3; + * @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_; + /** + * bool isPaused = 1; + * @return The isPaused. + */ + @java.lang.Override + public boolean getIsPaused() { + return isPaused_; + } + + public static final int PLAYERTIME_FIELD_NUMBER = 2; + private long playerTime_; + /** + * uint64 playerTime = 2; + * @return The playerTime. + */ + @java.lang.Override + public long getPlayerTime() { + return playerTime_; + } + + public static final int SERVERTIME_FIELD_NUMBER = 3; + private long serverTime_; + /** + * uint64 serverTime = 3; + * @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 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_ ; + /** + * bool isPaused = 1; + * @return The isPaused. + */ + @java.lang.Override + public boolean getIsPaused() { + return isPaused_; + } + /** + * bool isPaused = 1; + * @param value The isPaused to set. + * @return This builder for chaining. + */ + public Builder setIsPaused(boolean value) { + + isPaused_ = value; + onChanged(); + return this; + } + /** + * bool isPaused = 1; + * @return This builder for chaining. + */ + public Builder clearIsPaused() { + + isPaused_ = false; + onChanged(); + return this; + } + + private long playerTime_ ; + /** + * uint64 playerTime = 2; + * @return The playerTime. + */ + @java.lang.Override + public long getPlayerTime() { + return playerTime_; + } + /** + * uint64 playerTime = 2; + * @param value The playerTime to set. + * @return This builder for chaining. + */ + public Builder setPlayerTime(long value) { + + playerTime_ = value; + onChanged(); + return this; + } + /** + * uint64 playerTime = 2; + * @return This builder for chaining. + */ + public Builder clearPlayerTime() { + + playerTime_ = 0L; + onChanged(); + return this; + } + + private long serverTime_ ; + /** + * uint64 serverTime = 3; + * @return The serverTime. + */ + @java.lang.Override + public long getServerTime() { + return serverTime_; + } + /** + * uint64 serverTime = 3; + * @param value The serverTime to set. + * @return This builder for chaining. + */ + public Builder setServerTime(long value) { + + serverTime_ = value; + onChanged(); + return this; + } + /** + * uint64 serverTime = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..26b769691 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PostEnterSceneRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 enterSceneToken = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 enterSceneToken = 2; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 2; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a3a52f994 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PrivateChatNotifyOuterClass.java @@ -0,0 +1,672 @@ +// 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 { + + /** + * .ChatInfo chatInfo = 1; + * @return Whether the chatInfo field is set. + */ + boolean hasChatInfo(); + /** + * .ChatInfo chatInfo = 1; + * @return The chatInfo. + */ + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(); + /** + * .ChatInfo chatInfo = 1; + */ + 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_; + /** + * .ChatInfo chatInfo = 1; + * @return Whether the chatInfo field is set. + */ + @java.lang.Override + public boolean hasChatInfo() { + return chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 1; + * @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_; + } + /** + * .ChatInfo chatInfo = 1; + */ + @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 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_; + /** + * .ChatInfo chatInfo = 1; + * @return Whether the chatInfo field is set. + */ + public boolean hasChatInfo() { + return chatInfoBuilder_ != null || chatInfo_ != null; + } + /** + * .ChatInfo chatInfo = 1; + * @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(); + } + } + /** + * .ChatInfo chatInfo = 1; + */ + 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; + } + /** + * .ChatInfo chatInfo = 1; + */ + 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; + } + /** + * .ChatInfo chatInfo = 1; + */ + 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; + } + /** + * .ChatInfo chatInfo = 1; + */ + public Builder clearChatInfo() { + if (chatInfoBuilder_ == null) { + chatInfo_ = null; + onChanged(); + } else { + chatInfo_ = null; + chatInfoBuilder_ = null; + } + + return this; + } + /** + * .ChatInfo chatInfo = 1; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder() { + + onChanged(); + return getChatInfoFieldBuilder().getBuilder(); + } + /** + * .ChatInfo chatInfo = 1; + */ + 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_; + } + } + /** + * .ChatInfo chatInfo = 1; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1b13ba4bd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PrivateChatReqOuterClass.java @@ -0,0 +1,909 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * string text = 2; + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * string text = 2; + * @return The text. + */ + java.lang.String getText(); + /** + * string text = 2; + * @return The bytes for text. + */ + com.google.protobuf.ByteString + getTextBytes(); + + /** + * uint32 icon = 3; + * @return Whether the icon field is set. + */ + boolean hasIcon(); + /** + * uint32 icon = 3; + * @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_; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int TEXT_FIELD_NUMBER = 2; + /** + * string text = 2; + * @return Whether the text field is set. + */ + public boolean hasText() { + return contentCase_ == 2; + } + /** + * string text = 2; + * @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; + } + } + /** + * string text = 2; + * @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; + /** + * uint32 icon = 3; + * @return Whether the icon field is set. + */ + @java.lang.Override + public boolean hasIcon() { + return contentCase_ == 3; + } + /** + * uint32 icon = 3; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + /** + * string text = 2; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return contentCase_ == 2; + } + /** + * string text = 2; + * @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; + } + } + /** + * string text = 2; + * @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; + } + } + /** + * string text = 2; + * @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; + } + /** + * string text = 2; + * @return This builder for chaining. + */ + public Builder clearText() { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + return this; + } + /** + * string text = 2; + * @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; + } + + /** + * uint32 icon = 3; + * @return Whether the icon field is set. + */ + public boolean hasIcon() { + return contentCase_ == 3; + } + /** + * uint32 icon = 3; + * @return The icon. + */ + public int getIcon() { + if (contentCase_ == 3) { + return (java.lang.Integer) content_; + } + return 0; + } + /** + * uint32 icon = 3; + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon(int value) { + contentCase_ = 3; + content_ = value; + onChanged(); + return this; + } + /** + * uint32 icon = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d4247d90c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PrivateChatRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 chatForbiddenEndtime = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CHATFORBIDDENENDTIME_FIELD_NUMBER = 2; + private int chatForbiddenEndtime_; + /** + * uint32 chatForbiddenEndtime = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int chatForbiddenEndtime_ ; + /** + * uint32 chatForbiddenEndtime = 2; + * @return The chatForbiddenEndtime. + */ + @java.lang.Override + public int getChatForbiddenEndtime() { + return chatForbiddenEndtime_; + } + /** + * uint32 chatForbiddenEndtime = 2; + * @param value The chatForbiddenEndtime to set. + * @return This builder for chaining. + */ + public Builder setChatForbiddenEndtime(int value) { + + chatForbiddenEndtime_ = value; + onChanged(); + return this; + } + /** + * uint32 chatForbiddenEndtime = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9be1f8044 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PropChangeReasonOuterClass.java @@ -0,0 +1,262 @@ +// 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 { + /** + * PropChangeNone = 0; + */ + PropChangeNone(0), + /** + * PropChangeStatueRecover = 1; + */ + PropChangeStatueRecover(1), + /** + * PropChangeEnergyBall = 2; + */ + PropChangeEnergyBall(2), + /** + * PropChangeAbility = 3; + */ + PropChangeAbility(3), + /** + * PropChangeLevelup = 4; + */ + PropChangeLevelup(4), + /** + * PropChangeItem = 5; + */ + PropChangeItem(5), + /** + * PropChangeAvatarCard = 6; + */ + PropChangeAvatarCard(6), + /** + * PropChangeCityLevelup = 7; + */ + PropChangeCityLevelup(7), + /** + * PropChangeAvatarUpgrade = 8; + */ + PropChangeAvatarUpgrade(8), + /** + * PropChangeAvatarPromote = 9; + */ + PropChangeAvatarPromote(9), + /** + * PropChangePlayerAddExp = 10; + */ + PropChangePlayerAddExp(10), + /** + * PropChangeFinishQuest = 11; + */ + PropChangeFinishQuest(11), + /** + * PropChangeGm = 12; + */ + PropChangeGm(12), + /** + * PropChangeManualAdjustWorldLevel = 13; + */ + PropChangeManualAdjustWorldLevel(13), + UNRECOGNIZED(-1), + ; + + /** + * PropChangeNone = 0; + */ + public static final int PropChangeNone_VALUE = 0; + /** + * PropChangeStatueRecover = 1; + */ + public static final int PropChangeStatueRecover_VALUE = 1; + /** + * PropChangeEnergyBall = 2; + */ + public static final int PropChangeEnergyBall_VALUE = 2; + /** + * PropChangeAbility = 3; + */ + public static final int PropChangeAbility_VALUE = 3; + /** + * PropChangeLevelup = 4; + */ + public static final int PropChangeLevelup_VALUE = 4; + /** + * PropChangeItem = 5; + */ + public static final int PropChangeItem_VALUE = 5; + /** + * PropChangeAvatarCard = 6; + */ + public static final int PropChangeAvatarCard_VALUE = 6; + /** + * PropChangeCityLevelup = 7; + */ + public static final int PropChangeCityLevelup_VALUE = 7; + /** + * PropChangeAvatarUpgrade = 8; + */ + public static final int PropChangeAvatarUpgrade_VALUE = 8; + /** + * PropChangeAvatarPromote = 9; + */ + public static final int PropChangeAvatarPromote_VALUE = 9; + /** + * PropChangePlayerAddExp = 10; + */ + public static final int PropChangePlayerAddExp_VALUE = 10; + /** + * PropChangeFinishQuest = 11; + */ + public static final int PropChangeFinishQuest_VALUE = 11; + /** + * PropChangeGm = 12; + */ + public static final int PropChangeGm_VALUE = 12; + /** + * PropChangeManualAdjustWorldLevel = 13; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PropChangeReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..7fa2d0cfd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PropPairOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * uint32 type = 1; + * @return The type. + */ + int getType(); + + /** + * .PropValue propValue = 2; + * @return Whether the propValue field is set. + */ + boolean hasPropValue(); + /** + * .PropValue propValue = 2; + * @return The propValue. + */ + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropValue(); + /** + * .PropValue propValue = 2; + */ + 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_; + /** + * uint32 type = 1; + * @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_; + /** + * .PropValue propValue = 2; + * @return Whether the propValue field is set. + */ + @java.lang.Override + public boolean hasPropValue() { + return propValue_ != null; + } + /** + * .PropValue propValue = 2; + * @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_; + } + /** + * .PropValue propValue = 2; + */ + @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 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_ ; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + /** + * uint32 type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * uint32 type = 1; + * @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_; + /** + * .PropValue propValue = 2; + * @return Whether the propValue field is set. + */ + public boolean hasPropValue() { + return propValueBuilder_ != null || propValue_ != null; + } + /** + * .PropValue propValue = 2; + * @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(); + } + } + /** + * .PropValue propValue = 2; + */ + 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; + } + /** + * .PropValue propValue = 2; + */ + 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; + } + /** + * .PropValue propValue = 2; + */ + 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; + } + /** + * .PropValue propValue = 2; + */ + public Builder clearPropValue() { + if (propValueBuilder_ == null) { + propValue_ = null; + onChanged(); + } else { + propValue_ = null; + propValueBuilder_ = null; + } + + return this; + } + /** + * .PropValue propValue = 2; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder getPropValueBuilder() { + + onChanged(); + return getPropValueFieldBuilder().getBuilder(); + } + /** + * .PropValue propValue = 2; + */ + 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_; + } + } + /** + * .PropValue propValue = 2; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e61e89332 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PropValueOuterClass.java @@ -0,0 +1,888 @@ +// 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 { + + /** + * uint32 type = 1; + * @return The type. + */ + int getType(); + + /** + * uint32 ival = 2; + * @return Whether the ival field is set. + */ + boolean hasIval(); + /** + * uint32 ival = 2; + * @return The ival. + */ + int getIval(); + + /** + * float fval = 3; + * @return Whether the fval field is set. + */ + boolean hasFval(); + /** + * float fval = 3; + * @return The fval. + */ + float getFval(); + + /** + * uint32 val = 4; + * @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_; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + + public static final int IVAL_FIELD_NUMBER = 2; + /** + * uint32 ival = 2; + * @return Whether the ival field is set. + */ + @java.lang.Override + public boolean hasIval() { + return valueCase_ == 2; + } + /** + * uint32 ival = 2; + * @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; + /** + * float fval = 3; + * @return Whether the fval field is set. + */ + @java.lang.Override + public boolean hasFval() { + return valueCase_ == 3; + } + /** + * float fval = 3; + * @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_; + /** + * uint32 val = 4; + * @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 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_ ; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + /** + * uint32 type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * uint32 type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + /** + * uint32 ival = 2; + * @return Whether the ival field is set. + */ + public boolean hasIval() { + return valueCase_ == 2; + } + /** + * uint32 ival = 2; + * @return The ival. + */ + public int getIval() { + if (valueCase_ == 2) { + return (java.lang.Integer) value_; + } + return 0; + } + /** + * uint32 ival = 2; + * @param value The ival to set. + * @return This builder for chaining. + */ + public Builder setIval(int value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * uint32 ival = 2; + * @return This builder for chaining. + */ + public Builder clearIval() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * float fval = 3; + * @return Whether the fval field is set. + */ + public boolean hasFval() { + return valueCase_ == 3; + } + /** + * float fval = 3; + * @return The fval. + */ + public float getFval() { + if (valueCase_ == 3) { + return (java.lang.Float) value_; + } + return 0F; + } + /** + * float fval = 3; + * @param value The fval to set. + * @return This builder for chaining. + */ + public Builder setFval(float value) { + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * float fval = 3; + * @return This builder for chaining. + */ + public Builder clearFval() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private int val_ ; + /** + * uint32 val = 4; + * @return The val. + */ + @java.lang.Override + public int getVal() { + return val_; + } + /** + * uint32 val = 4; + * @param value The val to set. + * @return This builder for chaining. + */ + public Builder setVal(int value) { + + val_ = value; + onChanged(); + return this; + } + /** + * uint32 val = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8ce634b18 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ProtEntityTypeOuterClass.java @@ -0,0 +1,270 @@ +// 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 { + /** + * ProtEntityNone = 0; + */ + ProtEntityNone(0), + /** + * ProtEntityAvatar = 1; + */ + ProtEntityAvatar(1), + /** + * ProtEntityMonster = 2; + */ + ProtEntityMonster(2), + /** + * ProtEntityNpc = 3; + */ + ProtEntityNpc(3), + /** + * ProtEntityGadget = 4; + */ + ProtEntityGadget(4), + /** + * ProtEntityRegion = 5; + */ + ProtEntityRegion(5), + /** + * ProtEntityWeapon = 6; + */ + ProtEntityWeapon(6), + /** + * ProtEntityWeather = 7; + */ + ProtEntityWeather(7), + /** + * ProtEntityScene = 8; + */ + ProtEntityScene(8), + /** + * ProtEntityTeam = 9; + */ + ProtEntityTeam(9), + /** + * ProtEntityMassiveEntity = 10; + */ + ProtEntityMassiveEntity(10), + /** + * ProtEntityMpLevel = 11; + */ + ProtEntityMpLevel(11), + /** + * ProtEntityPlayTeamEntity = 12; + */ + ProtEntityPlayTeamEntity(12), + /** + * ProtEntityEyePoint = 13; + */ + ProtEntityEyePoint(13), + /** + * ProtEntityMax = 14; + */ + ProtEntityMax(14), + UNRECOGNIZED(-1), + ; + + /** + * ProtEntityNone = 0; + */ + public static final int ProtEntityNone_VALUE = 0; + /** + * ProtEntityAvatar = 1; + */ + public static final int ProtEntityAvatar_VALUE = 1; + /** + * ProtEntityMonster = 2; + */ + public static final int ProtEntityMonster_VALUE = 2; + /** + * ProtEntityNpc = 3; + */ + public static final int ProtEntityNpc_VALUE = 3; + /** + * ProtEntityGadget = 4; + */ + public static final int ProtEntityGadget_VALUE = 4; + /** + * ProtEntityRegion = 5; + */ + public static final int ProtEntityRegion_VALUE = 5; + /** + * ProtEntityWeapon = 6; + */ + public static final int ProtEntityWeapon_VALUE = 6; + /** + * ProtEntityWeather = 7; + */ + public static final int ProtEntityWeather_VALUE = 7; + /** + * ProtEntityScene = 8; + */ + public static final int ProtEntityScene_VALUE = 8; + /** + * ProtEntityTeam = 9; + */ + public static final int ProtEntityTeam_VALUE = 9; + /** + * ProtEntityMassiveEntity = 10; + */ + public static final int ProtEntityMassiveEntity_VALUE = 10; + /** + * ProtEntityMpLevel = 11; + */ + public static final int ProtEntityMpLevel_VALUE = 11; + /** + * ProtEntityPlayTeamEntity = 12; + */ + public static final int ProtEntityPlayTeamEntity_VALUE = 12; + /** + * ProtEntityEyePoint = 13; + */ + public static final int ProtEntityEyePoint_VALUE = 13; + /** + * ProtEntityMax = 14; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProtEntityType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..e4f986585 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ProudSkillChangeNotifyOuterClass.java @@ -0,0 +1,876 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 entityId = 2; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 skillDepotId = 3; + * @return The skillDepotId. + */ + int getSkillDepotId(); + + /** + * repeated uint32 proudSkillList = 4; + * @return A list containing the proudSkillList. + */ + java.util.List getProudSkillListList(); + /** + * repeated uint32 proudSkillList = 4; + * @return The count of proudSkillList. + */ + int getProudSkillListCount(); + /** + * repeated uint32 proudSkillList = 4; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int ENTITYID_FIELD_NUMBER = 2; + private int entityId_; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int SKILLDEPOTID_FIELD_NUMBER = 3; + private int skillDepotId_; + /** + * uint32 skillDepotId = 3; + * @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_; + /** + * repeated uint32 proudSkillList = 4; + * @return A list containing the proudSkillList. + */ + @java.lang.Override + public java.util.List + getProudSkillListList() { + return proudSkillList_; + } + /** + * repeated uint32 proudSkillList = 4; + * @return The count of proudSkillList. + */ + public int getProudSkillListCount() { + return proudSkillList_.size(); + } + /** + * repeated uint32 proudSkillList = 4; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int skillDepotId_ ; + /** + * uint32 skillDepotId = 3; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + /** + * uint32 skillDepotId = 3; + * @param value The skillDepotId to set. + * @return This builder for chaining. + */ + public Builder setSkillDepotId(int value) { + + skillDepotId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillDepotId = 3; + * @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; + } + } + /** + * repeated uint32 proudSkillList = 4; + * @return A list containing the proudSkillList. + */ + public java.util.List + getProudSkillListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(proudSkillList_) : proudSkillList_; + } + /** + * repeated uint32 proudSkillList = 4; + * @return The count of proudSkillList. + */ + public int getProudSkillListCount() { + return proudSkillList_.size(); + } + /** + * repeated uint32 proudSkillList = 4; + * @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); + } + /** + * repeated uint32 proudSkillList = 4; + * @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; + } + /** + * repeated uint32 proudSkillList = 4; + * @param value The proudSkillList to add. + * @return This builder for chaining. + */ + public Builder addProudSkillList(int value) { + ensureProudSkillListIsMutable(); + proudSkillList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 proudSkillList = 4; + * @param values The proudSkillList to add. + * @return This builder for chaining. + */ + public Builder addAllProudSkillList( + java.lang.Iterable values) { + ensureProudSkillListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, proudSkillList_); + onChanged(); + return this; + } + /** + * repeated uint32 proudSkillList = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..77c0c9402 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ProudSkillExtraLevelNotifyOuterClass.java @@ -0,0 +1,749 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 talentType = 2; + * @return The talentType. + */ + int getTalentType(); + + /** + * uint32 talentIndex = 3; + * @return The talentIndex. + */ + int getTalentIndex(); + + /** + * uint32 extraLevel = 4; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int TALENTTYPE_FIELD_NUMBER = 2; + private int talentType_; + /** + * uint32 talentType = 2; + * @return The talentType. + */ + @java.lang.Override + public int getTalentType() { + return talentType_; + } + + public static final int TALENTINDEX_FIELD_NUMBER = 3; + private int talentIndex_; + /** + * uint32 talentIndex = 3; + * @return The talentIndex. + */ + @java.lang.Override + public int getTalentIndex() { + return talentIndex_; + } + + public static final int EXTRALEVEL_FIELD_NUMBER = 4; + private int extraLevel_; + /** + * uint32 extraLevel = 4; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int talentType_ ; + /** + * uint32 talentType = 2; + * @return The talentType. + */ + @java.lang.Override + public int getTalentType() { + return talentType_; + } + /** + * uint32 talentType = 2; + * @param value The talentType to set. + * @return This builder for chaining. + */ + public Builder setTalentType(int value) { + + talentType_ = value; + onChanged(); + return this; + } + /** + * uint32 talentType = 2; + * @return This builder for chaining. + */ + public Builder clearTalentType() { + + talentType_ = 0; + onChanged(); + return this; + } + + private int talentIndex_ ; + /** + * uint32 talentIndex = 3; + * @return The talentIndex. + */ + @java.lang.Override + public int getTalentIndex() { + return talentIndex_; + } + /** + * uint32 talentIndex = 3; + * @param value The talentIndex to set. + * @return This builder for chaining. + */ + public Builder setTalentIndex(int value) { + + talentIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 talentIndex = 3; + * @return This builder for chaining. + */ + public Builder clearTalentIndex() { + + talentIndex_ = 0; + onChanged(); + return this; + } + + private int extraLevel_ ; + /** + * uint32 extraLevel = 4; + * @return The extraLevel. + */ + @java.lang.Override + public int getExtraLevel() { + return extraLevel_; + } + /** + * uint32 extraLevel = 4; + * @param value The extraLevel to set. + * @return This builder for chaining. + */ + public Builder setExtraLevel(int value) { + + extraLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 extraLevel = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5609065be --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PullPrivateChatReqOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + int getTargetUid(); + + /** + * uint32 fromSequence = 2; + * @return The fromSequence. + */ + int getFromSequence(); + + /** + * uint32 pullNum = 3; + * @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_; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + + public static final int FROMSEQUENCE_FIELD_NUMBER = 2; + private int fromSequence_; + /** + * uint32 fromSequence = 2; + * @return The fromSequence. + */ + @java.lang.Override + public int getFromSequence() { + return fromSequence_; + } + + public static final int PULLNUM_FIELD_NUMBER = 3; + private int pullNum_; + /** + * uint32 pullNum = 3; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetUid() { + + targetUid_ = 0; + onChanged(); + return this; + } + + private int fromSequence_ ; + /** + * uint32 fromSequence = 2; + * @return The fromSequence. + */ + @java.lang.Override + public int getFromSequence() { + return fromSequence_; + } + /** + * uint32 fromSequence = 2; + * @param value The fromSequence to set. + * @return This builder for chaining. + */ + public Builder setFromSequence(int value) { + + fromSequence_ = value; + onChanged(); + return this; + } + /** + * uint32 fromSequence = 2; + * @return This builder for chaining. + */ + public Builder clearFromSequence() { + + fromSequence_ = 0; + onChanged(); + return this; + } + + private int pullNum_ ; + /** + * uint32 pullNum = 3; + * @return The pullNum. + */ + @java.lang.Override + public int getPullNum() { + return pullNum_; + } + /** + * uint32 pullNum = 3; + * @param value The pullNum to set. + * @return This builder for chaining. + */ + public Builder setPullNum(int value) { + + pullNum_ = value; + onChanged(); + return this; + } + /** + * uint32 pullNum = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4df988574 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PullPrivateChatRspOuterClass.java @@ -0,0 +1,914 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .ChatInfo chatInfo = 2; + */ + java.util.List + getChatInfoList(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index); + /** + * repeated .ChatInfo chatInfo = 2; + */ + int getChatInfoCount(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + java.util.List + getChatInfoOrBuilderList(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CHATINFO_FIELD_NUMBER = 2; + private java.util.List chatInfo_; + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public java.util.List getChatInfoList() { + return chatInfo_; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public java.util.List + getChatInfoOrBuilderList() { + return chatInfo_; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public int getChatInfoCount() { + return chatInfo_.size(); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { + return chatInfo_.get(index); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List chatInfo_ = + java.util.Collections.emptyList(); + private void ensureChatInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + chatInfo_ = new java.util.ArrayList(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_; + + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List getChatInfoList() { + if (chatInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(chatInfo_); + } else { + return chatInfoBuilder_.getMessageList(); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public int getChatInfoCount() { + if (chatInfoBuilder_ == null) { + return chatInfo_.size(); + } else { + return chatInfoBuilder_.getCount(); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { + if (chatInfoBuilder_ == null) { + return chatInfo_.get(index); + } else { + return chatInfoBuilder_.getMessage(index); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder addAllChatInfo( + java.lang.Iterable values) { + if (chatInfoBuilder_ == null) { + ensureChatInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, chatInfo_); + onChanged(); + } else { + chatInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder clearChatInfo() { + if (chatInfoBuilder_ == null) { + chatInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + chatInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder removeChatInfo(int index) { + if (chatInfoBuilder_ == null) { + ensureChatInfoIsMutable(); + chatInfo_.remove(index); + onChanged(); + } else { + chatInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder( + int index) { + return getChatInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( + int index) { + if (chatInfoBuilder_ == null) { + return chatInfo_.get(index); } else { + return chatInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List + getChatInfoOrBuilderList() { + if (chatInfoBuilder_ != null) { + return chatInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chatInfo_); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder() { + return getChatInfoFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder( + int index) { + return getChatInfoFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1c1661b78 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/PullRecentChatRspOuterClass.java @@ -0,0 +1,914 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .ChatInfo chatInfo = 2; + */ + java.util.List + getChatInfoList(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index); + /** + * repeated .ChatInfo chatInfo = 2; + */ + int getChatInfoCount(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + java.util.List + getChatInfoOrBuilderList(); + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int CHATINFO_FIELD_NUMBER = 2; + private java.util.List chatInfo_; + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public java.util.List getChatInfoList() { + return chatInfo_; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public java.util.List + getChatInfoOrBuilderList() { + return chatInfo_; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public int getChatInfoCount() { + return chatInfo_.size(); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { + return chatInfo_.get(index); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List chatInfo_ = + java.util.Collections.emptyList(); + private void ensureChatInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + chatInfo_ = new java.util.ArrayList(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_; + + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List getChatInfoList() { + if (chatInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(chatInfo_); + } else { + return chatInfoBuilder_.getMessageList(); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public int getChatInfoCount() { + if (chatInfoBuilder_ == null) { + return chatInfo_.size(); + } else { + return chatInfoBuilder_.getCount(); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo getChatInfo(int index) { + if (chatInfoBuilder_ == null) { + return chatInfo_.get(index); + } else { + return chatInfoBuilder_.getMessage(index); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + 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; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder addAllChatInfo( + java.lang.Iterable values) { + if (chatInfoBuilder_ == null) { + ensureChatInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, chatInfo_); + onChanged(); + } else { + chatInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder clearChatInfo() { + if (chatInfoBuilder_ == null) { + chatInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + chatInfoBuilder_.clear(); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public Builder removeChatInfo(int index) { + if (chatInfoBuilder_ == null) { + ensureChatInfoIsMutable(); + chatInfo_.remove(index); + onChanged(); + } else { + chatInfoBuilder_.remove(index); + } + return this; + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder getChatInfoBuilder( + int index) { + return getChatInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfoOrBuilder getChatInfoOrBuilder( + int index) { + if (chatInfoBuilder_ == null) { + return chatInfo_.get(index); } else { + return chatInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List + getChatInfoOrBuilderList() { + if (chatInfoBuilder_ != null) { + return chatInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chatInfo_); + } + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder() { + return getChatInfoFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.Builder addChatInfoBuilder( + int index) { + return getChatInfoFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo.getDefaultInstance()); + } + /** + * repeated .ChatInfo chatInfo = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ad32a515d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/QueryCurrRegionHttpRspOuterClass.java @@ -0,0 +1,1118 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * string message = 2; + * @return The message. + */ + java.lang.String getMessage(); + /** + * string message = 2; + * @return The bytes for message. + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * .RegionInfo regionInfo = 3; + * @return Whether the regionInfo field is set. + */ + boolean hasRegionInfo(); + /** + * .RegionInfo regionInfo = 3; + * @return The regionInfo. + */ + emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo getRegionInfo(); + /** + * .RegionInfo regionInfo = 3; + */ + emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfoOrBuilder getRegionInfoOrBuilder(); + + /** + * bytes clientSecretKey = 11; + * @return The clientSecretKey. + */ + com.google.protobuf.ByteString getClientSecretKey(); + + /** + * bytes regionCustomConfigEncrypted = 12; + * @return The regionCustomConfigEncrypted. + */ + com.google.protobuf.ByteString getRegionCustomConfigEncrypted(); + + /** + * bytes clientRegionCustomConfigEncrypted = 13; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * string message = 2; + * @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; + } + } + /** + * string message = 2; + * @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_; + /** + * .RegionInfo regionInfo = 3; + * @return Whether the regionInfo field is set. + */ + @java.lang.Override + public boolean hasRegionInfo() { + return regionInfo_ != null; + } + /** + * .RegionInfo regionInfo = 3; + * @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_; + } + /** + * .RegionInfo regionInfo = 3; + */ + @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_; + /** + * bytes clientSecretKey = 11; + * @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_; + /** + * bytes regionCustomConfigEncrypted = 12; + * @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_; + /** + * bytes clientRegionCustomConfigEncrypted = 13; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * string message = 2; + * @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; + } + } + /** + * string message = 2; + * @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; + } + } + /** + * string message = 2; + * @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; + } + /** + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * string message = 2; + * @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_; + /** + * .RegionInfo regionInfo = 3; + * @return Whether the regionInfo field is set. + */ + public boolean hasRegionInfo() { + return regionInfoBuilder_ != null || regionInfo_ != null; + } + /** + * .RegionInfo regionInfo = 3; + * @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(); + } + } + /** + * .RegionInfo regionInfo = 3; + */ + 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; + } + /** + * .RegionInfo regionInfo = 3; + */ + 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; + } + /** + * .RegionInfo regionInfo = 3; + */ + 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; + } + /** + * .RegionInfo regionInfo = 3; + */ + public Builder clearRegionInfo() { + if (regionInfoBuilder_ == null) { + regionInfo_ = null; + onChanged(); + } else { + regionInfo_ = null; + regionInfoBuilder_ = null; + } + + return this; + } + /** + * .RegionInfo regionInfo = 3; + */ + public emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo.Builder getRegionInfoBuilder() { + + onChanged(); + return getRegionInfoFieldBuilder().getBuilder(); + } + /** + * .RegionInfo regionInfo = 3; + */ + 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_; + } + } + /** + * .RegionInfo regionInfo = 3; + */ + 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; + /** + * bytes clientSecretKey = 11; + * @return The clientSecretKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretKey() { + return clientSecretKey_; + } + /** + * bytes clientSecretKey = 11; + * @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; + } + /** + * bytes clientSecretKey = 11; + * @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; + /** + * bytes regionCustomConfigEncrypted = 12; + * @return The regionCustomConfigEncrypted. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCustomConfigEncrypted() { + return regionCustomConfigEncrypted_; + } + /** + * bytes regionCustomConfigEncrypted = 12; + * @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; + } + /** + * bytes regionCustomConfigEncrypted = 12; + * @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; + /** + * bytes clientRegionCustomConfigEncrypted = 13; + * @return The clientRegionCustomConfigEncrypted. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientRegionCustomConfigEncrypted() { + return clientRegionCustomConfigEncrypted_; + } + /** + * bytes clientRegionCustomConfigEncrypted = 13; + * @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; + } + /** + * bytes clientRegionCustomConfigEncrypted = 13; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..c308924b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/QueryRegionListHttpRspOuterClass.java @@ -0,0 +1,1136 @@ +// 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 { + + /** + * uint32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * repeated .RegionSimpleInfo servers = 2; + */ + java.util.List + getServersList(); + /** + * repeated .RegionSimpleInfo servers = 2; + */ + emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index); + /** + * repeated .RegionSimpleInfo servers = 2; + */ + int getServersCount(); + /** + * repeated .RegionSimpleInfo servers = 2; + */ + java.util.List + getServersOrBuilderList(); + /** + * repeated .RegionSimpleInfo servers = 2; + */ + emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder getServersOrBuilder( + int index); + + /** + * bytes clientSecretKey = 5; + * @return The clientSecretKey. + */ + com.google.protobuf.ByteString getClientSecretKey(); + + /** + * bytes clientCustomConfigEncrypted = 6; + * @return The clientCustomConfigEncrypted. + */ + com.google.protobuf.ByteString getClientCustomConfigEncrypted(); + + /** + * bool enableLoginPc = 7; + * @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(); + 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_; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int SERVERS_FIELD_NUMBER = 2; + private java.util.List servers_; + /** + * repeated .RegionSimpleInfo servers = 2; + */ + @java.lang.Override + public java.util.List getServersList() { + return servers_; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + @java.lang.Override + public java.util.List + getServersOrBuilderList() { + return servers_; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + @java.lang.Override + public int getServersCount() { + return servers_.size(); + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index) { + return servers_.get(index); + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + @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_; + /** + * bytes clientSecretKey = 5; + * @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_; + /** + * bytes clientCustomConfigEncrypted = 6; + * @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_; + /** + * bool enableLoginPc = 7; + * @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 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_ ; + /** + * uint32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * uint32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * uint32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.util.List servers_ = + java.util.Collections.emptyList(); + private void ensureServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + servers_ = new java.util.ArrayList(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_; + + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public java.util.List getServersList() { + if (serversBuilder_ == null) { + return java.util.Collections.unmodifiableList(servers_); + } else { + return serversBuilder_.getMessageList(); + } + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public int getServersCount() { + if (serversBuilder_ == null) { + return servers_.size(); + } else { + return serversBuilder_.getCount(); + } + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo getServers(int index) { + if (serversBuilder_ == null) { + return servers_.get(index); + } else { + return serversBuilder_.getMessage(index); + } + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + 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; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public Builder addAllServers( + java.lang.Iterable values) { + if (serversBuilder_ == null) { + ensureServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, servers_); + onChanged(); + } else { + serversBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public Builder clearServers() { + if (serversBuilder_ == null) { + servers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + serversBuilder_.clear(); + } + return this; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public Builder removeServers(int index) { + if (serversBuilder_ == null) { + ensureServersIsMutable(); + servers_.remove(index); + onChanged(); + } else { + serversBuilder_.remove(index); + } + return this; + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder getServersBuilder( + int index) { + return getServersFieldBuilder().getBuilder(index); + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfoOrBuilder getServersOrBuilder( + int index) { + if (serversBuilder_ == null) { + return servers_.get(index); } else { + return serversBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public java.util.List + getServersOrBuilderList() { + if (serversBuilder_ != null) { + return serversBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(servers_); + } + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder addServersBuilder() { + return getServersFieldBuilder().addBuilder( + emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance()); + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.Builder addServersBuilder( + int index) { + return getServersFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo.getDefaultInstance()); + } + /** + * repeated .RegionSimpleInfo servers = 2; + */ + public java.util.List + 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; + /** + * bytes clientSecretKey = 5; + * @return The clientSecretKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretKey() { + return clientSecretKey_; + } + /** + * bytes clientSecretKey = 5; + * @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; + } + /** + * bytes clientSecretKey = 5; + * @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; + /** + * bytes clientCustomConfigEncrypted = 6; + * @return The clientCustomConfigEncrypted. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCustomConfigEncrypted() { + return clientCustomConfigEncrypted_; + } + /** + * bytes clientCustomConfigEncrypted = 6; + * @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; + } + /** + * bytes clientCustomConfigEncrypted = 6; + * @return This builder for chaining. + */ + public Builder clearClientCustomConfigEncrypted() { + + clientCustomConfigEncrypted_ = getDefaultInstance().getClientCustomConfigEncrypted(); + onChanged(); + return this; + } + + private boolean enableLoginPc_ ; + /** + * bool enableLoginPc = 7; + * @return The enableLoginPc. + */ + @java.lang.Override + public boolean getEnableLoginPc() { + return enableLoginPc_; + } + /** + * bool enableLoginPc = 7; + * @param value The enableLoginPc to set. + * @return This builder for chaining. + */ + public Builder setEnableLoginPc(boolean value) { + + enableLoginPc_ = value; + onChanged(); + return this; + } + /** + * bool enableLoginPc = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..64805cd96 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/RegionInfoOuterClass.java @@ -0,0 +1,3367 @@ +// 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 { + + /** + * string ip = 1; + * @return The ip. + */ + java.lang.String getIp(); + /** + * string ip = 1; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString + getIpBytes(); + + /** + * int32 port = 2; + * @return The port. + */ + int getPort(); + + /** + * string payCallbackUrl = 3; + * @return The payCallbackUrl. + */ + java.lang.String getPayCallbackUrl(); + /** + * string payCallbackUrl = 3; + * @return The bytes for payCallbackUrl. + */ + com.google.protobuf.ByteString + getPayCallbackUrlBytes(); + + /** + * string areaType = 7; + * @return The areaType. + */ + java.lang.String getAreaType(); + /** + * string areaType = 7; + * @return The bytes for areaType. + */ + com.google.protobuf.ByteString + getAreaTypeBytes(); + + /** + * string resourceUrl = 8; + * @return The resourceUrl. + */ + java.lang.String getResourceUrl(); + /** + * string resourceUrl = 8; + * @return The bytes for resourceUrl. + */ + com.google.protobuf.ByteString + getResourceUrlBytes(); + + /** + * string dataUrl = 9; + * @return The dataUrl. + */ + java.lang.String getDataUrl(); + /** + * string dataUrl = 9; + * @return The bytes for dataUrl. + */ + com.google.protobuf.ByteString + getDataUrlBytes(); + + /** + * string feedbackUrl = 10; + * @return The feedbackUrl. + */ + java.lang.String getFeedbackUrl(); + /** + * string feedbackUrl = 10; + * @return The bytes for feedbackUrl. + */ + com.google.protobuf.ByteString + getFeedbackUrlBytes(); + + /** + * string bulletinUrl = 11; + * @return The bulletinUrl. + */ + java.lang.String getBulletinUrl(); + /** + * string bulletinUrl = 11; + * @return The bytes for bulletinUrl. + */ + com.google.protobuf.ByteString + getBulletinUrlBytes(); + + /** + * string version = 12; + * @return The version. + */ + java.lang.String getVersion(); + /** + * string version = 12; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * int32 clientDataVersion = 14; + * @return The clientDataVersion. + */ + int getClientDataVersion(); + + /** + * int32 clientSilenceDataVersion = 18; + * @return The clientSilenceDataVersion. + */ + int getClientSilenceDataVersion(); + + /** + * string clientDataMd5 = 19; + * @return The clientDataMd5. + */ + java.lang.String getClientDataMd5(); + /** + * string clientDataMd5 = 19; + * @return The bytes for clientDataMd5. + */ + com.google.protobuf.ByteString + getClientDataMd5Bytes(); + + /** + * string clientSilenceDataMd5 = 20; + * @return The clientSilenceDataMd5. + */ + java.lang.String getClientSilenceDataMd5(); + /** + * string clientSilenceDataMd5 = 20; + * @return The bytes for clientSilenceDataMd5. + */ + com.google.protobuf.ByteString + getClientSilenceDataMd5Bytes(); + + /** + * .ResVersionConfig config = 22; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * .ResVersionConfig config = 22; + * @return The config. + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig getConfig(); + /** + * .ResVersionConfig config = 22; + */ + emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfigOrBuilder getConfigOrBuilder(); + + /** + * bytes secretKey = 23; + * @return The secretKey. + */ + com.google.protobuf.ByteString getSecretKey(); + + /** + * string communityUrl = 24; + * @return The communityUrl. + */ + java.lang.String getCommunityUrl(); + /** + * string communityUrl = 24; + * @return The bytes for communityUrl. + */ + com.google.protobuf.ByteString + getCommunityUrlBytes(); + + /** + * string clientVersionSuffix = 26; + * @return The clientVersionSuffix. + */ + java.lang.String getClientVersionSuffix(); + /** + * string clientVersionSuffix = 26; + * @return The bytes for clientVersionSuffix. + */ + com.google.protobuf.ByteString + getClientVersionSuffixBytes(); + + /** + * string clientSilenceVersionSuffix = 27; + * @return The clientSilenceVersionSuffix. + */ + java.lang.String getClientSilenceVersionSuffix(); + /** + * string clientSilenceVersionSuffix = 27; + * @return The bytes for clientSilenceVersionSuffix. + */ + com.google.protobuf.ByteString + getClientSilenceVersionSuffixBytes(); + + /** + * string accountUrl = 31; + * @return The accountUrl. + */ + java.lang.String getAccountUrl(); + /** + * string accountUrl = 31; + * @return The bytes for accountUrl. + */ + com.google.protobuf.ByteString + getAccountUrlBytes(); + + /** + * string cdkeyUrl = 32; + * @return The cdkeyUrl. + */ + java.lang.String getCdkeyUrl(); + /** + * string cdkeyUrl = 32; + * @return The bytes for cdkeyUrl. + */ + com.google.protobuf.ByteString + getCdkeyUrlBytes(); + + /** + * string privacyUrl = 33; + * @return The privacyUrl. + */ + java.lang.String getPrivacyUrl(); + /** + * string privacyUrl = 33; + * @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_; + /** + * string ip = 1; + * @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; + } + } + /** + * string ip = 1; + * @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_; + /** + * int32 port = 2; + * @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_; + /** + * string payCallbackUrl = 3; + * @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; + } + } + /** + * string payCallbackUrl = 3; + * @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_; + /** + * string areaType = 7; + * @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; + } + } + /** + * string areaType = 7; + * @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_; + /** + * string resourceUrl = 8; + * @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; + } + } + /** + * string resourceUrl = 8; + * @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_; + /** + * string dataUrl = 9; + * @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; + } + } + /** + * string dataUrl = 9; + * @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_; + /** + * string feedbackUrl = 10; + * @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; + } + } + /** + * string feedbackUrl = 10; + * @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_; + /** + * string bulletinUrl = 11; + * @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; + } + } + /** + * string bulletinUrl = 11; + * @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_; + /** + * string version = 12; + * @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; + } + } + /** + * string version = 12; + * @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_; + /** + * int32 clientDataVersion = 14; + * @return The clientDataVersion. + */ + @java.lang.Override + public int getClientDataVersion() { + return clientDataVersion_; + } + + public static final int CLIENTSILENCEDATAVERSION_FIELD_NUMBER = 18; + private int clientSilenceDataVersion_; + /** + * int32 clientSilenceDataVersion = 18; + * @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_; + /** + * string clientDataMd5 = 19; + * @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; + } + } + /** + * string clientDataMd5 = 19; + * @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_; + /** + * string clientSilenceDataMd5 = 20; + * @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; + } + } + /** + * string clientSilenceDataMd5 = 20; + * @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_; + /** + * .ResVersionConfig config = 22; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return config_ != null; + } + /** + * .ResVersionConfig config = 22; + * @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_; + } + /** + * .ResVersionConfig config = 22; + */ + @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_; + /** + * bytes secretKey = 23; + * @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_; + /** + * string communityUrl = 24; + * @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; + } + } + /** + * string communityUrl = 24; + * @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_; + /** + * string clientVersionSuffix = 26; + * @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; + } + } + /** + * string clientVersionSuffix = 26; + * @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_; + /** + * string clientSilenceVersionSuffix = 27; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 27; + * @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_; + /** + * string accountUrl = 31; + * @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; + } + } + /** + * string accountUrl = 31; + * @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_; + /** + * string cdkeyUrl = 32; + * @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; + } + } + /** + * string cdkeyUrl = 32; + * @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_; + /** + * string privacyUrl = 33; + * @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; + } + } + /** + * string privacyUrl = 33; + * @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 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_ = ""; + /** + * string ip = 1; + * @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; + } + } + /** + * string ip = 1; + * @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; + } + } + /** + * string ip = 1; + * @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; + } + /** + * string ip = 1; + * @return This builder for chaining. + */ + public Builder clearIp() { + + ip_ = getDefaultInstance().getIp(); + onChanged(); + return this; + } + /** + * string ip = 1; + * @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_ ; + /** + * int32 port = 2; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * int32 port = 2; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * int32 port = 2; + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object payCallbackUrl_ = ""; + /** + * string payCallbackUrl = 3; + * @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; + } + } + /** + * string payCallbackUrl = 3; + * @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; + } + } + /** + * string payCallbackUrl = 3; + * @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; + } + /** + * string payCallbackUrl = 3; + * @return This builder for chaining. + */ + public Builder clearPayCallbackUrl() { + + payCallbackUrl_ = getDefaultInstance().getPayCallbackUrl(); + onChanged(); + return this; + } + /** + * string payCallbackUrl = 3; + * @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_ = ""; + /** + * string areaType = 7; + * @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; + } + } + /** + * string areaType = 7; + * @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; + } + } + /** + * string areaType = 7; + * @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; + } + /** + * string areaType = 7; + * @return This builder for chaining. + */ + public Builder clearAreaType() { + + areaType_ = getDefaultInstance().getAreaType(); + onChanged(); + return this; + } + /** + * string areaType = 7; + * @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_ = ""; + /** + * string resourceUrl = 8; + * @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; + } + } + /** + * string resourceUrl = 8; + * @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; + } + } + /** + * string resourceUrl = 8; + * @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; + } + /** + * string resourceUrl = 8; + * @return This builder for chaining. + */ + public Builder clearResourceUrl() { + + resourceUrl_ = getDefaultInstance().getResourceUrl(); + onChanged(); + return this; + } + /** + * string resourceUrl = 8; + * @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_ = ""; + /** + * string dataUrl = 9; + * @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; + } + } + /** + * string dataUrl = 9; + * @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; + } + } + /** + * string dataUrl = 9; + * @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; + } + /** + * string dataUrl = 9; + * @return This builder for chaining. + */ + public Builder clearDataUrl() { + + dataUrl_ = getDefaultInstance().getDataUrl(); + onChanged(); + return this; + } + /** + * string dataUrl = 9; + * @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_ = ""; + /** + * string feedbackUrl = 10; + * @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; + } + } + /** + * string feedbackUrl = 10; + * @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; + } + } + /** + * string feedbackUrl = 10; + * @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; + } + /** + * string feedbackUrl = 10; + * @return This builder for chaining. + */ + public Builder clearFeedbackUrl() { + + feedbackUrl_ = getDefaultInstance().getFeedbackUrl(); + onChanged(); + return this; + } + /** + * string feedbackUrl = 10; + * @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_ = ""; + /** + * string bulletinUrl = 11; + * @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; + } + } + /** + * string bulletinUrl = 11; + * @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; + } + } + /** + * string bulletinUrl = 11; + * @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; + } + /** + * string bulletinUrl = 11; + * @return This builder for chaining. + */ + public Builder clearBulletinUrl() { + + bulletinUrl_ = getDefaultInstance().getBulletinUrl(); + onChanged(); + return this; + } + /** + * string bulletinUrl = 11; + * @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_ = ""; + /** + * string version = 12; + * @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; + } + } + /** + * string version = 12; + * @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; + } + } + /** + * string version = 12; + * @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; + } + /** + * string version = 12; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + * string version = 12; + * @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_ ; + /** + * int32 clientDataVersion = 14; + * @return The clientDataVersion. + */ + @java.lang.Override + public int getClientDataVersion() { + return clientDataVersion_; + } + /** + * int32 clientDataVersion = 14; + * @param value The clientDataVersion to set. + * @return This builder for chaining. + */ + public Builder setClientDataVersion(int value) { + + clientDataVersion_ = value; + onChanged(); + return this; + } + /** + * int32 clientDataVersion = 14; + * @return This builder for chaining. + */ + public Builder clearClientDataVersion() { + + clientDataVersion_ = 0; + onChanged(); + return this; + } + + private int clientSilenceDataVersion_ ; + /** + * int32 clientSilenceDataVersion = 18; + * @return The clientSilenceDataVersion. + */ + @java.lang.Override + public int getClientSilenceDataVersion() { + return clientSilenceDataVersion_; + } + /** + * int32 clientSilenceDataVersion = 18; + * @param value The clientSilenceDataVersion to set. + * @return This builder for chaining. + */ + public Builder setClientSilenceDataVersion(int value) { + + clientSilenceDataVersion_ = value; + onChanged(); + return this; + } + /** + * int32 clientSilenceDataVersion = 18; + * @return This builder for chaining. + */ + public Builder clearClientSilenceDataVersion() { + + clientSilenceDataVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clientDataMd5_ = ""; + /** + * string clientDataMd5 = 19; + * @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; + } + } + /** + * string clientDataMd5 = 19; + * @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; + } + } + /** + * string clientDataMd5 = 19; + * @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; + } + /** + * string clientDataMd5 = 19; + * @return This builder for chaining. + */ + public Builder clearClientDataMd5() { + + clientDataMd5_ = getDefaultInstance().getClientDataMd5(); + onChanged(); + return this; + } + /** + * string clientDataMd5 = 19; + * @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_ = ""; + /** + * string clientSilenceDataMd5 = 20; + * @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; + } + } + /** + * string clientSilenceDataMd5 = 20; + * @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; + } + } + /** + * string clientSilenceDataMd5 = 20; + * @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; + } + /** + * string clientSilenceDataMd5 = 20; + * @return This builder for chaining. + */ + public Builder clearClientSilenceDataMd5() { + + clientSilenceDataMd5_ = getDefaultInstance().getClientSilenceDataMd5(); + onChanged(); + return this; + } + /** + * string clientSilenceDataMd5 = 20; + * @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_; + /** + * .ResVersionConfig config = 22; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return configBuilder_ != null || config_ != null; + } + /** + * .ResVersionConfig config = 22; + * @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(); + } + } + /** + * .ResVersionConfig config = 22; + */ + 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; + } + /** + * .ResVersionConfig config = 22; + */ + 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; + } + /** + * .ResVersionConfig config = 22; + */ + 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; + } + /** + * .ResVersionConfig config = 22; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = null; + onChanged(); + } else { + config_ = null; + configBuilder_ = null; + } + + return this; + } + /** + * .ResVersionConfig config = 22; + */ + public emu.grasscutter.net.proto.ResVersionConfigOuterClass.ResVersionConfig.Builder getConfigBuilder() { + + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * .ResVersionConfig config = 22; + */ + 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_; + } + } + /** + * .ResVersionConfig config = 22; + */ + 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; + /** + * bytes secretKey = 23; + * @return The secretKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretKey() { + return secretKey_; + } + /** + * bytes secretKey = 23; + * @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; + } + /** + * bytes secretKey = 23; + * @return This builder for chaining. + */ + public Builder clearSecretKey() { + + secretKey_ = getDefaultInstance().getSecretKey(); + onChanged(); + return this; + } + + private java.lang.Object communityUrl_ = ""; + /** + * string communityUrl = 24; + * @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; + } + } + /** + * string communityUrl = 24; + * @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; + } + } + /** + * string communityUrl = 24; + * @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; + } + /** + * string communityUrl = 24; + * @return This builder for chaining. + */ + public Builder clearCommunityUrl() { + + communityUrl_ = getDefaultInstance().getCommunityUrl(); + onChanged(); + return this; + } + /** + * string communityUrl = 24; + * @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_ = ""; + /** + * string clientVersionSuffix = 26; + * @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; + } + } + /** + * string clientVersionSuffix = 26; + * @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; + } + } + /** + * string clientVersionSuffix = 26; + * @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; + } + /** + * string clientVersionSuffix = 26; + * @return This builder for chaining. + */ + public Builder clearClientVersionSuffix() { + + clientVersionSuffix_ = getDefaultInstance().getClientVersionSuffix(); + onChanged(); + return this; + } + /** + * string clientVersionSuffix = 26; + * @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_ = ""; + /** + * string clientSilenceVersionSuffix = 27; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 27; + * @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; + } + } + /** + * string clientSilenceVersionSuffix = 27; + * @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; + } + /** + * string clientSilenceVersionSuffix = 27; + * @return This builder for chaining. + */ + public Builder clearClientSilenceVersionSuffix() { + + clientSilenceVersionSuffix_ = getDefaultInstance().getClientSilenceVersionSuffix(); + onChanged(); + return this; + } + /** + * string clientSilenceVersionSuffix = 27; + * @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_ = ""; + /** + * string accountUrl = 31; + * @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; + } + } + /** + * string accountUrl = 31; + * @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; + } + } + /** + * string accountUrl = 31; + * @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; + } + /** + * string accountUrl = 31; + * @return This builder for chaining. + */ + public Builder clearAccountUrl() { + + accountUrl_ = getDefaultInstance().getAccountUrl(); + onChanged(); + return this; + } + /** + * string accountUrl = 31; + * @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_ = ""; + /** + * string cdkeyUrl = 32; + * @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; + } + } + /** + * string cdkeyUrl = 32; + * @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; + } + } + /** + * string cdkeyUrl = 32; + * @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; + } + /** + * string cdkeyUrl = 32; + * @return This builder for chaining. + */ + public Builder clearCdkeyUrl() { + + cdkeyUrl_ = getDefaultInstance().getCdkeyUrl(); + onChanged(); + return this; + } + /** + * string cdkeyUrl = 32; + * @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_ = ""; + /** + * string privacyUrl = 33; + * @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; + } + } + /** + * string privacyUrl = 33; + * @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; + } + } + /** + * string privacyUrl = 33; + * @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; + } + /** + * string privacyUrl = 33; + * @return This builder for chaining. + */ + public Builder clearPrivacyUrl() { + + privacyUrl_ = getDefaultInstance().getPrivacyUrl(); + onChanged(); + return this; + } + /** + * string privacyUrl = 33; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e10f23df4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/RegionSimpleInfoOuterClass.java @@ -0,0 +1,1067 @@ +// 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 { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string title = 2; + * @return The title. + */ + java.lang.String getTitle(); + /** + * string title = 2; + * @return The bytes for title. + */ + com.google.protobuf.ByteString + getTitleBytes(); + + /** + * string type = 3; + * @return The type. + */ + java.lang.String getType(); + /** + * string type = 3; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + * string dispatchUrl = 4; + * @return The dispatchUrl. + */ + java.lang.String getDispatchUrl(); + /** + * string dispatchUrl = 4; + * @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_; + /** + * string name = 1; + * @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; + } + } + /** + * string name = 1; + * @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_; + /** + * string title = 2; + * @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; + } + } + /** + * string title = 2; + * @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_; + /** + * string type = 3; + * @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; + } + } + /** + * string type = 3; + * @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_; + /** + * string dispatchUrl = 4; + * @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; + } + } + /** + * string dispatchUrl = 4; + * @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 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_ = ""; + /** + * string name = 1; + * @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; + } + } + /** + * string name = 1; + * @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; + } + } + /** + * string name = 1; + * @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; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @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_ = ""; + /** + * string title = 2; + * @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; + } + } + /** + * string title = 2; + * @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; + } + } + /** + * string title = 2; + * @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; + } + /** + * string title = 2; + * @return This builder for chaining. + */ + public Builder clearTitle() { + + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * string title = 2; + * @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_ = ""; + /** + * string type = 3; + * @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; + } + } + /** + * string type = 3; + * @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; + } + } + /** + * string type = 3; + * @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; + } + /** + * string type = 3; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * string type = 3; + * @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_ = ""; + /** + * string dispatchUrl = 4; + * @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; + } + } + /** + * string dispatchUrl = 4; + * @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; + } + } + /** + * string dispatchUrl = 4; + * @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; + } + /** + * string dispatchUrl = 4; + * @return This builder for chaining. + */ + public Builder clearDispatchUrl() { + + dispatchUrl_ = getDefaultInstance().getDispatchUrl(); + onChanged(); + return this; + } + /** + * string dispatchUrl = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..83bb5fb6c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ReliquaryOuterClass.java @@ -0,0 +1,945 @@ +// 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 { + + /** + * uint32 level = 1; + * @return The level. + */ + int getLevel(); + + /** + * uint32 exp = 2; + * @return The exp. + */ + int getExp(); + + /** + * uint32 promoteLevel = 3; + * @return The promoteLevel. + */ + int getPromoteLevel(); + + /** + * uint32 mainPropId = 4; + * @return The mainPropId. + */ + int getMainPropId(); + + /** + * repeated uint32 appendPropIdList = 5; + * @return A list containing the appendPropIdList. + */ + java.util.List getAppendPropIdListList(); + /** + * repeated uint32 appendPropIdList = 5; + * @return The count of appendPropIdList. + */ + int getAppendPropIdListCount(); + /** + * repeated uint32 appendPropIdList = 5; + * @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_; + /** + * uint32 level = 1; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int EXP_FIELD_NUMBER = 2; + private int exp_; + /** + * uint32 exp = 2; + * @return The exp. + */ + @java.lang.Override + public int getExp() { + return exp_; + } + + public static final int PROMOTELEVEL_FIELD_NUMBER = 3; + private int promoteLevel_; + /** + * uint32 promoteLevel = 3; + * @return The promoteLevel. + */ + @java.lang.Override + public int getPromoteLevel() { + return promoteLevel_; + } + + public static final int MAINPROPID_FIELD_NUMBER = 4; + private int mainPropId_; + /** + * uint32 mainPropId = 4; + * @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_; + /** + * repeated uint32 appendPropIdList = 5; + * @return A list containing the appendPropIdList. + */ + @java.lang.Override + public java.util.List + getAppendPropIdListList() { + return appendPropIdList_; + } + /** + * repeated uint32 appendPropIdList = 5; + * @return The count of appendPropIdList. + */ + public int getAppendPropIdListCount() { + return appendPropIdList_.size(); + } + /** + * repeated uint32 appendPropIdList = 5; + * @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 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_ ; + /** + * uint32 level = 1; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 1; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 1; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int exp_ ; + /** + * uint32 exp = 2; + * @return The exp. + */ + @java.lang.Override + public int getExp() { + return exp_; + } + /** + * uint32 exp = 2; + * @param value The exp to set. + * @return This builder for chaining. + */ + public Builder setExp(int value) { + + exp_ = value; + onChanged(); + return this; + } + /** + * uint32 exp = 2; + * @return This builder for chaining. + */ + public Builder clearExp() { + + exp_ = 0; + onChanged(); + return this; + } + + private int promoteLevel_ ; + /** + * uint32 promoteLevel = 3; + * @return The promoteLevel. + */ + @java.lang.Override + public int getPromoteLevel() { + return promoteLevel_; + } + /** + * uint32 promoteLevel = 3; + * @param value The promoteLevel to set. + * @return This builder for chaining. + */ + public Builder setPromoteLevel(int value) { + + promoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 promoteLevel = 3; + * @return This builder for chaining. + */ + public Builder clearPromoteLevel() { + + promoteLevel_ = 0; + onChanged(); + return this; + } + + private int mainPropId_ ; + /** + * uint32 mainPropId = 4; + * @return The mainPropId. + */ + @java.lang.Override + public int getMainPropId() { + return mainPropId_; + } + /** + * uint32 mainPropId = 4; + * @param value The mainPropId to set. + * @return This builder for chaining. + */ + public Builder setMainPropId(int value) { + + mainPropId_ = value; + onChanged(); + return this; + } + /** + * uint32 mainPropId = 4; + * @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; + } + } + /** + * repeated uint32 appendPropIdList = 5; + * @return A list containing the appendPropIdList. + */ + public java.util.List + getAppendPropIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(appendPropIdList_) : appendPropIdList_; + } + /** + * repeated uint32 appendPropIdList = 5; + * @return The count of appendPropIdList. + */ + public int getAppendPropIdListCount() { + return appendPropIdList_.size(); + } + /** + * repeated uint32 appendPropIdList = 5; + * @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); + } + /** + * repeated uint32 appendPropIdList = 5; + * @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; + } + /** + * repeated uint32 appendPropIdList = 5; + * @param value The appendPropIdList to add. + * @return This builder for chaining. + */ + public Builder addAppendPropIdList(int value) { + ensureAppendPropIdListIsMutable(); + appendPropIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 appendPropIdList = 5; + * @param values The appendPropIdList to add. + * @return This builder for chaining. + */ + public Builder addAllAppendPropIdList( + java.lang.Iterable values) { + ensureAppendPropIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appendPropIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 appendPropIdList = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..851d8e90c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteReqOuterClass.java @@ -0,0 +1,609 @@ +// 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 { + + /** + * uint64 targetGuid = 1; + * @return The targetGuid. + */ + long getTargetGuid(); + + /** + * uint64 itemGuid = 2; + * @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_; + /** + * uint64 targetGuid = 1; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + + public static final int ITEMGUID_FIELD_NUMBER = 2; + private long itemGuid_; + /** + * uint64 itemGuid = 2; + * @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 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_ ; + /** + * uint64 targetGuid = 1; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + /** + * uint64 targetGuid = 1; + * @param value The targetGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetGuid(long value) { + + targetGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetGuid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetGuid() { + + targetGuid_ = 0L; + onChanged(); + return this; + } + + private long itemGuid_ ; + /** + * uint64 itemGuid = 2; + * @return The itemGuid. + */ + @java.lang.Override + public long getItemGuid() { + return itemGuid_; + } + /** + * uint64 itemGuid = 2; + * @param value The itemGuid to set. + * @return This builder for chaining. + */ + public Builder setItemGuid(long value) { + + itemGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 itemGuid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2771b0d6d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ReliquaryPromoteRspOuterClass.java @@ -0,0 +1,1140 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + long getTargetReliquaryGuid(); + + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + int getOldPromoteLevel(); + + /** + * uint32 curPromoteLevel = 4; + * @return The curPromoteLevel. + */ + int getCurPromoteLevel(); + + /** + * repeated uint32 oldAppendPropList = 5; + * @return A list containing the oldAppendPropList. + */ + java.util.List getOldAppendPropListList(); + /** + * repeated uint32 oldAppendPropList = 5; + * @return The count of oldAppendPropList. + */ + int getOldAppendPropListCount(); + /** + * repeated uint32 oldAppendPropList = 5; + * @param index The index of the element to return. + * @return The oldAppendPropList at the given index. + */ + int getOldAppendPropList(int index); + + /** + * repeated uint32 curAppendPropList = 6; + * @return A list containing the curAppendPropList. + */ + java.util.List getCurAppendPropListList(); + /** + * repeated uint32 curAppendPropList = 6; + * @return The count of curAppendPropList. + */ + int getCurAppendPropListCount(); + /** + * repeated uint32 curAppendPropList = 6; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETRELIQUARYGUID_FIELD_NUMBER = 2; + private long targetReliquaryGuid_; + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + @java.lang.Override + public long getTargetReliquaryGuid() { + return targetReliquaryGuid_; + } + + public static final int OLDPROMOTELEVEL_FIELD_NUMBER = 3; + private int oldPromoteLevel_; + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + @java.lang.Override + public int getOldPromoteLevel() { + return oldPromoteLevel_; + } + + public static final int CURPROMOTELEVEL_FIELD_NUMBER = 4; + private int curPromoteLevel_; + /** + * uint32 curPromoteLevel = 4; + * @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_; + /** + * repeated uint32 oldAppendPropList = 5; + * @return A list containing the oldAppendPropList. + */ + @java.lang.Override + public java.util.List + getOldAppendPropListList() { + return oldAppendPropList_; + } + /** + * repeated uint32 oldAppendPropList = 5; + * @return The count of oldAppendPropList. + */ + public int getOldAppendPropListCount() { + return oldAppendPropList_.size(); + } + /** + * repeated uint32 oldAppendPropList = 5; + * @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_; + /** + * repeated uint32 curAppendPropList = 6; + * @return A list containing the curAppendPropList. + */ + @java.lang.Override + public java.util.List + getCurAppendPropListList() { + return curAppendPropList_; + } + /** + * repeated uint32 curAppendPropList = 6; + * @return The count of curAppendPropList. + */ + public int getCurAppendPropListCount() { + return curAppendPropList_.size(); + } + /** + * repeated uint32 curAppendPropList = 6; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetReliquaryGuid_ ; + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + @java.lang.Override + public long getTargetReliquaryGuid() { + return targetReliquaryGuid_; + } + /** + * uint64 targetReliquaryGuid = 2; + * @param value The targetReliquaryGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetReliquaryGuid(long value) { + + targetReliquaryGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetReliquaryGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetReliquaryGuid() { + + targetReliquaryGuid_ = 0L; + onChanged(); + return this; + } + + private int oldPromoteLevel_ ; + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + @java.lang.Override + public int getOldPromoteLevel() { + return oldPromoteLevel_; + } + /** + * uint32 oldPromoteLevel = 3; + * @param value The oldPromoteLevel to set. + * @return This builder for chaining. + */ + public Builder setOldPromoteLevel(int value) { + + oldPromoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldPromoteLevel = 3; + * @return This builder for chaining. + */ + public Builder clearOldPromoteLevel() { + + oldPromoteLevel_ = 0; + onChanged(); + return this; + } + + private int curPromoteLevel_ ; + /** + * uint32 curPromoteLevel = 4; + * @return The curPromoteLevel. + */ + @java.lang.Override + public int getCurPromoteLevel() { + return curPromoteLevel_; + } + /** + * uint32 curPromoteLevel = 4; + * @param value The curPromoteLevel to set. + * @return This builder for chaining. + */ + public Builder setCurPromoteLevel(int value) { + + curPromoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curPromoteLevel = 4; + * @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; + } + } + /** + * repeated uint32 oldAppendPropList = 5; + * @return A list containing the oldAppendPropList. + */ + public java.util.List + getOldAppendPropListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(oldAppendPropList_) : oldAppendPropList_; + } + /** + * repeated uint32 oldAppendPropList = 5; + * @return The count of oldAppendPropList. + */ + public int getOldAppendPropListCount() { + return oldAppendPropList_.size(); + } + /** + * repeated uint32 oldAppendPropList = 5; + * @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); + } + /** + * repeated uint32 oldAppendPropList = 5; + * @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; + } + /** + * repeated uint32 oldAppendPropList = 5; + * @param value The oldAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addOldAppendPropList(int value) { + ensureOldAppendPropListIsMutable(); + oldAppendPropList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 oldAppendPropList = 5; + * @param values The oldAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addAllOldAppendPropList( + java.lang.Iterable values) { + ensureOldAppendPropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oldAppendPropList_); + onChanged(); + return this; + } + /** + * repeated uint32 oldAppendPropList = 5; + * @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; + } + } + /** + * repeated uint32 curAppendPropList = 6; + * @return A list containing the curAppendPropList. + */ + public java.util.List + getCurAppendPropListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(curAppendPropList_) : curAppendPropList_; + } + /** + * repeated uint32 curAppendPropList = 6; + * @return The count of curAppendPropList. + */ + public int getCurAppendPropListCount() { + return curAppendPropList_.size(); + } + /** + * repeated uint32 curAppendPropList = 6; + * @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); + } + /** + * repeated uint32 curAppendPropList = 6; + * @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; + } + /** + * repeated uint32 curAppendPropList = 6; + * @param value The curAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addCurAppendPropList(int value) { + ensureCurAppendPropListIsMutable(); + curAppendPropList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 curAppendPropList = 6; + * @param values The curAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addAllCurAppendPropList( + java.lang.Iterable values) { + ensureCurAppendPropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, curAppendPropList_); + onChanged(); + return this; + } + /** + * repeated uint32 curAppendPropList = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3300e97be --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeReqOuterClass.java @@ -0,0 +1,1110 @@ +// 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 { + + /** + * uint64 targetReliquaryGuid = 1; + * @return The targetReliquaryGuid. + */ + long getTargetReliquaryGuid(); + + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return A list containing the foodReliquaryGuidList. + */ + java.util.List getFoodReliquaryGuidListList(); + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return The count of foodReliquaryGuidList. + */ + int getFoodReliquaryGuidListCount(); + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @param index The index of the element to return. + * @return The foodReliquaryGuidList at the given index. + */ + long getFoodReliquaryGuidList(int index); + + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 3; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + 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(); + 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_; + /** + * uint64 targetReliquaryGuid = 1; + * @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_; + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return A list containing the foodReliquaryGuidList. + */ + @java.lang.Override + public java.util.List + getFoodReliquaryGuidListList() { + return foodReliquaryGuidList_; + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return The count of foodReliquaryGuidList. + */ + public int getFoodReliquaryGuidListCount() { + return foodReliquaryGuidList_.size(); + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @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 itemParamList_; + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @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 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_ ; + /** + * uint64 targetReliquaryGuid = 1; + * @return The targetReliquaryGuid. + */ + @java.lang.Override + public long getTargetReliquaryGuid() { + return targetReliquaryGuid_; + } + /** + * uint64 targetReliquaryGuid = 1; + * @param value The targetReliquaryGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetReliquaryGuid(long value) { + + targetReliquaryGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetReliquaryGuid = 1; + * @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; + } + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return A list containing the foodReliquaryGuidList. + */ + public java.util.List + getFoodReliquaryGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(foodReliquaryGuidList_) : foodReliquaryGuidList_; + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return The count of foodReliquaryGuidList. + */ + public int getFoodReliquaryGuidListCount() { + return foodReliquaryGuidList_.size(); + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @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); + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @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; + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @param value The foodReliquaryGuidList to add. + * @return This builder for chaining. + */ + public Builder addFoodReliquaryGuidList(long value) { + ensureFoodReliquaryGuidListIsMutable(); + foodReliquaryGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @param values The foodReliquaryGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllFoodReliquaryGuidList( + java.lang.Iterable values) { + ensureFoodReliquaryGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, foodReliquaryGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 foodReliquaryGuidList = 2; + * @return This builder for chaining. + */ + public Builder clearFoodReliquaryGuidList() { + foodReliquaryGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b6ac225c2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ReliquaryUpgradeRspOuterClass.java @@ -0,0 +1,1211 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + long getTargetReliquaryGuid(); + + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + int getCurLevel(); + + /** + * uint32 powerUpRate = 5; + * @return The powerUpRate. + */ + int getPowerUpRate(); + + /** + * repeated uint32 oldAppendPropList = 6; + * @return A list containing the oldAppendPropList. + */ + java.util.List getOldAppendPropListList(); + /** + * repeated uint32 oldAppendPropList = 6; + * @return The count of oldAppendPropList. + */ + int getOldAppendPropListCount(); + /** + * repeated uint32 oldAppendPropList = 6; + * @param index The index of the element to return. + * @return The oldAppendPropList at the given index. + */ + int getOldAppendPropList(int index); + + /** + * repeated uint32 curAppendPropList = 7; + * @return A list containing the curAppendPropList. + */ + java.util.List getCurAppendPropListList(); + /** + * repeated uint32 curAppendPropList = 7; + * @return The count of curAppendPropList. + */ + int getCurAppendPropListCount(); + /** + * repeated uint32 curAppendPropList = 7; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETRELIQUARYGUID_FIELD_NUMBER = 2; + private long targetReliquaryGuid_; + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + @java.lang.Override + public long getTargetReliquaryGuid() { + return targetReliquaryGuid_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 3; + private int oldLevel_; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CURLEVEL_FIELD_NUMBER = 4; + private int curLevel_; + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + + public static final int POWERUPRATE_FIELD_NUMBER = 5; + private int powerUpRate_; + /** + * uint32 powerUpRate = 5; + * @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_; + /** + * repeated uint32 oldAppendPropList = 6; + * @return A list containing the oldAppendPropList. + */ + @java.lang.Override + public java.util.List + getOldAppendPropListList() { + return oldAppendPropList_; + } + /** + * repeated uint32 oldAppendPropList = 6; + * @return The count of oldAppendPropList. + */ + public int getOldAppendPropListCount() { + return oldAppendPropList_.size(); + } + /** + * repeated uint32 oldAppendPropList = 6; + * @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_; + /** + * repeated uint32 curAppendPropList = 7; + * @return A list containing the curAppendPropList. + */ + @java.lang.Override + public java.util.List + getCurAppendPropListList() { + return curAppendPropList_; + } + /** + * repeated uint32 curAppendPropList = 7; + * @return The count of curAppendPropList. + */ + public int getCurAppendPropListCount() { + return curAppendPropList_.size(); + } + /** + * repeated uint32 curAppendPropList = 7; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetReliquaryGuid_ ; + /** + * uint64 targetReliquaryGuid = 2; + * @return The targetReliquaryGuid. + */ + @java.lang.Override + public long getTargetReliquaryGuid() { + return targetReliquaryGuid_; + } + /** + * uint64 targetReliquaryGuid = 2; + * @param value The targetReliquaryGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetReliquaryGuid(long value) { + + targetReliquaryGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetReliquaryGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetReliquaryGuid() { + + targetReliquaryGuid_ = 0L; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 3; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 3; + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_ ; + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 curLevel = 4; + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevel = 4; + * @return This builder for chaining. + */ + public Builder clearCurLevel() { + + curLevel_ = 0; + onChanged(); + return this; + } + + private int powerUpRate_ ; + /** + * uint32 powerUpRate = 5; + * @return The powerUpRate. + */ + @java.lang.Override + public int getPowerUpRate() { + return powerUpRate_; + } + /** + * uint32 powerUpRate = 5; + * @param value The powerUpRate to set. + * @return This builder for chaining. + */ + public Builder setPowerUpRate(int value) { + + powerUpRate_ = value; + onChanged(); + return this; + } + /** + * uint32 powerUpRate = 5; + * @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; + } + } + /** + * repeated uint32 oldAppendPropList = 6; + * @return A list containing the oldAppendPropList. + */ + public java.util.List + getOldAppendPropListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(oldAppendPropList_) : oldAppendPropList_; + } + /** + * repeated uint32 oldAppendPropList = 6; + * @return The count of oldAppendPropList. + */ + public int getOldAppendPropListCount() { + return oldAppendPropList_.size(); + } + /** + * repeated uint32 oldAppendPropList = 6; + * @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); + } + /** + * repeated uint32 oldAppendPropList = 6; + * @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; + } + /** + * repeated uint32 oldAppendPropList = 6; + * @param value The oldAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addOldAppendPropList(int value) { + ensureOldAppendPropListIsMutable(); + oldAppendPropList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 oldAppendPropList = 6; + * @param values The oldAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addAllOldAppendPropList( + java.lang.Iterable values) { + ensureOldAppendPropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oldAppendPropList_); + onChanged(); + return this; + } + /** + * repeated uint32 oldAppendPropList = 6; + * @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; + } + } + /** + * repeated uint32 curAppendPropList = 7; + * @return A list containing the curAppendPropList. + */ + public java.util.List + getCurAppendPropListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(curAppendPropList_) : curAppendPropList_; + } + /** + * repeated uint32 curAppendPropList = 7; + * @return The count of curAppendPropList. + */ + public int getCurAppendPropListCount() { + return curAppendPropList_.size(); + } + /** + * repeated uint32 curAppendPropList = 7; + * @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); + } + /** + * repeated uint32 curAppendPropList = 7; + * @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; + } + /** + * repeated uint32 curAppendPropList = 7; + * @param value The curAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addCurAppendPropList(int value) { + ensureCurAppendPropListIsMutable(); + curAppendPropList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 curAppendPropList = 7; + * @param values The curAppendPropList to add. + * @return This builder for chaining. + */ + public Builder addAllCurAppendPropList( + java.lang.Iterable values) { + ensureCurAppendPropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, curAppendPropList_); + onChanged(); + return this; + } + /** + * repeated uint32 curAppendPropList = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..92fd15bfd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ResVersionConfigOuterClass.java @@ -0,0 +1,1138 @@ +// 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 { + + /** + * int32 version = 1; + * @return The version. + */ + int getVersion(); + + /** + * string md5 = 2; + * @return The md5. + */ + java.lang.String getMd5(); + /** + * string md5 = 2; + * @return The bytes for md5. + */ + com.google.protobuf.ByteString + getMd5Bytes(); + + /** + * string size = 3; + * @return The size. + */ + java.lang.String getSize(); + /** + * string size = 3; + * @return The bytes for size. + */ + com.google.protobuf.ByteString + getSizeBytes(); + + /** + * string versionSuffix = 4; + * @return The versionSuffix. + */ + java.lang.String getVersionSuffix(); + /** + * string versionSuffix = 4; + * @return The bytes for versionSuffix. + */ + com.google.protobuf.ByteString + getVersionSuffixBytes(); + + /** + * string branch = 5; + * @return The branch. + */ + java.lang.String getBranch(); + /** + * string branch = 5; + * @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_; + /** + * int32 version = 1; + * @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_; + /** + * string md5 = 2; + * @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; + } + } + /** + * string md5 = 2; + * @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_; + /** + * string size = 3; + * @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; + } + } + /** + * string size = 3; + * @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_; + /** + * string versionSuffix = 4; + * @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; + } + } + /** + * string versionSuffix = 4; + * @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_; + /** + * string branch = 5; + * @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; + } + } + /** + * string branch = 5; + * @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 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_ ; + /** + * int32 version = 1; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + * int32 version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + onChanged(); + return this; + } + /** + * int32 version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object md5_ = ""; + /** + * string md5 = 2; + * @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; + } + } + /** + * string md5 = 2; + * @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; + } + } + /** + * string md5 = 2; + * @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; + } + /** + * string md5 = 2; + * @return This builder for chaining. + */ + public Builder clearMd5() { + + md5_ = getDefaultInstance().getMd5(); + onChanged(); + return this; + } + /** + * string md5 = 2; + * @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_ = ""; + /** + * string size = 3; + * @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; + } + } + /** + * string size = 3; + * @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; + } + } + /** + * string size = 3; + * @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; + } + /** + * string size = 3; + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = getDefaultInstance().getSize(); + onChanged(); + return this; + } + /** + * string size = 3; + * @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_ = ""; + /** + * string versionSuffix = 4; + * @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; + } + } + /** + * string versionSuffix = 4; + * @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; + } + } + /** + * string versionSuffix = 4; + * @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; + } + /** + * string versionSuffix = 4; + * @return This builder for chaining. + */ + public Builder clearVersionSuffix() { + + versionSuffix_ = getDefaultInstance().getVersionSuffix(); + onChanged(); + return this; + } + /** + * string versionSuffix = 4; + * @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_ = ""; + /** + * string branch = 5; + * @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; + } + } + /** + * string branch = 5; + * @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; + } + } + /** + * string branch = 5; + * @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; + } + /** + * string branch = 5; + * @return This builder for chaining. + */ + public Builder clearBranch() { + + branch_ = getDefaultInstance().getBranch(); + onChanged(); + return this; + } + /** + * string branch = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4c5158a18 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ResinCardOuterClass.java @@ -0,0 +1,1216 @@ +// 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 { + + /** + * repeated .ItemParam baseItemList = 1; + */ + java.util.List + getBaseItemListList(); + /** + * repeated .ItemParam baseItemList = 1; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index); + /** + * repeated .ItemParam baseItemList = 1; + */ + int getBaseItemListCount(); + /** + * repeated .ItemParam baseItemList = 1; + */ + java.util.List + getBaseItemListOrBuilderList(); + /** + * repeated .ItemParam baseItemList = 1; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getBaseItemListOrBuilder( + int index); + + /** + * repeated .ItemParam perDayItemList = 2; + */ + java.util.List + getPerDayItemListList(); + /** + * repeated .ItemParam perDayItemList = 2; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index); + /** + * repeated .ItemParam perDayItemList = 2; + */ + int getPerDayItemListCount(); + /** + * repeated .ItemParam perDayItemList = 2; + */ + java.util.List + getPerDayItemListOrBuilderList(); + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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(); + 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(); + 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 baseItemList_; + /** + * repeated .ItemParam baseItemList = 1; + */ + @java.lang.Override + public java.util.List getBaseItemListList() { + return baseItemList_; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + @java.lang.Override + public java.util.List + getBaseItemListOrBuilderList() { + return baseItemList_; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + @java.lang.Override + public int getBaseItemListCount() { + return baseItemList_.size(); + } + /** + * repeated .ItemParam baseItemList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index) { + return baseItemList_.get(index); + } + /** + * repeated .ItemParam baseItemList = 1; + */ + @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 perDayItemList_; + /** + * repeated .ItemParam perDayItemList = 2; + */ + @java.lang.Override + public java.util.List getPerDayItemListList() { + return perDayItemList_; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + @java.lang.Override + public java.util.List + getPerDayItemListOrBuilderList() { + return perDayItemList_; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + @java.lang.Override + public int getPerDayItemListCount() { + return perDayItemList_.size(); + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index) { + return perDayItemList_.get(index); + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + @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 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 baseItemList_ = + java.util.Collections.emptyList(); + private void ensureBaseItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + baseItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam baseItemList = 1; + */ + public java.util.List getBaseItemListList() { + if (baseItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(baseItemList_); + } else { + return baseItemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public int getBaseItemListCount() { + if (baseItemListBuilder_ == null) { + return baseItemList_.size(); + } else { + return baseItemListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getBaseItemList(int index) { + if (baseItemListBuilder_ == null) { + return baseItemList_.get(index); + } else { + return baseItemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + 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; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public Builder addAllBaseItemList( + java.lang.Iterable values) { + if (baseItemListBuilder_ == null) { + ensureBaseItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, baseItemList_); + onChanged(); + } else { + baseItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public Builder clearBaseItemList() { + if (baseItemListBuilder_ == null) { + baseItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + baseItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public Builder removeBaseItemList(int index) { + if (baseItemListBuilder_ == null) { + ensureBaseItemListIsMutable(); + baseItemList_.remove(index); + onChanged(); + } else { + baseItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getBaseItemListBuilder( + int index) { + return getBaseItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getBaseItemListOrBuilder( + int index) { + if (baseItemListBuilder_ == null) { + return baseItemList_.get(index); } else { + return baseItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public java.util.List + getBaseItemListOrBuilderList() { + if (baseItemListBuilder_ != null) { + return baseItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(baseItemList_); + } + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addBaseItemListBuilder() { + return getBaseItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addBaseItemListBuilder( + int index) { + return getBaseItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam baseItemList = 1; + */ + public java.util.List + 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 perDayItemList_ = + java.util.Collections.emptyList(); + private void ensurePerDayItemListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + perDayItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam perDayItemList = 2; + */ + public java.util.List getPerDayItemListList() { + if (perDayItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(perDayItemList_); + } else { + return perDayItemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public int getPerDayItemListCount() { + if (perDayItemListBuilder_ == null) { + return perDayItemList_.size(); + } else { + return perDayItemListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getPerDayItemList(int index) { + if (perDayItemListBuilder_ == null) { + return perDayItemList_.get(index); + } else { + return perDayItemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + 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; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public Builder addAllPerDayItemList( + java.lang.Iterable values) { + if (perDayItemListBuilder_ == null) { + ensurePerDayItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, perDayItemList_); + onChanged(); + } else { + perDayItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public Builder clearPerDayItemList() { + if (perDayItemListBuilder_ == null) { + perDayItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + perDayItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public Builder removePerDayItemList(int index) { + if (perDayItemListBuilder_ == null) { + ensurePerDayItemListIsMutable(); + perDayItemList_.remove(index); + onChanged(); + } else { + perDayItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getPerDayItemListBuilder( + int index) { + return getPerDayItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getPerDayItemListOrBuilder( + int index) { + if (perDayItemListBuilder_ == null) { + return perDayItemList_.get(index); } else { + return perDayItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public java.util.List + getPerDayItemListOrBuilderList() { + if (perDayItemListBuilder_ != null) { + return perDayItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(perDayItemList_); + } + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addPerDayItemListBuilder() { + return getPerDayItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addPerDayItemListBuilder( + int index) { + return getPerDayItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam perDayItemList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0109026b9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ResinChangeNotifyOuterClass.java @@ -0,0 +1,677 @@ +// 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 { + + /** + * int32 currValue = 1; + * @return The currValue. + */ + int getCurrValue(); + + /** + * int32 nextAddTimestamp = 2; + * @return The nextAddTimestamp. + */ + int getNextAddTimestamp(); + + /** + * int32 curBuyCount = 3; + * @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_; + /** + * int32 currValue = 1; + * @return The currValue. + */ + @java.lang.Override + public int getCurrValue() { + return currValue_; + } + + public static final int NEXTADDTIMESTAMP_FIELD_NUMBER = 2; + private int nextAddTimestamp_; + /** + * int32 nextAddTimestamp = 2; + * @return The nextAddTimestamp. + */ + @java.lang.Override + public int getNextAddTimestamp() { + return nextAddTimestamp_; + } + + public static final int CURBUYCOUNT_FIELD_NUMBER = 3; + private int curBuyCount_; + /** + * int32 curBuyCount = 3; + * @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 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_ ; + /** + * int32 currValue = 1; + * @return The currValue. + */ + @java.lang.Override + public int getCurrValue() { + return currValue_; + } + /** + * int32 currValue = 1; + * @param value The currValue to set. + * @return This builder for chaining. + */ + public Builder setCurrValue(int value) { + + currValue_ = value; + onChanged(); + return this; + } + /** + * int32 currValue = 1; + * @return This builder for chaining. + */ + public Builder clearCurrValue() { + + currValue_ = 0; + onChanged(); + return this; + } + + private int nextAddTimestamp_ ; + /** + * int32 nextAddTimestamp = 2; + * @return The nextAddTimestamp. + */ + @java.lang.Override + public int getNextAddTimestamp() { + return nextAddTimestamp_; + } + /** + * int32 nextAddTimestamp = 2; + * @param value The nextAddTimestamp to set. + * @return This builder for chaining. + */ + public Builder setNextAddTimestamp(int value) { + + nextAddTimestamp_ = value; + onChanged(); + return this; + } + /** + * int32 nextAddTimestamp = 2; + * @return This builder for chaining. + */ + public Builder clearNextAddTimestamp() { + + nextAddTimestamp_ = 0; + onChanged(); + return this; + } + + private int curBuyCount_ ; + /** + * int32 curBuyCount = 3; + * @return The curBuyCount. + */ + @java.lang.Override + public int getCurBuyCount() { + return curBuyCount_; + } + /** + * int32 curBuyCount = 3; + * @param value The curBuyCount to set. + * @return This builder for chaining. + */ + public Builder setCurBuyCount(int value) { + + curBuyCount_ = value; + onChanged(); + return this; + } + /** + * int32 curBuyCount = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a239e92d0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ResinCostTypeOuterClass.java @@ -0,0 +1,183 @@ +// 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 { + /** + * CostNone = 0; + */ + CostNone(0), + /** + * CostNormal = 1; + */ + CostNormal(1), + /** + * CostCondense = 2; + */ + CostCondense(2), + /** + * CostReunionPrivilege = 3; + */ + CostReunionPrivilege(3), + /** + * CostOpActivity = 4; + */ + CostOpActivity(4), + /** + * CostMaterial = 5; + */ + CostMaterial(5), + UNRECOGNIZED(-1), + ; + + /** + * CostNone = 0; + */ + public static final int CostNone_VALUE = 0; + /** + * CostNormal = 1; + */ + public static final int CostNormal_VALUE = 1; + /** + * CostCondense = 2; + */ + public static final int CostCondense_VALUE = 2; + /** + * CostReunionPrivilege = 3; + */ + public static final int CostReunionPrivilege_VALUE = 3; + /** + * CostOpActivity = 4; + */ + public static final int CostOpActivity_VALUE = 4; + /** + * CostMaterial = 5; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResinCostType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..2accf4af0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/RouteOuterClass.java @@ -0,0 +1,914 @@ +// 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 { + + /** + * repeated .RoutePoint routePoints = 1; + */ + java.util.List + getRoutePointsList(); + /** + * repeated .RoutePoint routePoints = 1; + */ + emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index); + /** + * repeated .RoutePoint routePoints = 1; + */ + int getRoutePointsCount(); + /** + * repeated .RoutePoint routePoints = 1; + */ + java.util.List + getRoutePointsOrBuilderList(); + /** + * repeated .RoutePoint routePoints = 1; + */ + emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder( + int index); + + /** + * uint32 routeType = 2; + * @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(); + 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 routePoints_; + /** + * repeated .RoutePoint routePoints = 1; + */ + @java.lang.Override + public java.util.List getRoutePointsList() { + return routePoints_; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + @java.lang.Override + public java.util.List + getRoutePointsOrBuilderList() { + return routePoints_; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + @java.lang.Override + public int getRoutePointsCount() { + return routePoints_.size(); + } + /** + * repeated .RoutePoint routePoints = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index) { + return routePoints_.get(index); + } + /** + * repeated .RoutePoint routePoints = 1; + */ + @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_; + /** + * uint32 routeType = 2; + * @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 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 routePoints_ = + java.util.Collections.emptyList(); + private void ensureRoutePointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + routePoints_ = new java.util.ArrayList(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_; + + /** + * repeated .RoutePoint routePoints = 1; + */ + public java.util.List getRoutePointsList() { + if (routePointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(routePoints_); + } else { + return routePointsBuilder_.getMessageList(); + } + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public int getRoutePointsCount() { + if (routePointsBuilder_ == null) { + return routePoints_.size(); + } else { + return routePointsBuilder_.getCount(); + } + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint getRoutePoints(int index) { + if (routePointsBuilder_ == null) { + return routePoints_.get(index); + } else { + return routePointsBuilder_.getMessage(index); + } + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + 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; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public Builder addAllRoutePoints( + java.lang.Iterable values) { + if (routePointsBuilder_ == null) { + ensureRoutePointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routePoints_); + onChanged(); + } else { + routePointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public Builder clearRoutePoints() { + if (routePointsBuilder_ == null) { + routePoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + routePointsBuilder_.clear(); + } + return this; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public Builder removeRoutePoints(int index) { + if (routePointsBuilder_ == null) { + ensureRoutePointsIsMutable(); + routePoints_.remove(index); + onChanged(); + } else { + routePointsBuilder_.remove(index); + } + return this; + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder getRoutePointsBuilder( + int index) { + return getRoutePointsFieldBuilder().getBuilder(index); + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePointOrBuilder getRoutePointsOrBuilder( + int index) { + if (routePointsBuilder_ == null) { + return routePoints_.get(index); } else { + return routePointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public java.util.List + getRoutePointsOrBuilderList() { + if (routePointsBuilder_ != null) { + return routePointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routePoints_); + } + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder addRoutePointsBuilder() { + return getRoutePointsFieldBuilder().addBuilder( + emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance()); + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.Builder addRoutePointsBuilder( + int index) { + return getRoutePointsFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.RoutePointOuterClass.RoutePoint.getDefaultInstance()); + } + /** + * repeated .RoutePoint routePoints = 1; + */ + public java.util.List + 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_ ; + /** + * uint32 routeType = 2; + * @return The routeType. + */ + @java.lang.Override + public int getRouteType() { + return routeType_; + } + /** + * uint32 routeType = 2; + * @param value The routeType to set. + * @return This builder for chaining. + */ + public Builder setRouteType(int value) { + + routeType_ = value; + onChanged(); + return this; + } + /** + * uint32 routeType = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8f67adec5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/RoutePointOuterClass.java @@ -0,0 +1,1719 @@ +// 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 { + + /** + * .Vector position = 1; + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + * .Vector position = 1; + * @return The position. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getPosition(); + /** + * .Vector position = 1; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder(); + + /** + * float velocity = 11; + * @return Whether the velocity field is set. + */ + boolean hasVelocity(); + /** + * float velocity = 11; + * @return The velocity. + */ + float getVelocity(); + + /** + * float time = 12; + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + * float time = 12; + * @return The time. + */ + float getTime(); + + /** + * .Vector rotation = 21; + * @return Whether the rotation field is set. + */ + boolean hasRotation(); + /** + * .Vector rotation = 21; + * @return The rotation. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getRotation(); + /** + * .Vector rotation = 21; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotationOrBuilder(); + + /** + * .MathQuaternion rotationSpeed = 22; + * @return Whether the rotationSpeed field is set. + */ + boolean hasRotationSpeed(); + /** + * .MathQuaternion rotationSpeed = 22; + * @return The rotationSpeed. + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getRotationSpeed(); + /** + * .MathQuaternion rotationSpeed = 22; + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternionOrBuilder getRotationSpeedOrBuilder(); + + /** + * .MathQuaternion axisSpeed = 23; + * @return Whether the axisSpeed field is set. + */ + boolean hasAxisSpeed(); + /** + * .MathQuaternion axisSpeed = 23; + * @return The axisSpeed. + */ + emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion getAxisSpeed(); + /** + * .MathQuaternion axisSpeed = 23; + */ + 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_; + /** + * .Vector position = 1; + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return position_ != null; + } + /** + * .Vector position = 1; + * @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_; + } + /** + * .Vector position = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPositionOrBuilder() { + return getPosition(); + } + + public static final int VELOCITY_FIELD_NUMBER = 11; + /** + * float velocity = 11; + * @return Whether the velocity field is set. + */ + @java.lang.Override + public boolean hasVelocity() { + return moveParamsCase_ == 11; + } + /** + * float velocity = 11; + * @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; + /** + * float time = 12; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return moveParamsCase_ == 12; + } + /** + * float time = 12; + * @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; + /** + * .Vector rotation = 21; + * @return Whether the rotation field is set. + */ + @java.lang.Override + public boolean hasRotation() { + return rotateParamsCase_ == 21; + } + /** + * .Vector rotation = 21; + * @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(); + } + /** + * .Vector rotation = 21; + */ + @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; + /** + * .MathQuaternion rotationSpeed = 22; + * @return Whether the rotationSpeed field is set. + */ + @java.lang.Override + public boolean hasRotationSpeed() { + return rotateParamsCase_ == 22; + } + /** + * .MathQuaternion rotationSpeed = 22; + * @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(); + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + @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; + /** + * .MathQuaternion axisSpeed = 23; + * @return Whether the axisSpeed field is set. + */ + @java.lang.Override + public boolean hasAxisSpeed() { + return rotateParamsCase_ == 23; + } + /** + * .MathQuaternion axisSpeed = 23; + * @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(); + } + /** + * .MathQuaternion axisSpeed = 23; + */ + @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 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_; + /** + * .Vector position = 1; + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return positionBuilder_ != null || position_ != null; + } + /** + * .Vector position = 1; + * @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(); + } + } + /** + * .Vector position = 1; + */ + 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; + } + /** + * .Vector position = 1; + */ + 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; + } + /** + * .Vector position = 1; + */ + 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; + } + /** + * .Vector position = 1; + */ + public Builder clearPosition() { + if (positionBuilder_ == null) { + position_ = null; + onChanged(); + } else { + position_ = null; + positionBuilder_ = null; + } + + return this; + } + /** + * .Vector position = 1; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPositionBuilder() { + + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + * .Vector position = 1; + */ + 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_; + } + } + /** + * .Vector position = 1; + */ + 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_; + } + + /** + * float velocity = 11; + * @return Whether the velocity field is set. + */ + public boolean hasVelocity() { + return moveParamsCase_ == 11; + } + /** + * float velocity = 11; + * @return The velocity. + */ + public float getVelocity() { + if (moveParamsCase_ == 11) { + return (java.lang.Float) moveParams_; + } + return 0F; + } + /** + * float velocity = 11; + * @param value The velocity to set. + * @return This builder for chaining. + */ + public Builder setVelocity(float value) { + moveParamsCase_ = 11; + moveParams_ = value; + onChanged(); + return this; + } + /** + * float velocity = 11; + * @return This builder for chaining. + */ + public Builder clearVelocity() { + if (moveParamsCase_ == 11) { + moveParamsCase_ = 0; + moveParams_ = null; + onChanged(); + } + return this; + } + + /** + * float time = 12; + * @return Whether the time field is set. + */ + public boolean hasTime() { + return moveParamsCase_ == 12; + } + /** + * float time = 12; + * @return The time. + */ + public float getTime() { + if (moveParamsCase_ == 12) { + return (java.lang.Float) moveParams_; + } + return 0F; + } + /** + * float time = 12; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(float value) { + moveParamsCase_ = 12; + moveParams_ = value; + onChanged(); + return this; + } + /** + * float time = 12; + * @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_; + /** + * .Vector rotation = 21; + * @return Whether the rotation field is set. + */ + @java.lang.Override + public boolean hasRotation() { + return rotateParamsCase_ == 21; + } + /** + * .Vector rotation = 21; + * @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(); + } + } + /** + * .Vector rotation = 21; + */ + 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; + } + /** + * .Vector rotation = 21; + */ + 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; + } + /** + * .Vector rotation = 21; + */ + 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; + } + /** + * .Vector rotation = 21; + */ + 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; + } + /** + * .Vector rotation = 21; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotationBuilder() { + return getRotationFieldBuilder().getBuilder(); + } + /** + * .Vector rotation = 21; + */ + @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(); + } + } + /** + * .Vector rotation = 21; + */ + 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_; + /** + * .MathQuaternion rotationSpeed = 22; + * @return Whether the rotationSpeed field is set. + */ + @java.lang.Override + public boolean hasRotationSpeed() { + return rotateParamsCase_ == 22; + } + /** + * .MathQuaternion rotationSpeed = 22; + * @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(); + } + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + 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; + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + 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; + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + 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; + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + 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; + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getRotationSpeedBuilder() { + return getRotationSpeedFieldBuilder().getBuilder(); + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + @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(); + } + } + /** + * .MathQuaternion rotationSpeed = 22; + */ + 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_; + /** + * .MathQuaternion axisSpeed = 23; + * @return Whether the axisSpeed field is set. + */ + @java.lang.Override + public boolean hasAxisSpeed() { + return rotateParamsCase_ == 23; + } + /** + * .MathQuaternion axisSpeed = 23; + * @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(); + } + } + /** + * .MathQuaternion axisSpeed = 23; + */ + 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; + } + /** + * .MathQuaternion axisSpeed = 23; + */ + 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; + } + /** + * .MathQuaternion axisSpeed = 23; + */ + 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; + } + /** + * .MathQuaternion axisSpeed = 23; + */ + 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; + } + /** + * .MathQuaternion axisSpeed = 23; + */ + public emu.grasscutter.net.proto.MathQuaternionOuterClass.MathQuaternion.Builder getAxisSpeedBuilder() { + return getAxisSpeedFieldBuilder().getBuilder(); + } + /** + * .MathQuaternion axisSpeed = 23; + */ + @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(); + } + } + /** + * .MathQuaternion axisSpeed = 23; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..09be2bb3d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneAreaWeatherNotifyOuterClass.java @@ -0,0 +1,1084 @@ +// 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 { + + /** + * uint32 weatherGadgetId = 1; + * @return The weatherGadgetId. + */ + int getWeatherGadgetId(); + + /** + * map<uint32, string> weatherValueMap = 2; + */ + int getWeatherValueMapCount(); + /** + * map<uint32, string> weatherValueMap = 2; + */ + boolean containsWeatherValueMap( + int key); + /** + * Use {@link #getWeatherValueMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getWeatherValueMap(); + /** + * map<uint32, string> weatherValueMap = 2; + */ + java.util.Map + getWeatherValueMapMap(); + /** + * map<uint32, string> weatherValueMap = 2; + */ + + java.lang.String getWeatherValueMapOrDefault( + int key, + java.lang.String defaultValue); + /** + * map<uint32, string> weatherValueMap = 2; + */ + + java.lang.String getWeatherValueMapOrThrow( + int key); + + /** + * uint32 weatherAreaId = 3; + * @return The weatherAreaId. + */ + int getWeatherAreaId(); + + /** + * uint32 climateType = 4; + * @return The climateType. + */ + int getClimateType(); + + /** + * float transDuration = 5; + * @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 + 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_; + /** + * uint32 weatherGadgetId = 1; + * @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 + .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 + internalGetWeatherValueMap() { + if (weatherValueMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WeatherValueMapDefaultEntryHolder.defaultEntry); + } + return weatherValueMap_; + } + + public int getWeatherValueMapCount() { + return internalGetWeatherValueMap().getMap().size(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + + @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 getWeatherValueMap() { + return getWeatherValueMapMap(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.util.Map getWeatherValueMapMap() { + return internalGetWeatherValueMap().getMap(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.lang.String getWeatherValueMapOrDefault( + int key, + java.lang.String defaultValue) { + + java.util.Map map = + internalGetWeatherValueMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.lang.String getWeatherValueMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 weatherAreaId = 3; + * @return The weatherAreaId. + */ + @java.lang.Override + public int getWeatherAreaId() { + return weatherAreaId_; + } + + public static final int CLIMATETYPE_FIELD_NUMBER = 4; + private int climateType_; + /** + * uint32 climateType = 4; + * @return The climateType. + */ + @java.lang.Override + public int getClimateType() { + return climateType_; + } + + public static final int TRANSDURATION_FIELD_NUMBER = 5; + private float transDuration_; + /** + * float transDuration = 5; + * @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 entry + : internalGetWeatherValueMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 weatherGadgetId = 1; + * @return The weatherGadgetId. + */ + @java.lang.Override + public int getWeatherGadgetId() { + return weatherGadgetId_; + } + /** + * uint32 weatherGadgetId = 1; + * @param value The weatherGadgetId to set. + * @return This builder for chaining. + */ + public Builder setWeatherGadgetId(int value) { + + weatherGadgetId_ = value; + onChanged(); + return this; + } + /** + * uint32 weatherGadgetId = 1; + * @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 + internalGetWeatherValueMap() { + if (weatherValueMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WeatherValueMapDefaultEntryHolder.defaultEntry); + } + return weatherValueMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + + @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 getWeatherValueMap() { + return getWeatherValueMapMap(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.util.Map getWeatherValueMapMap() { + return internalGetWeatherValueMap().getMap(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.lang.String getWeatherValueMapOrDefault( + int key, + java.lang.String defaultValue) { + + java.util.Map map = + internalGetWeatherValueMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + @java.lang.Override + + public java.lang.String getWeatherValueMapOrThrow( + int key) { + + java.util.Map map = + internalGetWeatherValueMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearWeatherValueMap() { + internalGetMutableWeatherValueMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + + public Builder removeWeatherValueMap( + int key) { + + internalGetMutableWeatherValueMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableWeatherValueMap() { + return internalGetMutableWeatherValueMap().getMutableMap(); + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + public Builder putWeatherValueMap( + int key, + java.lang.String value) { + + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableWeatherValueMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, string> weatherValueMap = 2; + */ + + public Builder putAllWeatherValueMap( + java.util.Map values) { + internalGetMutableWeatherValueMap().getMutableMap() + .putAll(values); + return this; + } + + private int weatherAreaId_ ; + /** + * uint32 weatherAreaId = 3; + * @return The weatherAreaId. + */ + @java.lang.Override + public int getWeatherAreaId() { + return weatherAreaId_; + } + /** + * uint32 weatherAreaId = 3; + * @param value The weatherAreaId to set. + * @return This builder for chaining. + */ + public Builder setWeatherAreaId(int value) { + + weatherAreaId_ = value; + onChanged(); + return this; + } + /** + * uint32 weatherAreaId = 3; + * @return This builder for chaining. + */ + public Builder clearWeatherAreaId() { + + weatherAreaId_ = 0; + onChanged(); + return this; + } + + private int climateType_ ; + /** + * uint32 climateType = 4; + * @return The climateType. + */ + @java.lang.Override + public int getClimateType() { + return climateType_; + } + /** + * uint32 climateType = 4; + * @param value The climateType to set. + * @return This builder for chaining. + */ + public Builder setClimateType(int value) { + + climateType_ = value; + onChanged(); + return this; + } + /** + * uint32 climateType = 4; + * @return This builder for chaining. + */ + public Builder clearClimateType() { + + climateType_ = 0; + onChanged(); + return this; + } + + private float transDuration_ ; + /** + * float transDuration = 5; + * @return The transDuration. + */ + @java.lang.Override + public float getTransDuration() { + return transDuration_; + } + /** + * float transDuration = 5; + * @param value The transDuration to set. + * @return This builder for chaining. + */ + public Builder setTransDuration(float value) { + + transDuration_ = value; + onChanged(); + return this; + } + /** + * float transDuration = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7315f97f9 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneAvatarInfoOuterClass.java @@ -0,0 +1,3472 @@ +// 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 { + + /** + * uint32 playerId = 1; + * @return The playerId. + */ + int getPlayerId(); + + /** + * uint32 avatarId = 2; + * @return The avatarId. + */ + int getAvatarId(); + + /** + * uint64 guid = 3; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 peerId = 4; + * @return The peerId. + */ + int getPeerId(); + + /** + * repeated uint32 equipIdList = 5; + * @return A list containing the equipIdList. + */ + java.util.List getEquipIdListList(); + /** + * repeated uint32 equipIdList = 5; + * @return The count of equipIdList. + */ + int getEquipIdListCount(); + /** + * repeated uint32 equipIdList = 5; + * @param index The index of the element to return. + * @return The equipIdList at the given index. + */ + int getEquipIdList(int index); + + /** + * uint32 skillDepotId = 6; + * @return The skillDepotId. + */ + int getSkillDepotId(); + + /** + * repeated uint32 talentIdList = 7; + * @return A list containing the talentIdList. + */ + java.util.List getTalentIdListList(); + /** + * repeated uint32 talentIdList = 7; + * @return The count of talentIdList. + */ + int getTalentIdListCount(); + /** + * repeated uint32 talentIdList = 7; + * @param index The index of the element to return. + * @return The talentIdList at the given index. + */ + int getTalentIdList(int index); + + /** + * .SceneWeaponInfo weapon = 8; + * @return Whether the weapon field is set. + */ + boolean hasWeapon(); + /** + * .SceneWeaponInfo weapon = 8; + * @return The weapon. + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeapon(); + /** + * .SceneWeaponInfo weapon = 8; + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponOrBuilder(); + + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + java.util.List + getReliquaryListList(); + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index); + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + int getReliquaryListCount(); + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + java.util.List + getReliquaryListOrBuilderList(); + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryListOrBuilder( + int index); + + /** + * uint32 coreProudSkillLevel = 11; + * @return The coreProudSkillLevel. + */ + int getCoreProudSkillLevel(); + + /** + * repeated uint32 inherentProudSkillList = 12; + * @return A list containing the inherentProudSkillList. + */ + java.util.List getInherentProudSkillListList(); + /** + * repeated uint32 inherentProudSkillList = 12; + * @return The count of inherentProudSkillList. + */ + int getInherentProudSkillListCount(); + /** + * repeated uint32 inherentProudSkillList = 12; + * @param index The index of the element to return. + * @return The inherentProudSkillList at the given index. + */ + int getInherentProudSkillList(int index); + + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + int getSkillLevelMapCount(); + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + boolean containsSkillLevelMap( + int key); + /** + * Use {@link #getSkillLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillLevelMap(); + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + java.util.Map + getSkillLevelMapMap(); + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + int getSkillLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + int getSkillLevelMapOrThrow( + int key); + + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + int getProudSkillExtraLevelMapCount(); + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + boolean containsProudSkillExtraLevelMap( + int key); + /** + * Use {@link #getProudSkillExtraLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getProudSkillExtraLevelMap(); + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + java.util.Map + getProudSkillExtraLevelMapMap(); + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + int getProudSkillExtraLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + int getProudSkillExtraLevelMapOrThrow( + int key); + + /** + * repeated .ServerBuff serverBuffList = 15; + */ + java.util.List + getServerBuffListList(); + /** + * repeated .ServerBuff serverBuffList = 15; + */ + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); + /** + * repeated .ServerBuff serverBuffList = 15; + */ + int getServerBuffListCount(); + /** + * repeated .ServerBuff serverBuffList = 15; + */ + java.util.List + getServerBuffListOrBuilderList(); + /** + * repeated .ServerBuff serverBuffList = 15; + */ + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( + int index); + + /** + * repeated uint32 teamResonanceList = 16; + * @return A list containing the teamResonanceList. + */ + java.util.List getTeamResonanceListList(); + /** + * repeated uint32 teamResonanceList = 16; + * @return The count of teamResonanceList. + */ + int getTeamResonanceListCount(); + /** + * repeated uint32 teamResonanceList = 16; + * @param index The index of the element to return. + * @return The teamResonanceList at the given index. + */ + int getTeamResonanceList(int index); + + /** + * uint32 wearingFlycloakId = 17; + * @return The wearingFlycloakId. + */ + int getWearingFlycloakId(); + + /** + * uint32 bornTime = 18; + * @return The bornTime. + */ + int getBornTime(); + + /** + * uint32 costumeId = 19; + * @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(); + 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 + 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 + 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(); + 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_; + /** + * uint32 playerId = 1; + * @return The playerId. + */ + @java.lang.Override + public int getPlayerId() { + return playerId_; + } + + public static final int AVATARID_FIELD_NUMBER = 2; + private int avatarId_; + /** + * uint32 avatarId = 2; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + + public static final int GUID_FIELD_NUMBER = 3; + private long guid_; + /** + * uint64 guid = 3; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int PEERID_FIELD_NUMBER = 4; + private int peerId_; + /** + * uint32 peerId = 4; + * @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_; + /** + * repeated uint32 equipIdList = 5; + * @return A list containing the equipIdList. + */ + @java.lang.Override + public java.util.List + getEquipIdListList() { + return equipIdList_; + } + /** + * repeated uint32 equipIdList = 5; + * @return The count of equipIdList. + */ + public int getEquipIdListCount() { + return equipIdList_.size(); + } + /** + * repeated uint32 equipIdList = 5; + * @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_; + /** + * uint32 skillDepotId = 6; + * @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_; + /** + * repeated uint32 talentIdList = 7; + * @return A list containing the talentIdList. + */ + @java.lang.Override + public java.util.List + getTalentIdListList() { + return talentIdList_; + } + /** + * repeated uint32 talentIdList = 7; + * @return The count of talentIdList. + */ + public int getTalentIdListCount() { + return talentIdList_.size(); + } + /** + * repeated uint32 talentIdList = 7; + * @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_; + /** + * .SceneWeaponInfo weapon = 8; + * @return Whether the weapon field is set. + */ + @java.lang.Override + public boolean hasWeapon() { + return weapon_ != null; + } + /** + * .SceneWeaponInfo weapon = 8; + * @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_; + } + /** + * .SceneWeaponInfo weapon = 8; + */ + @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 reliquaryList_; + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + @java.lang.Override + public java.util.List getReliquaryListList() { + return reliquaryList_; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + @java.lang.Override + public java.util.List + getReliquaryListOrBuilderList() { + return reliquaryList_; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + @java.lang.Override + public int getReliquaryListCount() { + return reliquaryList_.size(); + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index) { + return reliquaryList_.get(index); + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + @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_; + /** + * uint32 coreProudSkillLevel = 11; + * @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_; + /** + * repeated uint32 inherentProudSkillList = 12; + * @return A list containing the inherentProudSkillList. + */ + @java.lang.Override + public java.util.List + getInherentProudSkillListList() { + return inherentProudSkillList_; + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @return The count of inherentProudSkillList. + */ + public int getInherentProudSkillListCount() { + return inherentProudSkillList_.size(); + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @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 + .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 + internalGetSkillLevelMap() { + if (skillLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillLevelMapDefaultEntryHolder.defaultEntry); + } + return skillLevelMap_; + } + + public int getSkillLevelMapCount() { + return internalGetSkillLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + @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 getSkillLevelMap() { + return getSkillLevelMapMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public java.util.Map getSkillLevelMapMap() { + return internalGetSkillLevelMap().getMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public int getSkillLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public int getSkillLevelMapOrThrow( + int key) { + + java.util.Map 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 + .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 + internalGetProudSkillExtraLevelMap() { + if (proudSkillExtraLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); + } + return proudSkillExtraLevelMap_; + } + + public int getProudSkillExtraLevelMapCount() { + return internalGetProudSkillExtraLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + @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 getProudSkillExtraLevelMap() { + return getProudSkillExtraLevelMapMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public java.util.Map getProudSkillExtraLevelMapMap() { + return internalGetProudSkillExtraLevelMap().getMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public int getProudSkillExtraLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetProudSkillExtraLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public int getProudSkillExtraLevelMapOrThrow( + int key) { + + java.util.Map 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 serverBuffList_; + /** + * repeated .ServerBuff serverBuffList = 15; + */ + @java.lang.Override + public java.util.List getServerBuffListList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + @java.lang.Override + public java.util.List + getServerBuffListOrBuilderList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + @java.lang.Override + public int getServerBuffListCount() { + return serverBuffList_.size(); + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + return serverBuffList_.get(index); + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + @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_; + /** + * repeated uint32 teamResonanceList = 16; + * @return A list containing the teamResonanceList. + */ + @java.lang.Override + public java.util.List + getTeamResonanceListList() { + return teamResonanceList_; + } + /** + * repeated uint32 teamResonanceList = 16; + * @return The count of teamResonanceList. + */ + public int getTeamResonanceListCount() { + return teamResonanceList_.size(); + } + /** + * repeated uint32 teamResonanceList = 16; + * @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_; + /** + * uint32 wearingFlycloakId = 17; + * @return The wearingFlycloakId. + */ + @java.lang.Override + public int getWearingFlycloakId() { + return wearingFlycloakId_; + } + + public static final int BORNTIME_FIELD_NUMBER = 18; + private int bornTime_; + /** + * uint32 bornTime = 18; + * @return The bornTime. + */ + @java.lang.Override + public int getBornTime() { + return bornTime_; + } + + public static final int COSTUMEID_FIELD_NUMBER = 19; + private int costumeId_; + /** + * uint32 costumeId = 19; + * @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 entry + : internalGetSkillLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + skillLevelMap__ = SkillLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, skillLevelMap__); + } + for (java.util.Map.Entry entry + : internalGetProudSkillExtraLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 playerId = 1; + * @return The playerId. + */ + @java.lang.Override + public int getPlayerId() { + return playerId_; + } + /** + * uint32 playerId = 1; + * @param value The playerId to set. + * @return This builder for chaining. + */ + public Builder setPlayerId(int value) { + + playerId_ = value; + onChanged(); + return this; + } + /** + * uint32 playerId = 1; + * @return This builder for chaining. + */ + public Builder clearPlayerId() { + + playerId_ = 0; + onChanged(); + return this; + } + + private int avatarId_ ; + /** + * uint32 avatarId = 2; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 2; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarId() { + + avatarId_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 3; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 3; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 3; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int peerId_ ; + /** + * uint32 peerId = 4; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + /** + * uint32 peerId = 4; + * @param value The peerId to set. + * @return This builder for chaining. + */ + public Builder setPeerId(int value) { + + peerId_ = value; + onChanged(); + return this; + } + /** + * uint32 peerId = 4; + * @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; + } + } + /** + * repeated uint32 equipIdList = 5; + * @return A list containing the equipIdList. + */ + public java.util.List + getEquipIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(equipIdList_) : equipIdList_; + } + /** + * repeated uint32 equipIdList = 5; + * @return The count of equipIdList. + */ + public int getEquipIdListCount() { + return equipIdList_.size(); + } + /** + * repeated uint32 equipIdList = 5; + * @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); + } + /** + * repeated uint32 equipIdList = 5; + * @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; + } + /** + * repeated uint32 equipIdList = 5; + * @param value The equipIdList to add. + * @return This builder for chaining. + */ + public Builder addEquipIdList(int value) { + ensureEquipIdListIsMutable(); + equipIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 equipIdList = 5; + * @param values The equipIdList to add. + * @return This builder for chaining. + */ + public Builder addAllEquipIdList( + java.lang.Iterable values) { + ensureEquipIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, equipIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 equipIdList = 5; + * @return This builder for chaining. + */ + public Builder clearEquipIdList() { + equipIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int skillDepotId_ ; + /** + * uint32 skillDepotId = 6; + * @return The skillDepotId. + */ + @java.lang.Override + public int getSkillDepotId() { + return skillDepotId_; + } + /** + * uint32 skillDepotId = 6; + * @param value The skillDepotId to set. + * @return This builder for chaining. + */ + public Builder setSkillDepotId(int value) { + + skillDepotId_ = value; + onChanged(); + return this; + } + /** + * uint32 skillDepotId = 6; + * @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; + } + } + /** + * repeated uint32 talentIdList = 7; + * @return A list containing the talentIdList. + */ + public java.util.List + getTalentIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(talentIdList_) : talentIdList_; + } + /** + * repeated uint32 talentIdList = 7; + * @return The count of talentIdList. + */ + public int getTalentIdListCount() { + return talentIdList_.size(); + } + /** + * repeated uint32 talentIdList = 7; + * @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); + } + /** + * repeated uint32 talentIdList = 7; + * @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; + } + /** + * repeated uint32 talentIdList = 7; + * @param value The talentIdList to add. + * @return This builder for chaining. + */ + public Builder addTalentIdList(int value) { + ensureTalentIdListIsMutable(); + talentIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 talentIdList = 7; + * @param values The talentIdList to add. + * @return This builder for chaining. + */ + public Builder addAllTalentIdList( + java.lang.Iterable values) { + ensureTalentIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, talentIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 talentIdList = 7; + * @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_; + /** + * .SceneWeaponInfo weapon = 8; + * @return Whether the weapon field is set. + */ + public boolean hasWeapon() { + return weaponBuilder_ != null || weapon_ != null; + } + /** + * .SceneWeaponInfo weapon = 8; + * @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(); + } + } + /** + * .SceneWeaponInfo weapon = 8; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 8; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 8; + */ + 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; + } + /** + * .SceneWeaponInfo weapon = 8; + */ + public Builder clearWeapon() { + if (weaponBuilder_ == null) { + weapon_ = null; + onChanged(); + } else { + weapon_ = null; + weaponBuilder_ = null; + } + + return this; + } + /** + * .SceneWeaponInfo weapon = 8; + */ + public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponBuilder() { + + onChanged(); + return getWeaponFieldBuilder().getBuilder(); + } + /** + * .SceneWeaponInfo weapon = 8; + */ + 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_; + } + } + /** + * .SceneWeaponInfo weapon = 8; + */ + 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 reliquaryList_ = + java.util.Collections.emptyList(); + private void ensureReliquaryListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + reliquaryList_ = new java.util.ArrayList(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_; + + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public java.util.List getReliquaryListList() { + if (reliquaryListBuilder_ == null) { + return java.util.Collections.unmodifiableList(reliquaryList_); + } else { + return reliquaryListBuilder_.getMessageList(); + } + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public int getReliquaryListCount() { + if (reliquaryListBuilder_ == null) { + return reliquaryList_.size(); + } else { + return reliquaryListBuilder_.getCount(); + } + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo getReliquaryList(int index) { + if (reliquaryListBuilder_ == null) { + return reliquaryList_.get(index); + } else { + return reliquaryListBuilder_.getMessage(index); + } + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + 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; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public Builder addAllReliquaryList( + java.lang.Iterable values) { + if (reliquaryListBuilder_ == null) { + ensureReliquaryListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reliquaryList_); + onChanged(); + } else { + reliquaryListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public Builder clearReliquaryList() { + if (reliquaryListBuilder_ == null) { + reliquaryList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + reliquaryListBuilder_.clear(); + } + return this; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public Builder removeReliquaryList(int index) { + if (reliquaryListBuilder_ == null) { + ensureReliquaryListIsMutable(); + reliquaryList_.remove(index); + onChanged(); + } else { + reliquaryListBuilder_.remove(index); + } + return this; + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder getReliquaryListBuilder( + int index) { + return getReliquaryListFieldBuilder().getBuilder(index); + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfoOrBuilder getReliquaryListOrBuilder( + int index) { + if (reliquaryListBuilder_ == null) { + return reliquaryList_.get(index); } else { + return reliquaryListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public java.util.List + getReliquaryListOrBuilderList() { + if (reliquaryListBuilder_ != null) { + return reliquaryListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reliquaryList_); + } + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder addReliquaryListBuilder() { + return getReliquaryListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance()); + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.Builder addReliquaryListBuilder( + int index) { + return getReliquaryListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.SceneReliquaryInfoOuterClass.SceneReliquaryInfo.getDefaultInstance()); + } + /** + * repeated .SceneReliquaryInfo reliquaryList = 9; + */ + public java.util.List + 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_ ; + /** + * uint32 coreProudSkillLevel = 11; + * @return The coreProudSkillLevel. + */ + @java.lang.Override + public int getCoreProudSkillLevel() { + return coreProudSkillLevel_; + } + /** + * uint32 coreProudSkillLevel = 11; + * @param value The coreProudSkillLevel to set. + * @return This builder for chaining. + */ + public Builder setCoreProudSkillLevel(int value) { + + coreProudSkillLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 coreProudSkillLevel = 11; + * @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; + } + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @return A list containing the inherentProudSkillList. + */ + public java.util.List + getInherentProudSkillListList() { + return ((bitField0_ & 0x00000008) != 0) ? + java.util.Collections.unmodifiableList(inherentProudSkillList_) : inherentProudSkillList_; + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @return The count of inherentProudSkillList. + */ + public int getInherentProudSkillListCount() { + return inherentProudSkillList_.size(); + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @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); + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @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; + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @param value The inherentProudSkillList to add. + * @return This builder for chaining. + */ + public Builder addInherentProudSkillList(int value) { + ensureInherentProudSkillListIsMutable(); + inherentProudSkillList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @param values The inherentProudSkillList to add. + * @return This builder for chaining. + */ + public Builder addAllInherentProudSkillList( + java.lang.Iterable values) { + ensureInherentProudSkillListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inherentProudSkillList_); + onChanged(); + return this; + } + /** + * repeated uint32 inherentProudSkillList = 12; + * @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 + internalGetSkillLevelMap() { + if (skillLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillLevelMapDefaultEntryHolder.defaultEntry); + } + return skillLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + @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 getSkillLevelMap() { + return getSkillLevelMapMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public java.util.Map getSkillLevelMapMap() { + return internalGetSkillLevelMap().getMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public int getSkillLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + @java.lang.Override + + public int getSkillLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillLevelMap() { + internalGetMutableSkillLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + public Builder removeSkillLevelMap( + int key) { + + internalGetMutableSkillLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillLevelMap() { + return internalGetMutableSkillLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + public Builder putSkillLevelMap( + int key, + int value) { + + + internalGetMutableSkillLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillLevelMap = 13; + */ + + public Builder putAllSkillLevelMap( + java.util.Map values) { + internalGetMutableSkillLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> proudSkillExtraLevelMap_; + private com.google.protobuf.MapField + internalGetProudSkillExtraLevelMap() { + if (proudSkillExtraLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ProudSkillExtraLevelMapDefaultEntryHolder.defaultEntry); + } + return proudSkillExtraLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + @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 getProudSkillExtraLevelMap() { + return getProudSkillExtraLevelMapMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public java.util.Map getProudSkillExtraLevelMapMap() { + return internalGetProudSkillExtraLevelMap().getMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public int getProudSkillExtraLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetProudSkillExtraLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + @java.lang.Override + + public int getProudSkillExtraLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetProudSkillExtraLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProudSkillExtraLevelMap() { + internalGetMutableProudSkillExtraLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + public Builder removeProudSkillExtraLevelMap( + int key) { + + internalGetMutableProudSkillExtraLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableProudSkillExtraLevelMap() { + return internalGetMutableProudSkillExtraLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + public Builder putProudSkillExtraLevelMap( + int key, + int value) { + + + internalGetMutableProudSkillExtraLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> proudSkillExtraLevelMap = 14; + */ + + public Builder putAllProudSkillExtraLevelMap( + java.util.Map values) { + internalGetMutableProudSkillExtraLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List serverBuffList_ = + java.util.Collections.emptyList(); + private void ensureServerBuffListIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + serverBuffList_ = new java.util.ArrayList(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_; + + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public java.util.List getServerBuffListList() { + if (serverBuffListBuilder_ == null) { + return java.util.Collections.unmodifiableList(serverBuffList_); + } else { + return serverBuffListBuilder_.getMessageList(); + } + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public int getServerBuffListCount() { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.size(); + } else { + return serverBuffListBuilder_.getCount(); + } + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); + } else { + return serverBuffListBuilder_.getMessage(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public Builder addAllServerBuffList( + java.lang.Iterable values) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverBuffList_); + onChanged(); + } else { + serverBuffListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public Builder clearServerBuffList() { + if (serverBuffListBuilder_ == null) { + serverBuffList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + serverBuffListBuilder_.clear(); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public Builder removeServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + serverBuffList_.remove(index); + onChanged(); + } else { + serverBuffListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().getBuilder(index); + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( + int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); } else { + return serverBuffListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public java.util.List + getServerBuffListOrBuilderList() { + if (serverBuffListBuilder_ != null) { + return serverBuffListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serverBuffList_); + } + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { + return getServerBuffListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 15; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 teamResonanceList = 16; + * @return A list containing the teamResonanceList. + */ + public java.util.List + getTeamResonanceListList() { + return ((bitField0_ & 0x00000080) != 0) ? + java.util.Collections.unmodifiableList(teamResonanceList_) : teamResonanceList_; + } + /** + * repeated uint32 teamResonanceList = 16; + * @return The count of teamResonanceList. + */ + public int getTeamResonanceListCount() { + return teamResonanceList_.size(); + } + /** + * repeated uint32 teamResonanceList = 16; + * @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); + } + /** + * repeated uint32 teamResonanceList = 16; + * @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; + } + /** + * repeated uint32 teamResonanceList = 16; + * @param value The teamResonanceList to add. + * @return This builder for chaining. + */ + public Builder addTeamResonanceList(int value) { + ensureTeamResonanceListIsMutable(); + teamResonanceList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 teamResonanceList = 16; + * @param values The teamResonanceList to add. + * @return This builder for chaining. + */ + public Builder addAllTeamResonanceList( + java.lang.Iterable values) { + ensureTeamResonanceListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, teamResonanceList_); + onChanged(); + return this; + } + /** + * repeated uint32 teamResonanceList = 16; + * @return This builder for chaining. + */ + public Builder clearTeamResonanceList() { + teamResonanceList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + private int wearingFlycloakId_ ; + /** + * uint32 wearingFlycloakId = 17; + * @return The wearingFlycloakId. + */ + @java.lang.Override + public int getWearingFlycloakId() { + return wearingFlycloakId_; + } + /** + * uint32 wearingFlycloakId = 17; + * @param value The wearingFlycloakId to set. + * @return This builder for chaining. + */ + public Builder setWearingFlycloakId(int value) { + + wearingFlycloakId_ = value; + onChanged(); + return this; + } + /** + * uint32 wearingFlycloakId = 17; + * @return This builder for chaining. + */ + public Builder clearWearingFlycloakId() { + + wearingFlycloakId_ = 0; + onChanged(); + return this; + } + + private int bornTime_ ; + /** + * uint32 bornTime = 18; + * @return The bornTime. + */ + @java.lang.Override + public int getBornTime() { + return bornTime_; + } + /** + * uint32 bornTime = 18; + * @param value The bornTime to set. + * @return This builder for chaining. + */ + public Builder setBornTime(int value) { + + bornTime_ = value; + onChanged(); + return this; + } + /** + * uint32 bornTime = 18; + * @return This builder for chaining. + */ + public Builder clearBornTime() { + + bornTime_ = 0; + onChanged(); + return this; + } + + private int costumeId_ ; + /** + * uint32 costumeId = 19; + * @return The costumeId. + */ + @java.lang.Override + public int getCostumeId() { + return costumeId_; + } + /** + * uint32 costumeId = 19; + * @param value The costumeId to set. + * @return This builder for chaining. + */ + public Builder setCostumeId(int value) { + + costumeId_ = value; + onChanged(); + return this; + } + /** + * uint32 costumeId = 19; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d0541fe8c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneEntityAiInfoOuterClass.java @@ -0,0 +1,1959 @@ +// 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 { + + /** + * bool isAiOpen = 1; + * @return The isAiOpen. + */ + boolean getIsAiOpen(); + + /** + * .Vector bornPos = 2; + * @return Whether the bornPos field is set. + */ + boolean hasBornPos(); + /** + * .Vector bornPos = 2; + * @return The bornPos. + */ + emu.grasscutter.net.proto.VectorOuterClass.Vector getBornPos(); + /** + * .Vector bornPos = 2; + */ + emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getBornPosOrBuilder(); + + /** + * map<uint32, uint32> skillCdMap = 3; + */ + int getSkillCdMapCount(); + /** + * map<uint32, uint32> skillCdMap = 3; + */ + boolean containsSkillCdMap( + int key); + /** + * Use {@link #getSkillCdMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillCdMap(); + /** + * map<uint32, uint32> skillCdMap = 3; + */ + java.util.Map + getSkillCdMapMap(); + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + int getSkillCdMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + int getSkillCdMapOrThrow( + int key); + + /** + * .ServantInfo servantInfo = 4; + * @return Whether the servantInfo field is set. + */ + boolean hasServantInfo(); + /** + * .ServantInfo servantInfo = 4; + * @return The servantInfo. + */ + emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo getServantInfo(); + /** + * .ServantInfo servantInfo = 4; + */ + emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfoOrBuilder getServantInfoOrBuilder(); + + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + int getAiThreatMapCount(); + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + boolean containsAiThreatMap( + int key); + /** + * Use {@link #getAiThreatMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAiThreatMap(); + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + java.util.Map + getAiThreatMapMap(); + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + int getAiThreatMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + int getAiThreatMapOrThrow( + int key); + + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + int getSkillGroupCdMapCount(); + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + boolean containsSkillGroupCdMap( + int key); + /** + * Use {@link #getSkillGroupCdMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkillGroupCdMap(); + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + java.util.Map + getSkillGroupCdMapMap(); + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + int getSkillGroupCdMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + int getSkillGroupCdMapOrThrow( + int key); + + /** + * uint32 curTactic = 7; + * @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 + 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 + 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 + 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_; + /** + * bool isAiOpen = 1; + * @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_; + /** + * .Vector bornPos = 2; + * @return Whether the bornPos field is set. + */ + @java.lang.Override + public boolean hasBornPos() { + return bornPos_ != null; + } + /** + * .Vector bornPos = 2; + * @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_; + } + /** + * .Vector bornPos = 2; + */ + @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 + .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 + internalGetSkillCdMap() { + if (skillCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillCdMapDefaultEntryHolder.defaultEntry); + } + return skillCdMap_; + } + + public int getSkillCdMapCount() { + return internalGetSkillCdMap().getMap().size(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + @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 getSkillCdMap() { + return getSkillCdMapMap(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public java.util.Map getSkillCdMapMap() { + return internalGetSkillCdMap().getMap(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public int getSkillCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public int getSkillCdMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * .ServantInfo servantInfo = 4; + * @return Whether the servantInfo field is set. + */ + @java.lang.Override + public boolean hasServantInfo() { + return servantInfo_ != null; + } + /** + * .ServantInfo servantInfo = 4; + * @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_; + } + /** + * .ServantInfo servantInfo = 4; + */ + @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 + .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 + internalGetAiThreatMap() { + if (aiThreatMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiThreatMapDefaultEntryHolder.defaultEntry); + } + return aiThreatMap_; + } + + public int getAiThreatMapCount() { + return internalGetAiThreatMap().getMap().size(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + @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 getAiThreatMap() { + return getAiThreatMapMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public java.util.Map getAiThreatMapMap() { + return internalGetAiThreatMap().getMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public int getAiThreatMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public int getAiThreatMapOrThrow( + int key) { + + java.util.Map 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 + .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 + internalGetSkillGroupCdMap() { + if (skillGroupCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillGroupCdMapDefaultEntryHolder.defaultEntry); + } + return skillGroupCdMap_; + } + + public int getSkillGroupCdMapCount() { + return internalGetSkillGroupCdMap().getMap().size(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + @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 getSkillGroupCdMap() { + return getSkillGroupCdMapMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public java.util.Map getSkillGroupCdMapMap() { + return internalGetSkillGroupCdMap().getMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 curTactic = 7; + * @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 entry + : internalGetSkillCdMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetAiThreatMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + aiThreatMap__ = AiThreatMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, aiThreatMap__); + } + for (java.util.Map.Entry entry + : internalGetSkillGroupCdMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * bool isAiOpen = 1; + * @return The isAiOpen. + */ + @java.lang.Override + public boolean getIsAiOpen() { + return isAiOpen_; + } + /** + * bool isAiOpen = 1; + * @param value The isAiOpen to set. + * @return This builder for chaining. + */ + public Builder setIsAiOpen(boolean value) { + + isAiOpen_ = value; + onChanged(); + return this; + } + /** + * bool isAiOpen = 1; + * @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_; + /** + * .Vector bornPos = 2; + * @return Whether the bornPos field is set. + */ + public boolean hasBornPos() { + return bornPosBuilder_ != null || bornPos_ != null; + } + /** + * .Vector bornPos = 2; + * @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(); + } + } + /** + * .Vector bornPos = 2; + */ + 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; + } + /** + * .Vector bornPos = 2; + */ + 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; + } + /** + * .Vector bornPos = 2; + */ + 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; + } + /** + * .Vector bornPos = 2; + */ + public Builder clearBornPos() { + if (bornPosBuilder_ == null) { + bornPos_ = null; + onChanged(); + } else { + bornPos_ = null; + bornPosBuilder_ = null; + } + + return this; + } + /** + * .Vector bornPos = 2; + */ + public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getBornPosBuilder() { + + onChanged(); + return getBornPosFieldBuilder().getBuilder(); + } + /** + * .Vector bornPos = 2; + */ + 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_; + } + } + /** + * .Vector bornPos = 2; + */ + 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 + internalGetSkillCdMap() { + if (skillCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillCdMapDefaultEntryHolder.defaultEntry); + } + return skillCdMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + @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 getSkillCdMap() { + return getSkillCdMapMap(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public java.util.Map getSkillCdMapMap() { + return internalGetSkillCdMap().getMap(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public int getSkillCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + @java.lang.Override + + public int getSkillCdMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillCdMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillCdMap() { + internalGetMutableSkillCdMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + public Builder removeSkillCdMap( + int key) { + + internalGetMutableSkillCdMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillCdMap() { + return internalGetMutableSkillCdMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + public Builder putSkillCdMap( + int key, + int value) { + + + internalGetMutableSkillCdMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillCdMap = 3; + */ + + public Builder putAllSkillCdMap( + java.util.Map 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_; + /** + * .ServantInfo servantInfo = 4; + * @return Whether the servantInfo field is set. + */ + public boolean hasServantInfo() { + return servantInfoBuilder_ != null || servantInfo_ != null; + } + /** + * .ServantInfo servantInfo = 4; + * @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(); + } + } + /** + * .ServantInfo servantInfo = 4; + */ + 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; + } + /** + * .ServantInfo servantInfo = 4; + */ + 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; + } + /** + * .ServantInfo servantInfo = 4; + */ + 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; + } + /** + * .ServantInfo servantInfo = 4; + */ + public Builder clearServantInfo() { + if (servantInfoBuilder_ == null) { + servantInfo_ = null; + onChanged(); + } else { + servantInfo_ = null; + servantInfoBuilder_ = null; + } + + return this; + } + /** + * .ServantInfo servantInfo = 4; + */ + public emu.grasscutter.net.proto.ServantInfoOuterClass.ServantInfo.Builder getServantInfoBuilder() { + + onChanged(); + return getServantInfoFieldBuilder().getBuilder(); + } + /** + * .ServantInfo servantInfo = 4; + */ + 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_; + } + } + /** + * .ServantInfo servantInfo = 4; + */ + 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 + internalGetAiThreatMap() { + if (aiThreatMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AiThreatMapDefaultEntryHolder.defaultEntry); + } + return aiThreatMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + @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 getAiThreatMap() { + return getAiThreatMapMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public java.util.Map getAiThreatMapMap() { + return internalGetAiThreatMap().getMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public int getAiThreatMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + @java.lang.Override + + public int getAiThreatMapOrThrow( + int key) { + + java.util.Map map = + internalGetAiThreatMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAiThreatMap() { + internalGetMutableAiThreatMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + public Builder removeAiThreatMap( + int key) { + + internalGetMutableAiThreatMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAiThreatMap() { + return internalGetMutableAiThreatMap().getMutableMap(); + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + public Builder putAiThreatMap( + int key, + int value) { + + + internalGetMutableAiThreatMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> aiThreatMap = 5; + */ + + public Builder putAllAiThreatMap( + java.util.Map values) { + internalGetMutableAiThreatMap().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> skillGroupCdMap_; + private com.google.protobuf.MapField + internalGetSkillGroupCdMap() { + if (skillGroupCdMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkillGroupCdMapDefaultEntryHolder.defaultEntry); + } + return skillGroupCdMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + @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 getSkillGroupCdMap() { + return getSkillGroupCdMapMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public java.util.Map getSkillGroupCdMapMap() { + return internalGetSkillGroupCdMap().getMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + @java.lang.Override + + public int getSkillGroupCdMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkillGroupCdMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkillGroupCdMap() { + internalGetMutableSkillGroupCdMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + public Builder removeSkillGroupCdMap( + int key) { + + internalGetMutableSkillGroupCdMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkillGroupCdMap() { + return internalGetMutableSkillGroupCdMap().getMutableMap(); + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + public Builder putSkillGroupCdMap( + int key, + int value) { + + + internalGetMutableSkillGroupCdMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skillGroupCdMap = 6; + */ + + public Builder putAllSkillGroupCdMap( + java.util.Map values) { + internalGetMutableSkillGroupCdMap().getMutableMap() + .putAll(values); + return this; + } + + private int curTactic_ ; + /** + * uint32 curTactic = 7; + * @return The curTactic. + */ + @java.lang.Override + public int getCurTactic() { + return curTactic_; + } + /** + * uint32 curTactic = 7; + * @param value The curTactic to set. + * @return This builder for chaining. + */ + public Builder setCurTactic(int value) { + + curTactic_ = value; + onChanged(); + return this; + } + /** + * uint32 curTactic = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..381545f46 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneEntityAppearNotifyOuterClass.java @@ -0,0 +1,1025 @@ +// 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 { + + /** + * repeated .SceneEntityInfo entityList = 1; + */ + java.util.List + getEntityListList(); + /** + * repeated .SceneEntityInfo entityList = 1; + */ + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index); + /** + * repeated .SceneEntityInfo entityList = 1; + */ + int getEntityListCount(); + /** + * repeated .SceneEntityInfo entityList = 1; + */ + java.util.List + getEntityListOrBuilderList(); + /** + * repeated .SceneEntityInfo entityList = 1; + */ + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityListOrBuilder( + int index); + + /** + * .VisionType appearType = 2; + * @return The enum numeric value on the wire for appearType. + */ + int getAppearTypeValue(); + /** + * .VisionType appearType = 2; + * @return The appearType. + */ + emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType getAppearType(); + + /** + * uint32 param = 3; + * @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(); + 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 entityList_; + /** + * repeated .SceneEntityInfo entityList = 1; + */ + @java.lang.Override + public java.util.List getEntityListList() { + return entityList_; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + @java.lang.Override + public java.util.List + getEntityListOrBuilderList() { + return entityList_; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + @java.lang.Override + public int getEntityListCount() { + return entityList_.size(); + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index) { + return entityList_.get(index); + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + @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_; + /** + * .VisionType appearType = 2; + * @return The enum numeric value on the wire for appearType. + */ + @java.lang.Override public int getAppearTypeValue() { + return appearType_; + } + /** + * .VisionType appearType = 2; + * @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_; + /** + * uint32 param = 3; + * @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 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 entityList_ = + java.util.Collections.emptyList(); + private void ensureEntityListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entityList_ = new java.util.ArrayList(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_; + + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public java.util.List getEntityListList() { + if (entityListBuilder_ == null) { + return java.util.Collections.unmodifiableList(entityList_); + } else { + return entityListBuilder_.getMessageList(); + } + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public int getEntityListCount() { + if (entityListBuilder_ == null) { + return entityList_.size(); + } else { + return entityListBuilder_.getCount(); + } + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getEntityList(int index) { + if (entityListBuilder_ == null) { + return entityList_.get(index); + } else { + return entityListBuilder_.getMessage(index); + } + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + 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; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public Builder addAllEntityList( + java.lang.Iterable values) { + if (entityListBuilder_ == null) { + ensureEntityListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityList_); + onChanged(); + } else { + entityListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public Builder clearEntityList() { + if (entityListBuilder_ == null) { + entityList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entityListBuilder_.clear(); + } + return this; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public Builder removeEntityList(int index) { + if (entityListBuilder_ == null) { + ensureEntityListIsMutable(); + entityList_.remove(index); + onChanged(); + } else { + entityListBuilder_.remove(index); + } + return this; + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getEntityListBuilder( + int index) { + return getEntityListFieldBuilder().getBuilder(index); + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getEntityListOrBuilder( + int index) { + if (entityListBuilder_ == null) { + return entityList_.get(index); } else { + return entityListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public java.util.List + getEntityListOrBuilderList() { + if (entityListBuilder_ != null) { + return entityListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entityList_); + } + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder addEntityListBuilder() { + return getEntityListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance()); + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder addEntityListBuilder( + int index) { + return getEntityListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.getDefaultInstance()); + } + /** + * repeated .SceneEntityInfo entityList = 1; + */ + public java.util.List + 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; + /** + * .VisionType appearType = 2; + * @return The enum numeric value on the wire for appearType. + */ + @java.lang.Override public int getAppearTypeValue() { + return appearType_; + } + /** + * .VisionType appearType = 2; + * @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; + } + /** + * .VisionType appearType = 2; + * @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; + } + /** + * .VisionType appearType = 2; + * @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; + } + /** + * .VisionType appearType = 2; + * @return This builder for chaining. + */ + public Builder clearAppearType() { + + appearType_ = 0; + onChanged(); + return this; + } + + private int param_ ; + /** + * uint32 param = 3; + * @return The param. + */ + @java.lang.Override + public int getParam() { + return param_; + } + /** + * uint32 param = 3; + * @param value The param to set. + * @return This builder for chaining. + */ + public Builder setParam(int value) { + + param_ = value; + onChanged(); + return this; + } + /** + * uint32 param = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3eee584b8 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneEntityDisappearNotifyOuterClass.java @@ -0,0 +1,774 @@ +// 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 { + + /** + * repeated uint32 entityList = 1; + * @return A list containing the entityList. + */ + java.util.List getEntityListList(); + /** + * repeated uint32 entityList = 1; + * @return The count of entityList. + */ + int getEntityListCount(); + /** + * repeated uint32 entityList = 1; + * @param index The index of the element to return. + * @return The entityList at the given index. + */ + int getEntityList(int index); + + /** + * .VisionType disappearType = 2; + * @return The enum numeric value on the wire for disappearType. + */ + int getDisappearTypeValue(); + /** + * .VisionType disappearType = 2; + * @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_; + /** + * repeated uint32 entityList = 1; + * @return A list containing the entityList. + */ + @java.lang.Override + public java.util.List + getEntityListList() { + return entityList_; + } + /** + * repeated uint32 entityList = 1; + * @return The count of entityList. + */ + public int getEntityListCount() { + return entityList_.size(); + } + /** + * repeated uint32 entityList = 1; + * @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_; + /** + * .VisionType disappearType = 2; + * @return The enum numeric value on the wire for disappearType. + */ + @java.lang.Override public int getDisappearTypeValue() { + return disappearType_; + } + /** + * .VisionType disappearType = 2; + * @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 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; + } + } + /** + * repeated uint32 entityList = 1; + * @return A list containing the entityList. + */ + public java.util.List + getEntityListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(entityList_) : entityList_; + } + /** + * repeated uint32 entityList = 1; + * @return The count of entityList. + */ + public int getEntityListCount() { + return entityList_.size(); + } + /** + * repeated uint32 entityList = 1; + * @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); + } + /** + * repeated uint32 entityList = 1; + * @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; + } + /** + * repeated uint32 entityList = 1; + * @param value The entityList to add. + * @return This builder for chaining. + */ + public Builder addEntityList(int value) { + ensureEntityListIsMutable(); + entityList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 entityList = 1; + * @param values The entityList to add. + * @return This builder for chaining. + */ + public Builder addAllEntityList( + java.lang.Iterable values) { + ensureEntityListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityList_); + onChanged(); + return this; + } + /** + * repeated uint32 entityList = 1; + * @return This builder for chaining. + */ + public Builder clearEntityList() { + entityList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int disappearType_ = 0; + /** + * .VisionType disappearType = 2; + * @return The enum numeric value on the wire for disappearType. + */ + @java.lang.Override public int getDisappearTypeValue() { + return disappearType_; + } + /** + * .VisionType disappearType = 2; + * @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; + } + /** + * .VisionType disappearType = 2; + * @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; + } + /** + * .VisionType disappearType = 2; + * @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; + } + /** + * .VisionType disappearType = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7c8e90f78 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneEntityInfoOuterClass.java @@ -0,0 +1,4353 @@ +// 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 { + + /** + * .ProtEntityType entityType = 1; + * @return The enum numeric value on the wire for entityType. + */ + int getEntityTypeValue(); + /** + * .ProtEntityType entityType = 1; + * @return The entityType. + */ + emu.grasscutter.net.proto.ProtEntityTypeOuterClass.ProtEntityType getEntityType(); + + /** + * uint32 entityId = 2; + * @return The entityId. + */ + int getEntityId(); + + /** + * string name = 3; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 3; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .MotionInfo motionInfo = 4; + * @return Whether the motionInfo field is set. + */ + boolean hasMotionInfo(); + /** + * .MotionInfo motionInfo = 4; + * @return The motionInfo. + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); + /** + * .MotionInfo motionInfo = 4; + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); + + /** + * repeated .PropPair propList = 5; + */ + java.util.List + getPropListList(); + /** + * repeated .PropPair propList = 5; + */ + emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index); + /** + * repeated .PropPair propList = 5; + */ + int getPropListCount(); + /** + * repeated .PropPair propList = 5; + */ + java.util.List + getPropListOrBuilderList(); + /** + * repeated .PropPair propList = 5; + */ + emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder getPropListOrBuilder( + int index); + + /** + * repeated .FightPropPair fightPropList = 6; + */ + java.util.List + getFightPropListList(); + /** + * repeated .FightPropPair fightPropList = 6; + */ + emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index); + /** + * repeated .FightPropPair fightPropList = 6; + */ + int getFightPropListCount(); + /** + * repeated .FightPropPair fightPropList = 6; + */ + java.util.List + getFightPropListOrBuilderList(); + /** + * repeated .FightPropPair fightPropList = 6; + */ + emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder getFightPropListOrBuilder( + int index); + + /** + * uint32 lifeState = 7; + * @return The lifeState. + */ + int getLifeState(); + + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + java.util.List + getAnimatorParaListList(); + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index); + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + int getAnimatorParaListCount(); + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + java.util.List + getAnimatorParaListOrBuilderList(); + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getAnimatorParaListOrBuilder( + int index); + + /** + * .SceneAvatarInfo avatar = 10; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .SceneAvatarInfo avatar = 10; + * @return The avatar. + */ + emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getAvatar(); + /** + * .SceneAvatarInfo avatar = 10; + */ + emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getAvatarOrBuilder(); + + /** + * .SceneMonsterInfo monster = 11; + * @return Whether the monster field is set. + */ + boolean hasMonster(); + /** + * .SceneMonsterInfo monster = 11; + * @return The monster. + */ + emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo getMonster(); + /** + * .SceneMonsterInfo monster = 11; + */ + emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfoOrBuilder getMonsterOrBuilder(); + + /** + * .SceneNpcInfo npc = 12; + * @return Whether the npc field is set. + */ + boolean hasNpc(); + /** + * .SceneNpcInfo npc = 12; + * @return The npc. + */ + emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo getNpc(); + /** + * .SceneNpcInfo npc = 12; + */ + emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfoOrBuilder getNpcOrBuilder(); + + /** + * .SceneGadgetInfo gadget = 13; + * @return Whether the gadget field is set. + */ + boolean hasGadget(); + /** + * .SceneGadgetInfo gadget = 13; + * @return The gadget. + */ + emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo getGadget(); + /** + * .SceneGadgetInfo gadget = 13; + */ + emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfoOrBuilder getGadgetOrBuilder(); + + /** + * uint32 lastMoveSceneTimeMs = 17; + * @return The lastMoveSceneTimeMs. + */ + int getLastMoveSceneTimeMs(); + + /** + * uint32 lastMoveReliableSeq = 18; + * @return The lastMoveReliableSeq. + */ + int getLastMoveReliableSeq(); + + /** + * .EntityClientData entityClientData = 19; + * @return Whether the entityClientData field is set. + */ + boolean hasEntityClientData(); + /** + * .EntityClientData entityClientData = 19; + * @return The entityClientData. + */ + emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData getEntityClientData(); + /** + * .EntityClientData entityClientData = 19; + */ + emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientDataOrBuilder getEntityClientDataOrBuilder(); + + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + java.util.List + getEntityEnvironmentInfoListList(); + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index); + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + int getEntityEnvironmentInfoListCount(); + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + java.util.List + getEntityEnvironmentInfoListOrBuilderList(); + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder getEntityEnvironmentInfoListOrBuilder( + int index); + + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @return Whether the entityAuthorityInfo field is set. + */ + boolean hasEntityAuthorityInfo(); + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @return The entityAuthorityInfo. + */ + emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo getEntityAuthorityInfo(); + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfoOrBuilder getEntityAuthorityInfoOrBuilder(); + + /** + * repeated string tagList = 22; + * @return A list containing the tagList. + */ + java.util.List + getTagListList(); + /** + * repeated string tagList = 22; + * @return The count of tagList. + */ + int getTagListCount(); + /** + * repeated string tagList = 22; + * @param index The index of the element to return. + * @return The tagList at the given index. + */ + java.lang.String getTagList(int index); + /** + * repeated string tagList = 22; + * @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(); + 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(); + 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(); + 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(); + 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_; + /** + * .ProtEntityType entityType = 1; + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override public int getEntityTypeValue() { + return entityType_; + } + /** + * .ProtEntityType entityType = 1; + * @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_; + /** + * uint32 entityId = 2; + * @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_; + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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_; + /** + * .MotionInfo motionInfo = 4; + * @return Whether the motionInfo field is set. + */ + @java.lang.Override + public boolean hasMotionInfo() { + return motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 4; + * @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_; + } + /** + * .MotionInfo motionInfo = 4; + */ + @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 propList_; + /** + * repeated .PropPair propList = 5; + */ + @java.lang.Override + public java.util.List getPropListList() { + return propList_; + } + /** + * repeated .PropPair propList = 5; + */ + @java.lang.Override + public java.util.List + getPropListOrBuilderList() { + return propList_; + } + /** + * repeated .PropPair propList = 5; + */ + @java.lang.Override + public int getPropListCount() { + return propList_.size(); + } + /** + * repeated .PropPair propList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index) { + return propList_.get(index); + } + /** + * repeated .PropPair propList = 5; + */ + @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 fightPropList_; + /** + * repeated .FightPropPair fightPropList = 6; + */ + @java.lang.Override + public java.util.List getFightPropListList() { + return fightPropList_; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + @java.lang.Override + public java.util.List + getFightPropListOrBuilderList() { + return fightPropList_; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + @java.lang.Override + public int getFightPropListCount() { + return fightPropList_.size(); + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index) { + return fightPropList_.get(index); + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + @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_; + /** + * uint32 lifeState = 7; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + + public static final int ANIMATORPARALIST_FIELD_NUMBER = 9; + private java.util.List animatorParaList_; + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + @java.lang.Override + public java.util.List getAnimatorParaListList() { + return animatorParaList_; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + @java.lang.Override + public java.util.List + getAnimatorParaListOrBuilderList() { + return animatorParaList_; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + @java.lang.Override + public int getAnimatorParaListCount() { + return animatorParaList_.size(); + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index) { + return animatorParaList_.get(index); + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + @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; + /** + * .SceneAvatarInfo avatar = 10; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return entityCase_ == 10; + } + /** + * .SceneAvatarInfo avatar = 10; + * @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(); + } + /** + * .SceneAvatarInfo avatar = 10; + */ + @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; + /** + * .SceneMonsterInfo monster = 11; + * @return Whether the monster field is set. + */ + @java.lang.Override + public boolean hasMonster() { + return entityCase_ == 11; + } + /** + * .SceneMonsterInfo monster = 11; + * @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(); + } + /** + * .SceneMonsterInfo monster = 11; + */ + @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; + /** + * .SceneNpcInfo npc = 12; + * @return Whether the npc field is set. + */ + @java.lang.Override + public boolean hasNpc() { + return entityCase_ == 12; + } + /** + * .SceneNpcInfo npc = 12; + * @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(); + } + /** + * .SceneNpcInfo npc = 12; + */ + @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; + /** + * .SceneGadgetInfo gadget = 13; + * @return Whether the gadget field is set. + */ + @java.lang.Override + public boolean hasGadget() { + return entityCase_ == 13; + } + /** + * .SceneGadgetInfo gadget = 13; + * @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(); + } + /** + * .SceneGadgetInfo gadget = 13; + */ + @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_; + /** + * uint32 lastMoveSceneTimeMs = 17; + * @return The lastMoveSceneTimeMs. + */ + @java.lang.Override + public int getLastMoveSceneTimeMs() { + return lastMoveSceneTimeMs_; + } + + public static final int LASTMOVERELIABLESEQ_FIELD_NUMBER = 18; + private int lastMoveReliableSeq_; + /** + * uint32 lastMoveReliableSeq = 18; + * @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_; + /** + * .EntityClientData entityClientData = 19; + * @return Whether the entityClientData field is set. + */ + @java.lang.Override + public boolean hasEntityClientData() { + return entityClientData_ != null; + } + /** + * .EntityClientData entityClientData = 19; + * @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_; + } + /** + * .EntityClientData entityClientData = 19; + */ + @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 entityEnvironmentInfoList_; + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + @java.lang.Override + public java.util.List getEntityEnvironmentInfoListList() { + return entityEnvironmentInfoList_; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + @java.lang.Override + public java.util.List + getEntityEnvironmentInfoListOrBuilderList() { + return entityEnvironmentInfoList_; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + @java.lang.Override + public int getEntityEnvironmentInfoListCount() { + return entityEnvironmentInfoList_.size(); + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + @java.lang.Override + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index) { + return entityEnvironmentInfoList_.get(index); + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + @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_; + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @return Whether the entityAuthorityInfo field is set. + */ + @java.lang.Override + public boolean hasEntityAuthorityInfo() { + return entityAuthorityInfo_ != null; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @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_; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + @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_; + /** + * repeated string tagList = 22; + * @return A list containing the tagList. + */ + public com.google.protobuf.ProtocolStringList + getTagListList() { + return tagList_; + } + /** + * repeated string tagList = 22; + * @return The count of tagList. + */ + public int getTagListCount() { + return tagList_.size(); + } + /** + * repeated string tagList = 22; + * @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); + } + /** + * repeated string tagList = 22; + * @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 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; + /** + * .ProtEntityType entityType = 1; + * @return The enum numeric value on the wire for entityType. + */ + @java.lang.Override public int getEntityTypeValue() { + return entityType_; + } + /** + * .ProtEntityType entityType = 1; + * @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; + } + /** + * .ProtEntityType entityType = 1; + * @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; + } + /** + * .ProtEntityType entityType = 1; + * @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; + } + /** + * .ProtEntityType entityType = 1; + * @return This builder for chaining. + */ + public Builder clearEntityType() { + + entityType_ = 0; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 2; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 2; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 2; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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; + } + /** + * string name = 3; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 3; + * @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_; + /** + * .MotionInfo motionInfo = 4; + * @return Whether the motionInfo field is set. + */ + public boolean hasMotionInfo() { + return motionInfoBuilder_ != null || motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 4; + * @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(); + } + } + /** + * .MotionInfo motionInfo = 4; + */ + 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; + } + /** + * .MotionInfo motionInfo = 4; + */ + 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; + } + /** + * .MotionInfo motionInfo = 4; + */ + 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; + } + /** + * .MotionInfo motionInfo = 4; + */ + public Builder clearMotionInfo() { + if (motionInfoBuilder_ == null) { + motionInfo_ = null; + onChanged(); + } else { + motionInfo_ = null; + motionInfoBuilder_ = null; + } + + return this; + } + /** + * .MotionInfo motionInfo = 4; + */ + public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { + + onChanged(); + return getMotionInfoFieldBuilder().getBuilder(); + } + /** + * .MotionInfo motionInfo = 4; + */ + 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_; + } + } + /** + * .MotionInfo motionInfo = 4; + */ + 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 propList_ = + java.util.Collections.emptyList(); + private void ensurePropListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + propList_ = new java.util.ArrayList(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_; + + /** + * repeated .PropPair propList = 5; + */ + public java.util.List getPropListList() { + if (propListBuilder_ == null) { + return java.util.Collections.unmodifiableList(propList_); + } else { + return propListBuilder_.getMessageList(); + } + } + /** + * repeated .PropPair propList = 5; + */ + public int getPropListCount() { + if (propListBuilder_ == null) { + return propList_.size(); + } else { + return propListBuilder_.getCount(); + } + } + /** + * repeated .PropPair propList = 5; + */ + public emu.grasscutter.net.proto.PropPairOuterClass.PropPair getPropList(int index) { + if (propListBuilder_ == null) { + return propList_.get(index); + } else { + return propListBuilder_.getMessage(index); + } + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + 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; + } + /** + * repeated .PropPair propList = 5; + */ + public Builder addAllPropList( + java.lang.Iterable values) { + if (propListBuilder_ == null) { + ensurePropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propList_); + onChanged(); + } else { + propListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PropPair propList = 5; + */ + public Builder clearPropList() { + if (propListBuilder_ == null) { + propList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propListBuilder_.clear(); + } + return this; + } + /** + * repeated .PropPair propList = 5; + */ + public Builder removePropList(int index) { + if (propListBuilder_ == null) { + ensurePropListIsMutable(); + propList_.remove(index); + onChanged(); + } else { + propListBuilder_.remove(index); + } + return this; + } + /** + * repeated .PropPair propList = 5; + */ + public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder getPropListBuilder( + int index) { + return getPropListFieldBuilder().getBuilder(index); + } + /** + * repeated .PropPair propList = 5; + */ + public emu.grasscutter.net.proto.PropPairOuterClass.PropPairOrBuilder getPropListOrBuilder( + int index) { + if (propListBuilder_ == null) { + return propList_.get(index); } else { + return propListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PropPair propList = 5; + */ + public java.util.List + getPropListOrBuilderList() { + if (propListBuilder_ != null) { + return propListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propList_); + } + } + /** + * repeated .PropPair propList = 5; + */ + public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder addPropListBuilder() { + return getPropListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance()); + } + /** + * repeated .PropPair propList = 5; + */ + public emu.grasscutter.net.proto.PropPairOuterClass.PropPair.Builder addPropListBuilder( + int index) { + return getPropListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.PropPairOuterClass.PropPair.getDefaultInstance()); + } + /** + * repeated .PropPair propList = 5; + */ + public java.util.List + 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 fightPropList_ = + java.util.Collections.emptyList(); + private void ensureFightPropListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fightPropList_ = new java.util.ArrayList(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_; + + /** + * repeated .FightPropPair fightPropList = 6; + */ + public java.util.List getFightPropListList() { + if (fightPropListBuilder_ == null) { + return java.util.Collections.unmodifiableList(fightPropList_); + } else { + return fightPropListBuilder_.getMessageList(); + } + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public int getFightPropListCount() { + if (fightPropListBuilder_ == null) { + return fightPropList_.size(); + } else { + return fightPropListBuilder_.getCount(); + } + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair getFightPropList(int index) { + if (fightPropListBuilder_ == null) { + return fightPropList_.get(index); + } else { + return fightPropListBuilder_.getMessage(index); + } + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + 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; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public Builder addAllFightPropList( + java.lang.Iterable values) { + if (fightPropListBuilder_ == null) { + ensureFightPropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fightPropList_); + onChanged(); + } else { + fightPropListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public Builder clearFightPropList() { + if (fightPropListBuilder_ == null) { + fightPropList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + fightPropListBuilder_.clear(); + } + return this; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public Builder removeFightPropList(int index) { + if (fightPropListBuilder_ == null) { + ensureFightPropListIsMutable(); + fightPropList_.remove(index); + onChanged(); + } else { + fightPropListBuilder_.remove(index); + } + return this; + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder getFightPropListBuilder( + int index) { + return getFightPropListFieldBuilder().getBuilder(index); + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPairOrBuilder getFightPropListOrBuilder( + int index) { + if (fightPropListBuilder_ == null) { + return fightPropList_.get(index); } else { + return fightPropListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public java.util.List + getFightPropListOrBuilderList() { + if (fightPropListBuilder_ != null) { + return fightPropListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fightPropList_); + } + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder addFightPropListBuilder() { + return getFightPropListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance()); + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.Builder addFightPropListBuilder( + int index) { + return getFightPropListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.FightPropPairOuterClass.FightPropPair.getDefaultInstance()); + } + /** + * repeated .FightPropPair fightPropList = 6; + */ + public java.util.List + 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_ ; + /** + * uint32 lifeState = 7; + * @return The lifeState. + */ + @java.lang.Override + public int getLifeState() { + return lifeState_; + } + /** + * uint32 lifeState = 7; + * @param value The lifeState to set. + * @return This builder for chaining. + */ + public Builder setLifeState(int value) { + + lifeState_ = value; + onChanged(); + return this; + } + /** + * uint32 lifeState = 7; + * @return This builder for chaining. + */ + public Builder clearLifeState() { + + lifeState_ = 0; + onChanged(); + return this; + } + + private java.util.List animatorParaList_ = + java.util.Collections.emptyList(); + private void ensureAnimatorParaListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + animatorParaList_ = new java.util.ArrayList(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_; + + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public java.util.List getAnimatorParaListList() { + if (animatorParaListBuilder_ == null) { + return java.util.Collections.unmodifiableList(animatorParaList_); + } else { + return animatorParaListBuilder_.getMessageList(); + } + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public int getAnimatorParaListCount() { + if (animatorParaListBuilder_ == null) { + return animatorParaList_.size(); + } else { + return animatorParaListBuilder_.getCount(); + } + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair getAnimatorParaList(int index) { + if (animatorParaListBuilder_ == null) { + return animatorParaList_.get(index); + } else { + return animatorParaListBuilder_.getMessage(index); + } + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + 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; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public Builder addAllAnimatorParaList( + java.lang.Iterable values) { + if (animatorParaListBuilder_ == null) { + ensureAnimatorParaListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, animatorParaList_); + onChanged(); + } else { + animatorParaListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public Builder clearAnimatorParaList() { + if (animatorParaListBuilder_ == null) { + animatorParaList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + animatorParaListBuilder_.clear(); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public Builder removeAnimatorParaList(int index) { + if (animatorParaListBuilder_ == null) { + ensureAnimatorParaListIsMutable(); + animatorParaList_.remove(index); + onChanged(); + } else { + animatorParaListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder getAnimatorParaListBuilder( + int index) { + return getAnimatorParaListFieldBuilder().getBuilder(index); + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPairOrBuilder getAnimatorParaListOrBuilder( + int index) { + if (animatorParaListBuilder_ == null) { + return animatorParaList_.get(index); } else { + return animatorParaListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public java.util.List + getAnimatorParaListOrBuilderList() { + if (animatorParaListBuilder_ != null) { + return animatorParaListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(animatorParaList_); + } + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addAnimatorParaListBuilder() { + return getAnimatorParaListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.Builder addAnimatorParaListBuilder( + int index) { + return getAnimatorParaListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AnimatorParameterValueInfoPairOuterClass.AnimatorParameterValueInfoPair.getDefaultInstance()); + } + /** + * repeated .AnimatorParameterValueInfoPair animatorParaList = 9; + */ + public java.util.List + 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_; + /** + * .SceneAvatarInfo avatar = 10; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return entityCase_ == 10; + } + /** + * .SceneAvatarInfo avatar = 10; + * @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(); + } + } + /** + * .SceneAvatarInfo avatar = 10; + */ + 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; + } + /** + * .SceneAvatarInfo avatar = 10; + */ + 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; + } + /** + * .SceneAvatarInfo avatar = 10; + */ + 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; + } + /** + * .SceneAvatarInfo avatar = 10; + */ + 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; + } + /** + * .SceneAvatarInfo avatar = 10; + */ + public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder getAvatarBuilder() { + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .SceneAvatarInfo avatar = 10; + */ + @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(); + } + } + /** + * .SceneAvatarInfo avatar = 10; + */ + 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_; + /** + * .SceneMonsterInfo monster = 11; + * @return Whether the monster field is set. + */ + @java.lang.Override + public boolean hasMonster() { + return entityCase_ == 11; + } + /** + * .SceneMonsterInfo monster = 11; + * @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(); + } + } + /** + * .SceneMonsterInfo monster = 11; + */ + 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; + } + /** + * .SceneMonsterInfo monster = 11; + */ + 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; + } + /** + * .SceneMonsterInfo monster = 11; + */ + 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; + } + /** + * .SceneMonsterInfo monster = 11; + */ + 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; + } + /** + * .SceneMonsterInfo monster = 11; + */ + public emu.grasscutter.net.proto.SceneMonsterInfoOuterClass.SceneMonsterInfo.Builder getMonsterBuilder() { + return getMonsterFieldBuilder().getBuilder(); + } + /** + * .SceneMonsterInfo monster = 11; + */ + @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(); + } + } + /** + * .SceneMonsterInfo monster = 11; + */ + 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_; + /** + * .SceneNpcInfo npc = 12; + * @return Whether the npc field is set. + */ + @java.lang.Override + public boolean hasNpc() { + return entityCase_ == 12; + } + /** + * .SceneNpcInfo npc = 12; + * @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(); + } + } + /** + * .SceneNpcInfo npc = 12; + */ + 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; + } + /** + * .SceneNpcInfo npc = 12; + */ + 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; + } + /** + * .SceneNpcInfo npc = 12; + */ + 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; + } + /** + * .SceneNpcInfo npc = 12; + */ + 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; + } + /** + * .SceneNpcInfo npc = 12; + */ + public emu.grasscutter.net.proto.SceneNpcInfoOuterClass.SceneNpcInfo.Builder getNpcBuilder() { + return getNpcFieldBuilder().getBuilder(); + } + /** + * .SceneNpcInfo npc = 12; + */ + @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(); + } + } + /** + * .SceneNpcInfo npc = 12; + */ + 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_; + /** + * .SceneGadgetInfo gadget = 13; + * @return Whether the gadget field is set. + */ + @java.lang.Override + public boolean hasGadget() { + return entityCase_ == 13; + } + /** + * .SceneGadgetInfo gadget = 13; + * @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(); + } + } + /** + * .SceneGadgetInfo gadget = 13; + */ + 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; + } + /** + * .SceneGadgetInfo gadget = 13; + */ + 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; + } + /** + * .SceneGadgetInfo gadget = 13; + */ + 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; + } + /** + * .SceneGadgetInfo gadget = 13; + */ + 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; + } + /** + * .SceneGadgetInfo gadget = 13; + */ + public emu.grasscutter.net.proto.SceneGadgetInfoOuterClass.SceneGadgetInfo.Builder getGadgetBuilder() { + return getGadgetFieldBuilder().getBuilder(); + } + /** + * .SceneGadgetInfo gadget = 13; + */ + @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(); + } + } + /** + * .SceneGadgetInfo gadget = 13; + */ + 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_ ; + /** + * uint32 lastMoveSceneTimeMs = 17; + * @return The lastMoveSceneTimeMs. + */ + @java.lang.Override + public int getLastMoveSceneTimeMs() { + return lastMoveSceneTimeMs_; + } + /** + * uint32 lastMoveSceneTimeMs = 17; + * @param value The lastMoveSceneTimeMs to set. + * @return This builder for chaining. + */ + public Builder setLastMoveSceneTimeMs(int value) { + + lastMoveSceneTimeMs_ = value; + onChanged(); + return this; + } + /** + * uint32 lastMoveSceneTimeMs = 17; + * @return This builder for chaining. + */ + public Builder clearLastMoveSceneTimeMs() { + + lastMoveSceneTimeMs_ = 0; + onChanged(); + return this; + } + + private int lastMoveReliableSeq_ ; + /** + * uint32 lastMoveReliableSeq = 18; + * @return The lastMoveReliableSeq. + */ + @java.lang.Override + public int getLastMoveReliableSeq() { + return lastMoveReliableSeq_; + } + /** + * uint32 lastMoveReliableSeq = 18; + * @param value The lastMoveReliableSeq to set. + * @return This builder for chaining. + */ + public Builder setLastMoveReliableSeq(int value) { + + lastMoveReliableSeq_ = value; + onChanged(); + return this; + } + /** + * uint32 lastMoveReliableSeq = 18; + * @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_; + /** + * .EntityClientData entityClientData = 19; + * @return Whether the entityClientData field is set. + */ + public boolean hasEntityClientData() { + return entityClientDataBuilder_ != null || entityClientData_ != null; + } + /** + * .EntityClientData entityClientData = 19; + * @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(); + } + } + /** + * .EntityClientData entityClientData = 19; + */ + 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; + } + /** + * .EntityClientData entityClientData = 19; + */ + 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; + } + /** + * .EntityClientData entityClientData = 19; + */ + 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; + } + /** + * .EntityClientData entityClientData = 19; + */ + public Builder clearEntityClientData() { + if (entityClientDataBuilder_ == null) { + entityClientData_ = null; + onChanged(); + } else { + entityClientData_ = null; + entityClientDataBuilder_ = null; + } + + return this; + } + /** + * .EntityClientData entityClientData = 19; + */ + public emu.grasscutter.net.proto.EntityClientDataOuterClass.EntityClientData.Builder getEntityClientDataBuilder() { + + onChanged(); + return getEntityClientDataFieldBuilder().getBuilder(); + } + /** + * .EntityClientData entityClientData = 19; + */ + 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_; + } + } + /** + * .EntityClientData entityClientData = 19; + */ + 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 entityEnvironmentInfoList_ = + java.util.Collections.emptyList(); + private void ensureEntityEnvironmentInfoListIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + entityEnvironmentInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public java.util.List getEntityEnvironmentInfoListList() { + if (entityEnvironmentInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); + } else { + return entityEnvironmentInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public int getEntityEnvironmentInfoListCount() { + if (entityEnvironmentInfoListBuilder_ == null) { + return entityEnvironmentInfoList_.size(); + } else { + return entityEnvironmentInfoListBuilder_.getCount(); + } + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo getEntityEnvironmentInfoList(int index) { + if (entityEnvironmentInfoListBuilder_ == null) { + return entityEnvironmentInfoList_.get(index); + } else { + return entityEnvironmentInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + 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; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public Builder addAllEntityEnvironmentInfoList( + java.lang.Iterable values) { + if (entityEnvironmentInfoListBuilder_ == null) { + ensureEntityEnvironmentInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entityEnvironmentInfoList_); + onChanged(); + } else { + entityEnvironmentInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public Builder clearEntityEnvironmentInfoList() { + if (entityEnvironmentInfoListBuilder_ == null) { + entityEnvironmentInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + entityEnvironmentInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public Builder removeEntityEnvironmentInfoList(int index) { + if (entityEnvironmentInfoListBuilder_ == null) { + ensureEntityEnvironmentInfoListIsMutable(); + entityEnvironmentInfoList_.remove(index); + onChanged(); + } else { + entityEnvironmentInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder getEntityEnvironmentInfoListBuilder( + int index) { + return getEntityEnvironmentInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfoOrBuilder getEntityEnvironmentInfoListOrBuilder( + int index) { + if (entityEnvironmentInfoListBuilder_ == null) { + return entityEnvironmentInfoList_.get(index); } else { + return entityEnvironmentInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public java.util.List + getEntityEnvironmentInfoListOrBuilderList() { + if (entityEnvironmentInfoListBuilder_ != null) { + return entityEnvironmentInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entityEnvironmentInfoList_); + } + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder addEntityEnvironmentInfoListBuilder() { + return getEntityEnvironmentInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance()); + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.Builder addEntityEnvironmentInfoListBuilder( + int index) { + return getEntityEnvironmentInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.EntityEnvironmentInfoOuterClass.EntityEnvironmentInfo.getDefaultInstance()); + } + /** + * repeated .EntityEnvironmentInfo entityEnvironmentInfoList = 20; + */ + public java.util.List + 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_; + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @return Whether the entityAuthorityInfo field is set. + */ + public boolean hasEntityAuthorityInfo() { + return entityAuthorityInfoBuilder_ != null || entityAuthorityInfo_ != null; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + * @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(); + } + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + 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; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + 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; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + 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; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + public Builder clearEntityAuthorityInfo() { + if (entityAuthorityInfoBuilder_ == null) { + entityAuthorityInfo_ = null; + onChanged(); + } else { + entityAuthorityInfo_ = null; + entityAuthorityInfoBuilder_ = null; + } + + return this; + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + public emu.grasscutter.net.proto.EntityAuthorityInfoOuterClass.EntityAuthorityInfo.Builder getEntityAuthorityInfoBuilder() { + + onChanged(); + return getEntityAuthorityInfoFieldBuilder().getBuilder(); + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + 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_; + } + } + /** + * .EntityAuthorityInfo entityAuthorityInfo = 21; + */ + 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; + } + } + /** + * repeated string tagList = 22; + * @return A list containing the tagList. + */ + public com.google.protobuf.ProtocolStringList + getTagListList() { + return tagList_.getUnmodifiableView(); + } + /** + * repeated string tagList = 22; + * @return The count of tagList. + */ + public int getTagListCount() { + return tagList_.size(); + } + /** + * repeated string tagList = 22; + * @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); + } + /** + * repeated string tagList = 22; + * @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); + } + /** + * repeated string tagList = 22; + * @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; + } + /** + * repeated string tagList = 22; + * @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; + } + /** + * repeated string tagList = 22; + * @param values The tagList to add. + * @return This builder for chaining. + */ + public Builder addAllTagList( + java.lang.Iterable values) { + ensureTagListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagList_); + onChanged(); + return this; + } + /** + * repeated string tagList = 22; + * @return This builder for chaining. + */ + public Builder clearTagList() { + tagList_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * repeated string tagList = 22; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..8c1f1fe7c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneEntityMoveNotifyOuterClass.java @@ -0,0 +1,883 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + boolean hasMotionInfo(); + /** + * .MotionInfo motionInfo = 2; + * @return The motionInfo. + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo getMotionInfo(); + /** + * .MotionInfo motionInfo = 2; + */ + emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder(); + + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + int getSceneTime(); + + /** + * uint32 reliableSeq = 4; + * @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_; + /** + * uint32 entityId = 1; + * @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_; + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + @java.lang.Override + public boolean hasMotionInfo() { + return motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 2; + * @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_; + } + /** + * .MotionInfo motionInfo = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfoOrBuilder getMotionInfoOrBuilder() { + return getMotionInfo(); + } + + public static final int SCENETIME_FIELD_NUMBER = 3; + private int sceneTime_; + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + + public static final int RELIABLESEQ_FIELD_NUMBER = 4; + private int reliableSeq_; + /** + * uint32 reliableSeq = 4; + * @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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @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_; + /** + * .MotionInfo motionInfo = 2; + * @return Whether the motionInfo field is set. + */ + public boolean hasMotionInfo() { + return motionInfoBuilder_ != null || motionInfo_ != null; + } + /** + * .MotionInfo motionInfo = 2; + * @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(); + } + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + 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; + } + /** + * .MotionInfo motionInfo = 2; + */ + public Builder clearMotionInfo() { + if (motionInfoBuilder_ == null) { + motionInfo_ = null; + onChanged(); + } else { + motionInfo_ = null; + motionInfoBuilder_ = null; + } + + return this; + } + /** + * .MotionInfo motionInfo = 2; + */ + public emu.grasscutter.net.proto.MotionInfoOuterClass.MotionInfo.Builder getMotionInfoBuilder() { + + onChanged(); + return getMotionInfoFieldBuilder().getBuilder(); + } + /** + * .MotionInfo motionInfo = 2; + */ + 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_; + } + } + /** + * .MotionInfo motionInfo = 2; + */ + 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_ ; + /** + * uint32 sceneTime = 3; + * @return The sceneTime. + */ + @java.lang.Override + public int getSceneTime() { + return sceneTime_; + } + /** + * uint32 sceneTime = 3; + * @param value The sceneTime to set. + * @return This builder for chaining. + */ + public Builder setSceneTime(int value) { + + sceneTime_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneTime = 3; + * @return This builder for chaining. + */ + public Builder clearSceneTime() { + + sceneTime_ = 0; + onChanged(); + return this; + } + + private int reliableSeq_ ; + /** + * uint32 reliableSeq = 4; + * @return The reliableSeq. + */ + @java.lang.Override + public int getReliableSeq() { + return reliableSeq_; + } + /** + * uint32 reliableSeq = 4; + * @param value The reliableSeq to set. + * @return This builder for chaining. + */ + public Builder setReliableSeq(int value) { + + reliableSeq_ = value; + onChanged(); + return this; + } + /** + * uint32 reliableSeq = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..04c665bec --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneForceUnlockNotifyOuterClass.java @@ -0,0 +1,735 @@ +// 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 { + + /** + * repeated uint32 forceIdList = 1; + * @return A list containing the forceIdList. + */ + java.util.List getForceIdListList(); + /** + * repeated uint32 forceIdList = 1; + * @return The count of forceIdList. + */ + int getForceIdListCount(); + /** + * repeated uint32 forceIdList = 1; + * @param index The index of the element to return. + * @return The forceIdList at the given index. + */ + int getForceIdList(int index); + + /** + * bool isAdd = 2; + * @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_; + /** + * repeated uint32 forceIdList = 1; + * @return A list containing the forceIdList. + */ + @java.lang.Override + public java.util.List + getForceIdListList() { + return forceIdList_; + } + /** + * repeated uint32 forceIdList = 1; + * @return The count of forceIdList. + */ + public int getForceIdListCount() { + return forceIdList_.size(); + } + /** + * repeated uint32 forceIdList = 1; + * @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_; + /** + * bool isAdd = 2; + * @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 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; + } + } + /** + * repeated uint32 forceIdList = 1; + * @return A list containing the forceIdList. + */ + public java.util.List + getForceIdListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(forceIdList_) : forceIdList_; + } + /** + * repeated uint32 forceIdList = 1; + * @return The count of forceIdList. + */ + public int getForceIdListCount() { + return forceIdList_.size(); + } + /** + * repeated uint32 forceIdList = 1; + * @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); + } + /** + * repeated uint32 forceIdList = 1; + * @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; + } + /** + * repeated uint32 forceIdList = 1; + * @param value The forceIdList to add. + * @return This builder for chaining. + */ + public Builder addForceIdList(int value) { + ensureForceIdListIsMutable(); + forceIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 forceIdList = 1; + * @param values The forceIdList to add. + * @return This builder for chaining. + */ + public Builder addAllForceIdList( + java.lang.Iterable values) { + ensureForceIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, forceIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 forceIdList = 1; + * @return This builder for chaining. + */ + public Builder clearForceIdList() { + forceIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean isAdd_ ; + /** + * bool isAdd = 2; + * @return The isAdd. + */ + @java.lang.Override + public boolean getIsAdd() { + return isAdd_; + } + /** + * bool isAdd = 2; + * @param value The isAdd to set. + * @return This builder for chaining. + */ + public Builder setIsAdd(boolean value) { + + isAdd_ = value; + onChanged(); + return this; + } + /** + * bool isAdd = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9b8e04968 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneGadgetInfoOuterClass.java @@ -0,0 +1,3364 @@ +// 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 { + + /** + * uint32 gadgetId = 1; + * @return The gadgetId. + */ + int getGadgetId(); + + /** + * uint32 groupId = 2; + * @return The groupId. + */ + int getGroupId(); + + /** + * uint32 configId = 3; + * @return The configId. + */ + int getConfigId(); + + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + int getOwnerEntityId(); + + /** + * .GadgetBornType bornType = 5; + * @return The enum numeric value on the wire for bornType. + */ + int getBornTypeValue(); + /** + * .GadgetBornType bornType = 5; + * @return The bornType. + */ + emu.grasscutter.net.proto.GadgetBornTypeOuterClass.GadgetBornType getBornType(); + + /** + * uint32 gadgetState = 6; + * @return The gadgetState. + */ + int getGadgetState(); + + /** + * uint32 gadgetType = 7; + * @return The gadgetType. + */ + int getGadgetType(); + + /** + * bool isShowCutscene = 8; + * @return The isShowCutscene. + */ + boolean getIsShowCutscene(); + + /** + * uint32 authorityPeerId = 9; + * @return The authorityPeerId. + */ + int getAuthorityPeerId(); + + /** + * bool isEnableInteract = 10; + * @return The isEnableInteract. + */ + boolean getIsEnableInteract(); + + /** + * uint32 interactId = 11; + * @return The interactId. + */ + int getInteractId(); + + /** + * .Item trifleItem = 12; + * @return Whether the trifleItem field is set. + */ + boolean hasTrifleItem(); + /** + * .Item trifleItem = 12; + * @return The trifleItem. + */ + emu.grasscutter.net.proto.ItemOuterClass.Item getTrifleItem(); + /** + * .Item trifleItem = 12; + */ + emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrifleItemOrBuilder(); + + /** + * uint32 gatherGadget = 13; + * @return The gatherGadget. + */ + int getGatherGadget(); + + /** + * uint32 worktop = 14; + * @return The worktop. + */ + int getWorktop(); + + /** + * .GadgetClientParam clientGadget = 15; + * @return Whether the clientGadget field is set. + */ + boolean hasClientGadget(); + /** + * .GadgetClientParam clientGadget = 15; + * @return The clientGadget. + */ + emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam getClientGadget(); + /** + * .GadgetClientParam clientGadget = 15; + */ + emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder getClientGadgetOrBuilder(); + + /** + * uint32 weather = 17; + * @return The weather. + */ + int getWeather(); + + /** + * uint32 abilityGadget = 18; + * @return The abilityGadget. + */ + int getAbilityGadget(); + + /** + * uint32 statueGadget = 19; + * @return The statueGadget. + */ + int getStatueGadget(); + + /** + * uint32 bossChest = 20; + * @return The bossChest. + */ + int getBossChest(); + + /** + * uint32 blossomChest = 41; + * @return The blossomChest. + */ + int getBlossomChest(); + + /** + * uint32 mpPlayReward = 42; + * @return The mpPlayReward. + */ + int getMpPlayReward(); + + /** + * uint32 generalReward = 43; + * @return The generalReward. + */ + int getGeneralReward(); + + /** + * uint32 offeringInfo = 44; + * @return The offeringInfo. + */ + int getOfferingInfo(); + + /** + * uint32 foundationInfo = 45; + * @return The foundationInfo. + */ + int getFoundationInfo(); + + /** + * uint32 markFlag = 21; + * @return The markFlag. + */ + int getMarkFlag(); + + /** + * uint32 propOwnerEntityId = 22; + * @return The propOwnerEntityId. + */ + int getPropOwnerEntityId(); + + /** + * .PlatformInfo platform = 23; + * @return Whether the platform field is set. + */ + boolean hasPlatform(); + /** + * .PlatformInfo platform = 23; + * @return The platform. + */ + emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo getPlatform(); + /** + * .PlatformInfo platform = 23; + */ + emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfoOrBuilder getPlatformOrBuilder(); + + /** + * repeated uint32 interactUidList = 24; + * @return A list containing the interactUidList. + */ + java.util.List getInteractUidListList(); + /** + * repeated uint32 interactUidList = 24; + * @return The count of interactUidList. + */ + int getInteractUidListCount(); + /** + * repeated uint32 interactUidList = 24; + * @param index The index of the element to return. + * @return The interactUidList at the given index. + */ + int getInteractUidList(int index); + + /** + * uint32 draftId = 25; + * @return The draftId. + */ + int getDraftId(); + + /** + * uint32 gadgetTalkState = 26; + * @return The gadgetTalkState. + */ + int getGadgetTalkState(); + + /** + * .GadgetPlayInfo playInfo = 100; + * @return Whether the playInfo field is set. + */ + boolean hasPlayInfo(); + /** + * .GadgetPlayInfo playInfo = 100; + * @return The playInfo. + */ + emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo getPlayInfo(); + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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_; + /** + * uint32 gadgetId = 1; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + + public static final int GROUPID_FIELD_NUMBER = 2; + private int groupId_; + /** + * uint32 groupId = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + + public static final int CONFIGID_FIELD_NUMBER = 3; + private int configId_; + /** + * uint32 configId = 3; + * @return The configId. + */ + @java.lang.Override + public int getConfigId() { + return configId_; + } + + public static final int OWNERENTITYID_FIELD_NUMBER = 4; + private int ownerEntityId_; + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + + public static final int BORNTYPE_FIELD_NUMBER = 5; + private int bornType_; + /** + * .GadgetBornType bornType = 5; + * @return The enum numeric value on the wire for bornType. + */ + @java.lang.Override public int getBornTypeValue() { + return bornType_; + } + /** + * .GadgetBornType bornType = 5; + * @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_; + /** + * uint32 gadgetState = 6; + * @return The gadgetState. + */ + @java.lang.Override + public int getGadgetState() { + return gadgetState_; + } + + public static final int GADGETTYPE_FIELD_NUMBER = 7; + private int gadgetType_; + /** + * uint32 gadgetType = 7; + * @return The gadgetType. + */ + @java.lang.Override + public int getGadgetType() { + return gadgetType_; + } + + public static final int ISSHOWCUTSCENE_FIELD_NUMBER = 8; + private boolean isShowCutscene_; + /** + * bool isShowCutscene = 8; + * @return The isShowCutscene. + */ + @java.lang.Override + public boolean getIsShowCutscene() { + return isShowCutscene_; + } + + public static final int AUTHORITYPEERID_FIELD_NUMBER = 9; + private int authorityPeerId_; + /** + * uint32 authorityPeerId = 9; + * @return The authorityPeerId. + */ + @java.lang.Override + public int getAuthorityPeerId() { + return authorityPeerId_; + } + + public static final int ISENABLEINTERACT_FIELD_NUMBER = 10; + private boolean isEnableInteract_; + /** + * bool isEnableInteract = 10; + * @return The isEnableInteract. + */ + @java.lang.Override + public boolean getIsEnableInteract() { + return isEnableInteract_; + } + + public static final int INTERACTID_FIELD_NUMBER = 11; + private int interactId_; + /** + * uint32 interactId = 11; + * @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_; + /** + * .Item trifleItem = 12; + * @return Whether the trifleItem field is set. + */ + @java.lang.Override + public boolean hasTrifleItem() { + return trifleItem_ != null; + } + /** + * .Item trifleItem = 12; + * @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_; + } + /** + * .Item trifleItem = 12; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrifleItemOrBuilder() { + return getTrifleItem(); + } + + public static final int GATHERGADGET_FIELD_NUMBER = 13; + private int gatherGadget_; + /** + * uint32 gatherGadget = 13; + * @return The gatherGadget. + */ + @java.lang.Override + public int getGatherGadget() { + return gatherGadget_; + } + + public static final int WORKTOP_FIELD_NUMBER = 14; + private int worktop_; + /** + * uint32 worktop = 14; + * @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_; + /** + * .GadgetClientParam clientGadget = 15; + * @return Whether the clientGadget field is set. + */ + @java.lang.Override + public boolean hasClientGadget() { + return clientGadget_ != null; + } + /** + * .GadgetClientParam clientGadget = 15; + * @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_; + } + /** + * .GadgetClientParam clientGadget = 15; + */ + @java.lang.Override + public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParamOrBuilder getClientGadgetOrBuilder() { + return getClientGadget(); + } + + public static final int WEATHER_FIELD_NUMBER = 17; + private int weather_; + /** + * uint32 weather = 17; + * @return The weather. + */ + @java.lang.Override + public int getWeather() { + return weather_; + } + + public static final int ABILITYGADGET_FIELD_NUMBER = 18; + private int abilityGadget_; + /** + * uint32 abilityGadget = 18; + * @return The abilityGadget. + */ + @java.lang.Override + public int getAbilityGadget() { + return abilityGadget_; + } + + public static final int STATUEGADGET_FIELD_NUMBER = 19; + private int statueGadget_; + /** + * uint32 statueGadget = 19; + * @return The statueGadget. + */ + @java.lang.Override + public int getStatueGadget() { + return statueGadget_; + } + + public static final int BOSSCHEST_FIELD_NUMBER = 20; + private int bossChest_; + /** + * uint32 bossChest = 20; + * @return The bossChest. + */ + @java.lang.Override + public int getBossChest() { + return bossChest_; + } + + public static final int BLOSSOMCHEST_FIELD_NUMBER = 41; + private int blossomChest_; + /** + * uint32 blossomChest = 41; + * @return The blossomChest. + */ + @java.lang.Override + public int getBlossomChest() { + return blossomChest_; + } + + public static final int MPPLAYREWARD_FIELD_NUMBER = 42; + private int mpPlayReward_; + /** + * uint32 mpPlayReward = 42; + * @return The mpPlayReward. + */ + @java.lang.Override + public int getMpPlayReward() { + return mpPlayReward_; + } + + public static final int GENERALREWARD_FIELD_NUMBER = 43; + private int generalReward_; + /** + * uint32 generalReward = 43; + * @return The generalReward. + */ + @java.lang.Override + public int getGeneralReward() { + return generalReward_; + } + + public static final int OFFERINGINFO_FIELD_NUMBER = 44; + private int offeringInfo_; + /** + * uint32 offeringInfo = 44; + * @return The offeringInfo. + */ + @java.lang.Override + public int getOfferingInfo() { + return offeringInfo_; + } + + public static final int FOUNDATIONINFO_FIELD_NUMBER = 45; + private int foundationInfo_; + /** + * uint32 foundationInfo = 45; + * @return The foundationInfo. + */ + @java.lang.Override + public int getFoundationInfo() { + return foundationInfo_; + } + + public static final int MARKFLAG_FIELD_NUMBER = 21; + private int markFlag_; + /** + * uint32 markFlag = 21; + * @return The markFlag. + */ + @java.lang.Override + public int getMarkFlag() { + return markFlag_; + } + + public static final int PROPOWNERENTITYID_FIELD_NUMBER = 22; + private int propOwnerEntityId_; + /** + * uint32 propOwnerEntityId = 22; + * @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_; + /** + * .PlatformInfo platform = 23; + * @return Whether the platform field is set. + */ + @java.lang.Override + public boolean hasPlatform() { + return platform_ != null; + } + /** + * .PlatformInfo platform = 23; + * @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_; + } + /** + * .PlatformInfo platform = 23; + */ + @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_; + /** + * repeated uint32 interactUidList = 24; + * @return A list containing the interactUidList. + */ + @java.lang.Override + public java.util.List + getInteractUidListList() { + return interactUidList_; + } + /** + * repeated uint32 interactUidList = 24; + * @return The count of interactUidList. + */ + public int getInteractUidListCount() { + return interactUidList_.size(); + } + /** + * repeated uint32 interactUidList = 24; + * @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_; + /** + * uint32 draftId = 25; + * @return The draftId. + */ + @java.lang.Override + public int getDraftId() { + return draftId_; + } + + public static final int GADGETTALKSTATE_FIELD_NUMBER = 26; + private int gadgetTalkState_; + /** + * uint32 gadgetTalkState = 26; + * @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_; + /** + * .GadgetPlayInfo playInfo = 100; + * @return Whether the playInfo field is set. + */ + @java.lang.Override + public boolean hasPlayInfo() { + return playInfo_ != null; + } + /** + * .GadgetPlayInfo playInfo = 100; + * @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_; + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + @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 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_ ; + /** + * uint32 gadgetId = 1; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + /** + * uint32 gadgetId = 1; + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + + gadgetId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetId = 1; + * @return This builder for chaining. + */ + public Builder clearGadgetId() { + + gadgetId_ = 0; + onChanged(); + return this; + } + + private int groupId_ ; + /** + * uint32 groupId = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + /** + * uint32 groupId = 2; + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(int value) { + + groupId_ = value; + onChanged(); + return this; + } + /** + * uint32 groupId = 2; + * @return This builder for chaining. + */ + public Builder clearGroupId() { + + groupId_ = 0; + onChanged(); + return this; + } + + private int configId_ ; + /** + * uint32 configId = 3; + * @return The configId. + */ + @java.lang.Override + public int getConfigId() { + return configId_; + } + /** + * uint32 configId = 3; + * @param value The configId to set. + * @return This builder for chaining. + */ + public Builder setConfigId(int value) { + + configId_ = value; + onChanged(); + return this; + } + /** + * uint32 configId = 3; + * @return This builder for chaining. + */ + public Builder clearConfigId() { + + configId_ = 0; + onChanged(); + return this; + } + + private int ownerEntityId_ ; + /** + * uint32 ownerEntityId = 4; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + /** + * uint32 ownerEntityId = 4; + * @param value The ownerEntityId to set. + * @return This builder for chaining. + */ + public Builder setOwnerEntityId(int value) { + + ownerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 ownerEntityId = 4; + * @return This builder for chaining. + */ + public Builder clearOwnerEntityId() { + + ownerEntityId_ = 0; + onChanged(); + return this; + } + + private int bornType_ = 0; + /** + * .GadgetBornType bornType = 5; + * @return The enum numeric value on the wire for bornType. + */ + @java.lang.Override public int getBornTypeValue() { + return bornType_; + } + /** + * .GadgetBornType bornType = 5; + * @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; + } + /** + * .GadgetBornType bornType = 5; + * @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; + } + /** + * .GadgetBornType bornType = 5; + * @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; + } + /** + * .GadgetBornType bornType = 5; + * @return This builder for chaining. + */ + public Builder clearBornType() { + + bornType_ = 0; + onChanged(); + return this; + } + + private int gadgetState_ ; + /** + * uint32 gadgetState = 6; + * @return The gadgetState. + */ + @java.lang.Override + public int getGadgetState() { + return gadgetState_; + } + /** + * uint32 gadgetState = 6; + * @param value The gadgetState to set. + * @return This builder for chaining. + */ + public Builder setGadgetState(int value) { + + gadgetState_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetState = 6; + * @return This builder for chaining. + */ + public Builder clearGadgetState() { + + gadgetState_ = 0; + onChanged(); + return this; + } + + private int gadgetType_ ; + /** + * uint32 gadgetType = 7; + * @return The gadgetType. + */ + @java.lang.Override + public int getGadgetType() { + return gadgetType_; + } + /** + * uint32 gadgetType = 7; + * @param value The gadgetType to set. + * @return This builder for chaining. + */ + public Builder setGadgetType(int value) { + + gadgetType_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetType = 7; + * @return This builder for chaining. + */ + public Builder clearGadgetType() { + + gadgetType_ = 0; + onChanged(); + return this; + } + + private boolean isShowCutscene_ ; + /** + * bool isShowCutscene = 8; + * @return The isShowCutscene. + */ + @java.lang.Override + public boolean getIsShowCutscene() { + return isShowCutscene_; + } + /** + * bool isShowCutscene = 8; + * @param value The isShowCutscene to set. + * @return This builder for chaining. + */ + public Builder setIsShowCutscene(boolean value) { + + isShowCutscene_ = value; + onChanged(); + return this; + } + /** + * bool isShowCutscene = 8; + * @return This builder for chaining. + */ + public Builder clearIsShowCutscene() { + + isShowCutscene_ = false; + onChanged(); + return this; + } + + private int authorityPeerId_ ; + /** + * uint32 authorityPeerId = 9; + * @return The authorityPeerId. + */ + @java.lang.Override + public int getAuthorityPeerId() { + return authorityPeerId_; + } + /** + * uint32 authorityPeerId = 9; + * @param value The authorityPeerId to set. + * @return This builder for chaining. + */ + public Builder setAuthorityPeerId(int value) { + + authorityPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 authorityPeerId = 9; + * @return This builder for chaining. + */ + public Builder clearAuthorityPeerId() { + + authorityPeerId_ = 0; + onChanged(); + return this; + } + + private boolean isEnableInteract_ ; + /** + * bool isEnableInteract = 10; + * @return The isEnableInteract. + */ + @java.lang.Override + public boolean getIsEnableInteract() { + return isEnableInteract_; + } + /** + * bool isEnableInteract = 10; + * @param value The isEnableInteract to set. + * @return This builder for chaining. + */ + public Builder setIsEnableInteract(boolean value) { + + isEnableInteract_ = value; + onChanged(); + return this; + } + /** + * bool isEnableInteract = 10; + * @return This builder for chaining. + */ + public Builder clearIsEnableInteract() { + + isEnableInteract_ = false; + onChanged(); + return this; + } + + private int interactId_ ; + /** + * uint32 interactId = 11; + * @return The interactId. + */ + @java.lang.Override + public int getInteractId() { + return interactId_; + } + /** + * uint32 interactId = 11; + * @param value The interactId to set. + * @return This builder for chaining. + */ + public Builder setInteractId(int value) { + + interactId_ = value; + onChanged(); + return this; + } + /** + * uint32 interactId = 11; + * @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_; + /** + * .Item trifleItem = 12; + * @return Whether the trifleItem field is set. + */ + public boolean hasTrifleItem() { + return trifleItemBuilder_ != null || trifleItem_ != null; + } + /** + * .Item trifleItem = 12; + * @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(); + } + } + /** + * .Item trifleItem = 12; + */ + 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; + } + /** + * .Item trifleItem = 12; + */ + 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; + } + /** + * .Item trifleItem = 12; + */ + 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; + } + /** + * .Item trifleItem = 12; + */ + public Builder clearTrifleItem() { + if (trifleItemBuilder_ == null) { + trifleItem_ = null; + onChanged(); + } else { + trifleItem_ = null; + trifleItemBuilder_ = null; + } + + return this; + } + /** + * .Item trifleItem = 12; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getTrifleItemBuilder() { + + onChanged(); + return getTrifleItemFieldBuilder().getBuilder(); + } + /** + * .Item trifleItem = 12; + */ + 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_; + } + } + /** + * .Item trifleItem = 12; + */ + 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_ ; + /** + * uint32 gatherGadget = 13; + * @return The gatherGadget. + */ + @java.lang.Override + public int getGatherGadget() { + return gatherGadget_; + } + /** + * uint32 gatherGadget = 13; + * @param value The gatherGadget to set. + * @return This builder for chaining. + */ + public Builder setGatherGadget(int value) { + + gatherGadget_ = value; + onChanged(); + return this; + } + /** + * uint32 gatherGadget = 13; + * @return This builder for chaining. + */ + public Builder clearGatherGadget() { + + gatherGadget_ = 0; + onChanged(); + return this; + } + + private int worktop_ ; + /** + * uint32 worktop = 14; + * @return The worktop. + */ + @java.lang.Override + public int getWorktop() { + return worktop_; + } + /** + * uint32 worktop = 14; + * @param value The worktop to set. + * @return This builder for chaining. + */ + public Builder setWorktop(int value) { + + worktop_ = value; + onChanged(); + return this; + } + /** + * uint32 worktop = 14; + * @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_; + /** + * .GadgetClientParam clientGadget = 15; + * @return Whether the clientGadget field is set. + */ + public boolean hasClientGadget() { + return clientGadgetBuilder_ != null || clientGadget_ != null; + } + /** + * .GadgetClientParam clientGadget = 15; + * @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(); + } + } + /** + * .GadgetClientParam clientGadget = 15; + */ + 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; + } + /** + * .GadgetClientParam clientGadget = 15; + */ + 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; + } + /** + * .GadgetClientParam clientGadget = 15; + */ + 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; + } + /** + * .GadgetClientParam clientGadget = 15; + */ + public Builder clearClientGadget() { + if (clientGadgetBuilder_ == null) { + clientGadget_ = null; + onChanged(); + } else { + clientGadget_ = null; + clientGadgetBuilder_ = null; + } + + return this; + } + /** + * .GadgetClientParam clientGadget = 15; + */ + public emu.grasscutter.net.proto.GadgetClientParamOuterClass.GadgetClientParam.Builder getClientGadgetBuilder() { + + onChanged(); + return getClientGadgetFieldBuilder().getBuilder(); + } + /** + * .GadgetClientParam clientGadget = 15; + */ + 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_; + } + } + /** + * .GadgetClientParam clientGadget = 15; + */ + 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_ ; + /** + * uint32 weather = 17; + * @return The weather. + */ + @java.lang.Override + public int getWeather() { + return weather_; + } + /** + * uint32 weather = 17; + * @param value The weather to set. + * @return This builder for chaining. + */ + public Builder setWeather(int value) { + + weather_ = value; + onChanged(); + return this; + } + /** + * uint32 weather = 17; + * @return This builder for chaining. + */ + public Builder clearWeather() { + + weather_ = 0; + onChanged(); + return this; + } + + private int abilityGadget_ ; + /** + * uint32 abilityGadget = 18; + * @return The abilityGadget. + */ + @java.lang.Override + public int getAbilityGadget() { + return abilityGadget_; + } + /** + * uint32 abilityGadget = 18; + * @param value The abilityGadget to set. + * @return This builder for chaining. + */ + public Builder setAbilityGadget(int value) { + + abilityGadget_ = value; + onChanged(); + return this; + } + /** + * uint32 abilityGadget = 18; + * @return This builder for chaining. + */ + public Builder clearAbilityGadget() { + + abilityGadget_ = 0; + onChanged(); + return this; + } + + private int statueGadget_ ; + /** + * uint32 statueGadget = 19; + * @return The statueGadget. + */ + @java.lang.Override + public int getStatueGadget() { + return statueGadget_; + } + /** + * uint32 statueGadget = 19; + * @param value The statueGadget to set. + * @return This builder for chaining. + */ + public Builder setStatueGadget(int value) { + + statueGadget_ = value; + onChanged(); + return this; + } + /** + * uint32 statueGadget = 19; + * @return This builder for chaining. + */ + public Builder clearStatueGadget() { + + statueGadget_ = 0; + onChanged(); + return this; + } + + private int bossChest_ ; + /** + * uint32 bossChest = 20; + * @return The bossChest. + */ + @java.lang.Override + public int getBossChest() { + return bossChest_; + } + /** + * uint32 bossChest = 20; + * @param value The bossChest to set. + * @return This builder for chaining. + */ + public Builder setBossChest(int value) { + + bossChest_ = value; + onChanged(); + return this; + } + /** + * uint32 bossChest = 20; + * @return This builder for chaining. + */ + public Builder clearBossChest() { + + bossChest_ = 0; + onChanged(); + return this; + } + + private int blossomChest_ ; + /** + * uint32 blossomChest = 41; + * @return The blossomChest. + */ + @java.lang.Override + public int getBlossomChest() { + return blossomChest_; + } + /** + * uint32 blossomChest = 41; + * @param value The blossomChest to set. + * @return This builder for chaining. + */ + public Builder setBlossomChest(int value) { + + blossomChest_ = value; + onChanged(); + return this; + } + /** + * uint32 blossomChest = 41; + * @return This builder for chaining. + */ + public Builder clearBlossomChest() { + + blossomChest_ = 0; + onChanged(); + return this; + } + + private int mpPlayReward_ ; + /** + * uint32 mpPlayReward = 42; + * @return The mpPlayReward. + */ + @java.lang.Override + public int getMpPlayReward() { + return mpPlayReward_; + } + /** + * uint32 mpPlayReward = 42; + * @param value The mpPlayReward to set. + * @return This builder for chaining. + */ + public Builder setMpPlayReward(int value) { + + mpPlayReward_ = value; + onChanged(); + return this; + } + /** + * uint32 mpPlayReward = 42; + * @return This builder for chaining. + */ + public Builder clearMpPlayReward() { + + mpPlayReward_ = 0; + onChanged(); + return this; + } + + private int generalReward_ ; + /** + * uint32 generalReward = 43; + * @return The generalReward. + */ + @java.lang.Override + public int getGeneralReward() { + return generalReward_; + } + /** + * uint32 generalReward = 43; + * @param value The generalReward to set. + * @return This builder for chaining. + */ + public Builder setGeneralReward(int value) { + + generalReward_ = value; + onChanged(); + return this; + } + /** + * uint32 generalReward = 43; + * @return This builder for chaining. + */ + public Builder clearGeneralReward() { + + generalReward_ = 0; + onChanged(); + return this; + } + + private int offeringInfo_ ; + /** + * uint32 offeringInfo = 44; + * @return The offeringInfo. + */ + @java.lang.Override + public int getOfferingInfo() { + return offeringInfo_; + } + /** + * uint32 offeringInfo = 44; + * @param value The offeringInfo to set. + * @return This builder for chaining. + */ + public Builder setOfferingInfo(int value) { + + offeringInfo_ = value; + onChanged(); + return this; + } + /** + * uint32 offeringInfo = 44; + * @return This builder for chaining. + */ + public Builder clearOfferingInfo() { + + offeringInfo_ = 0; + onChanged(); + return this; + } + + private int foundationInfo_ ; + /** + * uint32 foundationInfo = 45; + * @return The foundationInfo. + */ + @java.lang.Override + public int getFoundationInfo() { + return foundationInfo_; + } + /** + * uint32 foundationInfo = 45; + * @param value The foundationInfo to set. + * @return This builder for chaining. + */ + public Builder setFoundationInfo(int value) { + + foundationInfo_ = value; + onChanged(); + return this; + } + /** + * uint32 foundationInfo = 45; + * @return This builder for chaining. + */ + public Builder clearFoundationInfo() { + + foundationInfo_ = 0; + onChanged(); + return this; + } + + private int markFlag_ ; + /** + * uint32 markFlag = 21; + * @return The markFlag. + */ + @java.lang.Override + public int getMarkFlag() { + return markFlag_; + } + /** + * uint32 markFlag = 21; + * @param value The markFlag to set. + * @return This builder for chaining. + */ + public Builder setMarkFlag(int value) { + + markFlag_ = value; + onChanged(); + return this; + } + /** + * uint32 markFlag = 21; + * @return This builder for chaining. + */ + public Builder clearMarkFlag() { + + markFlag_ = 0; + onChanged(); + return this; + } + + private int propOwnerEntityId_ ; + /** + * uint32 propOwnerEntityId = 22; + * @return The propOwnerEntityId. + */ + @java.lang.Override + public int getPropOwnerEntityId() { + return propOwnerEntityId_; + } + /** + * uint32 propOwnerEntityId = 22; + * @param value The propOwnerEntityId to set. + * @return This builder for chaining. + */ + public Builder setPropOwnerEntityId(int value) { + + propOwnerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 propOwnerEntityId = 22; + * @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_; + /** + * .PlatformInfo platform = 23; + * @return Whether the platform field is set. + */ + public boolean hasPlatform() { + return platformBuilder_ != null || platform_ != null; + } + /** + * .PlatformInfo platform = 23; + * @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(); + } + } + /** + * .PlatformInfo platform = 23; + */ + 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; + } + /** + * .PlatformInfo platform = 23; + */ + 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; + } + /** + * .PlatformInfo platform = 23; + */ + 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; + } + /** + * .PlatformInfo platform = 23; + */ + public Builder clearPlatform() { + if (platformBuilder_ == null) { + platform_ = null; + onChanged(); + } else { + platform_ = null; + platformBuilder_ = null; + } + + return this; + } + /** + * .PlatformInfo platform = 23; + */ + public emu.grasscutter.net.proto.PlatformInfoOuterClass.PlatformInfo.Builder getPlatformBuilder() { + + onChanged(); + return getPlatformFieldBuilder().getBuilder(); + } + /** + * .PlatformInfo platform = 23; + */ + 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_; + } + } + /** + * .PlatformInfo platform = 23; + */ + 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; + } + } + /** + * repeated uint32 interactUidList = 24; + * @return A list containing the interactUidList. + */ + public java.util.List + getInteractUidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(interactUidList_) : interactUidList_; + } + /** + * repeated uint32 interactUidList = 24; + * @return The count of interactUidList. + */ + public int getInteractUidListCount() { + return interactUidList_.size(); + } + /** + * repeated uint32 interactUidList = 24; + * @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); + } + /** + * repeated uint32 interactUidList = 24; + * @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; + } + /** + * repeated uint32 interactUidList = 24; + * @param value The interactUidList to add. + * @return This builder for chaining. + */ + public Builder addInteractUidList(int value) { + ensureInteractUidListIsMutable(); + interactUidList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 interactUidList = 24; + * @param values The interactUidList to add. + * @return This builder for chaining. + */ + public Builder addAllInteractUidList( + java.lang.Iterable values) { + ensureInteractUidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, interactUidList_); + onChanged(); + return this; + } + /** + * repeated uint32 interactUidList = 24; + * @return This builder for chaining. + */ + public Builder clearInteractUidList() { + interactUidList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private int draftId_ ; + /** + * uint32 draftId = 25; + * @return The draftId. + */ + @java.lang.Override + public int getDraftId() { + return draftId_; + } + /** + * uint32 draftId = 25; + * @param value The draftId to set. + * @return This builder for chaining. + */ + public Builder setDraftId(int value) { + + draftId_ = value; + onChanged(); + return this; + } + /** + * uint32 draftId = 25; + * @return This builder for chaining. + */ + public Builder clearDraftId() { + + draftId_ = 0; + onChanged(); + return this; + } + + private int gadgetTalkState_ ; + /** + * uint32 gadgetTalkState = 26; + * @return The gadgetTalkState. + */ + @java.lang.Override + public int getGadgetTalkState() { + return gadgetTalkState_; + } + /** + * uint32 gadgetTalkState = 26; + * @param value The gadgetTalkState to set. + * @return This builder for chaining. + */ + public Builder setGadgetTalkState(int value) { + + gadgetTalkState_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetTalkState = 26; + * @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_; + /** + * .GadgetPlayInfo playInfo = 100; + * @return Whether the playInfo field is set. + */ + public boolean hasPlayInfo() { + return playInfoBuilder_ != null || playInfo_ != null; + } + /** + * .GadgetPlayInfo playInfo = 100; + * @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(); + } + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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; + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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; + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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; + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + public Builder clearPlayInfo() { + if (playInfoBuilder_ == null) { + playInfo_ = null; + onChanged(); + } else { + playInfo_ = null; + playInfoBuilder_ = null; + } + + return this; + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + public emu.grasscutter.net.proto.GadgetPlayInfoOuterClass.GadgetPlayInfo.Builder getPlayInfoBuilder() { + + onChanged(); + return getPlayInfoFieldBuilder().getBuilder(); + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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_; + } + } + /** + * .GadgetPlayInfo playInfo = 100; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e0812c8dd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneInitFinishRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 enterSceneToken = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ENTERSCENETOKEN_FIELD_NUMBER = 2; + private int enterSceneToken_; + /** + * uint32 enterSceneToken = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int enterSceneToken_ ; + /** + * uint32 enterSceneToken = 2; + * @return The enterSceneToken. + */ + @java.lang.Override + public int getEnterSceneToken() { + return enterSceneToken_; + } + /** + * uint32 enterSceneToken = 2; + * @param value The enterSceneToken to set. + * @return This builder for chaining. + */ + public Builder setEnterSceneToken(int value) { + + enterSceneToken_ = value; + onChanged(); + return this; + } + /** + * uint32 enterSceneToken = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3bd2e8508 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerNotifyOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 kickerUid = 1; + * @return The kickerUid. + */ + int getKickerUid(); + + /** + * uint32 targetUid = 2; + * @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_; + /** + * uint32 kickerUid = 1; + * @return The kickerUid. + */ + @java.lang.Override + public int getKickerUid() { + return kickerUid_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @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 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_ ; + /** + * uint32 kickerUid = 1; + * @return The kickerUid. + */ + @java.lang.Override + public int getKickerUid() { + return kickerUid_; + } + /** + * uint32 kickerUid = 1; + * @param value The kickerUid to set. + * @return This builder for chaining. + */ + public Builder setKickerUid(int value) { + + kickerUid_ = value; + onChanged(); + return this; + } + /** + * uint32 kickerUid = 1; + * @return This builder for chaining. + */ + public Builder clearKickerUid() { + + kickerUid_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..04ba461da --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 targetUid = 1; + * @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_; + /** + * uint32 targetUid = 1; + * @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 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_ ; + /** + * uint32 targetUid = 1; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 1; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..88281b72f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneKickPlayerRspOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 targetUid = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETUID_FIELD_NUMBER = 2; + private int targetUid_; + /** + * uint32 targetUid = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int targetUid_ ; + /** + * uint32 targetUid = 2; + * @return The targetUid. + */ + @java.lang.Override + public int getTargetUid() { + return targetUid_; + } + /** + * uint32 targetUid = 2; + * @param value The targetUid to set. + * @return This builder for chaining. + */ + public Builder setTargetUid(int value) { + + targetUid_ = value; + onChanged(); + return this; + } + /** + * uint32 targetUid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5c5b702d6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneMonsterInfoOuterClass.java @@ -0,0 +1,2575 @@ +// 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 { + + /** + * uint32 monsterId = 1; + * @return The monsterId. + */ + int getMonsterId(); + + /** + * uint32 groupId = 2; + * @return The groupId. + */ + int getGroupId(); + + /** + * uint32 configId = 3; + * @return The configId. + */ + int getConfigId(); + + /** + * .SceneWeaponInfo weaponList = 4; + * @return Whether the weaponList field is set. + */ + boolean hasWeaponList(); + /** + * .SceneWeaponInfo weaponList = 4; + * @return The weaponList. + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo getWeaponList(); + /** + * .SceneWeaponInfo weaponList = 4; + */ + emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponListOrBuilder(); + + /** + * uint32 authorityPeerId = 5; + * @return The authorityPeerId. + */ + int getAuthorityPeerId(); + + /** + * repeated uint32 affixList = 6; + * @return A list containing the affixList. + */ + java.util.List getAffixListList(); + /** + * repeated uint32 affixList = 6; + * @return The count of affixList. + */ + int getAffixListCount(); + /** + * repeated uint32 affixList = 6; + * @param index The index of the element to return. + * @return The affixList at the given index. + */ + int getAffixList(int index); + + /** + * bool isElite = 7; + * @return The isElite. + */ + boolean getIsElite(); + + /** + * uint32 ownerEntityId = 8; + * @return The ownerEntityId. + */ + int getOwnerEntityId(); + + /** + * uint32 summonedTag = 9; + * @return The summonedTag. + */ + int getSummonedTag(); + + /** + * map<uint32, uint32> summonTagMap = 10; + */ + int getSummonTagMapCount(); + /** + * map<uint32, uint32> summonTagMap = 10; + */ + boolean containsSummonTagMap( + int key); + /** + * Use {@link #getSummonTagMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSummonTagMap(); + /** + * map<uint32, uint32> summonTagMap = 10; + */ + java.util.Map + getSummonTagMapMap(); + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + int getSummonTagMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + int getSummonTagMapOrThrow( + int key); + + /** + * uint32 poseId = 11; + * @return The poseId. + */ + int getPoseId(); + + /** + * .MonsterBornType bornType = 12; + * @return The enum numeric value on the wire for bornType. + */ + int getBornTypeValue(); + /** + * .MonsterBornType bornType = 12; + * @return The bornType. + */ + emu.grasscutter.net.proto.MonsterBornTypeOuterClass.MonsterBornType getBornType(); + + /** + * uint32 blockId = 13; + * @return The blockId. + */ + int getBlockId(); + + /** + * uint32 markFlag = 14; + * @return The markFlag. + */ + int getMarkFlag(); + + /** + * uint32 titleId = 15; + * @return The titleId. + */ + int getTitleId(); + + /** + * uint32 specialNameId = 16; + * @return The specialNameId. + */ + int getSpecialNameId(); + + /** + * uint32 attackTargetId = 17; + * @return The attackTargetId. + */ + int getAttackTargetId(); + + /** + * .MonsterRoute monsterRoute = 18; + * @return Whether the monsterRoute field is set. + */ + boolean hasMonsterRoute(); + /** + * .MonsterRoute monsterRoute = 18; + * @return The monsterRoute. + */ + emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute getMonsterRoute(); + /** + * .MonsterRoute monsterRoute = 18; + */ + emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder getMonsterRouteOrBuilder(); + + /** + * uint32 aiConfigId = 19; + * @return The aiConfigId. + */ + int getAiConfigId(); + + /** + * uint32 unk1 = 21; + * @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 + 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_; + /** + * uint32 monsterId = 1; + * @return The monsterId. + */ + @java.lang.Override + public int getMonsterId() { + return monsterId_; + } + + public static final int GROUPID_FIELD_NUMBER = 2; + private int groupId_; + /** + * uint32 groupId = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + + public static final int CONFIGID_FIELD_NUMBER = 3; + private int configId_; + /** + * uint32 configId = 3; + * @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_; + /** + * .SceneWeaponInfo weaponList = 4; + * @return Whether the weaponList field is set. + */ + @java.lang.Override + public boolean hasWeaponList() { + return weaponList_ != null; + } + /** + * .SceneWeaponInfo weaponList = 4; + * @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_; + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfoOrBuilder getWeaponListOrBuilder() { + return getWeaponList(); + } + + public static final int AUTHORITYPEERID_FIELD_NUMBER = 5; + private int authorityPeerId_; + /** + * uint32 authorityPeerId = 5; + * @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_; + /** + * repeated uint32 affixList = 6; + * @return A list containing the affixList. + */ + @java.lang.Override + public java.util.List + getAffixListList() { + return affixList_; + } + /** + * repeated uint32 affixList = 6; + * @return The count of affixList. + */ + public int getAffixListCount() { + return affixList_.size(); + } + /** + * repeated uint32 affixList = 6; + * @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_; + /** + * bool isElite = 7; + * @return The isElite. + */ + @java.lang.Override + public boolean getIsElite() { + return isElite_; + } + + public static final int OWNERENTITYID_FIELD_NUMBER = 8; + private int ownerEntityId_; + /** + * uint32 ownerEntityId = 8; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + + public static final int SUMMONEDTAG_FIELD_NUMBER = 9; + private int summonedTag_; + /** + * uint32 summonedTag = 9; + * @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 + .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 + internalGetSummonTagMap() { + if (summonTagMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SummonTagMapDefaultEntryHolder.defaultEntry); + } + return summonTagMap_; + } + + public int getSummonTagMapCount() { + return internalGetSummonTagMap().getMap().size(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + @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 getSummonTagMap() { + return getSummonTagMapMap(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public java.util.Map getSummonTagMapMap() { + return internalGetSummonTagMap().getMap(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public int getSummonTagMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSummonTagMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public int getSummonTagMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 poseId = 11; + * @return The poseId. + */ + @java.lang.Override + public int getPoseId() { + return poseId_; + } + + public static final int BORNTYPE_FIELD_NUMBER = 12; + private int bornType_; + /** + * .MonsterBornType bornType = 12; + * @return The enum numeric value on the wire for bornType. + */ + @java.lang.Override public int getBornTypeValue() { + return bornType_; + } + /** + * .MonsterBornType bornType = 12; + * @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_; + /** + * uint32 blockId = 13; + * @return The blockId. + */ + @java.lang.Override + public int getBlockId() { + return blockId_; + } + + public static final int MARKFLAG_FIELD_NUMBER = 14; + private int markFlag_; + /** + * uint32 markFlag = 14; + * @return The markFlag. + */ + @java.lang.Override + public int getMarkFlag() { + return markFlag_; + } + + public static final int TITLEID_FIELD_NUMBER = 15; + private int titleId_; + /** + * uint32 titleId = 15; + * @return The titleId. + */ + @java.lang.Override + public int getTitleId() { + return titleId_; + } + + public static final int SPECIALNAMEID_FIELD_NUMBER = 16; + private int specialNameId_; + /** + * uint32 specialNameId = 16; + * @return The specialNameId. + */ + @java.lang.Override + public int getSpecialNameId() { + return specialNameId_; + } + + public static final int ATTACKTARGETID_FIELD_NUMBER = 17; + private int attackTargetId_; + /** + * uint32 attackTargetId = 17; + * @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_; + /** + * .MonsterRoute monsterRoute = 18; + * @return Whether the monsterRoute field is set. + */ + @java.lang.Override + public boolean hasMonsterRoute() { + return monsterRoute_ != null; + } + /** + * .MonsterRoute monsterRoute = 18; + * @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_; + } + /** + * .MonsterRoute monsterRoute = 18; + */ + @java.lang.Override + public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRouteOrBuilder getMonsterRouteOrBuilder() { + return getMonsterRoute(); + } + + public static final int AICONFIGID_FIELD_NUMBER = 19; + private int aiConfigId_; + /** + * uint32 aiConfigId = 19; + * @return The aiConfigId. + */ + @java.lang.Override + public int getAiConfigId() { + return aiConfigId_; + } + + public static final int UNK1_FIELD_NUMBER = 21; + private int unk1_; + /** + * uint32 unk1 = 21; + * @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 entry + : internalGetSummonTagMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 monsterId = 1; + * @return The monsterId. + */ + @java.lang.Override + public int getMonsterId() { + return monsterId_; + } + /** + * uint32 monsterId = 1; + * @param value The monsterId to set. + * @return This builder for chaining. + */ + public Builder setMonsterId(int value) { + + monsterId_ = value; + onChanged(); + return this; + } + /** + * uint32 monsterId = 1; + * @return This builder for chaining. + */ + public Builder clearMonsterId() { + + monsterId_ = 0; + onChanged(); + return this; + } + + private int groupId_ ; + /** + * uint32 groupId = 2; + * @return The groupId. + */ + @java.lang.Override + public int getGroupId() { + return groupId_; + } + /** + * uint32 groupId = 2; + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(int value) { + + groupId_ = value; + onChanged(); + return this; + } + /** + * uint32 groupId = 2; + * @return This builder for chaining. + */ + public Builder clearGroupId() { + + groupId_ = 0; + onChanged(); + return this; + } + + private int configId_ ; + /** + * uint32 configId = 3; + * @return The configId. + */ + @java.lang.Override + public int getConfigId() { + return configId_; + } + /** + * uint32 configId = 3; + * @param value The configId to set. + * @return This builder for chaining. + */ + public Builder setConfigId(int value) { + + configId_ = value; + onChanged(); + return this; + } + /** + * uint32 configId = 3; + * @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_; + /** + * .SceneWeaponInfo weaponList = 4; + * @return Whether the weaponList field is set. + */ + public boolean hasWeaponList() { + return weaponListBuilder_ != null || weaponList_ != null; + } + /** + * .SceneWeaponInfo weaponList = 4; + * @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(); + } + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + 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; + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + 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; + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + 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; + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + public Builder clearWeaponList() { + if (weaponListBuilder_ == null) { + weaponList_ = null; + onChanged(); + } else { + weaponList_ = null; + weaponListBuilder_ = null; + } + + return this; + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + public emu.grasscutter.net.proto.SceneWeaponInfoOuterClass.SceneWeaponInfo.Builder getWeaponListBuilder() { + + onChanged(); + return getWeaponListFieldBuilder().getBuilder(); + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + 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_; + } + } + /** + * .SceneWeaponInfo weaponList = 4; + */ + 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_ ; + /** + * uint32 authorityPeerId = 5; + * @return The authorityPeerId. + */ + @java.lang.Override + public int getAuthorityPeerId() { + return authorityPeerId_; + } + /** + * uint32 authorityPeerId = 5; + * @param value The authorityPeerId to set. + * @return This builder for chaining. + */ + public Builder setAuthorityPeerId(int value) { + + authorityPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 authorityPeerId = 5; + * @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; + } + } + /** + * repeated uint32 affixList = 6; + * @return A list containing the affixList. + */ + public java.util.List + getAffixListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(affixList_) : affixList_; + } + /** + * repeated uint32 affixList = 6; + * @return The count of affixList. + */ + public int getAffixListCount() { + return affixList_.size(); + } + /** + * repeated uint32 affixList = 6; + * @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); + } + /** + * repeated uint32 affixList = 6; + * @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; + } + /** + * repeated uint32 affixList = 6; + * @param value The affixList to add. + * @return This builder for chaining. + */ + public Builder addAffixList(int value) { + ensureAffixListIsMutable(); + affixList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 affixList = 6; + * @param values The affixList to add. + * @return This builder for chaining. + */ + public Builder addAllAffixList( + java.lang.Iterable values) { + ensureAffixListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, affixList_); + onChanged(); + return this; + } + /** + * repeated uint32 affixList = 6; + * @return This builder for chaining. + */ + public Builder clearAffixList() { + affixList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean isElite_ ; + /** + * bool isElite = 7; + * @return The isElite. + */ + @java.lang.Override + public boolean getIsElite() { + return isElite_; + } + /** + * bool isElite = 7; + * @param value The isElite to set. + * @return This builder for chaining. + */ + public Builder setIsElite(boolean value) { + + isElite_ = value; + onChanged(); + return this; + } + /** + * bool isElite = 7; + * @return This builder for chaining. + */ + public Builder clearIsElite() { + + isElite_ = false; + onChanged(); + return this; + } + + private int ownerEntityId_ ; + /** + * uint32 ownerEntityId = 8; + * @return The ownerEntityId. + */ + @java.lang.Override + public int getOwnerEntityId() { + return ownerEntityId_; + } + /** + * uint32 ownerEntityId = 8; + * @param value The ownerEntityId to set. + * @return This builder for chaining. + */ + public Builder setOwnerEntityId(int value) { + + ownerEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 ownerEntityId = 8; + * @return This builder for chaining. + */ + public Builder clearOwnerEntityId() { + + ownerEntityId_ = 0; + onChanged(); + return this; + } + + private int summonedTag_ ; + /** + * uint32 summonedTag = 9; + * @return The summonedTag. + */ + @java.lang.Override + public int getSummonedTag() { + return summonedTag_; + } + /** + * uint32 summonedTag = 9; + * @param value The summonedTag to set. + * @return This builder for chaining. + */ + public Builder setSummonedTag(int value) { + + summonedTag_ = value; + onChanged(); + return this; + } + /** + * uint32 summonedTag = 9; + * @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 + internalGetSummonTagMap() { + if (summonTagMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SummonTagMapDefaultEntryHolder.defaultEntry); + } + return summonTagMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + @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 getSummonTagMap() { + return getSummonTagMapMap(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public java.util.Map getSummonTagMapMap() { + return internalGetSummonTagMap().getMap(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public int getSummonTagMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSummonTagMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + @java.lang.Override + + public int getSummonTagMapOrThrow( + int key) { + + java.util.Map map = + internalGetSummonTagMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSummonTagMap() { + internalGetMutableSummonTagMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + public Builder removeSummonTagMap( + int key) { + + internalGetMutableSummonTagMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSummonTagMap() { + return internalGetMutableSummonTagMap().getMutableMap(); + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + public Builder putSummonTagMap( + int key, + int value) { + + + internalGetMutableSummonTagMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> summonTagMap = 10; + */ + + public Builder putAllSummonTagMap( + java.util.Map values) { + internalGetMutableSummonTagMap().getMutableMap() + .putAll(values); + return this; + } + + private int poseId_ ; + /** + * uint32 poseId = 11; + * @return The poseId. + */ + @java.lang.Override + public int getPoseId() { + return poseId_; + } + /** + * uint32 poseId = 11; + * @param value The poseId to set. + * @return This builder for chaining. + */ + public Builder setPoseId(int value) { + + poseId_ = value; + onChanged(); + return this; + } + /** + * uint32 poseId = 11; + * @return This builder for chaining. + */ + public Builder clearPoseId() { + + poseId_ = 0; + onChanged(); + return this; + } + + private int bornType_ = 0; + /** + * .MonsterBornType bornType = 12; + * @return The enum numeric value on the wire for bornType. + */ + @java.lang.Override public int getBornTypeValue() { + return bornType_; + } + /** + * .MonsterBornType bornType = 12; + * @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; + } + /** + * .MonsterBornType bornType = 12; + * @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; + } + /** + * .MonsterBornType bornType = 12; + * @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; + } + /** + * .MonsterBornType bornType = 12; + * @return This builder for chaining. + */ + public Builder clearBornType() { + + bornType_ = 0; + onChanged(); + return this; + } + + private int blockId_ ; + /** + * uint32 blockId = 13; + * @return The blockId. + */ + @java.lang.Override + public int getBlockId() { + return blockId_; + } + /** + * uint32 blockId = 13; + * @param value The blockId to set. + * @return This builder for chaining. + */ + public Builder setBlockId(int value) { + + blockId_ = value; + onChanged(); + return this; + } + /** + * uint32 blockId = 13; + * @return This builder for chaining. + */ + public Builder clearBlockId() { + + blockId_ = 0; + onChanged(); + return this; + } + + private int markFlag_ ; + /** + * uint32 markFlag = 14; + * @return The markFlag. + */ + @java.lang.Override + public int getMarkFlag() { + return markFlag_; + } + /** + * uint32 markFlag = 14; + * @param value The markFlag to set. + * @return This builder for chaining. + */ + public Builder setMarkFlag(int value) { + + markFlag_ = value; + onChanged(); + return this; + } + /** + * uint32 markFlag = 14; + * @return This builder for chaining. + */ + public Builder clearMarkFlag() { + + markFlag_ = 0; + onChanged(); + return this; + } + + private int titleId_ ; + /** + * uint32 titleId = 15; + * @return The titleId. + */ + @java.lang.Override + public int getTitleId() { + return titleId_; + } + /** + * uint32 titleId = 15; + * @param value The titleId to set. + * @return This builder for chaining. + */ + public Builder setTitleId(int value) { + + titleId_ = value; + onChanged(); + return this; + } + /** + * uint32 titleId = 15; + * @return This builder for chaining. + */ + public Builder clearTitleId() { + + titleId_ = 0; + onChanged(); + return this; + } + + private int specialNameId_ ; + /** + * uint32 specialNameId = 16; + * @return The specialNameId. + */ + @java.lang.Override + public int getSpecialNameId() { + return specialNameId_; + } + /** + * uint32 specialNameId = 16; + * @param value The specialNameId to set. + * @return This builder for chaining. + */ + public Builder setSpecialNameId(int value) { + + specialNameId_ = value; + onChanged(); + return this; + } + /** + * uint32 specialNameId = 16; + * @return This builder for chaining. + */ + public Builder clearSpecialNameId() { + + specialNameId_ = 0; + onChanged(); + return this; + } + + private int attackTargetId_ ; + /** + * uint32 attackTargetId = 17; + * @return The attackTargetId. + */ + @java.lang.Override + public int getAttackTargetId() { + return attackTargetId_; + } + /** + * uint32 attackTargetId = 17; + * @param value The attackTargetId to set. + * @return This builder for chaining. + */ + public Builder setAttackTargetId(int value) { + + attackTargetId_ = value; + onChanged(); + return this; + } + /** + * uint32 attackTargetId = 17; + * @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_; + /** + * .MonsterRoute monsterRoute = 18; + * @return Whether the monsterRoute field is set. + */ + public boolean hasMonsterRoute() { + return monsterRouteBuilder_ != null || monsterRoute_ != null; + } + /** + * .MonsterRoute monsterRoute = 18; + * @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(); + } + } + /** + * .MonsterRoute monsterRoute = 18; + */ + 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; + } + /** + * .MonsterRoute monsterRoute = 18; + */ + 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; + } + /** + * .MonsterRoute monsterRoute = 18; + */ + 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; + } + /** + * .MonsterRoute monsterRoute = 18; + */ + public Builder clearMonsterRoute() { + if (monsterRouteBuilder_ == null) { + monsterRoute_ = null; + onChanged(); + } else { + monsterRoute_ = null; + monsterRouteBuilder_ = null; + } + + return this; + } + /** + * .MonsterRoute monsterRoute = 18; + */ + public emu.grasscutter.net.proto.MonsterRouteOuterClass.MonsterRoute.Builder getMonsterRouteBuilder() { + + onChanged(); + return getMonsterRouteFieldBuilder().getBuilder(); + } + /** + * .MonsterRoute monsterRoute = 18; + */ + 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_; + } + } + /** + * .MonsterRoute monsterRoute = 18; + */ + 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_ ; + /** + * uint32 aiConfigId = 19; + * @return The aiConfigId. + */ + @java.lang.Override + public int getAiConfigId() { + return aiConfigId_; + } + /** + * uint32 aiConfigId = 19; + * @param value The aiConfigId to set. + * @return This builder for chaining. + */ + public Builder setAiConfigId(int value) { + + aiConfigId_ = value; + onChanged(); + return this; + } + /** + * uint32 aiConfigId = 19; + * @return This builder for chaining. + */ + public Builder clearAiConfigId() { + + aiConfigId_ = 0; + onChanged(); + return this; + } + + private int unk1_ ; + /** + * uint32 unk1 = 21; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + /** + * uint32 unk1 = 21; + * @param value The unk1 to set. + * @return This builder for chaining. + */ + public Builder setUnk1(int value) { + + unk1_ = value; + onChanged(); + return this; + } + /** + * uint32 unk1 = 21; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..048726277 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneNpcInfoOuterClass.java @@ -0,0 +1,747 @@ +// 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 { + + /** + * uint32 npcId = 1; + * @return The npcId. + */ + int getNpcId(); + + /** + * uint32 roomId = 2; + * @return The roomId. + */ + int getRoomId(); + + /** + * uint32 parentQuestId = 3; + * @return The parentQuestId. + */ + int getParentQuestId(); + + /** + * uint32 blockId = 4; + * @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_; + /** + * uint32 npcId = 1; + * @return The npcId. + */ + @java.lang.Override + public int getNpcId() { + return npcId_; + } + + public static final int ROOMID_FIELD_NUMBER = 2; + private int roomId_; + /** + * uint32 roomId = 2; + * @return The roomId. + */ + @java.lang.Override + public int getRoomId() { + return roomId_; + } + + public static final int PARENTQUESTID_FIELD_NUMBER = 3; + private int parentQuestId_; + /** + * uint32 parentQuestId = 3; + * @return The parentQuestId. + */ + @java.lang.Override + public int getParentQuestId() { + return parentQuestId_; + } + + public static final int BLOCKID_FIELD_NUMBER = 4; + private int blockId_; + /** + * uint32 blockId = 4; + * @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 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_ ; + /** + * uint32 npcId = 1; + * @return The npcId. + */ + @java.lang.Override + public int getNpcId() { + return npcId_; + } + /** + * uint32 npcId = 1; + * @param value The npcId to set. + * @return This builder for chaining. + */ + public Builder setNpcId(int value) { + + npcId_ = value; + onChanged(); + return this; + } + /** + * uint32 npcId = 1; + * @return This builder for chaining. + */ + public Builder clearNpcId() { + + npcId_ = 0; + onChanged(); + return this; + } + + private int roomId_ ; + /** + * uint32 roomId = 2; + * @return The roomId. + */ + @java.lang.Override + public int getRoomId() { + return roomId_; + } + /** + * uint32 roomId = 2; + * @param value The roomId to set. + * @return This builder for chaining. + */ + public Builder setRoomId(int value) { + + roomId_ = value; + onChanged(); + return this; + } + /** + * uint32 roomId = 2; + * @return This builder for chaining. + */ + public Builder clearRoomId() { + + roomId_ = 0; + onChanged(); + return this; + } + + private int parentQuestId_ ; + /** + * uint32 parentQuestId = 3; + * @return The parentQuestId. + */ + @java.lang.Override + public int getParentQuestId() { + return parentQuestId_; + } + /** + * uint32 parentQuestId = 3; + * @param value The parentQuestId to set. + * @return This builder for chaining. + */ + public Builder setParentQuestId(int value) { + + parentQuestId_ = value; + onChanged(); + return this; + } + /** + * uint32 parentQuestId = 3; + * @return This builder for chaining. + */ + public Builder clearParentQuestId() { + + parentQuestId_ = 0; + onChanged(); + return this; + } + + private int blockId_ ; + /** + * uint32 blockId = 4; + * @return The blockId. + */ + @java.lang.Override + public int getBlockId() { + return blockId_; + } + /** + * uint32 blockId = 4; + * @param value The blockId to set. + * @return This builder for chaining. + */ + public Builder setBlockId(int value) { + + blockId_ = value; + onChanged(); + return this; + } + /** + * uint32 blockId = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1ee7ebbc7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoNotifyOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + java.util.List + getPlayerInfoListList(); + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index); + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + int getPlayerInfoListCount(); + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + java.util.List + getPlayerInfoListOrBuilderList(); + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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(); + 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 playerInfoList_; + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public java.util.List getPlayerInfoListList() { + return playerInfoList_; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public java.util.List + getPlayerInfoListOrBuilderList() { + return playerInfoList_; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public int getPlayerInfoListCount() { + return playerInfoList_.size(); + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index) { + return playerInfoList_.get(index); + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + @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 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 playerInfoList_ = + java.util.Collections.emptyList(); + private void ensurePlayerInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + playerInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public java.util.List getPlayerInfoListList() { + if (playerInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerInfoList_); + } else { + return playerInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public int getPlayerInfoListCount() { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.size(); + } else { + return playerInfoListBuilder_.getCount(); + } + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo getPlayerInfoList(int index) { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.get(index); + } else { + return playerInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public Builder addAllPlayerInfoList( + java.lang.Iterable values) { + if (playerInfoListBuilder_ == null) { + ensurePlayerInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerInfoList_); + onChanged(); + } else { + playerInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public Builder clearPlayerInfoList() { + if (playerInfoListBuilder_ == null) { + playerInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + playerInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public Builder removePlayerInfoList(int index) { + if (playerInfoListBuilder_ == null) { + ensurePlayerInfoListIsMutable(); + playerInfoList_.remove(index); + onChanged(); + } else { + playerInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder getPlayerInfoListBuilder( + int index) { + return getPlayerInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfoOrBuilder getPlayerInfoListOrBuilder( + int index) { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.get(index); } else { + return playerInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public java.util.List + getPlayerInfoListOrBuilderList() { + if (playerInfoListBuilder_ != null) { + return playerInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerInfoList_); + } + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder addPlayerInfoListBuilder() { + return getPlayerInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance()); + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.Builder addPlayerInfoListBuilder( + int index) { + return getPlayerInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo.getDefaultInstance()); + } + /** + * repeated .ScenePlayerInfo playerInfoList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a9cb00102 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ScenePlayerInfoOuterClass.java @@ -0,0 +1,1105 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * uint32 peerId = 2; + * @return The peerId. + */ + int getPeerId(); + + /** + * string name = 3; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 3; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * bool isConnected = 4; + * @return The isConnected. + */ + boolean getIsConnected(); + + /** + * uint32 sceneId = 5; + * @return The sceneId. + */ + int getSceneId(); + + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @return Whether the onlinePlayerInfo field is set. + */ + boolean hasOnlinePlayerInfo(); + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @return The onlinePlayerInfo. + */ + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getOnlinePlayerInfo(); + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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_; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + + public static final int PEERID_FIELD_NUMBER = 2; + private int peerId_; + /** + * uint32 peerId = 2; + * @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_; + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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_; + /** + * bool isConnected = 4; + * @return The isConnected. + */ + @java.lang.Override + public boolean getIsConnected() { + return isConnected_; + } + + public static final int SCENEID_FIELD_NUMBER = 5; + private int sceneId_; + /** + * uint32 sceneId = 5; + * @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_; + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @return Whether the onlinePlayerInfo field is set. + */ + @java.lang.Override + public boolean hasOnlinePlayerInfo() { + return onlinePlayerInfo_ != null; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @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_; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private int peerId_ ; + /** + * uint32 peerId = 2; + * @return The peerId. + */ + @java.lang.Override + public int getPeerId() { + return peerId_; + } + /** + * uint32 peerId = 2; + * @param value The peerId to set. + * @return This builder for chaining. + */ + public Builder setPeerId(int value) { + + peerId_ = value; + onChanged(); + return this; + } + /** + * uint32 peerId = 2; + * @return This builder for chaining. + */ + public Builder clearPeerId() { + + peerId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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; + } + } + /** + * string name = 3; + * @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; + } + /** + * string name = 3; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 3; + * @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_ ; + /** + * bool isConnected = 4; + * @return The isConnected. + */ + @java.lang.Override + public boolean getIsConnected() { + return isConnected_; + } + /** + * bool isConnected = 4; + * @param value The isConnected to set. + * @return This builder for chaining. + */ + public Builder setIsConnected(boolean value) { + + isConnected_ = value; + onChanged(); + return this; + } + /** + * bool isConnected = 4; + * @return This builder for chaining. + */ + public Builder clearIsConnected() { + + isConnected_ = false; + onChanged(); + return this; + } + + private int sceneId_ ; + /** + * uint32 sceneId = 5; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 5; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 5; + * @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_; + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @return Whether the onlinePlayerInfo field is set. + */ + public boolean hasOnlinePlayerInfo() { + return onlinePlayerInfoBuilder_ != null || onlinePlayerInfo_ != null; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + * @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(); + } + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + public Builder clearOnlinePlayerInfo() { + if (onlinePlayerInfoBuilder_ == null) { + onlinePlayerInfo_ = null; + onChanged(); + } else { + onlinePlayerInfo_ = null; + onlinePlayerInfoBuilder_ = null; + } + + return this; + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getOnlinePlayerInfoBuilder() { + + onChanged(); + return getOnlinePlayerInfoFieldBuilder().getBuilder(); + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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_; + } + } + /** + * .OnlinePlayerInfo onlinePlayerInfo = 6; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e3a1c19ce --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ScenePlayerLocationNotifyOuterClass.java @@ -0,0 +1,915 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + java.util.List + getPlayerLocListList(); + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index); + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + int getPlayerLocListCount(); + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + java.util.List + getPlayerLocListOrBuilderList(); + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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(); + 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_; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int PLAYERLOCLIST_FIELD_NUMBER = 2; + private java.util.List playerLocList_; + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + @java.lang.Override + public java.util.List getPlayerLocListList() { + return playerLocList_; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + @java.lang.Override + public java.util.List + getPlayerLocListOrBuilderList() { + return playerLocList_; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + @java.lang.Override + public int getPlayerLocListCount() { + return playerLocList_.size(); + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { + return playerLocList_.get(index); + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private java.util.List playerLocList_ = + java.util.Collections.emptyList(); + private void ensurePlayerLocListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + playerLocList_ = new java.util.ArrayList(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_; + + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public java.util.List getPlayerLocListList() { + if (playerLocListBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerLocList_); + } else { + return playerLocListBuilder_.getMessageList(); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public int getPlayerLocListCount() { + if (playerLocListBuilder_ == null) { + return playerLocList_.size(); + } else { + return playerLocListBuilder_.getCount(); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { + if (playerLocListBuilder_ == null) { + return playerLocList_.get(index); + } else { + return playerLocListBuilder_.getMessage(index); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public Builder addAllPlayerLocList( + java.lang.Iterable values) { + if (playerLocListBuilder_ == null) { + ensurePlayerLocListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerLocList_); + onChanged(); + } else { + playerLocListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public Builder clearPlayerLocList() { + if (playerLocListBuilder_ == null) { + playerLocList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + playerLocListBuilder_.clear(); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public Builder removePlayerLocList(int index) { + if (playerLocListBuilder_ == null) { + ensurePlayerLocListIsMutable(); + playerLocList_.remove(index); + onChanged(); + } else { + playerLocListBuilder_.remove(index); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder getPlayerLocListBuilder( + int index) { + return getPlayerLocListFieldBuilder().getBuilder(index); + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( + int index) { + if (playerLocListBuilder_ == null) { + return playerLocList_.get(index); } else { + return playerLocListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public java.util.List + getPlayerLocListOrBuilderList() { + if (playerLocListBuilder_ != null) { + return playerLocListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerLocList_); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder() { + return getPlayerLocListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder( + int index) { + return getPlayerLocListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); + } + /** + * repeated .PlayerLocationInfo playerLocList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3b310c439 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneReliquaryInfoOuterClass.java @@ -0,0 +1,748 @@ +// 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 { + + /** + * uint32 itemId = 1; + * @return The itemId. + */ + int getItemId(); + + /** + * uint64 guid = 2; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 level = 3; + * @return The level. + */ + int getLevel(); + + /** + * uint32 promoteLevel = 4; + * @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_; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int GUID_FIELD_NUMBER = 2; + private long guid_; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private int level_; + /** + * uint32 level = 3; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int PROMOTELEVEL_FIELD_NUMBER = 4; + private int promoteLevel_; + /** + * uint32 promoteLevel = 4; + * @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 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_ ; + /** + * uint32 itemId = 1; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 1; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 1; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 2; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 2; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int level_ ; + /** + * uint32 level = 3; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 3; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 3; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int promoteLevel_ ; + /** + * uint32 promoteLevel = 4; + * @return The promoteLevel. + */ + @java.lang.Override + public int getPromoteLevel() { + return promoteLevel_; + } + /** + * uint32 promoteLevel = 4; + * @param value The promoteLevel to set. + * @return This builder for chaining. + */ + public Builder setPromoteLevel(int value) { + + promoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 promoteLevel = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3a0b09c04 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneTeamAvatarOuterClass.java @@ -0,0 +1,2721 @@ +// 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 { + + /** + * uint32 playerId = 1; + * @return The playerId. + */ + int getPlayerId(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 sceneId = 3; + * @return The sceneId. + */ + int getSceneId(); + + /** + * uint32 entityId = 4; + * @return The entityId. + */ + int getEntityId(); + + /** + * .AvatarInfo avatarInfo = 5; + * @return Whether the avatarInfo field is set. + */ + boolean hasAvatarInfo(); + /** + * .AvatarInfo avatarInfo = 5; + * @return The avatarInfo. + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo getAvatarInfo(); + /** + * .AvatarInfo avatarInfo = 5; + */ + emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfoOrBuilder getAvatarInfoOrBuilder(); + + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @return Whether the sceneAvatarInfo field is set. + */ + boolean hasSceneAvatarInfo(); + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @return The sceneAvatarInfo. + */ + emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo getSceneAvatarInfo(); + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfoOrBuilder getSceneAvatarInfoOrBuilder(); + + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @return Whether the avatarAbilityInfo field is set. + */ + boolean hasAvatarAbilityInfo(); + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @return The avatarAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAvatarAbilityInfo(); + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAvatarAbilityInfoOrBuilder(); + + /** + * repeated .ServerBuff serverBuffList = 8; + */ + java.util.List + getServerBuffListList(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + int getServerBuffListCount(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + java.util.List + getServerBuffListOrBuilderList(); + /** + * repeated .ServerBuff serverBuffList = 8; + */ + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( + int index); + + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @return Whether the sceneEntityInfo field is set. + */ + boolean hasSceneEntityInfo(); + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @return The sceneEntityInfo. + */ + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo getSceneEntityInfo(); + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getSceneEntityInfoOrBuilder(); + + /** + * uint64 weaponGuid = 10; + * @return The weaponGuid. + */ + long getWeaponGuid(); + + /** + * uint32 weaponEntityId = 11; + * @return The weaponEntityId. + */ + int getWeaponEntityId(); + + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @return Whether the weaponAbilityInfo field is set. + */ + boolean hasWeaponAbilityInfo(); + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @return The weaponAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getWeaponAbilityInfo(); + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getWeaponAbilityInfoOrBuilder(); + + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @return Whether the abilityControlBlock field is set. + */ + boolean hasAbilityControlBlock(); + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @return The abilityControlBlock. + */ + emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock(); + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder(); + + /** + * bool isReconnect = 14; + * @return The isReconnect. + */ + boolean getIsReconnect(); + + /** + * bool isPlayerCurAvatar = 15; + * @return The isPlayerCurAvatar. + */ + boolean getIsPlayerCurAvatar(); + + /** + * bool isOnScene = 16; + * @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(); + 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_; + /** + * uint32 playerId = 1; + * @return The playerId. + */ + @java.lang.Override + public int getPlayerId() { + return playerId_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int SCENEID_FIELD_NUMBER = 3; + private int sceneId_; + /** + * uint32 sceneId = 3; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int ENTITYID_FIELD_NUMBER = 4; + private int entityId_; + /** + * uint32 entityId = 4; + * @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_; + /** + * .AvatarInfo avatarInfo = 5; + * @return Whether the avatarInfo field is set. + */ + @java.lang.Override + public boolean hasAvatarInfo() { + return avatarInfo_ != null; + } + /** + * .AvatarInfo avatarInfo = 5; + * @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_; + } + /** + * .AvatarInfo avatarInfo = 5; + */ + @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_; + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @return Whether the sceneAvatarInfo field is set. + */ + @java.lang.Override + public boolean hasSceneAvatarInfo() { + return sceneAvatarInfo_ != null; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @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_; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + @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_; + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @return Whether the avatarAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasAvatarAbilityInfo() { + return avatarAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @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_; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + @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 serverBuffList_; + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public java.util.List getServerBuffListList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public java.util.List + getServerBuffListOrBuilderList() { + return serverBuffList_; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public int getServerBuffListCount() { + return serverBuffList_.size(); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + return serverBuffList_.get(index); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + @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_; + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @return Whether the sceneEntityInfo field is set. + */ + @java.lang.Override + public boolean hasSceneEntityInfo() { + return sceneEntityInfo_ != null; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @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_; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfoOrBuilder getSceneEntityInfoOrBuilder() { + return getSceneEntityInfo(); + } + + public static final int WEAPONGUID_FIELD_NUMBER = 10; + private long weaponGuid_; + /** + * uint64 weaponGuid = 10; + * @return The weaponGuid. + */ + @java.lang.Override + public long getWeaponGuid() { + return weaponGuid_; + } + + public static final int WEAPONENTITYID_FIELD_NUMBER = 11; + private int weaponEntityId_; + /** + * uint32 weaponEntityId = 11; + * @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_; + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @return Whether the weaponAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasWeaponAbilityInfo() { + return weaponAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @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_; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + @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_; + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @return Whether the abilityControlBlock field is set. + */ + @java.lang.Override + public boolean hasAbilityControlBlock() { + return abilityControlBlock_ != null; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @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_; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() { + return getAbilityControlBlock(); + } + + public static final int ISRECONNECT_FIELD_NUMBER = 14; + private boolean isReconnect_; + /** + * bool isReconnect = 14; + * @return The isReconnect. + */ + @java.lang.Override + public boolean getIsReconnect() { + return isReconnect_; + } + + public static final int ISPLAYERCURAVATAR_FIELD_NUMBER = 15; + private boolean isPlayerCurAvatar_; + /** + * bool isPlayerCurAvatar = 15; + * @return The isPlayerCurAvatar. + */ + @java.lang.Override + public boolean getIsPlayerCurAvatar() { + return isPlayerCurAvatar_; + } + + public static final int ISONSCENE_FIELD_NUMBER = 16; + private boolean isOnScene_; + /** + * bool isOnScene = 16; + * @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 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_ ; + /** + * uint32 playerId = 1; + * @return The playerId. + */ + @java.lang.Override + public int getPlayerId() { + return playerId_; + } + /** + * uint32 playerId = 1; + * @param value The playerId to set. + * @return This builder for chaining. + */ + public Builder setPlayerId(int value) { + + playerId_ = value; + onChanged(); + return this; + } + /** + * uint32 playerId = 1; + * @return This builder for chaining. + */ + public Builder clearPlayerId() { + + playerId_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int sceneId_ ; + /** + * uint32 sceneId = 3; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 3; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 3; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private int entityId_ ; + /** + * uint32 entityId = 4; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 4; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 4; + * @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_; + /** + * .AvatarInfo avatarInfo = 5; + * @return Whether the avatarInfo field is set. + */ + public boolean hasAvatarInfo() { + return avatarInfoBuilder_ != null || avatarInfo_ != null; + } + /** + * .AvatarInfo avatarInfo = 5; + * @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(); + } + } + /** + * .AvatarInfo avatarInfo = 5; + */ + 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; + } + /** + * .AvatarInfo avatarInfo = 5; + */ + 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; + } + /** + * .AvatarInfo avatarInfo = 5; + */ + 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; + } + /** + * .AvatarInfo avatarInfo = 5; + */ + public Builder clearAvatarInfo() { + if (avatarInfoBuilder_ == null) { + avatarInfo_ = null; + onChanged(); + } else { + avatarInfo_ = null; + avatarInfoBuilder_ = null; + } + + return this; + } + /** + * .AvatarInfo avatarInfo = 5; + */ + public emu.grasscutter.net.proto.AvatarInfoOuterClass.AvatarInfo.Builder getAvatarInfoBuilder() { + + onChanged(); + return getAvatarInfoFieldBuilder().getBuilder(); + } + /** + * .AvatarInfo avatarInfo = 5; + */ + 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_; + } + } + /** + * .AvatarInfo avatarInfo = 5; + */ + 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_; + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @return Whether the sceneAvatarInfo field is set. + */ + public boolean hasSceneAvatarInfo() { + return sceneAvatarInfoBuilder_ != null || sceneAvatarInfo_ != null; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + * @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(); + } + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + 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; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + 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; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + 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; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + public Builder clearSceneAvatarInfo() { + if (sceneAvatarInfoBuilder_ == null) { + sceneAvatarInfo_ = null; + onChanged(); + } else { + sceneAvatarInfo_ = null; + sceneAvatarInfoBuilder_ = null; + } + + return this; + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + public emu.grasscutter.net.proto.SceneAvatarInfoOuterClass.SceneAvatarInfo.Builder getSceneAvatarInfoBuilder() { + + onChanged(); + return getSceneAvatarInfoFieldBuilder().getBuilder(); + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + 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_; + } + } + /** + * .SceneAvatarInfo sceneAvatarInfo = 6; + */ + 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_; + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @return Whether the avatarAbilityInfo field is set. + */ + public boolean hasAvatarAbilityInfo() { + return avatarAbilityInfoBuilder_ != null || avatarAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + * @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(); + } + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + public Builder clearAvatarAbilityInfo() { + if (avatarAbilityInfoBuilder_ == null) { + avatarAbilityInfo_ = null; + onChanged(); + } else { + avatarAbilityInfo_ = null; + avatarAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAvatarAbilityInfoBuilder() { + + onChanged(); + return getAvatarAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo avatarAbilityInfo = 7; + */ + 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 serverBuffList_ = + java.util.Collections.emptyList(); + private void ensureServerBuffListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + serverBuffList_ = new java.util.ArrayList(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_; + + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List getServerBuffListList() { + if (serverBuffListBuilder_ == null) { + return java.util.Collections.unmodifiableList(serverBuffList_); + } else { + return serverBuffListBuilder_.getMessageList(); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public int getServerBuffListCount() { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.size(); + } else { + return serverBuffListBuilder_.getCount(); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff getServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); + } else { + return serverBuffListBuilder_.getMessage(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + 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; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder addAllServerBuffList( + java.lang.Iterable values) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serverBuffList_); + onChanged(); + } else { + serverBuffListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder clearServerBuffList() { + if (serverBuffListBuilder_ == null) { + serverBuffList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + serverBuffListBuilder_.clear(); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public Builder removeServerBuffList(int index) { + if (serverBuffListBuilder_ == null) { + ensureServerBuffListIsMutable(); + serverBuffList_.remove(index); + onChanged(); + } else { + serverBuffListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder getServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().getBuilder(index); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuffOrBuilder getServerBuffListOrBuilder( + int index) { + if (serverBuffListBuilder_ == null) { + return serverBuffList_.get(index); } else { + return serverBuffListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List + getServerBuffListOrBuilderList() { + if (serverBuffListBuilder_ != null) { + return serverBuffListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serverBuffList_); + } + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder() { + return getServerBuffListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.Builder addServerBuffListBuilder( + int index) { + return getServerBuffListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ServerBuffOuterClass.ServerBuff.getDefaultInstance()); + } + /** + * repeated .ServerBuff serverBuffList = 8; + */ + public java.util.List + 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_; + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @return Whether the sceneEntityInfo field is set. + */ + public boolean hasSceneEntityInfo() { + return sceneEntityInfoBuilder_ != null || sceneEntityInfo_ != null; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + * @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(); + } + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + 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; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + 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; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + 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; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + public Builder clearSceneEntityInfo() { + if (sceneEntityInfoBuilder_ == null) { + sceneEntityInfo_ = null; + onChanged(); + } else { + sceneEntityInfo_ = null; + sceneEntityInfoBuilder_ = null; + } + + return this; + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo.Builder getSceneEntityInfoBuilder() { + + onChanged(); + return getSceneEntityInfoFieldBuilder().getBuilder(); + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + 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_; + } + } + /** + * .SceneEntityInfo sceneEntityInfo = 9; + */ + 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_ ; + /** + * uint64 weaponGuid = 10; + * @return The weaponGuid. + */ + @java.lang.Override + public long getWeaponGuid() { + return weaponGuid_; + } + /** + * uint64 weaponGuid = 10; + * @param value The weaponGuid to set. + * @return This builder for chaining. + */ + public Builder setWeaponGuid(long value) { + + weaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 weaponGuid = 10; + * @return This builder for chaining. + */ + public Builder clearWeaponGuid() { + + weaponGuid_ = 0L; + onChanged(); + return this; + } + + private int weaponEntityId_ ; + /** + * uint32 weaponEntityId = 11; + * @return The weaponEntityId. + */ + @java.lang.Override + public int getWeaponEntityId() { + return weaponEntityId_; + } + /** + * uint32 weaponEntityId = 11; + * @param value The weaponEntityId to set. + * @return This builder for chaining. + */ + public Builder setWeaponEntityId(int value) { + + weaponEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 weaponEntityId = 11; + * @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_; + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @return Whether the weaponAbilityInfo field is set. + */ + public boolean hasWeaponAbilityInfo() { + return weaponAbilityInfoBuilder_ != null || weaponAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + * @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(); + } + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + 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; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + public Builder clearWeaponAbilityInfo() { + if (weaponAbilityInfoBuilder_ == null) { + weaponAbilityInfo_ = null; + onChanged(); + } else { + weaponAbilityInfo_ = null; + weaponAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getWeaponAbilityInfoBuilder() { + + onChanged(); + return getWeaponAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo weaponAbilityInfo = 12; + */ + 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_; + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @return Whether the abilityControlBlock field is set. + */ + public boolean hasAbilityControlBlock() { + return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + * @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(); + } + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + 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; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + public Builder clearAbilityControlBlock() { + if (abilityControlBlockBuilder_ == null) { + abilityControlBlock_ = null; + onChanged(); + } else { + abilityControlBlock_ = null; + abilityControlBlockBuilder_ = null; + } + + return this; + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() { + + onChanged(); + return getAbilityControlBlockFieldBuilder().getBuilder(); + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + 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_; + } + } + /** + * .AbilityControlBlock abilityControlBlock = 13; + */ + 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_ ; + /** + * bool isReconnect = 14; + * @return The isReconnect. + */ + @java.lang.Override + public boolean getIsReconnect() { + return isReconnect_; + } + /** + * bool isReconnect = 14; + * @param value The isReconnect to set. + * @return This builder for chaining. + */ + public Builder setIsReconnect(boolean value) { + + isReconnect_ = value; + onChanged(); + return this; + } + /** + * bool isReconnect = 14; + * @return This builder for chaining. + */ + public Builder clearIsReconnect() { + + isReconnect_ = false; + onChanged(); + return this; + } + + private boolean isPlayerCurAvatar_ ; + /** + * bool isPlayerCurAvatar = 15; + * @return The isPlayerCurAvatar. + */ + @java.lang.Override + public boolean getIsPlayerCurAvatar() { + return isPlayerCurAvatar_; + } + /** + * bool isPlayerCurAvatar = 15; + * @param value The isPlayerCurAvatar to set. + * @return This builder for chaining. + */ + public Builder setIsPlayerCurAvatar(boolean value) { + + isPlayerCurAvatar_ = value; + onChanged(); + return this; + } + /** + * bool isPlayerCurAvatar = 15; + * @return This builder for chaining. + */ + public Builder clearIsPlayerCurAvatar() { + + isPlayerCurAvatar_ = false; + onChanged(); + return this; + } + + private boolean isOnScene_ ; + /** + * bool isOnScene = 16; + * @return The isOnScene. + */ + @java.lang.Override + public boolean getIsOnScene() { + return isOnScene_; + } + /** + * bool isOnScene = 16; + * @param value The isOnScene to set. + * @return This builder for chaining. + */ + public Builder setIsOnScene(boolean value) { + + isOnScene_ = value; + onChanged(); + return this; + } + /** + * bool isOnScene = 16; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..08800417a --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneTeamUpdateNotifyOuterClass.java @@ -0,0 +1,916 @@ +// 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 { + + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + java.util.List + getSceneTeamAvatarListList(); + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index); + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + int getSceneTeamAvatarListCount(); + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + java.util.List + getSceneTeamAvatarListOrBuilderList(); + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder( + int index); + + /** + * bool isInMp = 3; + * @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(); + 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 sceneTeamAvatarList_; + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + @java.lang.Override + public java.util.List getSceneTeamAvatarListList() { + return sceneTeamAvatarList_; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + @java.lang.Override + public java.util.List + getSceneTeamAvatarListOrBuilderList() { + return sceneTeamAvatarList_; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + @java.lang.Override + public int getSceneTeamAvatarListCount() { + return sceneTeamAvatarList_.size(); + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index) { + return sceneTeamAvatarList_.get(index); + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + @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_; + /** + * bool isInMp = 3; + * @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 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 sceneTeamAvatarList_ = + java.util.Collections.emptyList(); + private void ensureSceneTeamAvatarListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sceneTeamAvatarList_ = new java.util.ArrayList(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_; + + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public java.util.List getSceneTeamAvatarListList() { + if (sceneTeamAvatarListBuilder_ == null) { + return java.util.Collections.unmodifiableList(sceneTeamAvatarList_); + } else { + return sceneTeamAvatarListBuilder_.getMessageList(); + } + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public int getSceneTeamAvatarListCount() { + if (sceneTeamAvatarListBuilder_ == null) { + return sceneTeamAvatarList_.size(); + } else { + return sceneTeamAvatarListBuilder_.getCount(); + } + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar getSceneTeamAvatarList(int index) { + if (sceneTeamAvatarListBuilder_ == null) { + return sceneTeamAvatarList_.get(index); + } else { + return sceneTeamAvatarListBuilder_.getMessage(index); + } + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + 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; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public Builder addAllSceneTeamAvatarList( + java.lang.Iterable values) { + if (sceneTeamAvatarListBuilder_ == null) { + ensureSceneTeamAvatarListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sceneTeamAvatarList_); + onChanged(); + } else { + sceneTeamAvatarListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public Builder clearSceneTeamAvatarList() { + if (sceneTeamAvatarListBuilder_ == null) { + sceneTeamAvatarList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sceneTeamAvatarListBuilder_.clear(); + } + return this; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public Builder removeSceneTeamAvatarList(int index) { + if (sceneTeamAvatarListBuilder_ == null) { + ensureSceneTeamAvatarListIsMutable(); + sceneTeamAvatarList_.remove(index); + onChanged(); + } else { + sceneTeamAvatarListBuilder_.remove(index); + } + return this; + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder getSceneTeamAvatarListBuilder( + int index) { + return getSceneTeamAvatarListFieldBuilder().getBuilder(index); + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder( + int index) { + if (sceneTeamAvatarListBuilder_ == null) { + return sceneTeamAvatarList_.get(index); } else { + return sceneTeamAvatarListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public java.util.List + getSceneTeamAvatarListOrBuilderList() { + if (sceneTeamAvatarListBuilder_ != null) { + return sceneTeamAvatarListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sceneTeamAvatarList_); + } + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder() { + return getSceneTeamAvatarListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance()); + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder( + int index) { + return getSceneTeamAvatarListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.SceneTeamAvatarOuterClass.SceneTeamAvatar.getDefaultInstance()); + } + /** + * repeated .SceneTeamAvatar sceneTeamAvatarList = 1; + */ + public java.util.List + 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_ ; + /** + * bool isInMp = 3; + * @return The isInMp. + */ + @java.lang.Override + public boolean getIsInMp() { + return isInMp_; + } + /** + * bool isInMp = 3; + * @param value The isInMp to set. + * @return This builder for chaining. + */ + public Builder setIsInMp(boolean value) { + + isInMp_ = value; + onChanged(); + return this; + } + /** + * bool isInMp = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..de5cd873e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneTimeNotifyOuterClass.java @@ -0,0 +1,679 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * bool isPaused = 2; + * @return The isPaused. + */ + boolean getIsPaused(); + + /** + * uint64 sceneTime = 3; + * @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_; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int ISPAUSED_FIELD_NUMBER = 2; + private boolean isPaused_; + /** + * bool isPaused = 2; + * @return The isPaused. + */ + @java.lang.Override + public boolean getIsPaused() { + return isPaused_; + } + + public static final int SCENETIME_FIELD_NUMBER = 3; + private long sceneTime_; + /** + * uint64 sceneTime = 3; + * @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private boolean isPaused_ ; + /** + * bool isPaused = 2; + * @return The isPaused. + */ + @java.lang.Override + public boolean getIsPaused() { + return isPaused_; + } + /** + * bool isPaused = 2; + * @param value The isPaused to set. + * @return This builder for chaining. + */ + public Builder setIsPaused(boolean value) { + + isPaused_ = value; + onChanged(); + return this; + } + /** + * bool isPaused = 2; + * @return This builder for chaining. + */ + public Builder clearIsPaused() { + + isPaused_ = false; + onChanged(); + return this; + } + + private long sceneTime_ ; + /** + * uint64 sceneTime = 3; + * @return The sceneTime. + */ + @java.lang.Override + public long getSceneTime() { + return sceneTime_; + } + /** + * uint64 sceneTime = 3; + * @param value The sceneTime to set. + * @return This builder for chaining. + */ + public Builder setSceneTime(long value) { + + sceneTime_ = value; + onChanged(); + return this; + } + /** + * uint64 sceneTime = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/SceneWeaponInfoOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SceneWeaponInfoOuterClass.java new file mode 100644 index 000000000..81a55a132 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SceneWeaponInfoOuterClass.java @@ -0,0 +1,1429 @@ +// 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 { + + /** + * uint32 entityId = 1; + * @return The entityId. + */ + int getEntityId(); + + /** + * uint32 gadgetId = 2; + * @return The gadgetId. + */ + int getGadgetId(); + + /** + * uint32 itemId = 3; + * @return The itemId. + */ + int getItemId(); + + /** + * uint64 guid = 4; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 level = 5; + * @return The level. + */ + int getLevel(); + + /** + * uint32 promoteLevel = 6; + * @return The promoteLevel. + */ + int getPromoteLevel(); + + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @return Whether the abilityInfo field is set. + */ + boolean hasAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @return The abilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getAbilityInfo(); + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getAbilityInfoOrBuilder(); + + /** + * map<uint32, uint32> affixMap = 8; + */ + int getAffixMapCount(); + /** + * map<uint32, uint32> affixMap = 8; + */ + boolean containsAffixMap( + int key); + /** + * Use {@link #getAffixMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAffixMap(); + /** + * map<uint32, uint32> affixMap = 8; + */ + java.util.Map + getAffixMapMap(); + /** + * map<uint32, uint32> affixMap = 8; + */ + + int getAffixMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> affixMap = 8; + */ + + 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 + 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_; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + + public static final int GADGETID_FIELD_NUMBER = 2; + private int gadgetId_; + /** + * uint32 gadgetId = 2; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + + public static final int ITEMID_FIELD_NUMBER = 3; + private int itemId_; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int GUID_FIELD_NUMBER = 4; + private long guid_; + /** + * uint64 guid = 4; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int LEVEL_FIELD_NUMBER = 5; + private int level_; + /** + * uint32 level = 5; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int PROMOTELEVEL_FIELD_NUMBER = 6; + private int promoteLevel_; + /** + * uint32 promoteLevel = 6; + * @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_; + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @return Whether the abilityInfo field is set. + */ + @java.lang.Override + public boolean hasAbilityInfo() { + return abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @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_; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + @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 + .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 + internalGetAffixMap() { + if (affixMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixMapDefaultEntryHolder.defaultEntry); + } + return affixMap_; + } + + public int getAffixMapCount() { + return internalGetAffixMap().getMap().size(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + + @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 getAffixMap() { + return getAffixMapMap(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public java.util.Map getAffixMapMap() { + return internalGetAffixMap().getMap(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public int getAffixMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public int getAffixMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetAffixMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 entityId = 1; + * @return The entityId. + */ + @java.lang.Override + public int getEntityId() { + return entityId_; + } + /** + * uint32 entityId = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(int value) { + + entityId_ = value; + onChanged(); + return this; + } + /** + * uint32 entityId = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + + entityId_ = 0; + onChanged(); + return this; + } + + private int gadgetId_ ; + /** + * uint32 gadgetId = 2; + * @return The gadgetId. + */ + @java.lang.Override + public int getGadgetId() { + return gadgetId_; + } + /** + * uint32 gadgetId = 2; + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + + gadgetId_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetId = 2; + * @return This builder for chaining. + */ + public Builder clearGadgetId() { + + gadgetId_ = 0; + onChanged(); + return this; + } + + private int itemId_ ; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 3; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 3; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 4; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 4; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 4; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int level_ ; + /** + * uint32 level = 5; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 5; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 5; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int promoteLevel_ ; + /** + * uint32 promoteLevel = 6; + * @return The promoteLevel. + */ + @java.lang.Override + public int getPromoteLevel() { + return promoteLevel_; + } + /** + * uint32 promoteLevel = 6; + * @param value The promoteLevel to set. + * @return This builder for chaining. + */ + public Builder setPromoteLevel(int value) { + + promoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 promoteLevel = 6; + * @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_; + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @return Whether the abilityInfo field is set. + */ + public boolean hasAbilityInfo() { + return abilityInfoBuilder_ != null || abilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + * @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(); + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + 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; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + public Builder clearAbilityInfo() { + if (abilityInfoBuilder_ == null) { + abilityInfo_ = null; + onChanged(); + } else { + abilityInfo_ = null; + abilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getAbilityInfoBuilder() { + + onChanged(); + return getAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo abilityInfo = 7; + */ + 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 + internalGetAffixMap() { + if (affixMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixMapDefaultEntryHolder.defaultEntry); + } + return affixMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + + @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 getAffixMap() { + return getAffixMapMap(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public java.util.Map getAffixMapMap() { + return internalGetAffixMap().getMap(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public int getAffixMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixMap = 8; + */ + @java.lang.Override + + public int getAffixMapOrThrow( + int key) { + + java.util.Map map = + internalGetAffixMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAffixMap() { + internalGetMutableAffixMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> affixMap = 8; + */ + + public Builder removeAffixMap( + int key) { + + internalGetMutableAffixMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAffixMap() { + return internalGetMutableAffixMap().getMutableMap(); + } + /** + * map<uint32, uint32> affixMap = 8; + */ + public Builder putAffixMap( + int key, + int value) { + + + internalGetMutableAffixMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> affixMap = 8; + */ + + public Builder putAllAffixMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..81de2a2ed --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ServantInfoOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * uint32 masterEntityId = 1; + * @return The masterEntityId. + */ + int getMasterEntityId(); + + /** + * uint32 bornSlotIndex = 2; + * @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_; + /** + * uint32 masterEntityId = 1; + * @return The masterEntityId. + */ + @java.lang.Override + public int getMasterEntityId() { + return masterEntityId_; + } + + public static final int BORNSLOTINDEX_FIELD_NUMBER = 2; + private int bornSlotIndex_; + /** + * uint32 bornSlotIndex = 2; + * @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 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_ ; + /** + * uint32 masterEntityId = 1; + * @return The masterEntityId. + */ + @java.lang.Override + public int getMasterEntityId() { + return masterEntityId_; + } + /** + * uint32 masterEntityId = 1; + * @param value The masterEntityId to set. + * @return This builder for chaining. + */ + public Builder setMasterEntityId(int value) { + + masterEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 masterEntityId = 1; + * @return This builder for chaining. + */ + public Builder clearMasterEntityId() { + + masterEntityId_ = 0; + onChanged(); + return this; + } + + private int bornSlotIndex_ ; + /** + * uint32 bornSlotIndex = 2; + * @return The bornSlotIndex. + */ + @java.lang.Override + public int getBornSlotIndex() { + return bornSlotIndex_; + } + /** + * uint32 bornSlotIndex = 2; + * @param value The bornSlotIndex to set. + * @return This builder for chaining. + */ + public Builder setBornSlotIndex(int value) { + + bornSlotIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 bornSlotIndex = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..18bcc22b4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ServerBuffOuterClass.java @@ -0,0 +1,1017 @@ +// 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 { + + /** + * uint32 serverBuffUid = 1; + * @return The serverBuffUid. + */ + int getServerBuffUid(); + + /** + * uint32 serverBuffId = 2; + * @return The serverBuffId. + */ + int getServerBuffId(); + + /** + * uint32 serverBuffType = 3; + * @return The serverBuffType. + */ + int getServerBuffType(); + + /** + * uint32 instancedModifierId = 4; + * @return The instancedModifierId. + */ + int getInstancedModifierId(); + + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return A list containing the doneOnaddedActionList. + */ + java.util.List getDoneOnaddedActionListList(); + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return The count of doneOnaddedActionList. + */ + int getDoneOnaddedActionListCount(); + /** + * repeated uint32 doneOnaddedActionList = 5; + * @param index The index of the element to return. + * @return The doneOnaddedActionList at the given index. + */ + int getDoneOnaddedActionList(int index); + + /** + * bool isOnaddedActionAllow = 6; + * @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_; + /** + * uint32 serverBuffUid = 1; + * @return The serverBuffUid. + */ + @java.lang.Override + public int getServerBuffUid() { + return serverBuffUid_; + } + + public static final int SERVERBUFFID_FIELD_NUMBER = 2; + private int serverBuffId_; + /** + * uint32 serverBuffId = 2; + * @return The serverBuffId. + */ + @java.lang.Override + public int getServerBuffId() { + return serverBuffId_; + } + + public static final int SERVERBUFFTYPE_FIELD_NUMBER = 3; + private int serverBuffType_; + /** + * uint32 serverBuffType = 3; + * @return The serverBuffType. + */ + @java.lang.Override + public int getServerBuffType() { + return serverBuffType_; + } + + public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 4; + private int instancedModifierId_; + /** + * uint32 instancedModifierId = 4; + * @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_; + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return A list containing the doneOnaddedActionList. + */ + @java.lang.Override + public java.util.List + getDoneOnaddedActionListList() { + return doneOnaddedActionList_; + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return The count of doneOnaddedActionList. + */ + public int getDoneOnaddedActionListCount() { + return doneOnaddedActionList_.size(); + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @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_; + /** + * bool isOnaddedActionAllow = 6; + * @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 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_ ; + /** + * uint32 serverBuffUid = 1; + * @return The serverBuffUid. + */ + @java.lang.Override + public int getServerBuffUid() { + return serverBuffUid_; + } + /** + * uint32 serverBuffUid = 1; + * @param value The serverBuffUid to set. + * @return This builder for chaining. + */ + public Builder setServerBuffUid(int value) { + + serverBuffUid_ = value; + onChanged(); + return this; + } + /** + * uint32 serverBuffUid = 1; + * @return This builder for chaining. + */ + public Builder clearServerBuffUid() { + + serverBuffUid_ = 0; + onChanged(); + return this; + } + + private int serverBuffId_ ; + /** + * uint32 serverBuffId = 2; + * @return The serverBuffId. + */ + @java.lang.Override + public int getServerBuffId() { + return serverBuffId_; + } + /** + * uint32 serverBuffId = 2; + * @param value The serverBuffId to set. + * @return This builder for chaining. + */ + public Builder setServerBuffId(int value) { + + serverBuffId_ = value; + onChanged(); + return this; + } + /** + * uint32 serverBuffId = 2; + * @return This builder for chaining. + */ + public Builder clearServerBuffId() { + + serverBuffId_ = 0; + onChanged(); + return this; + } + + private int serverBuffType_ ; + /** + * uint32 serverBuffType = 3; + * @return The serverBuffType. + */ + @java.lang.Override + public int getServerBuffType() { + return serverBuffType_; + } + /** + * uint32 serverBuffType = 3; + * @param value The serverBuffType to set. + * @return This builder for chaining. + */ + public Builder setServerBuffType(int value) { + + serverBuffType_ = value; + onChanged(); + return this; + } + /** + * uint32 serverBuffType = 3; + * @return This builder for chaining. + */ + public Builder clearServerBuffType() { + + serverBuffType_ = 0; + onChanged(); + return this; + } + + private int instancedModifierId_ ; + /** + * uint32 instancedModifierId = 4; + * @return The instancedModifierId. + */ + @java.lang.Override + public int getInstancedModifierId() { + return instancedModifierId_; + } + /** + * uint32 instancedModifierId = 4; + * @param value The instancedModifierId to set. + * @return This builder for chaining. + */ + public Builder setInstancedModifierId(int value) { + + instancedModifierId_ = value; + onChanged(); + return this; + } + /** + * uint32 instancedModifierId = 4; + * @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; + } + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return A list containing the doneOnaddedActionList. + */ + public java.util.List + getDoneOnaddedActionListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(doneOnaddedActionList_) : doneOnaddedActionList_; + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return The count of doneOnaddedActionList. + */ + public int getDoneOnaddedActionListCount() { + return doneOnaddedActionList_.size(); + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @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); + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @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; + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @param value The doneOnaddedActionList to add. + * @return This builder for chaining. + */ + public Builder addDoneOnaddedActionList(int value) { + ensureDoneOnaddedActionListIsMutable(); + doneOnaddedActionList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @param values The doneOnaddedActionList to add. + * @return This builder for chaining. + */ + public Builder addAllDoneOnaddedActionList( + java.lang.Iterable values) { + ensureDoneOnaddedActionListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, doneOnaddedActionList_); + onChanged(); + return this; + } + /** + * repeated uint32 doneOnaddedActionList = 5; + * @return This builder for chaining. + */ + public Builder clearDoneOnaddedActionList() { + doneOnaddedActionList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private boolean isOnaddedActionAllow_ ; + /** + * bool isOnaddedActionAllow = 6; + * @return The isOnaddedActionAllow. + */ + @java.lang.Override + public boolean getIsOnaddedActionAllow() { + return isOnaddedActionAllow_; + } + /** + * bool isOnaddedActionAllow = 6; + * @param value The isOnaddedActionAllow to set. + * @return This builder for chaining. + */ + public Builder setIsOnaddedActionAllow(boolean value) { + + isOnaddedActionAllow_ = value; + onChanged(); + return this; + } + /** + * bool isOnaddedActionAllow = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7aa6de8d0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ServerTimeNotifyOuterClass.java @@ -0,0 +1,537 @@ +// 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 { + + /** + * uint64 serverTime = 1; + * @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_; + /** + * uint64 serverTime = 1; + * @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 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_ ; + /** + * uint64 serverTime = 1; + * @return The serverTime. + */ + @java.lang.Override + public long getServerTime() { + return serverTime_; + } + /** + * uint64 serverTime = 1; + * @param value The serverTime to set. + * @return This builder for chaining. + */ + public Builder setServerTime(long value) { + + serverTime_ = value; + onChanged(); + return this; + } + /** + * uint64 serverTime = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/SetEquipLockStateReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateReqOuterClass.java new file mode 100644 index 000000000..5a1820116 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateReqOuterClass.java @@ -0,0 +1,609 @@ +// 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 { + + /** + * uint64 targetEquipGuid = 1; + * @return The targetEquipGuid. + */ + long getTargetEquipGuid(); + + /** + * bool isLocked = 2; + * @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_; + /** + * uint64 targetEquipGuid = 1; + * @return The targetEquipGuid. + */ + @java.lang.Override + public long getTargetEquipGuid() { + return targetEquipGuid_; + } + + public static final int ISLOCKED_FIELD_NUMBER = 2; + private boolean isLocked_; + /** + * bool isLocked = 2; + * @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 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_ ; + /** + * uint64 targetEquipGuid = 1; + * @return The targetEquipGuid. + */ + @java.lang.Override + public long getTargetEquipGuid() { + return targetEquipGuid_; + } + /** + * uint64 targetEquipGuid = 1; + * @param value The targetEquipGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetEquipGuid(long value) { + + targetEquipGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetEquipGuid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetEquipGuid() { + + targetEquipGuid_ = 0L; + onChanged(); + return this; + } + + private boolean isLocked_ ; + /** + * bool isLocked = 2; + * @return The isLocked. + */ + @java.lang.Override + public boolean getIsLocked() { + return isLocked_; + } + /** + * bool isLocked = 2; + * @param value The isLocked to set. + * @return This builder for chaining. + */ + public Builder setIsLocked(boolean value) { + + isLocked_ = value; + onChanged(); + return this; + } + /** + * bool isLocked = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..00b3b0cde --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetEquipLockStateRspOuterClass.java @@ -0,0 +1,679 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetEquipGuid = 2; + * @return The targetEquipGuid. + */ + long getTargetEquipGuid(); + + /** + * bool isLocked = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETEQUIPGUID_FIELD_NUMBER = 2; + private long targetEquipGuid_; + /** + * uint64 targetEquipGuid = 2; + * @return The targetEquipGuid. + */ + @java.lang.Override + public long getTargetEquipGuid() { + return targetEquipGuid_; + } + + public static final int ISLOCKED_FIELD_NUMBER = 3; + private boolean isLocked_; + /** + * bool isLocked = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetEquipGuid_ ; + /** + * uint64 targetEquipGuid = 2; + * @return The targetEquipGuid. + */ + @java.lang.Override + public long getTargetEquipGuid() { + return targetEquipGuid_; + } + /** + * uint64 targetEquipGuid = 2; + * @param value The targetEquipGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetEquipGuid(long value) { + + targetEquipGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetEquipGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetEquipGuid() { + + targetEquipGuid_ = 0L; + onChanged(); + return this; + } + + private boolean isLocked_ ; + /** + * bool isLocked = 3; + * @return The isLocked. + */ + @java.lang.Override + public boolean getIsLocked() { + return isLocked_; + } + /** + * bool isLocked = 3; + * @param value The isLocked to set. + * @return This builder for chaining. + */ + public Builder setIsLocked(boolean value) { + + isLocked_ = value; + onChanged(); + return this; + } + /** + * bool isLocked = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..0054e31df --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetNameCardReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 nameCardId = 1; + * @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_; + /** + * uint32 nameCardId = 1; + * @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 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_ ; + /** + * uint32 nameCardId = 1; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 1; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..91530c300 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetNameCardRspOuterClass.java @@ -0,0 +1,606 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 nameCardId = 2; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int NAMECARDID_FIELD_NUMBER = 2; + private int nameCardId_; + /** + * uint32 nameCardId = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int nameCardId_ ; + /** + * uint32 nameCardId = 2; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 2; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/SetPlayerBornDataReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SetPlayerBornDataReqOuterClass.java new file mode 100644 index 000000000..5b7594c2c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerBornDataReqOuterClass.java @@ -0,0 +1,687 @@ +// 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 { + + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + int getAvatarId(); + + /** + * string nickName = 2; + * @return The nickName. + */ + java.lang.String getNickName(); + /** + * string nickName = 2; + * @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_; + /** + * uint32 avatarId = 1; + * @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_; + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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 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_ ; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 1; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarId() { + + avatarId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nickName_ = ""; + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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; + } + /** + * string nickName = 2; + * @return This builder for chaining. + */ + public Builder clearNickName() { + + nickName_ = getDefaultInstance().getNickName(); + onChanged(); + return this; + } + /** + * string nickName = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..453efb1d4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageReqOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 avatarId = 1; + * @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_; + /** + * uint32 avatarId = 1; + * @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 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_ ; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 1; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fdc4f4e06 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerHeadImageRspOuterClass.java @@ -0,0 +1,742 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * .HeadImage avatar = 3; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .HeadImage avatar = 3; + * @return The avatar. + */ + emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); + /** + * .HeadImage avatar = 3; + */ + 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_; + /** + * int32 retcode = 1; + * @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_; + /** + * .HeadImage avatar = 3; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return avatar_ != null; + } + /** + * .HeadImage avatar = 3; + * @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_; + } + /** + * .HeadImage avatar = 3; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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_; + /** + * .HeadImage avatar = 3; + * @return Whether the avatar field is set. + */ + public boolean hasAvatar() { + return avatarBuilder_ != null || avatar_ != null; + } + /** + * .HeadImage avatar = 3; + * @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(); + } + } + /** + * .HeadImage avatar = 3; + */ + 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; + } + /** + * .HeadImage avatar = 3; + */ + 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; + } + /** + * .HeadImage avatar = 3; + */ + 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; + } + /** + * .HeadImage avatar = 3; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + + return this; + } + /** + * .HeadImage avatar = 3; + */ + public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .HeadImage avatar = 3; + */ + 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_; + } + } + /** + * .HeadImage avatar = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e46f400fc --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerNameReqOuterClass.java @@ -0,0 +1,616 @@ +// 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 { + + /** + * string nickName = 1; + * @return The nickName. + */ + java.lang.String getNickName(); + /** + * string nickName = 1; + * @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_; + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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 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_ = ""; + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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; + } + } + /** + * string nickName = 1; + * @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; + } + /** + * string nickName = 1; + * @return This builder for chaining. + */ + public Builder clearNickName() { + + nickName_ = getDefaultInstance().getNickName(); + onChanged(); + return this; + } + /** + * string nickName = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..74cc62fa5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerNameRspOuterClass.java @@ -0,0 +1,686 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * string nickName = 2; + * @return The nickName. + */ + java.lang.String getNickName(); + /** + * string nickName = 2; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nickName_ = ""; + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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; + } + } + /** + * string nickName = 2; + * @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; + } + /** + * string nickName = 2; + * @return This builder for chaining. + */ + public Builder clearNickName() { + + nickName_ = getDefaultInstance().getNickName(); + onChanged(); + return this; + } + /** + * string nickName = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b5e0b943b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerPropReqOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .PropValue propList = 1; + */ + java.util.List + getPropListList(); + /** + * repeated .PropValue propList = 1; + */ + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index); + /** + * repeated .PropValue propList = 1; + */ + int getPropListCount(); + /** + * repeated .PropValue propList = 1; + */ + java.util.List + getPropListOrBuilderList(); + /** + * repeated .PropValue propList = 1; + */ + 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(); + 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 propList_; + /** + * repeated .PropValue propList = 1; + */ + @java.lang.Override + public java.util.List getPropListList() { + return propList_; + } + /** + * repeated .PropValue propList = 1; + */ + @java.lang.Override + public java.util.List + getPropListOrBuilderList() { + return propList_; + } + /** + * repeated .PropValue propList = 1; + */ + @java.lang.Override + public int getPropListCount() { + return propList_.size(); + } + /** + * repeated .PropValue propList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index) { + return propList_.get(index); + } + /** + * repeated .PropValue propList = 1; + */ + @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 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 propList_ = + java.util.Collections.emptyList(); + private void ensurePropListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + propList_ = new java.util.ArrayList(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_; + + /** + * repeated .PropValue propList = 1; + */ + public java.util.List getPropListList() { + if (propListBuilder_ == null) { + return java.util.Collections.unmodifiableList(propList_); + } else { + return propListBuilder_.getMessageList(); + } + } + /** + * repeated .PropValue propList = 1; + */ + public int getPropListCount() { + if (propListBuilder_ == null) { + return propList_.size(); + } else { + return propListBuilder_.getCount(); + } + } + /** + * repeated .PropValue propList = 1; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getPropList(int index) { + if (propListBuilder_ == null) { + return propList_.get(index); + } else { + return propListBuilder_.getMessage(index); + } + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + 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; + } + /** + * repeated .PropValue propList = 1; + */ + public Builder addAllPropList( + java.lang.Iterable values) { + if (propListBuilder_ == null) { + ensurePropListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, propList_); + onChanged(); + } else { + propListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PropValue propList = 1; + */ + public Builder clearPropList() { + if (propListBuilder_ == null) { + propList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propListBuilder_.clear(); + } + return this; + } + /** + * repeated .PropValue propList = 1; + */ + public Builder removePropList(int index) { + if (propListBuilder_ == null) { + ensurePropListIsMutable(); + propList_.remove(index); + onChanged(); + } else { + propListBuilder_.remove(index); + } + return this; + } + /** + * repeated .PropValue propList = 1; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder getPropListBuilder( + int index) { + return getPropListFieldBuilder().getBuilder(index); + } + /** + * repeated .PropValue propList = 1; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValueOrBuilder getPropListOrBuilder( + int index) { + if (propListBuilder_ == null) { + return propList_.get(index); } else { + return propListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PropValue propList = 1; + */ + public java.util.List + getPropListOrBuilderList() { + if (propListBuilder_ != null) { + return propListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propList_); + } + } + /** + * repeated .PropValue propList = 1; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder addPropListBuilder() { + return getPropListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); + } + /** + * repeated .PropValue propList = 1; + */ + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue.Builder addPropListBuilder( + int index) { + return getPropListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.PropValueOuterClass.PropValue.getDefaultInstance()); + } + /** + * repeated .PropValue propList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b80ab574f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerPropRspOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * int32 retcode = 1; + * @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_; + /** + * int32 retcode = 1; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..75dd9ccc4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureReqOuterClass.java @@ -0,0 +1,616 @@ +// 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 { + + /** + * string signature = 1; + * @return The signature. + */ + java.lang.String getSignature(); + /** + * string signature = 1; + * @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_; + /** + * string signature = 1; + * @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; + } + } + /** + * string signature = 1; + * @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 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_ = ""; + /** + * string signature = 1; + * @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; + } + } + /** + * string signature = 1; + * @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; + } + } + /** + * string signature = 1; + * @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; + } + /** + * string signature = 1; + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + /** + * string signature = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b944898cd --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetPlayerSignatureRspOuterClass.java @@ -0,0 +1,687 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * string signature = 2; + * @return The signature. + */ + java.lang.String getSignature(); + /** + * string signature = 2; + * @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_; + /** + * int32 retcode = 1; + * @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_; + /** + * string signature = 2; + * @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; + } + } + /** + * string signature = 2; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object signature_ = ""; + /** + * string signature = 2; + * @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; + } + } + /** + * string signature = 2; + * @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; + } + } + /** + * string signature = 2; + * @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; + } + /** + * string signature = 2; + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + /** + * string signature = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..481886a91 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamReqOuterClass.java @@ -0,0 +1,805 @@ +// 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 { + + /** + * uint32 teamId = 1; + * @return The teamId. + */ + int getTeamId(); + + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return A list containing the avatarTeamGuidList. + */ + java.util.List getAvatarTeamGuidListList(); + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return The count of avatarTeamGuidList. + */ + int getAvatarTeamGuidListCount(); + /** + * repeated uint64 avatarTeamGuidList = 2; + * @param index The index of the element to return. + * @return The avatarTeamGuidList at the given index. + */ + long getAvatarTeamGuidList(int index); + + /** + * uint64 curAvatarGuid = 3; + * @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_; + /** + * uint32 teamId = 1; + * @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_; + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return A list containing the avatarTeamGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarTeamGuidListList() { + return avatarTeamGuidList_; + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return The count of avatarTeamGuidList. + */ + public int getAvatarTeamGuidListCount() { + return avatarTeamGuidList_.size(); + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @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_; + /** + * uint64 curAvatarGuid = 3; + * @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 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_ ; + /** + * uint32 teamId = 1; + * @return The teamId. + */ + @java.lang.Override + public int getTeamId() { + return teamId_; + } + /** + * uint32 teamId = 1; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId(int value) { + + teamId_ = value; + onChanged(); + return this; + } + /** + * uint32 teamId = 1; + * @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; + } + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return A list containing the avatarTeamGuidList. + */ + public java.util.List + getAvatarTeamGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarTeamGuidList_) : avatarTeamGuidList_; + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return The count of avatarTeamGuidList. + */ + public int getAvatarTeamGuidListCount() { + return avatarTeamGuidList_.size(); + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @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); + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @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; + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @param value The avatarTeamGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarTeamGuidList(long value) { + ensureAvatarTeamGuidListIsMutable(); + avatarTeamGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @param values The avatarTeamGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarTeamGuidList( + java.lang.Iterable values) { + ensureAvatarTeamGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarTeamGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarTeamGuidList = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarTeamGuidList() { + avatarTeamGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long curAvatarGuid_ ; + /** + * uint64 curAvatarGuid = 3; + * @return The curAvatarGuid. + */ + @java.lang.Override + public long getCurAvatarGuid() { + return curAvatarGuid_; + } + /** + * uint64 curAvatarGuid = 3; + * @param value The curAvatarGuid to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarGuid(long value) { + + curAvatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 curAvatarGuid = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f1eda2402 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SetUpAvatarTeamRspOuterClass.java @@ -0,0 +1,876 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint32 teamId = 2; + * @return The teamId. + */ + int getTeamId(); + + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return A list containing the avatarTeamGuidList. + */ + java.util.List getAvatarTeamGuidListList(); + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return The count of avatarTeamGuidList. + */ + int getAvatarTeamGuidListCount(); + /** + * repeated uint64 avatarTeamGuidList = 3; + * @param index The index of the element to return. + * @return The avatarTeamGuidList at the given index. + */ + long getAvatarTeamGuidList(int index); + + /** + * uint64 curAvatarGuid = 4; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TEAMID_FIELD_NUMBER = 2; + private int teamId_; + /** + * uint32 teamId = 2; + * @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_; + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return A list containing the avatarTeamGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarTeamGuidListList() { + return avatarTeamGuidList_; + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return The count of avatarTeamGuidList. + */ + public int getAvatarTeamGuidListCount() { + return avatarTeamGuidList_.size(); + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @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_; + /** + * uint64 curAvatarGuid = 4; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private int teamId_ ; + /** + * uint32 teamId = 2; + * @return The teamId. + */ + @java.lang.Override + public int getTeamId() { + return teamId_; + } + /** + * uint32 teamId = 2; + * @param value The teamId to set. + * @return This builder for chaining. + */ + public Builder setTeamId(int value) { + + teamId_ = value; + onChanged(); + return this; + } + /** + * uint32 teamId = 2; + * @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; + } + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return A list containing the avatarTeamGuidList. + */ + public java.util.List + getAvatarTeamGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarTeamGuidList_) : avatarTeamGuidList_; + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return The count of avatarTeamGuidList. + */ + public int getAvatarTeamGuidListCount() { + return avatarTeamGuidList_.size(); + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @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); + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @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; + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @param value The avatarTeamGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarTeamGuidList(long value) { + ensureAvatarTeamGuidListIsMutable(); + avatarTeamGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @param values The avatarTeamGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarTeamGuidList( + java.lang.Iterable values) { + ensureAvatarTeamGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarTeamGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarTeamGuidList = 3; + * @return This builder for chaining. + */ + public Builder clearAvatarTeamGuidList() { + avatarTeamGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private long curAvatarGuid_ ; + /** + * uint64 curAvatarGuid = 4; + * @return The curAvatarGuid. + */ + @java.lang.Override + public long getCurAvatarGuid() { + return curAvatarGuid_; + } + /** + * uint64 curAvatarGuid = 4; + * @param value The curAvatarGuid to set. + * @return This builder for chaining. + */ + public Builder setCurAvatarGuid(long value) { + + curAvatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 curAvatarGuid = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1a0de82c2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShopCardProductOuterClass.java @@ -0,0 +1,1423 @@ +// 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 { + + /** + * string productId = 1; + * @return The productId. + */ + java.lang.String getProductId(); + /** + * string productId = 1; + * @return The bytes for productId. + */ + com.google.protobuf.ByteString + getProductIdBytes(); + + /** + * string priceTier = 2; + * @return The priceTier. + */ + java.lang.String getPriceTier(); + /** + * string priceTier = 2; + * @return The bytes for priceTier. + */ + com.google.protobuf.ByteString + getPriceTierBytes(); + + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + int getMcoinBase(); + + /** + * uint32 hcoinPerDay = 4; + * @return The hcoinPerDay. + */ + int getHcoinPerDay(); + + /** + * uint32 days = 5; + * @return The days. + */ + int getDays(); + + /** + * uint32 remainRewardDays = 6; + * @return The remainRewardDays. + */ + int getRemainRewardDays(); + + /** + * uint32 cardProductType = 7; + * @return The cardProductType. + */ + int getCardProductType(); + + /** + * .ResinCard resinCard = 101; + * @return Whether the resinCard field is set. + */ + boolean hasResinCard(); + /** + * .ResinCard resinCard = 101; + * @return The resinCard. + */ + emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard getResinCard(); + /** + * .ResinCard resinCard = 101; + */ + 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_; + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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_; + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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_; + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + @java.lang.Override + public int getMcoinBase() { + return mcoinBase_; + } + + public static final int HCOINPERDAY_FIELD_NUMBER = 4; + private int hcoinPerDay_; + /** + * uint32 hcoinPerDay = 4; + * @return The hcoinPerDay. + */ + @java.lang.Override + public int getHcoinPerDay() { + return hcoinPerDay_; + } + + public static final int DAYS_FIELD_NUMBER = 5; + private int days_; + /** + * uint32 days = 5; + * @return The days. + */ + @java.lang.Override + public int getDays() { + return days_; + } + + public static final int REMAINREWARDDAYS_FIELD_NUMBER = 6; + private int remainRewardDays_; + /** + * uint32 remainRewardDays = 6; + * @return The remainRewardDays. + */ + @java.lang.Override + public int getRemainRewardDays() { + return remainRewardDays_; + } + + public static final int CARDPRODUCTTYPE_FIELD_NUMBER = 7; + private int cardProductType_; + /** + * uint32 cardProductType = 7; + * @return The cardProductType. + */ + @java.lang.Override + public int getCardProductType() { + return cardProductType_; + } + + public static final int RESINCARD_FIELD_NUMBER = 101; + /** + * .ResinCard resinCard = 101; + * @return Whether the resinCard field is set. + */ + @java.lang.Override + public boolean hasResinCard() { + return extraCardDataCase_ == 101; + } + /** + * .ResinCard resinCard = 101; + * @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(); + } + /** + * .ResinCard resinCard = 101; + */ + @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 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_ = ""; + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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; + } + /** + * string productId = 1; + * @return This builder for chaining. + */ + public Builder clearProductId() { + + productId_ = getDefaultInstance().getProductId(); + onChanged(); + return this; + } + /** + * string productId = 1; + * @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_ = ""; + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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; + } + /** + * string priceTier = 2; + * @return This builder for chaining. + */ + public Builder clearPriceTier() { + + priceTier_ = getDefaultInstance().getPriceTier(); + onChanged(); + return this; + } + /** + * string priceTier = 2; + * @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_ ; + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + @java.lang.Override + public int getMcoinBase() { + return mcoinBase_; + } + /** + * uint32 mcoinBase = 3; + * @param value The mcoinBase to set. + * @return This builder for chaining. + */ + public Builder setMcoinBase(int value) { + + mcoinBase_ = value; + onChanged(); + return this; + } + /** + * uint32 mcoinBase = 3; + * @return This builder for chaining. + */ + public Builder clearMcoinBase() { + + mcoinBase_ = 0; + onChanged(); + return this; + } + + private int hcoinPerDay_ ; + /** + * uint32 hcoinPerDay = 4; + * @return The hcoinPerDay. + */ + @java.lang.Override + public int getHcoinPerDay() { + return hcoinPerDay_; + } + /** + * uint32 hcoinPerDay = 4; + * @param value The hcoinPerDay to set. + * @return This builder for chaining. + */ + public Builder setHcoinPerDay(int value) { + + hcoinPerDay_ = value; + onChanged(); + return this; + } + /** + * uint32 hcoinPerDay = 4; + * @return This builder for chaining. + */ + public Builder clearHcoinPerDay() { + + hcoinPerDay_ = 0; + onChanged(); + return this; + } + + private int days_ ; + /** + * uint32 days = 5; + * @return The days. + */ + @java.lang.Override + public int getDays() { + return days_; + } + /** + * uint32 days = 5; + * @param value The days to set. + * @return This builder for chaining. + */ + public Builder setDays(int value) { + + days_ = value; + onChanged(); + return this; + } + /** + * uint32 days = 5; + * @return This builder for chaining. + */ + public Builder clearDays() { + + days_ = 0; + onChanged(); + return this; + } + + private int remainRewardDays_ ; + /** + * uint32 remainRewardDays = 6; + * @return The remainRewardDays. + */ + @java.lang.Override + public int getRemainRewardDays() { + return remainRewardDays_; + } + /** + * uint32 remainRewardDays = 6; + * @param value The remainRewardDays to set. + * @return This builder for chaining. + */ + public Builder setRemainRewardDays(int value) { + + remainRewardDays_ = value; + onChanged(); + return this; + } + /** + * uint32 remainRewardDays = 6; + * @return This builder for chaining. + */ + public Builder clearRemainRewardDays() { + + remainRewardDays_ = 0; + onChanged(); + return this; + } + + private int cardProductType_ ; + /** + * uint32 cardProductType = 7; + * @return The cardProductType. + */ + @java.lang.Override + public int getCardProductType() { + return cardProductType_; + } + /** + * uint32 cardProductType = 7; + * @param value The cardProductType to set. + * @return This builder for chaining. + */ + public Builder setCardProductType(int value) { + + cardProductType_ = value; + onChanged(); + return this; + } + /** + * uint32 cardProductType = 7; + * @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_; + /** + * .ResinCard resinCard = 101; + * @return Whether the resinCard field is set. + */ + @java.lang.Override + public boolean hasResinCard() { + return extraCardDataCase_ == 101; + } + /** + * .ResinCard resinCard = 101; + * @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(); + } + } + /** + * .ResinCard resinCard = 101; + */ + 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; + } + /** + * .ResinCard resinCard = 101; + */ + 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; + } + /** + * .ResinCard resinCard = 101; + */ + 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; + } + /** + * .ResinCard resinCard = 101; + */ + 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; + } + /** + * .ResinCard resinCard = 101; + */ + public emu.grasscutter.net.proto.ResinCardOuterClass.ResinCard.Builder getResinCardBuilder() { + return getResinCardFieldBuilder().getBuilder(); + } + /** + * .ResinCard resinCard = 101; + */ + @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(); + } + } + /** + * .ResinCard resinCard = 101; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..b7cde8ed4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShopGoodsDisableTypeOuterClass.java @@ -0,0 +1,156 @@ +// 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 { + /** + * ShopGoodsDisableNone = 0; + */ + ShopGoodsDisableNone(0), + /** + * ShopGoodsDisableTalentFull = 1; + */ + ShopGoodsDisableTalentFull(1), + /** + * ShopGoodsDisableFurnitureFormulaUnlocked = 2; + */ + ShopGoodsDisableFurnitureFormulaUnlocked(2), + UNRECOGNIZED(-1), + ; + + /** + * ShopGoodsDisableNone = 0; + */ + public static final int ShopGoodsDisableNone_VALUE = 0; + /** + * ShopGoodsDisableTalentFull = 1; + */ + public static final int ShopGoodsDisableTalentFull_VALUE = 1; + /** + * ShopGoodsDisableFurnitureFormulaUnlocked = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ShopGoodsDisableType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..e75546b93 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShopGoodsOuterClass.java @@ -0,0 +1,2158 @@ +// 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 { + + /** + * uint32 goodsId = 1; + * @return The goodsId. + */ + int getGoodsId(); + + /** + * .ItemParam goodsItem = 2; + * @return Whether the goodsItem field is set. + */ + boolean hasGoodsItem(); + /** + * .ItemParam goodsItem = 2; + * @return The goodsItem. + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem(); + /** + * .ItemParam goodsItem = 2; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder(); + + /** + * uint32 scoin = 3; + * @return The scoin. + */ + int getScoin(); + + /** + * uint32 hcoin = 4; + * @return The hcoin. + */ + int getHcoin(); + + /** + * repeated .ItemParam costItemList = 5; + */ + java.util.List + getCostItemListList(); + /** + * repeated .ItemParam costItemList = 5; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index); + /** + * repeated .ItemParam costItemList = 5; + */ + int getCostItemListCount(); + /** + * repeated .ItemParam costItemList = 5; + */ + java.util.List + getCostItemListOrBuilderList(); + /** + * repeated .ItemParam costItemList = 5; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder( + int index); + + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + int getBoughtNum(); + + /** + * uint32 buyLimit = 7; + * @return The buyLimit. + */ + int getBuyLimit(); + + /** + * uint32 beginTime = 8; + * @return The beginTime. + */ + int getBeginTime(); + + /** + * uint32 endTime = 9; + * @return The endTime. + */ + int getEndTime(); + + /** + * uint32 nextRefreshTime = 10; + * @return The nextRefreshTime. + */ + int getNextRefreshTime(); + + /** + * uint32 minLevel = 11; + * @return The minLevel. + */ + int getMinLevel(); + + /** + * uint32 maxLevel = 12; + * @return The maxLevel. + */ + int getMaxLevel(); + + /** + * repeated uint32 preGoodsIdList = 13; + * @return A list containing the preGoodsIdList. + */ + java.util.List getPreGoodsIdListList(); + /** + * repeated uint32 preGoodsIdList = 13; + * @return The count of preGoodsIdList. + */ + int getPreGoodsIdListCount(); + /** + * repeated uint32 preGoodsIdList = 13; + * @param index The index of the element to return. + * @return The preGoodsIdList at the given index. + */ + int getPreGoodsIdList(int index); + + /** + * uint32 mcoin = 14; + * @return The mcoin. + */ + int getMcoin(); + + /** + * uint32 disableType = 15; + * @return The disableType. + */ + int getDisableType(); + + /** + * uint32 secondarySheetId = 16; + * @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(); + 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_; + /** + * uint32 goodsId = 1; + * @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_; + /** + * .ItemParam goodsItem = 2; + * @return Whether the goodsItem field is set. + */ + @java.lang.Override + public boolean hasGoodsItem() { + return goodsItem_ != null; + } + /** + * .ItemParam goodsItem = 2; + * @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_; + } + /** + * .ItemParam goodsItem = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder() { + return getGoodsItem(); + } + + public static final int SCOIN_FIELD_NUMBER = 3; + private int scoin_; + /** + * uint32 scoin = 3; + * @return The scoin. + */ + @java.lang.Override + public int getScoin() { + return scoin_; + } + + public static final int HCOIN_FIELD_NUMBER = 4; + private int hcoin_; + /** + * uint32 hcoin = 4; + * @return The hcoin. + */ + @java.lang.Override + public int getHcoin() { + return hcoin_; + } + + public static final int COSTITEMLIST_FIELD_NUMBER = 5; + private java.util.List costItemList_; + /** + * repeated .ItemParam costItemList = 5; + */ + @java.lang.Override + public java.util.List getCostItemListList() { + return costItemList_; + } + /** + * repeated .ItemParam costItemList = 5; + */ + @java.lang.Override + public java.util.List + getCostItemListOrBuilderList() { + return costItemList_; + } + /** + * repeated .ItemParam costItemList = 5; + */ + @java.lang.Override + public int getCostItemListCount() { + return costItemList_.size(); + } + /** + * repeated .ItemParam costItemList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) { + return costItemList_.get(index); + } + /** + * repeated .ItemParam costItemList = 5; + */ + @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_; + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + @java.lang.Override + public int getBoughtNum() { + return boughtNum_; + } + + public static final int BUYLIMIT_FIELD_NUMBER = 7; + private int buyLimit_; + /** + * uint32 buyLimit = 7; + * @return The buyLimit. + */ + @java.lang.Override + public int getBuyLimit() { + return buyLimit_; + } + + public static final int BEGINTIME_FIELD_NUMBER = 8; + private int beginTime_; + /** + * uint32 beginTime = 8; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + + public static final int ENDTIME_FIELD_NUMBER = 9; + private int endTime_; + /** + * uint32 endTime = 9; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + + public static final int NEXTREFRESHTIME_FIELD_NUMBER = 10; + private int nextRefreshTime_; + /** + * uint32 nextRefreshTime = 10; + * @return The nextRefreshTime. + */ + @java.lang.Override + public int getNextRefreshTime() { + return nextRefreshTime_; + } + + public static final int MINLEVEL_FIELD_NUMBER = 11; + private int minLevel_; + /** + * uint32 minLevel = 11; + * @return The minLevel. + */ + @java.lang.Override + public int getMinLevel() { + return minLevel_; + } + + public static final int MAXLEVEL_FIELD_NUMBER = 12; + private int maxLevel_; + /** + * uint32 maxLevel = 12; + * @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_; + /** + * repeated uint32 preGoodsIdList = 13; + * @return A list containing the preGoodsIdList. + */ + @java.lang.Override + public java.util.List + getPreGoodsIdListList() { + return preGoodsIdList_; + } + /** + * repeated uint32 preGoodsIdList = 13; + * @return The count of preGoodsIdList. + */ + public int getPreGoodsIdListCount() { + return preGoodsIdList_.size(); + } + /** + * repeated uint32 preGoodsIdList = 13; + * @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_; + /** + * uint32 mcoin = 14; + * @return The mcoin. + */ + @java.lang.Override + public int getMcoin() { + return mcoin_; + } + + public static final int DISABLETYPE_FIELD_NUMBER = 15; + private int disableType_; + /** + * uint32 disableType = 15; + * @return The disableType. + */ + @java.lang.Override + public int getDisableType() { + return disableType_; + } + + public static final int SECONDARYSHEETID_FIELD_NUMBER = 16; + private int secondarySheetId_; + /** + * uint32 secondarySheetId = 16; + * @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 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_ ; + /** + * uint32 goodsId = 1; + * @return The goodsId. + */ + @java.lang.Override + public int getGoodsId() { + return goodsId_; + } + /** + * uint32 goodsId = 1; + * @param value The goodsId to set. + * @return This builder for chaining. + */ + public Builder setGoodsId(int value) { + + goodsId_ = value; + onChanged(); + return this; + } + /** + * uint32 goodsId = 1; + * @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_; + /** + * .ItemParam goodsItem = 2; + * @return Whether the goodsItem field is set. + */ + public boolean hasGoodsItem() { + return goodsItemBuilder_ != null || goodsItem_ != null; + } + /** + * .ItemParam goodsItem = 2; + * @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(); + } + } + /** + * .ItemParam goodsItem = 2; + */ + 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; + } + /** + * .ItemParam goodsItem = 2; + */ + 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; + } + /** + * .ItemParam goodsItem = 2; + */ + 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; + } + /** + * .ItemParam goodsItem = 2; + */ + public Builder clearGoodsItem() { + if (goodsItemBuilder_ == null) { + goodsItem_ = null; + onChanged(); + } else { + goodsItem_ = null; + goodsItemBuilder_ = null; + } + + return this; + } + /** + * .ItemParam goodsItem = 2; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGoodsItemBuilder() { + + onChanged(); + return getGoodsItemFieldBuilder().getBuilder(); + } + /** + * .ItemParam goodsItem = 2; + */ + 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_; + } + } + /** + * .ItemParam goodsItem = 2; + */ + 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_ ; + /** + * uint32 scoin = 3; + * @return The scoin. + */ + @java.lang.Override + public int getScoin() { + return scoin_; + } + /** + * uint32 scoin = 3; + * @param value The scoin to set. + * @return This builder for chaining. + */ + public Builder setScoin(int value) { + + scoin_ = value; + onChanged(); + return this; + } + /** + * uint32 scoin = 3; + * @return This builder for chaining. + */ + public Builder clearScoin() { + + scoin_ = 0; + onChanged(); + return this; + } + + private int hcoin_ ; + /** + * uint32 hcoin = 4; + * @return The hcoin. + */ + @java.lang.Override + public int getHcoin() { + return hcoin_; + } + /** + * uint32 hcoin = 4; + * @param value The hcoin to set. + * @return This builder for chaining. + */ + public Builder setHcoin(int value) { + + hcoin_ = value; + onChanged(); + return this; + } + /** + * uint32 hcoin = 4; + * @return This builder for chaining. + */ + public Builder clearHcoin() { + + hcoin_ = 0; + onChanged(); + return this; + } + + private java.util.List costItemList_ = + java.util.Collections.emptyList(); + private void ensureCostItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + costItemList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam costItemList = 5; + */ + public java.util.List getCostItemListList() { + if (costItemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(costItemList_); + } else { + return costItemListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam costItemList = 5; + */ + public int getCostItemListCount() { + if (costItemListBuilder_ == null) { + return costItemList_.size(); + } else { + return costItemListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam costItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) { + if (costItemListBuilder_ == null) { + return costItemList_.get(index); + } else { + return costItemListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + 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; + } + /** + * repeated .ItemParam costItemList = 5; + */ + public Builder addAllCostItemList( + java.lang.Iterable values) { + if (costItemListBuilder_ == null) { + ensureCostItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, costItemList_); + onChanged(); + } else { + costItemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam costItemList = 5; + */ + public Builder clearCostItemList() { + if (costItemListBuilder_ == null) { + costItemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + costItemListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam costItemList = 5; + */ + public Builder removeCostItemList(int index) { + if (costItemListBuilder_ == null) { + ensureCostItemListIsMutable(); + costItemList_.remove(index); + onChanged(); + } else { + costItemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam costItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getCostItemListBuilder( + int index) { + return getCostItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam costItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder( + int index) { + if (costItemListBuilder_ == null) { + return costItemList_.get(index); } else { + return costItemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam costItemList = 5; + */ + public java.util.List + getCostItemListOrBuilderList() { + if (costItemListBuilder_ != null) { + return costItemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(costItemList_); + } + } + /** + * repeated .ItemParam costItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder() { + return getCostItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam costItemList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder( + int index) { + return getCostItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam costItemList = 5; + */ + public java.util.List + 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_ ; + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + @java.lang.Override + public int getBoughtNum() { + return boughtNum_; + } + /** + * uint32 boughtNum = 6; + * @param value The boughtNum to set. + * @return This builder for chaining. + */ + public Builder setBoughtNum(int value) { + + boughtNum_ = value; + onChanged(); + return this; + } + /** + * uint32 boughtNum = 6; + * @return This builder for chaining. + */ + public Builder clearBoughtNum() { + + boughtNum_ = 0; + onChanged(); + return this; + } + + private int buyLimit_ ; + /** + * uint32 buyLimit = 7; + * @return The buyLimit. + */ + @java.lang.Override + public int getBuyLimit() { + return buyLimit_; + } + /** + * uint32 buyLimit = 7; + * @param value The buyLimit to set. + * @return This builder for chaining. + */ + public Builder setBuyLimit(int value) { + + buyLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 buyLimit = 7; + * @return This builder for chaining. + */ + public Builder clearBuyLimit() { + + buyLimit_ = 0; + onChanged(); + return this; + } + + private int beginTime_ ; + /** + * uint32 beginTime = 8; + * @return The beginTime. + */ + @java.lang.Override + public int getBeginTime() { + return beginTime_; + } + /** + * uint32 beginTime = 8; + * @param value The beginTime to set. + * @return This builder for chaining. + */ + public Builder setBeginTime(int value) { + + beginTime_ = value; + onChanged(); + return this; + } + /** + * uint32 beginTime = 8; + * @return This builder for chaining. + */ + public Builder clearBeginTime() { + + beginTime_ = 0; + onChanged(); + return this; + } + + private int endTime_ ; + /** + * uint32 endTime = 9; + * @return The endTime. + */ + @java.lang.Override + public int getEndTime() { + return endTime_; + } + /** + * uint32 endTime = 9; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(int value) { + + endTime_ = value; + onChanged(); + return this; + } + /** + * uint32 endTime = 9; + * @return This builder for chaining. + */ + public Builder clearEndTime() { + + endTime_ = 0; + onChanged(); + return this; + } + + private int nextRefreshTime_ ; + /** + * uint32 nextRefreshTime = 10; + * @return The nextRefreshTime. + */ + @java.lang.Override + public int getNextRefreshTime() { + return nextRefreshTime_; + } + /** + * uint32 nextRefreshTime = 10; + * @param value The nextRefreshTime to set. + * @return This builder for chaining. + */ + public Builder setNextRefreshTime(int value) { + + nextRefreshTime_ = value; + onChanged(); + return this; + } + /** + * uint32 nextRefreshTime = 10; + * @return This builder for chaining. + */ + public Builder clearNextRefreshTime() { + + nextRefreshTime_ = 0; + onChanged(); + return this; + } + + private int minLevel_ ; + /** + * uint32 minLevel = 11; + * @return The minLevel. + */ + @java.lang.Override + public int getMinLevel() { + return minLevel_; + } + /** + * uint32 minLevel = 11; + * @param value The minLevel to set. + * @return This builder for chaining. + */ + public Builder setMinLevel(int value) { + + minLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 minLevel = 11; + * @return This builder for chaining. + */ + public Builder clearMinLevel() { + + minLevel_ = 0; + onChanged(); + return this; + } + + private int maxLevel_ ; + /** + * uint32 maxLevel = 12; + * @return The maxLevel. + */ + @java.lang.Override + public int getMaxLevel() { + return maxLevel_; + } + /** + * uint32 maxLevel = 12; + * @param value The maxLevel to set. + * @return This builder for chaining. + */ + public Builder setMaxLevel(int value) { + + maxLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 maxLevel = 12; + * @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; + } + } + /** + * repeated uint32 preGoodsIdList = 13; + * @return A list containing the preGoodsIdList. + */ + public java.util.List + getPreGoodsIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(preGoodsIdList_) : preGoodsIdList_; + } + /** + * repeated uint32 preGoodsIdList = 13; + * @return The count of preGoodsIdList. + */ + public int getPreGoodsIdListCount() { + return preGoodsIdList_.size(); + } + /** + * repeated uint32 preGoodsIdList = 13; + * @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); + } + /** + * repeated uint32 preGoodsIdList = 13; + * @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; + } + /** + * repeated uint32 preGoodsIdList = 13; + * @param value The preGoodsIdList to add. + * @return This builder for chaining. + */ + public Builder addPreGoodsIdList(int value) { + ensurePreGoodsIdListIsMutable(); + preGoodsIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 preGoodsIdList = 13; + * @param values The preGoodsIdList to add. + * @return This builder for chaining. + */ + public Builder addAllPreGoodsIdList( + java.lang.Iterable values) { + ensurePreGoodsIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, preGoodsIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 preGoodsIdList = 13; + * @return This builder for chaining. + */ + public Builder clearPreGoodsIdList() { + preGoodsIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private int mcoin_ ; + /** + * uint32 mcoin = 14; + * @return The mcoin. + */ + @java.lang.Override + public int getMcoin() { + return mcoin_; + } + /** + * uint32 mcoin = 14; + * @param value The mcoin to set. + * @return This builder for chaining. + */ + public Builder setMcoin(int value) { + + mcoin_ = value; + onChanged(); + return this; + } + /** + * uint32 mcoin = 14; + * @return This builder for chaining. + */ + public Builder clearMcoin() { + + mcoin_ = 0; + onChanged(); + return this; + } + + private int disableType_ ; + /** + * uint32 disableType = 15; + * @return The disableType. + */ + @java.lang.Override + public int getDisableType() { + return disableType_; + } + /** + * uint32 disableType = 15; + * @param value The disableType to set. + * @return This builder for chaining. + */ + public Builder setDisableType(int value) { + + disableType_ = value; + onChanged(); + return this; + } + /** + * uint32 disableType = 15; + * @return This builder for chaining. + */ + public Builder clearDisableType() { + + disableType_ = 0; + onChanged(); + return this; + } + + private int secondarySheetId_ ; + /** + * uint32 secondarySheetId = 16; + * @return The secondarySheetId. + */ + @java.lang.Override + public int getSecondarySheetId() { + return secondarySheetId_; + } + /** + * uint32 secondarySheetId = 16; + * @param value The secondarySheetId to set. + * @return This builder for chaining. + */ + public Builder setSecondarySheetId(int value) { + + secondarySheetId_ = value; + onChanged(); + return this; + } + /** + * uint32 secondarySheetId = 16; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5c412bfff --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShopMcoinProductOuterClass.java @@ -0,0 +1,1120 @@ +// 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 { + + /** + * string productId = 1; + * @return The productId. + */ + java.lang.String getProductId(); + /** + * string productId = 1; + * @return The bytes for productId. + */ + com.google.protobuf.ByteString + getProductIdBytes(); + + /** + * string priceTier = 2; + * @return The priceTier. + */ + java.lang.String getPriceTier(); + /** + * string priceTier = 2; + * @return The bytes for priceTier. + */ + com.google.protobuf.ByteString + getPriceTierBytes(); + + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + int getMcoinBase(); + + /** + * uint32 mcoinNonFirst = 4; + * @return The mcoinNonFirst. + */ + int getMcoinNonFirst(); + + /** + * uint32 mcoinFirst = 5; + * @return The mcoinFirst. + */ + int getMcoinFirst(); + + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + int getBoughtNum(); + + /** + * bool isAudit = 7; + * @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_; + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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_; + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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_; + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + @java.lang.Override + public int getMcoinBase() { + return mcoinBase_; + } + + public static final int MCOINNONFIRST_FIELD_NUMBER = 4; + private int mcoinNonFirst_; + /** + * uint32 mcoinNonFirst = 4; + * @return The mcoinNonFirst. + */ + @java.lang.Override + public int getMcoinNonFirst() { + return mcoinNonFirst_; + } + + public static final int MCOINFIRST_FIELD_NUMBER = 5; + private int mcoinFirst_; + /** + * uint32 mcoinFirst = 5; + * @return The mcoinFirst. + */ + @java.lang.Override + public int getMcoinFirst() { + return mcoinFirst_; + } + + public static final int BOUGHTNUM_FIELD_NUMBER = 6; + private int boughtNum_; + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + @java.lang.Override + public int getBoughtNum() { + return boughtNum_; + } + + public static final int ISAUDIT_FIELD_NUMBER = 7; + private boolean isAudit_; + /** + * bool isAudit = 7; + * @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 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_ = ""; + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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; + } + } + /** + * string productId = 1; + * @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; + } + /** + * string productId = 1; + * @return This builder for chaining. + */ + public Builder clearProductId() { + + productId_ = getDefaultInstance().getProductId(); + onChanged(); + return this; + } + /** + * string productId = 1; + * @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_ = ""; + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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; + } + } + /** + * string priceTier = 2; + * @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; + } + /** + * string priceTier = 2; + * @return This builder for chaining. + */ + public Builder clearPriceTier() { + + priceTier_ = getDefaultInstance().getPriceTier(); + onChanged(); + return this; + } + /** + * string priceTier = 2; + * @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_ ; + /** + * uint32 mcoinBase = 3; + * @return The mcoinBase. + */ + @java.lang.Override + public int getMcoinBase() { + return mcoinBase_; + } + /** + * uint32 mcoinBase = 3; + * @param value The mcoinBase to set. + * @return This builder for chaining. + */ + public Builder setMcoinBase(int value) { + + mcoinBase_ = value; + onChanged(); + return this; + } + /** + * uint32 mcoinBase = 3; + * @return This builder for chaining. + */ + public Builder clearMcoinBase() { + + mcoinBase_ = 0; + onChanged(); + return this; + } + + private int mcoinNonFirst_ ; + /** + * uint32 mcoinNonFirst = 4; + * @return The mcoinNonFirst. + */ + @java.lang.Override + public int getMcoinNonFirst() { + return mcoinNonFirst_; + } + /** + * uint32 mcoinNonFirst = 4; + * @param value The mcoinNonFirst to set. + * @return This builder for chaining. + */ + public Builder setMcoinNonFirst(int value) { + + mcoinNonFirst_ = value; + onChanged(); + return this; + } + /** + * uint32 mcoinNonFirst = 4; + * @return This builder for chaining. + */ + public Builder clearMcoinNonFirst() { + + mcoinNonFirst_ = 0; + onChanged(); + return this; + } + + private int mcoinFirst_ ; + /** + * uint32 mcoinFirst = 5; + * @return The mcoinFirst. + */ + @java.lang.Override + public int getMcoinFirst() { + return mcoinFirst_; + } + /** + * uint32 mcoinFirst = 5; + * @param value The mcoinFirst to set. + * @return This builder for chaining. + */ + public Builder setMcoinFirst(int value) { + + mcoinFirst_ = value; + onChanged(); + return this; + } + /** + * uint32 mcoinFirst = 5; + * @return This builder for chaining. + */ + public Builder clearMcoinFirst() { + + mcoinFirst_ = 0; + onChanged(); + return this; + } + + private int boughtNum_ ; + /** + * uint32 boughtNum = 6; + * @return The boughtNum. + */ + @java.lang.Override + public int getBoughtNum() { + return boughtNum_; + } + /** + * uint32 boughtNum = 6; + * @param value The boughtNum to set. + * @return This builder for chaining. + */ + public Builder setBoughtNum(int value) { + + boughtNum_ = value; + onChanged(); + return this; + } + /** + * uint32 boughtNum = 6; + * @return This builder for chaining. + */ + public Builder clearBoughtNum() { + + boughtNum_ = 0; + onChanged(); + return this; + } + + private boolean isAudit_ ; + /** + * bool isAudit = 7; + * @return The isAudit. + */ + @java.lang.Override + public boolean getIsAudit() { + return isAudit_; + } + /** + * bool isAudit = 7; + * @param value The isAudit to set. + * @return This builder for chaining. + */ + public Builder setIsAudit(boolean value) { + + isAudit_ = value; + onChanged(); + return this; + } + /** + * bool isAudit = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..117cfde7c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShopOuterClass.java @@ -0,0 +1,1877 @@ +// 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 { + + /** + * uint32 shopType = 1; + * @return The shopType. + */ + int getShopType(); + + /** + * repeated .ShopGoods goodsList = 2; + */ + java.util.List + getGoodsListList(); + /** + * repeated .ShopGoods goodsList = 2; + */ + emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index); + /** + * repeated .ShopGoods goodsList = 2; + */ + int getGoodsListCount(); + /** + * repeated .ShopGoods goodsList = 2; + */ + java.util.List + getGoodsListOrBuilderList(); + /** + * repeated .ShopGoods goodsList = 2; + */ + emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder getGoodsListOrBuilder( + int index); + + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + java.util.List + getMcoinProductListList(); + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index); + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + int getMcoinProductListCount(); + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + java.util.List + getMcoinProductListOrBuilderList(); + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder getMcoinProductListOrBuilder( + int index); + + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + java.util.List + getCardProductListList(); + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index); + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + int getCardProductListCount(); + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + java.util.List + getCardProductListOrBuilderList(); + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder getCardProductListOrBuilder( + int index); + + /** + * uint32 nextRefreshTime = 6; + * @return The nextRefreshTime. + */ + int getNextRefreshTime(); + + /** + * uint32 cityId = 7; + * @return The cityId. + */ + int getCityId(); + + /** + * uint32 cityReputationLevel = 8; + * @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(); + 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(); + 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(); + 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_; + /** + * uint32 shopType = 1; + * @return The shopType. + */ + @java.lang.Override + public int getShopType() { + return shopType_; + } + + public static final int GOODSLIST_FIELD_NUMBER = 2; + private java.util.List goodsList_; + /** + * repeated .ShopGoods goodsList = 2; + */ + @java.lang.Override + public java.util.List getGoodsListList() { + return goodsList_; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + @java.lang.Override + public java.util.List + getGoodsListOrBuilderList() { + return goodsList_; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + @java.lang.Override + public int getGoodsListCount() { + return goodsList_.size(); + } + /** + * repeated .ShopGoods goodsList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index) { + return goodsList_.get(index); + } + /** + * repeated .ShopGoods goodsList = 2; + */ + @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 mcoinProductList_; + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + @java.lang.Override + public java.util.List getMcoinProductListList() { + return mcoinProductList_; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + @java.lang.Override + public java.util.List + getMcoinProductListOrBuilderList() { + return mcoinProductList_; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + @java.lang.Override + public int getMcoinProductListCount() { + return mcoinProductList_.size(); + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index) { + return mcoinProductList_.get(index); + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + @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 cardProductList_; + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + @java.lang.Override + public java.util.List getCardProductListList() { + return cardProductList_; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + @java.lang.Override + public java.util.List + getCardProductListOrBuilderList() { + return cardProductList_; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + @java.lang.Override + public int getCardProductListCount() { + return cardProductList_.size(); + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index) { + return cardProductList_.get(index); + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + @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_; + /** + * uint32 nextRefreshTime = 6; + * @return The nextRefreshTime. + */ + @java.lang.Override + public int getNextRefreshTime() { + return nextRefreshTime_; + } + + public static final int CITYID_FIELD_NUMBER = 7; + private int cityId_; + /** + * uint32 cityId = 7; + * @return The cityId. + */ + @java.lang.Override + public int getCityId() { + return cityId_; + } + + public static final int CITYREPUTATIONLEVEL_FIELD_NUMBER = 8; + private int cityReputationLevel_; + /** + * uint32 cityReputationLevel = 8; + * @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 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_ ; + /** + * uint32 shopType = 1; + * @return The shopType. + */ + @java.lang.Override + public int getShopType() { + return shopType_; + } + /** + * uint32 shopType = 1; + * @param value The shopType to set. + * @return This builder for chaining. + */ + public Builder setShopType(int value) { + + shopType_ = value; + onChanged(); + return this; + } + /** + * uint32 shopType = 1; + * @return This builder for chaining. + */ + public Builder clearShopType() { + + shopType_ = 0; + onChanged(); + return this; + } + + private java.util.List goodsList_ = + java.util.Collections.emptyList(); + private void ensureGoodsListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + goodsList_ = new java.util.ArrayList(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_; + + /** + * repeated .ShopGoods goodsList = 2; + */ + public java.util.List getGoodsListList() { + if (goodsListBuilder_ == null) { + return java.util.Collections.unmodifiableList(goodsList_); + } else { + return goodsListBuilder_.getMessageList(); + } + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public int getGoodsListCount() { + if (goodsListBuilder_ == null) { + return goodsList_.size(); + } else { + return goodsListBuilder_.getCount(); + } + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getGoodsList(int index) { + if (goodsListBuilder_ == null) { + return goodsList_.get(index); + } else { + return goodsListBuilder_.getMessage(index); + } + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + 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; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public Builder addAllGoodsList( + java.lang.Iterable values) { + if (goodsListBuilder_ == null) { + ensureGoodsListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, goodsList_); + onChanged(); + } else { + goodsListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public Builder clearGoodsList() { + if (goodsListBuilder_ == null) { + goodsList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + goodsListBuilder_.clear(); + } + return this; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public Builder removeGoodsList(int index) { + if (goodsListBuilder_ == null) { + ensureGoodsListIsMutable(); + goodsList_.remove(index); + onChanged(); + } else { + goodsListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder getGoodsListBuilder( + int index) { + return getGoodsListFieldBuilder().getBuilder(index); + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder getGoodsListOrBuilder( + int index) { + if (goodsListBuilder_ == null) { + return goodsList_.get(index); } else { + return goodsListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public java.util.List + getGoodsListOrBuilderList() { + if (goodsListBuilder_ != null) { + return goodsListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(goodsList_); + } + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder addGoodsListBuilder() { + return getGoodsListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()); + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder addGoodsListBuilder( + int index) { + return getGoodsListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()); + } + /** + * repeated .ShopGoods goodsList = 2; + */ + public java.util.List + 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 mcoinProductList_ = + java.util.Collections.emptyList(); + private void ensureMcoinProductListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + mcoinProductList_ = new java.util.ArrayList(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_; + + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public java.util.List getMcoinProductListList() { + if (mcoinProductListBuilder_ == null) { + return java.util.Collections.unmodifiableList(mcoinProductList_); + } else { + return mcoinProductListBuilder_.getMessageList(); + } + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public int getMcoinProductListCount() { + if (mcoinProductListBuilder_ == null) { + return mcoinProductList_.size(); + } else { + return mcoinProductListBuilder_.getCount(); + } + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct getMcoinProductList(int index) { + if (mcoinProductListBuilder_ == null) { + return mcoinProductList_.get(index); + } else { + return mcoinProductListBuilder_.getMessage(index); + } + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + 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; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public Builder addAllMcoinProductList( + java.lang.Iterable values) { + if (mcoinProductListBuilder_ == null) { + ensureMcoinProductListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mcoinProductList_); + onChanged(); + } else { + mcoinProductListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public Builder clearMcoinProductList() { + if (mcoinProductListBuilder_ == null) { + mcoinProductList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + mcoinProductListBuilder_.clear(); + } + return this; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public Builder removeMcoinProductList(int index) { + if (mcoinProductListBuilder_ == null) { + ensureMcoinProductListIsMutable(); + mcoinProductList_.remove(index); + onChanged(); + } else { + mcoinProductListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder getMcoinProductListBuilder( + int index) { + return getMcoinProductListFieldBuilder().getBuilder(index); + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProductOrBuilder getMcoinProductListOrBuilder( + int index) { + if (mcoinProductListBuilder_ == null) { + return mcoinProductList_.get(index); } else { + return mcoinProductListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public java.util.List + getMcoinProductListOrBuilderList() { + if (mcoinProductListBuilder_ != null) { + return mcoinProductListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mcoinProductList_); + } + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder addMcoinProductListBuilder() { + return getMcoinProductListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance()); + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.Builder addMcoinProductListBuilder( + int index) { + return getMcoinProductListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ShopMcoinProductOuterClass.ShopMcoinProduct.getDefaultInstance()); + } + /** + * repeated .ShopMcoinProduct mcoinProductList = 3; + */ + public java.util.List + 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 cardProductList_ = + java.util.Collections.emptyList(); + private void ensureCardProductListIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + cardProductList_ = new java.util.ArrayList(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_; + + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public java.util.List getCardProductListList() { + if (cardProductListBuilder_ == null) { + return java.util.Collections.unmodifiableList(cardProductList_); + } else { + return cardProductListBuilder_.getMessageList(); + } + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public int getCardProductListCount() { + if (cardProductListBuilder_ == null) { + return cardProductList_.size(); + } else { + return cardProductListBuilder_.getCount(); + } + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct getCardProductList(int index) { + if (cardProductListBuilder_ == null) { + return cardProductList_.get(index); + } else { + return cardProductListBuilder_.getMessage(index); + } + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + 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; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public Builder addAllCardProductList( + java.lang.Iterable values) { + if (cardProductListBuilder_ == null) { + ensureCardProductListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cardProductList_); + onChanged(); + } else { + cardProductListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public Builder clearCardProductList() { + if (cardProductListBuilder_ == null) { + cardProductList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + cardProductListBuilder_.clear(); + } + return this; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public Builder removeCardProductList(int index) { + if (cardProductListBuilder_ == null) { + ensureCardProductListIsMutable(); + cardProductList_.remove(index); + onChanged(); + } else { + cardProductListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder getCardProductListBuilder( + int index) { + return getCardProductListFieldBuilder().getBuilder(index); + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProductOrBuilder getCardProductListOrBuilder( + int index) { + if (cardProductListBuilder_ == null) { + return cardProductList_.get(index); } else { + return cardProductListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public java.util.List + getCardProductListOrBuilderList() { + if (cardProductListBuilder_ != null) { + return cardProductListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cardProductList_); + } + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder addCardProductListBuilder() { + return getCardProductListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance()); + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.Builder addCardProductListBuilder( + int index) { + return getCardProductListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ShopCardProductOuterClass.ShopCardProduct.getDefaultInstance()); + } + /** + * repeated .ShopCardProduct cardProductList = 4; + */ + public java.util.List + 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_ ; + /** + * uint32 nextRefreshTime = 6; + * @return The nextRefreshTime. + */ + @java.lang.Override + public int getNextRefreshTime() { + return nextRefreshTime_; + } + /** + * uint32 nextRefreshTime = 6; + * @param value The nextRefreshTime to set. + * @return This builder for chaining. + */ + public Builder setNextRefreshTime(int value) { + + nextRefreshTime_ = value; + onChanged(); + return this; + } + /** + * uint32 nextRefreshTime = 6; + * @return This builder for chaining. + */ + public Builder clearNextRefreshTime() { + + nextRefreshTime_ = 0; + onChanged(); + return this; + } + + private int cityId_ ; + /** + * uint32 cityId = 7; + * @return The cityId. + */ + @java.lang.Override + public int getCityId() { + return cityId_; + } + /** + * uint32 cityId = 7; + * @param value The cityId to set. + * @return This builder for chaining. + */ + public Builder setCityId(int value) { + + cityId_ = value; + onChanged(); + return this; + } + /** + * uint32 cityId = 7; + * @return This builder for chaining. + */ + public Builder clearCityId() { + + cityId_ = 0; + onChanged(); + return this; + } + + private int cityReputationLevel_ ; + /** + * uint32 cityReputationLevel = 8; + * @return The cityReputationLevel. + */ + @java.lang.Override + public int getCityReputationLevel() { + return cityReputationLevel_; + } + /** + * uint32 cityReputationLevel = 8; + * @param value The cityReputationLevel to set. + * @return This builder for chaining. + */ + public Builder setCityReputationLevel(int value) { + + cityReputationLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 cityReputationLevel = 8; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4545819b5 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/ShortAbilityHashPairOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * int32 abilityNameHash = 1; + * @return The abilityNameHash. + */ + int getAbilityNameHash(); + + /** + * int32 abilityConfigHash = 2; + * @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_; + /** + * int32 abilityNameHash = 1; + * @return The abilityNameHash. + */ + @java.lang.Override + public int getAbilityNameHash() { + return abilityNameHash_; + } + + public static final int ABILITYCONFIGHASH_FIELD_NUMBER = 2; + private int abilityConfigHash_; + /** + * int32 abilityConfigHash = 2; + * @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 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_ ; + /** + * int32 abilityNameHash = 1; + * @return The abilityNameHash. + */ + @java.lang.Override + public int getAbilityNameHash() { + return abilityNameHash_; + } + /** + * int32 abilityNameHash = 1; + * @param value The abilityNameHash to set. + * @return This builder for chaining. + */ + public Builder setAbilityNameHash(int value) { + + abilityNameHash_ = value; + onChanged(); + return this; + } + /** + * int32 abilityNameHash = 1; + * @return This builder for chaining. + */ + public Builder clearAbilityNameHash() { + + abilityNameHash_ = 0; + onChanged(); + return this; + } + + private int abilityConfigHash_ ; + /** + * int32 abilityConfigHash = 2; + * @return The abilityConfigHash. + */ + @java.lang.Override + public int getAbilityConfigHash() { + return abilityConfigHash_; + } + /** + * int32 abilityConfigHash = 2; + * @param value The abilityConfigHash to set. + * @return This builder for chaining. + */ + public Builder setAbilityConfigHash(int value) { + + abilityConfigHash_ = value; + onChanged(); + return this; + } + /** + * int32 abilityConfigHash = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/SocialDetailOuterClass.java b/src/main/java/emu/grasscutter/net/proto/SocialDetailOuterClass.java new file mode 100644 index 000000000..1ebf96d00 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SocialDetailOuterClass.java @@ -0,0 +1,2835 @@ +// 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 { + + /** + * uint32 uid = 1; + * @return The uid. + */ + int getUid(); + + /** + * string nickname = 2; + * @return The nickname. + */ + java.lang.String getNickname(); + /** + * string nickname = 2; + * @return The bytes for nickname. + */ + com.google.protobuf.ByteString + getNicknameBytes(); + + /** + * uint32 level = 3; + * @return The level. + */ + int getLevel(); + + /** + * string signature = 5; + * @return The signature. + */ + java.lang.String getSignature(); + /** + * string signature = 5; + * @return The bytes for signature. + */ + com.google.protobuf.ByteString + getSignatureBytes(); + + /** + * .Birthday birthday = 6; + * @return Whether the birthday field is set. + */ + boolean hasBirthday(); + /** + * .Birthday birthday = 6; + * @return The birthday. + */ + emu.grasscutter.net.proto.BirthdayOuterClass.Birthday getBirthday(); + /** + * .Birthday birthday = 6; + */ + emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder(); + + /** + * uint32 worldLevel = 7; + * @return The worldLevel. + */ + int getWorldLevel(); + + /** + * uint32 unk1 = 9; + * @return The unk1. + */ + int getUnk1(); + + /** + *
+     *FriendOnlineState onlineState = 10;
+     *bool isMpModeAvailable = 10;
+     * 
+ * + * bool isFriend = 11; + * @return The isFriend. + */ + boolean getIsFriend(); + + /** + * uint32 unk3 = 12; + * @return The unk3. + */ + int getUnk3(); + + /** + * uint32 lastActiveTime = 13; + * @return The lastActiveTime. + */ + int getLastActiveTime(); + + /** + * uint32 nameCardId = 14; + * @return The nameCardId. + */ + int getNameCardId(); + + /** + * bool isInBlacklist = 15; + * @return The isInBlacklist. + */ + boolean getIsInBlacklist(); + + /** + * bool isChatNoDisturb = 16; + * @return The isChatNoDisturb. + */ + boolean getIsChatNoDisturb(); + + /** + * string remarkName = 17; + * @return The remarkName. + */ + java.lang.String getRemarkName(); + /** + * string remarkName = 17; + * @return The bytes for remarkName. + */ + com.google.protobuf.ByteString + getRemarkNameBytes(); + + /** + * uint32 finishAchievementNum = 18; + * @return The finishAchievementNum. + */ + int getFinishAchievementNum(); + + /** + * uint32 towerFloorIndex = 19; + * @return The towerFloorIndex. + */ + int getTowerFloorIndex(); + + /** + * uint32 towerLevelIndex = 20; + * @return The towerLevelIndex. + */ + int getTowerLevelIndex(); + + /** + * bool isShowAvatar = 21; + * @return The isShowAvatar. + */ + boolean getIsShowAvatar(); + + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + java.util.List + getShowAvatarInfoListList(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + int getShowAvatarInfoListCount(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + java.util.List + getShowAvatarInfoListOrBuilderList(); + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( + int index); + + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + int getFriendEnterHomeOptionValue(); + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The friendEnterHomeOption. + */ + emu.grasscutter.net.proto.FriendEnterHomeOptionOuterClass.FriendEnterHomeOption getFriendEnterHomeOption(); + + /** + * .HeadImage avatar = 25; + * @return Whether the avatar field is set. + */ + boolean hasAvatar(); + /** + * .HeadImage avatar = 25; + * @return The avatar. + */ + emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage getAvatar(); + /** + * .HeadImage avatar = 25; + */ + 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(); + 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_; + /** + * uint32 uid = 1; + * @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_; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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_; + /** + * uint32 level = 3; + * @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_; + /** + * string signature = 5; + * @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; + } + } + /** + * string signature = 5; + * @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_; + /** + * .Birthday birthday = 6; + * @return Whether the birthday field is set. + */ + @java.lang.Override + public boolean hasBirthday() { + return birthday_ != null; + } + /** + * .Birthday birthday = 6; + * @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_; + } + /** + * .Birthday birthday = 6; + */ + @java.lang.Override + public emu.grasscutter.net.proto.BirthdayOuterClass.BirthdayOrBuilder getBirthdayOrBuilder() { + return getBirthday(); + } + + public static final int WORLDLEVEL_FIELD_NUMBER = 7; + private int worldLevel_; + /** + * uint32 worldLevel = 7; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + + public static final int UNK1_FIELD_NUMBER = 9; + private int unk1_; + /** + * uint32 unk1 = 9; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + + public static final int ISFRIEND_FIELD_NUMBER = 11; + private boolean isFriend_; + /** + *
+     *FriendOnlineState onlineState = 10;
+     *bool isMpModeAvailable = 10;
+     * 
+ * + * bool isFriend = 11; + * @return The isFriend. + */ + @java.lang.Override + public boolean getIsFriend() { + return isFriend_; + } + + public static final int UNK3_FIELD_NUMBER = 12; + private int unk3_; + /** + * uint32 unk3 = 12; + * @return The unk3. + */ + @java.lang.Override + public int getUnk3() { + return unk3_; + } + + public static final int LASTACTIVETIME_FIELD_NUMBER = 13; + private int lastActiveTime_; + /** + * uint32 lastActiveTime = 13; + * @return The lastActiveTime. + */ + @java.lang.Override + public int getLastActiveTime() { + return lastActiveTime_; + } + + public static final int NAMECARDID_FIELD_NUMBER = 14; + private int nameCardId_; + /** + * uint32 nameCardId = 14; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + + public static final int ISINBLACKLIST_FIELD_NUMBER = 15; + private boolean isInBlacklist_; + /** + * bool isInBlacklist = 15; + * @return The isInBlacklist. + */ + @java.lang.Override + public boolean getIsInBlacklist() { + return isInBlacklist_; + } + + public static final int ISCHATNODISTURB_FIELD_NUMBER = 16; + private boolean isChatNoDisturb_; + /** + * bool isChatNoDisturb = 16; + * @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_; + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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_; + /** + * uint32 finishAchievementNum = 18; + * @return The finishAchievementNum. + */ + @java.lang.Override + public int getFinishAchievementNum() { + return finishAchievementNum_; + } + + public static final int TOWERFLOORINDEX_FIELD_NUMBER = 19; + private int towerFloorIndex_; + /** + * uint32 towerFloorIndex = 19; + * @return The towerFloorIndex. + */ + @java.lang.Override + public int getTowerFloorIndex() { + return towerFloorIndex_; + } + + public static final int TOWERLEVELINDEX_FIELD_NUMBER = 20; + private int towerLevelIndex_; + /** + * uint32 towerLevelIndex = 20; + * @return The towerLevelIndex. + */ + @java.lang.Override + public int getTowerLevelIndex() { + return towerLevelIndex_; + } + + public static final int ISSHOWAVATAR_FIELD_NUMBER = 21; + private boolean isShowAvatar_; + /** + * bool isShowAvatar = 21; + * @return The isShowAvatar. + */ + @java.lang.Override + public boolean getIsShowAvatar() { + return isShowAvatar_; + } + + public static final int SHOWAVATARINFOLIST_FIELD_NUMBER = 22; + private java.util.List showAvatarInfoList_; + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public java.util.List getShowAvatarInfoListList() { + return showAvatarInfoList_; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public java.util.List + getShowAvatarInfoListOrBuilderList() { + return showAvatarInfoList_; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public int getShowAvatarInfoListCount() { + return showAvatarInfoList_.size(); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @java.lang.Override + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { + return showAvatarInfoList_.get(index); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + @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_; + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + @java.lang.Override public int getFriendEnterHomeOptionValue() { + return friendEnterHomeOption_; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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_; + /** + * .HeadImage avatar = 25; + * @return Whether the avatar field is set. + */ + @java.lang.Override + public boolean hasAvatar() { + return avatar_ != null; + } + /** + * .HeadImage avatar = 25; + * @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_; + } + /** + * .HeadImage avatar = 25; + */ + @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 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_ ; + /** + * uint32 uid = 1; + * @return The uid. + */ + @java.lang.Override + public int getUid() { + return uid_; + } + /** + * uint32 uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(int value) { + + uid_ = value; + onChanged(); + return this; + } + /** + * uint32 uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nickname_ = ""; + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + } + /** + * string nickname = 2; + * @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; + } + /** + * string nickname = 2; + * @return This builder for chaining. + */ + public Builder clearNickname() { + + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + * string nickname = 2; + * @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_ ; + /** + * uint32 level = 3; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 3; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 3; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private java.lang.Object signature_ = ""; + /** + * string signature = 5; + * @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; + } + } + /** + * string signature = 5; + * @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; + } + } + /** + * string signature = 5; + * @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; + } + /** + * string signature = 5; + * @return This builder for chaining. + */ + public Builder clearSignature() { + + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + /** + * string signature = 5; + * @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_; + /** + * .Birthday birthday = 6; + * @return Whether the birthday field is set. + */ + public boolean hasBirthday() { + return birthdayBuilder_ != null || birthday_ != null; + } + /** + * .Birthday birthday = 6; + * @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(); + } + } + /** + * .Birthday birthday = 6; + */ + 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; + } + /** + * .Birthday birthday = 6; + */ + 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; + } + /** + * .Birthday birthday = 6; + */ + 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; + } + /** + * .Birthday birthday = 6; + */ + public Builder clearBirthday() { + if (birthdayBuilder_ == null) { + birthday_ = null; + onChanged(); + } else { + birthday_ = null; + birthdayBuilder_ = null; + } + + return this; + } + /** + * .Birthday birthday = 6; + */ + public emu.grasscutter.net.proto.BirthdayOuterClass.Birthday.Builder getBirthdayBuilder() { + + onChanged(); + return getBirthdayFieldBuilder().getBuilder(); + } + /** + * .Birthday birthday = 6; + */ + 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_; + } + } + /** + * .Birthday birthday = 6; + */ + 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_ ; + /** + * uint32 worldLevel = 7; + * @return The worldLevel. + */ + @java.lang.Override + public int getWorldLevel() { + return worldLevel_; + } + /** + * uint32 worldLevel = 7; + * @param value The worldLevel to set. + * @return This builder for chaining. + */ + public Builder setWorldLevel(int value) { + + worldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 worldLevel = 7; + * @return This builder for chaining. + */ + public Builder clearWorldLevel() { + + worldLevel_ = 0; + onChanged(); + return this; + } + + private int unk1_ ; + /** + * uint32 unk1 = 9; + * @return The unk1. + */ + @java.lang.Override + public int getUnk1() { + return unk1_; + } + /** + * uint32 unk1 = 9; + * @param value The unk1 to set. + * @return This builder for chaining. + */ + public Builder setUnk1(int value) { + + unk1_ = value; + onChanged(); + return this; + } + /** + * uint32 unk1 = 9; + * @return This builder for chaining. + */ + public Builder clearUnk1() { + + unk1_ = 0; + onChanged(); + return this; + } + + private boolean isFriend_ ; + /** + *
+       *FriendOnlineState onlineState = 10;
+       *bool isMpModeAvailable = 10;
+       * 
+ * + * bool isFriend = 11; + * @return The isFriend. + */ + @java.lang.Override + public boolean getIsFriend() { + return isFriend_; + } + /** + *
+       *FriendOnlineState onlineState = 10;
+       *bool isMpModeAvailable = 10;
+       * 
+ * + * bool isFriend = 11; + * @param value The isFriend to set. + * @return This builder for chaining. + */ + public Builder setIsFriend(boolean value) { + + isFriend_ = value; + onChanged(); + return this; + } + /** + *
+       *FriendOnlineState onlineState = 10;
+       *bool isMpModeAvailable = 10;
+       * 
+ * + * bool isFriend = 11; + * @return This builder for chaining. + */ + public Builder clearIsFriend() { + + isFriend_ = false; + onChanged(); + return this; + } + + private int unk3_ ; + /** + * uint32 unk3 = 12; + * @return The unk3. + */ + @java.lang.Override + public int getUnk3() { + return unk3_; + } + /** + * uint32 unk3 = 12; + * @param value The unk3 to set. + * @return This builder for chaining. + */ + public Builder setUnk3(int value) { + + unk3_ = value; + onChanged(); + return this; + } + /** + * uint32 unk3 = 12; + * @return This builder for chaining. + */ + public Builder clearUnk3() { + + unk3_ = 0; + onChanged(); + return this; + } + + private int lastActiveTime_ ; + /** + * uint32 lastActiveTime = 13; + * @return The lastActiveTime. + */ + @java.lang.Override + public int getLastActiveTime() { + return lastActiveTime_; + } + /** + * uint32 lastActiveTime = 13; + * @param value The lastActiveTime to set. + * @return This builder for chaining. + */ + public Builder setLastActiveTime(int value) { + + lastActiveTime_ = value; + onChanged(); + return this; + } + /** + * uint32 lastActiveTime = 13; + * @return This builder for chaining. + */ + public Builder clearLastActiveTime() { + + lastActiveTime_ = 0; + onChanged(); + return this; + } + + private int nameCardId_ ; + /** + * uint32 nameCardId = 14; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 14; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 14; + * @return This builder for chaining. + */ + public Builder clearNameCardId() { + + nameCardId_ = 0; + onChanged(); + return this; + } + + private boolean isInBlacklist_ ; + /** + * bool isInBlacklist = 15; + * @return The isInBlacklist. + */ + @java.lang.Override + public boolean getIsInBlacklist() { + return isInBlacklist_; + } + /** + * bool isInBlacklist = 15; + * @param value The isInBlacklist to set. + * @return This builder for chaining. + */ + public Builder setIsInBlacklist(boolean value) { + + isInBlacklist_ = value; + onChanged(); + return this; + } + /** + * bool isInBlacklist = 15; + * @return This builder for chaining. + */ + public Builder clearIsInBlacklist() { + + isInBlacklist_ = false; + onChanged(); + return this; + } + + private boolean isChatNoDisturb_ ; + /** + * bool isChatNoDisturb = 16; + * @return The isChatNoDisturb. + */ + @java.lang.Override + public boolean getIsChatNoDisturb() { + return isChatNoDisturb_; + } + /** + * bool isChatNoDisturb = 16; + * @param value The isChatNoDisturb to set. + * @return This builder for chaining. + */ + public Builder setIsChatNoDisturb(boolean value) { + + isChatNoDisturb_ = value; + onChanged(); + return this; + } + /** + * bool isChatNoDisturb = 16; + * @return This builder for chaining. + */ + public Builder clearIsChatNoDisturb() { + + isChatNoDisturb_ = false; + onChanged(); + return this; + } + + private java.lang.Object remarkName_ = ""; + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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; + } + } + /** + * string remarkName = 17; + * @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; + } + /** + * string remarkName = 17; + * @return This builder for chaining. + */ + public Builder clearRemarkName() { + + remarkName_ = getDefaultInstance().getRemarkName(); + onChanged(); + return this; + } + /** + * string remarkName = 17; + * @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_ ; + /** + * uint32 finishAchievementNum = 18; + * @return The finishAchievementNum. + */ + @java.lang.Override + public int getFinishAchievementNum() { + return finishAchievementNum_; + } + /** + * uint32 finishAchievementNum = 18; + * @param value The finishAchievementNum to set. + * @return This builder for chaining. + */ + public Builder setFinishAchievementNum(int value) { + + finishAchievementNum_ = value; + onChanged(); + return this; + } + /** + * uint32 finishAchievementNum = 18; + * @return This builder for chaining. + */ + public Builder clearFinishAchievementNum() { + + finishAchievementNum_ = 0; + onChanged(); + return this; + } + + private int towerFloorIndex_ ; + /** + * uint32 towerFloorIndex = 19; + * @return The towerFloorIndex. + */ + @java.lang.Override + public int getTowerFloorIndex() { + return towerFloorIndex_; + } + /** + * uint32 towerFloorIndex = 19; + * @param value The towerFloorIndex to set. + * @return This builder for chaining. + */ + public Builder setTowerFloorIndex(int value) { + + towerFloorIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 towerFloorIndex = 19; + * @return This builder for chaining. + */ + public Builder clearTowerFloorIndex() { + + towerFloorIndex_ = 0; + onChanged(); + return this; + } + + private int towerLevelIndex_ ; + /** + * uint32 towerLevelIndex = 20; + * @return The towerLevelIndex. + */ + @java.lang.Override + public int getTowerLevelIndex() { + return towerLevelIndex_; + } + /** + * uint32 towerLevelIndex = 20; + * @param value The towerLevelIndex to set. + * @return This builder for chaining. + */ + public Builder setTowerLevelIndex(int value) { + + towerLevelIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 towerLevelIndex = 20; + * @return This builder for chaining. + */ + public Builder clearTowerLevelIndex() { + + towerLevelIndex_ = 0; + onChanged(); + return this; + } + + private boolean isShowAvatar_ ; + /** + * bool isShowAvatar = 21; + * @return The isShowAvatar. + */ + @java.lang.Override + public boolean getIsShowAvatar() { + return isShowAvatar_; + } + /** + * bool isShowAvatar = 21; + * @param value The isShowAvatar to set. + * @return This builder for chaining. + */ + public Builder setIsShowAvatar(boolean value) { + + isShowAvatar_ = value; + onChanged(); + return this; + } + /** + * bool isShowAvatar = 21; + * @return This builder for chaining. + */ + public Builder clearIsShowAvatar() { + + isShowAvatar_ = false; + onChanged(); + return this; + } + + private java.util.List showAvatarInfoList_ = + java.util.Collections.emptyList(); + private void ensureShowAvatarInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + showAvatarInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List getShowAvatarInfoListList() { + if (showAvatarInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(showAvatarInfoList_); + } else { + return showAvatarInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public int getShowAvatarInfoListCount() { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.size(); + } else { + return showAvatarInfoListBuilder_.getCount(); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo getShowAvatarInfoList(int index) { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.get(index); + } else { + return showAvatarInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + 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; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder addAllShowAvatarInfoList( + java.lang.Iterable values) { + if (showAvatarInfoListBuilder_ == null) { + ensureShowAvatarInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, showAvatarInfoList_); + onChanged(); + } else { + showAvatarInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder clearShowAvatarInfoList() { + if (showAvatarInfoListBuilder_ == null) { + showAvatarInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + showAvatarInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public Builder removeShowAvatarInfoList(int index) { + if (showAvatarInfoListBuilder_ == null) { + ensureShowAvatarInfoListIsMutable(); + showAvatarInfoList_.remove(index); + onChanged(); + } else { + showAvatarInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder getShowAvatarInfoListBuilder( + int index) { + return getShowAvatarInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfoOrBuilder getShowAvatarInfoListOrBuilder( + int index) { + if (showAvatarInfoListBuilder_ == null) { + return showAvatarInfoList_.get(index); } else { + return showAvatarInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List + getShowAvatarInfoListOrBuilderList() { + if (showAvatarInfoListBuilder_ != null) { + return showAvatarInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(showAvatarInfoList_); + } + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder() { + return getShowAvatarInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.Builder addShowAvatarInfoListBuilder( + int index) { + return getShowAvatarInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.SocialShowAvatarInfoOuterClass.SocialShowAvatarInfo.getDefaultInstance()); + } + /** + * repeated .SocialShowAvatarInfo showAvatarInfoList = 22; + */ + public java.util.List + 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; + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @return The enum numeric value on the wire for friendEnterHomeOption. + */ + @java.lang.Override public int getFriendEnterHomeOptionValue() { + return friendEnterHomeOption_; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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; + } + /** + * .FriendEnterHomeOption friendEnterHomeOption = 23; + * @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_; + /** + * .HeadImage avatar = 25; + * @return Whether the avatar field is set. + */ + public boolean hasAvatar() { + return avatarBuilder_ != null || avatar_ != null; + } + /** + * .HeadImage avatar = 25; + * @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(); + } + } + /** + * .HeadImage avatar = 25; + */ + 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; + } + /** + * .HeadImage avatar = 25; + */ + 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; + } + /** + * .HeadImage avatar = 25; + */ + 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; + } + /** + * .HeadImage avatar = 25; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = null; + onChanged(); + } else { + avatar_ = null; + avatarBuilder_ = null; + } + + return this; + } + /** + * .HeadImage avatar = 25; + */ + public emu.grasscutter.net.proto.HeadImageOuterClass.HeadImage.Builder getAvatarBuilder() { + + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * .HeadImage avatar = 25; + */ + 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_; + } + } + /** + * .HeadImage avatar = 25; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..cc76864fb --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SocialShowAvatarInfoOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + int getAvatarId(); + + /** + * uint32 level = 2; + * @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_; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + + public static final int LEVEL_FIELD_NUMBER = 2; + private int level_; + /** + * uint32 level = 2; + * @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 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_ ; + /** + * uint32 avatarId = 1; + * @return The avatarId. + */ + @java.lang.Override + public int getAvatarId() { + return avatarId_; + } + /** + * uint32 avatarId = 1; + * @param value The avatarId to set. + * @return This builder for chaining. + */ + public Builder setAvatarId(int value) { + + avatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 avatarId = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarId() { + + avatarId_ = 0; + onChanged(); + return this; + } + + private int level_ ; + /** + * uint32 level = 2; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 2; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..7f3a99992 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/StoreItemChangeNotifyOuterClass.java @@ -0,0 +1,954 @@ +// 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 { + + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + int getStoreTypeValue(); + /** + * .StoreType storeType = 1; + * @return The storeType. + */ + emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); + + /** + * repeated .Item itemList = 2; + */ + java.util.List + getItemListList(); + /** + * repeated .Item itemList = 2; + */ + emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index); + /** + * repeated .Item itemList = 2; + */ + int getItemListCount(); + /** + * repeated .Item itemList = 2; + */ + java.util.List + getItemListOrBuilderList(); + /** + * repeated .Item itemList = 2; + */ + 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(); + 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_; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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 itemList_; + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public java.util.List getItemListList() { + return itemList_; + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public java.util.List + getItemListOrBuilderList() { + return itemList_; + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public int getItemListCount() { + return itemList_.size(); + } + /** + * repeated .Item itemList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { + return itemList_.get(index); + } + /** + * repeated .Item itemList = 2; + */ + @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 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; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @return This builder for chaining. + */ + public Builder clearStoreType() { + + storeType_ = 0; + onChanged(); + return this; + } + + private java.util.List itemList_ = + java.util.Collections.emptyList(); + private void ensureItemListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemList_ = new java.util.ArrayList(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_; + + /** + * repeated .Item itemList = 2; + */ + public java.util.List getItemListList() { + if (itemListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemList_); + } else { + return itemListBuilder_.getMessageList(); + } + } + /** + * repeated .Item itemList = 2; + */ + public int getItemListCount() { + if (itemListBuilder_ == null) { + return itemList_.size(); + } else { + return itemListBuilder_.getCount(); + } + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item getItemList(int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); + } else { + return itemListBuilder_.getMessage(index); + } + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + 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; + } + /** + * repeated .Item itemList = 2; + */ + public Builder addAllItemList( + java.lang.Iterable values) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemList_); + onChanged(); + } else { + itemListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public Builder clearItemList() { + if (itemListBuilder_ == null) { + itemList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemListBuilder_.clear(); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public Builder removeItemList(int index) { + if (itemListBuilder_ == null) { + ensureItemListIsMutable(); + itemList_.remove(index); + onChanged(); + } else { + itemListBuilder_.remove(index); + } + return this; + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getItemListBuilder( + int index) { + return getItemListFieldBuilder().getBuilder(index); + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getItemListOrBuilder( + int index) { + if (itemListBuilder_ == null) { + return itemList_.get(index); } else { + return itemListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Item itemList = 2; + */ + public java.util.List + getItemListOrBuilderList() { + if (itemListBuilder_ != null) { + return itemListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemList_); + } + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder() { + return getItemListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item itemList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addItemListBuilder( + int index) { + return getItemListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item itemList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1e3364885 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/StoreItemDelNotifyOuterClass.java @@ -0,0 +1,773 @@ +// 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 { + + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + int getStoreTypeValue(); + /** + * .StoreType storeType = 1; + * @return The storeType. + */ + emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); + + /** + * repeated uint64 guidList = 2; + * @return A list containing the guidList. + */ + java.util.List getGuidListList(); + /** + * repeated uint64 guidList = 2; + * @return The count of guidList. + */ + int getGuidListCount(); + /** + * repeated uint64 guidList = 2; + * @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_; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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_; + /** + * repeated uint64 guidList = 2; + * @return A list containing the guidList. + */ + @java.lang.Override + public java.util.List + getGuidListList() { + return guidList_; + } + /** + * repeated uint64 guidList = 2; + * @return The count of guidList. + */ + public int getGuidListCount() { + return guidList_.size(); + } + /** + * repeated uint64 guidList = 2; + * @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 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; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + } + /** + * repeated uint64 guidList = 2; + * @return A list containing the guidList. + */ + public java.util.List + getGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(guidList_) : guidList_; + } + /** + * repeated uint64 guidList = 2; + * @return The count of guidList. + */ + public int getGuidListCount() { + return guidList_.size(); + } + /** + * repeated uint64 guidList = 2; + * @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); + } + /** + * repeated uint64 guidList = 2; + * @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; + } + /** + * repeated uint64 guidList = 2; + * @param value The guidList to add. + * @return This builder for chaining. + */ + public Builder addGuidList(long value) { + ensureGuidListIsMutable(); + guidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 guidList = 2; + * @param values The guidList to add. + * @return This builder for chaining. + */ + public Builder addAllGuidList( + java.lang.Iterable values) { + ensureGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, guidList_); + onChanged(); + return this; + } + /** + * repeated uint64 guidList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..520660283 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/StoreTypeOuterClass.java @@ -0,0 +1,154 @@ +// 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 { + /** + * StoreNone = 0; + */ + StoreNone(0), + /** + * StorePack = 1; + */ + StorePack(1), + /** + * StoreDepot = 2; + */ + StoreDepot(2), + UNRECOGNIZED(-1), + ; + + /** + * StoreNone = 0; + */ + public static final int StoreNone_VALUE = 0; + /** + * StorePack = 1; + */ + public static final int StorePack_VALUE = 1; + /** + * StoreDepot = 2; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StoreType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..85d89fd36 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/StoreWeightLimitNotifyOuterClass.java @@ -0,0 +1,929 @@ +// 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 { + + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + int getStoreTypeValue(); + /** + * .StoreType storeType = 1; + * @return The storeType. + */ + emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType getStoreType(); + + /** + * uint32 weightLimit = 3; + * @return The weightLimit. + */ + int getWeightLimit(); + + /** + * uint32 materialCountLimit = 4; + * @return The materialCountLimit. + */ + int getMaterialCountLimit(); + + /** + * uint32 weaponCountLimit = 5; + * @return The weaponCountLimit. + */ + int getWeaponCountLimit(); + + /** + * uint32 reliquaryCountLimit = 6; + * @return The reliquaryCountLimit. + */ + int getReliquaryCountLimit(); + + /** + * uint32 furnitureCountLimit = 7; + * @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_; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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_; + /** + * uint32 weightLimit = 3; + * @return The weightLimit. + */ + @java.lang.Override + public int getWeightLimit() { + return weightLimit_; + } + + public static final int MATERIALCOUNTLIMIT_FIELD_NUMBER = 4; + private int materialCountLimit_; + /** + * uint32 materialCountLimit = 4; + * @return The materialCountLimit. + */ + @java.lang.Override + public int getMaterialCountLimit() { + return materialCountLimit_; + } + + public static final int WEAPONCOUNTLIMIT_FIELD_NUMBER = 5; + private int weaponCountLimit_; + /** + * uint32 weaponCountLimit = 5; + * @return The weaponCountLimit. + */ + @java.lang.Override + public int getWeaponCountLimit() { + return weaponCountLimit_; + } + + public static final int RELIQUARYCOUNTLIMIT_FIELD_NUMBER = 6; + private int reliquaryCountLimit_; + /** + * uint32 reliquaryCountLimit = 6; + * @return The reliquaryCountLimit. + */ + @java.lang.Override + public int getReliquaryCountLimit() { + return reliquaryCountLimit_; + } + + public static final int FURNITURECOUNTLIMIT_FIELD_NUMBER = 7; + private int furnitureCountLimit_; + /** + * uint32 furnitureCountLimit = 7; + * @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 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; + /** + * .StoreType storeType = 1; + * @return The enum numeric value on the wire for storeType. + */ + @java.lang.Override public int getStoreTypeValue() { + return storeType_; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @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; + } + /** + * .StoreType storeType = 1; + * @return This builder for chaining. + */ + public Builder clearStoreType() { + + storeType_ = 0; + onChanged(); + return this; + } + + private int weightLimit_ ; + /** + * uint32 weightLimit = 3; + * @return The weightLimit. + */ + @java.lang.Override + public int getWeightLimit() { + return weightLimit_; + } + /** + * uint32 weightLimit = 3; + * @param value The weightLimit to set. + * @return This builder for chaining. + */ + public Builder setWeightLimit(int value) { + + weightLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 weightLimit = 3; + * @return This builder for chaining. + */ + public Builder clearWeightLimit() { + + weightLimit_ = 0; + onChanged(); + return this; + } + + private int materialCountLimit_ ; + /** + * uint32 materialCountLimit = 4; + * @return The materialCountLimit. + */ + @java.lang.Override + public int getMaterialCountLimit() { + return materialCountLimit_; + } + /** + * uint32 materialCountLimit = 4; + * @param value The materialCountLimit to set. + * @return This builder for chaining. + */ + public Builder setMaterialCountLimit(int value) { + + materialCountLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 materialCountLimit = 4; + * @return This builder for chaining. + */ + public Builder clearMaterialCountLimit() { + + materialCountLimit_ = 0; + onChanged(); + return this; + } + + private int weaponCountLimit_ ; + /** + * uint32 weaponCountLimit = 5; + * @return The weaponCountLimit. + */ + @java.lang.Override + public int getWeaponCountLimit() { + return weaponCountLimit_; + } + /** + * uint32 weaponCountLimit = 5; + * @param value The weaponCountLimit to set. + * @return This builder for chaining. + */ + public Builder setWeaponCountLimit(int value) { + + weaponCountLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 weaponCountLimit = 5; + * @return This builder for chaining. + */ + public Builder clearWeaponCountLimit() { + + weaponCountLimit_ = 0; + onChanged(); + return this; + } + + private int reliquaryCountLimit_ ; + /** + * uint32 reliquaryCountLimit = 6; + * @return The reliquaryCountLimit. + */ + @java.lang.Override + public int getReliquaryCountLimit() { + return reliquaryCountLimit_; + } + /** + * uint32 reliquaryCountLimit = 6; + * @param value The reliquaryCountLimit to set. + * @return This builder for chaining. + */ + public Builder setReliquaryCountLimit(int value) { + + reliquaryCountLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 reliquaryCountLimit = 6; + * @return This builder for chaining. + */ + public Builder clearReliquaryCountLimit() { + + reliquaryCountLimit_ = 0; + onChanged(); + return this; + } + + private int furnitureCountLimit_ ; + /** + * uint32 furnitureCountLimit = 7; + * @return The furnitureCountLimit. + */ + @java.lang.Override + public int getFurnitureCountLimit() { + return furnitureCountLimit_; + } + /** + * uint32 furnitureCountLimit = 7; + * @param value The furnitureCountLimit to set. + * @return This builder for chaining. + */ + public Builder setFurnitureCountLimit(int value) { + + furnitureCountLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 furnitureCountLimit = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a9d358642 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SyncScenePlayTeamEntityNotifyOuterClass.java @@ -0,0 +1,557 @@ +// 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 { + + /** + *
+     *repeated PlayTeamEntityInfo entityInfoList = 2;
+     * 
+ * + * uint32 sceneId = 1; + * @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_; + /** + *
+     *repeated PlayTeamEntityInfo entityInfoList = 2;
+     * 
+ * + * uint32 sceneId = 1; + * @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 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_ ; + /** + *
+       *repeated PlayTeamEntityInfo entityInfoList = 2;
+       * 
+ * + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + *
+       *repeated PlayTeamEntityInfo entityInfoList = 2;
+       * 
+ * + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + *
+       *repeated PlayTeamEntityInfo entityInfoList = 2;
+       * 
+ * + * uint32 sceneId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..56a88bd5c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SyncTeamEntityNotifyOuterClass.java @@ -0,0 +1,915 @@ +// 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 { + + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + int getSceneId(); + + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + java.util.List + getTeamEntityInfoListList(); + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index); + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + int getTeamEntityInfoListCount(); + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + java.util.List + getTeamEntityInfoListOrBuilderList(); + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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(); + 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_; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + + public static final int TEAMENTITYINFOLIST_FIELD_NUMBER = 2; + private java.util.List teamEntityInfoList_; + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + @java.lang.Override + public java.util.List getTeamEntityInfoListList() { + return teamEntityInfoList_; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + @java.lang.Override + public java.util.List + getTeamEntityInfoListOrBuilderList() { + return teamEntityInfoList_; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + @java.lang.Override + public int getTeamEntityInfoListCount() { + return teamEntityInfoList_.size(); + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index) { + return teamEntityInfoList_.get(index); + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + @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 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_ ; + /** + * uint32 sceneId = 1; + * @return The sceneId. + */ + @java.lang.Override + public int getSceneId() { + return sceneId_; + } + /** + * uint32 sceneId = 1; + * @param value The sceneId to set. + * @return This builder for chaining. + */ + public Builder setSceneId(int value) { + + sceneId_ = value; + onChanged(); + return this; + } + /** + * uint32 sceneId = 1; + * @return This builder for chaining. + */ + public Builder clearSceneId() { + + sceneId_ = 0; + onChanged(); + return this; + } + + private java.util.List teamEntityInfoList_ = + java.util.Collections.emptyList(); + private void ensureTeamEntityInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + teamEntityInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public java.util.List getTeamEntityInfoListList() { + if (teamEntityInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(teamEntityInfoList_); + } else { + return teamEntityInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public int getTeamEntityInfoListCount() { + if (teamEntityInfoListBuilder_ == null) { + return teamEntityInfoList_.size(); + } else { + return teamEntityInfoListBuilder_.getCount(); + } + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo getTeamEntityInfoList(int index) { + if (teamEntityInfoListBuilder_ == null) { + return teamEntityInfoList_.get(index); + } else { + return teamEntityInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + 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; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public Builder addAllTeamEntityInfoList( + java.lang.Iterable values) { + if (teamEntityInfoListBuilder_ == null) { + ensureTeamEntityInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, teamEntityInfoList_); + onChanged(); + } else { + teamEntityInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public Builder clearTeamEntityInfoList() { + if (teamEntityInfoListBuilder_ == null) { + teamEntityInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + teamEntityInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public Builder removeTeamEntityInfoList(int index) { + if (teamEntityInfoListBuilder_ == null) { + ensureTeamEntityInfoListIsMutable(); + teamEntityInfoList_.remove(index); + onChanged(); + } else { + teamEntityInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder getTeamEntityInfoListBuilder( + int index) { + return getTeamEntityInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfoOrBuilder getTeamEntityInfoListOrBuilder( + int index) { + if (teamEntityInfoListBuilder_ == null) { + return teamEntityInfoList_.get(index); } else { + return teamEntityInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public java.util.List + getTeamEntityInfoListOrBuilderList() { + if (teamEntityInfoListBuilder_ != null) { + return teamEntityInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(teamEntityInfoList_); + } + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder addTeamEntityInfoListBuilder() { + return getTeamEntityInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance()); + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.Builder addTeamEntityInfoListBuilder( + int index) { + return getTeamEntityInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.TeamEntityInfoOuterClass.TeamEntityInfo.getDefaultInstance()); + } + /** + * repeated .TeamEntityInfo teamEntityInfoList = 2; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..d8f8e16a4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/SystemHintOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 type = 1; + * @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_; + /** + * uint32 type = 1; + * @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 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_ ; + /** + * uint32 type = 1; + * @return The type. + */ + @java.lang.Override + public int getType() { + return type_; + } + /** + * uint32 type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * uint32 type = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/TakeoffEquipReqOuterClass.java b/src/main/java/emu/grasscutter/net/proto/TakeoffEquipReqOuterClass.java new file mode 100644 index 000000000..b4e439d22 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TakeoffEquipReqOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 slot = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int SLOT_FIELD_NUMBER = 2; + private int slot_; + /** + * uint32 slot = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int slot_ ; + /** + * uint32 slot = 2; + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + /** + * uint32 slot = 2; + * @param value The slot to set. + * @return This builder for chaining. + */ + public Builder setSlot(int value) { + + slot_ = value; + onChanged(); + return this; + } + /** + * uint32 slot = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3f0c403c2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TakeoffEquipRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 slot = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int SLOT_FIELD_NUMBER = 3; + private int slot_; + /** + * uint32 slot = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int slot_ ; + /** + * uint32 slot = 3; + * @return The slot. + */ + @java.lang.Override + public int getSlot() { + return slot_; + } + /** + * uint32 slot = 3; + * @param value The slot to set. + * @return This builder for chaining. + */ + public Builder setSlot(int value) { + + slot_ = value; + onChanged(); + return this; + } + /** + * uint32 slot = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ff95e4b04 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TeamEnterSceneInfoOuterClass.java @@ -0,0 +1,947 @@ +// 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 { + + /** + * uint32 teamEntityId = 1; + * @return The teamEntityId. + */ + int getTeamEntityId(); + + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @return Whether the teamAbilityInfo field is set. + */ + boolean hasTeamAbilityInfo(); + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @return The teamAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo(); + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfoOrBuilder getTeamAbilityInfoOrBuilder(); + + /** + * .AbilitySyncStateInfo unk = 3; + * @return Whether the unk field is set. + */ + boolean hasUnk(); + /** + * .AbilitySyncStateInfo unk = 3; + * @return The unk. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getUnk(); + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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_; + /** + * uint32 teamEntityId = 1; + * @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_; + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @return Whether the teamAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasTeamAbilityInfo() { + return teamAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @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_; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + @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_; + /** + * .AbilitySyncStateInfo unk = 3; + * @return Whether the unk field is set. + */ + @java.lang.Override + public boolean hasUnk() { + return unk_ != null; + } + /** + * .AbilitySyncStateInfo unk = 3; + * @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_; + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + @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 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_ ; + /** + * uint32 teamEntityId = 1; + * @return The teamEntityId. + */ + @java.lang.Override + public int getTeamEntityId() { + return teamEntityId_; + } + /** + * uint32 teamEntityId = 1; + * @param value The teamEntityId to set. + * @return This builder for chaining. + */ + public Builder setTeamEntityId(int value) { + + teamEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 teamEntityId = 1; + * @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_; + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @return Whether the teamAbilityInfo field is set. + */ + public boolean hasTeamAbilityInfo() { + return teamAbilityInfoBuilder_ != null || teamAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + * @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(); + } + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + public Builder clearTeamAbilityInfo() { + if (teamAbilityInfoBuilder_ == null) { + teamAbilityInfo_ = null; + onChanged(); + } else { + teamAbilityInfo_ = null; + teamAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getTeamAbilityInfoBuilder() { + + onChanged(); + return getTeamAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 2; + */ + 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_; + /** + * .AbilitySyncStateInfo unk = 3; + * @return Whether the unk field is set. + */ + public boolean hasUnk() { + return unkBuilder_ != null || unk_ != null; + } + /** + * .AbilitySyncStateInfo unk = 3; + * @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(); + } + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + public Builder clearUnk() { + if (unkBuilder_ == null) { + unk_ = null; + onChanged(); + } else { + unk_ = null; + unkBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getUnkBuilder() { + + onChanged(); + return getUnkFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo unk = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1da526390 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TeamEntityInfoOuterClass.java @@ -0,0 +1,813 @@ +// 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 { + + /** + * uint32 teamEntityId = 1; + * @return The teamEntityId. + */ + int getTeamEntityId(); + + /** + * uint32 authorityPeerId = 2; + * @return The authorityPeerId. + */ + int getAuthorityPeerId(); + + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @return Whether the teamAbilityInfo field is set. + */ + boolean hasTeamAbilityInfo(); + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @return The teamAbilityInfo. + */ + emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo getTeamAbilityInfo(); + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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_; + /** + * uint32 teamEntityId = 1; + * @return The teamEntityId. + */ + @java.lang.Override + public int getTeamEntityId() { + return teamEntityId_; + } + + public static final int AUTHORITYPEERID_FIELD_NUMBER = 2; + private int authorityPeerId_; + /** + * uint32 authorityPeerId = 2; + * @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_; + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @return Whether the teamAbilityInfo field is set. + */ + @java.lang.Override + public boolean hasTeamAbilityInfo() { + return teamAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @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_; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + @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 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_ ; + /** + * uint32 teamEntityId = 1; + * @return The teamEntityId. + */ + @java.lang.Override + public int getTeamEntityId() { + return teamEntityId_; + } + /** + * uint32 teamEntityId = 1; + * @param value The teamEntityId to set. + * @return This builder for chaining. + */ + public Builder setTeamEntityId(int value) { + + teamEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 teamEntityId = 1; + * @return This builder for chaining. + */ + public Builder clearTeamEntityId() { + + teamEntityId_ = 0; + onChanged(); + return this; + } + + private int authorityPeerId_ ; + /** + * uint32 authorityPeerId = 2; + * @return The authorityPeerId. + */ + @java.lang.Override + public int getAuthorityPeerId() { + return authorityPeerId_; + } + /** + * uint32 authorityPeerId = 2; + * @param value The authorityPeerId to set. + * @return This builder for chaining. + */ + public Builder setAuthorityPeerId(int value) { + + authorityPeerId_ = value; + onChanged(); + return this; + } + /** + * uint32 authorityPeerId = 2; + * @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_; + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @return Whether the teamAbilityInfo field is set. + */ + public boolean hasTeamAbilityInfo() { + return teamAbilityInfoBuilder_ != null || teamAbilityInfo_ != null; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + * @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(); + } + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + public Builder clearTeamAbilityInfo() { + if (teamAbilityInfoBuilder_ == null) { + teamAbilityInfo_ = null; + onChanged(); + } else { + teamAbilityInfo_ = null; + teamAbilityInfoBuilder_ = null; + } + + return this; + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + public emu.grasscutter.net.proto.AbilitySyncStateInfoOuterClass.AbilitySyncStateInfo.Builder getTeamAbilityInfoBuilder() { + + onChanged(); + return getTeamAbilityInfoFieldBuilder().getBuilder(); + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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_; + } + } + /** + * .AbilitySyncStateInfo teamAbilityInfo = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..12cfc0307 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TeamResonanceChangeNotifyOuterClass.java @@ -0,0 +1,845 @@ +// 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 { + + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + java.util.List + getInfoListList(); + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index); + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + int getInfoListCount(); + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + java.util.List + getInfoListOrBuilderList(); + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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(); + 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 infoList_; + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + @java.lang.Override + public java.util.List getInfoListList() { + return infoList_; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + @java.lang.Override + public java.util.List + getInfoListOrBuilderList() { + return infoList_; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + @java.lang.Override + public int getInfoListCount() { + return infoList_.size(); + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index) { + return infoList_.get(index); + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + @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 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 infoList_ = + java.util.Collections.emptyList(); + private void ensureInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + infoList_ = new java.util.ArrayList(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_; + + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public java.util.List getInfoListList() { + if (infoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(infoList_); + } else { + return infoListBuilder_.getMessageList(); + } + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public int getInfoListCount() { + if (infoListBuilder_ == null) { + return infoList_.size(); + } else { + return infoListBuilder_.getCount(); + } + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo getInfoList(int index) { + if (infoListBuilder_ == null) { + return infoList_.get(index); + } else { + return infoListBuilder_.getMessage(index); + } + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + 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; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public Builder addAllInfoList( + java.lang.Iterable values) { + if (infoListBuilder_ == null) { + ensureInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, infoList_); + onChanged(); + } else { + infoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public Builder clearInfoList() { + if (infoListBuilder_ == null) { + infoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoListBuilder_.clear(); + } + return this; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public Builder removeInfoList(int index) { + if (infoListBuilder_ == null) { + ensureInfoListIsMutable(); + infoList_.remove(index); + onChanged(); + } else { + infoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder getInfoListBuilder( + int index) { + return getInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfoOrBuilder getInfoListOrBuilder( + int index) { + if (infoListBuilder_ == null) { + return infoList_.get(index); } else { + return infoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public java.util.List + getInfoListOrBuilderList() { + if (infoListBuilder_ != null) { + return infoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(infoList_); + } + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder addInfoListBuilder() { + return getInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance()); + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.Builder addInfoListBuilder( + int index) { + return getInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.AvatarTeamResonanceInfoOuterClass.AvatarTeamResonanceInfo.getDefaultInstance()); + } + /** + * repeated .AvatarTeamResonanceInfo infoList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..70c1a38d6 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerAllDataRspOuterClass.java @@ -0,0 +1,2877 @@ +// 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 { + + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + int getTowerScheduleId(); + + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + java.util.List + getTowerFloorRecordListList(); + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index); + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + int getTowerFloorRecordListCount(); + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + java.util.List + getTowerFloorRecordListOrBuilderList(); + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder getTowerFloorRecordListOrBuilder( + int index); + + /** + * uint32 dailyFloorId = 3; + * @return The dailyFloorId. + */ + int getDailyFloorId(); + + /** + * uint32 dailyLevelIndex = 4; + * @return The dailyLevelIndex. + */ + int getDailyLevelIndex(); + + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @return Whether the curLevelRecord field is set. + */ + boolean hasCurLevelRecord(); + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @return The curLevelRecord. + */ + emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord getCurLevelRecord(); + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder getCurLevelRecordOrBuilder(); + + /** + * uint32 nextScheduleChangeTime = 6; + * @return The nextScheduleChangeTime. + */ + int getNextScheduleChangeTime(); + + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + int getFloorOpenTimeMapCount(); + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + boolean containsFloorOpenTimeMap( + int key); + /** + * Use {@link #getFloorOpenTimeMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFloorOpenTimeMap(); + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + java.util.Map + getFloorOpenTimeMapMap(); + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + int getFloorOpenTimeMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + int getFloorOpenTimeMapOrThrow( + int key); + + /** + * bool isFirstInteract = 8; + * @return The isFirstInteract. + */ + boolean getIsFirstInteract(); + + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @return Whether the monthlyBrief field is set. + */ + boolean hasMonthlyBrief(); + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @return The monthlyBrief. + */ + emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getMonthlyBrief(); + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getMonthlyBriefOrBuilder(); + + /** + * uint32 skipToFloorIndex = 10; + * @return The skipToFloorIndex. + */ + int getSkipToFloorIndex(); + + /** + * uint32 commemorativeRewardId = 11; + * @return The commemorativeRewardId. + */ + int getCommemorativeRewardId(); + + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + int getSkipFloorGrantedRewardItemMapCount(); + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + boolean containsSkipFloorGrantedRewardItemMap( + int key); + /** + * Use {@link #getSkipFloorGrantedRewardItemMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSkipFloorGrantedRewardItemMap(); + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + java.util.Map + getSkipFloorGrantedRewardItemMapMap(); + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + int getSkipFloorGrantedRewardItemMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + int getSkipFloorGrantedRewardItemMapOrThrow( + int key); + + /** + * uint32 validTowerRecordNum = 13; + * @return The validTowerRecordNum. + */ + int getValidTowerRecordNum(); + + /** + * int32 retcode = 14; + * @return The retcode. + */ + int getRetcode(); + + /** + * bool isFinishedEntranceFloor = 15; + * @return The isFinishedEntranceFloor. + */ + boolean getIsFinishedEntranceFloor(); + + /** + * uint32 scheduleStartTime = 16; + * @return The scheduleStartTime. + */ + int getScheduleStartTime(); + + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @return Whether the lastScheduleMonthlyBrief field is set. + */ + boolean hasLastScheduleMonthlyBrief(); + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @return The lastScheduleMonthlyBrief. + */ + emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief getLastScheduleMonthlyBrief(); + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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(); + 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 + 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 + 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_; + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + @java.lang.Override + public int getTowerScheduleId() { + return towerScheduleId_; + } + + public static final int TOWERFLOORRECORDLIST_FIELD_NUMBER = 2; + private java.util.List towerFloorRecordList_; + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + @java.lang.Override + public java.util.List getTowerFloorRecordListList() { + return towerFloorRecordList_; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + @java.lang.Override + public java.util.List + getTowerFloorRecordListOrBuilderList() { + return towerFloorRecordList_; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + @java.lang.Override + public int getTowerFloorRecordListCount() { + return towerFloorRecordList_.size(); + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index) { + return towerFloorRecordList_.get(index); + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + @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_; + /** + * uint32 dailyFloorId = 3; + * @return The dailyFloorId. + */ + @java.lang.Override + public int getDailyFloorId() { + return dailyFloorId_; + } + + public static final int DAILYLEVELINDEX_FIELD_NUMBER = 4; + private int dailyLevelIndex_; + /** + * uint32 dailyLevelIndex = 4; + * @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_; + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @return Whether the curLevelRecord field is set. + */ + @java.lang.Override + public boolean hasCurLevelRecord() { + return curLevelRecord_ != null; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @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_; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecordOrBuilder getCurLevelRecordOrBuilder() { + return getCurLevelRecord(); + } + + public static final int NEXTSCHEDULECHANGETIME_FIELD_NUMBER = 6; + private int nextScheduleChangeTime_; + /** + * uint32 nextScheduleChangeTime = 6; + * @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 + .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 + internalGetFloorOpenTimeMap() { + if (floorOpenTimeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FloorOpenTimeMapDefaultEntryHolder.defaultEntry); + } + return floorOpenTimeMap_; + } + + public int getFloorOpenTimeMapCount() { + return internalGetFloorOpenTimeMap().getMap().size(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + @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 getFloorOpenTimeMap() { + return getFloorOpenTimeMapMap(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public java.util.Map getFloorOpenTimeMapMap() { + return internalGetFloorOpenTimeMap().getMap(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public int getFloorOpenTimeMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetFloorOpenTimeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public int getFloorOpenTimeMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * bool isFirstInteract = 8; + * @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_; + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @return Whether the monthlyBrief field is set. + */ + @java.lang.Override + public boolean hasMonthlyBrief() { + return monthlyBrief_ != null; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @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_; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBriefOrBuilder getMonthlyBriefOrBuilder() { + return getMonthlyBrief(); + } + + public static final int SKIPTOFLOORINDEX_FIELD_NUMBER = 10; + private int skipToFloorIndex_; + /** + * uint32 skipToFloorIndex = 10; + * @return The skipToFloorIndex. + */ + @java.lang.Override + public int getSkipToFloorIndex() { + return skipToFloorIndex_; + } + + public static final int COMMEMORATIVEREWARDID_FIELD_NUMBER = 11; + private int commemorativeRewardId_; + /** + * uint32 commemorativeRewardId = 11; + * @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 + .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 + internalGetSkipFloorGrantedRewardItemMap() { + if (skipFloorGrantedRewardItemMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); + } + return skipFloorGrantedRewardItemMap_; + } + + public int getSkipFloorGrantedRewardItemMapCount() { + return internalGetSkipFloorGrantedRewardItemMap().getMap().size(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + @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 getSkipFloorGrantedRewardItemMap() { + return getSkipFloorGrantedRewardItemMapMap(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public java.util.Map getSkipFloorGrantedRewardItemMapMap() { + return internalGetSkipFloorGrantedRewardItemMap().getMap(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public int getSkipFloorGrantedRewardItemMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkipFloorGrantedRewardItemMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public int getSkipFloorGrantedRewardItemMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 validTowerRecordNum = 13; + * @return The validTowerRecordNum. + */ + @java.lang.Override + public int getValidTowerRecordNum() { + return validTowerRecordNum_; + } + + public static final int RETCODE_FIELD_NUMBER = 14; + private int retcode_; + /** + * int32 retcode = 14; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int ISFINISHEDENTRANCEFLOOR_FIELD_NUMBER = 15; + private boolean isFinishedEntranceFloor_; + /** + * bool isFinishedEntranceFloor = 15; + * @return The isFinishedEntranceFloor. + */ + @java.lang.Override + public boolean getIsFinishedEntranceFloor() { + return isFinishedEntranceFloor_; + } + + public static final int SCHEDULESTARTTIME_FIELD_NUMBER = 16; + private int scheduleStartTime_; + /** + * uint32 scheduleStartTime = 16; + * @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_; + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @return Whether the lastScheduleMonthlyBrief field is set. + */ + @java.lang.Override + public boolean hasLastScheduleMonthlyBrief() { + return lastScheduleMonthlyBrief_ != null; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @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_; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + @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 entry + : internalGetFloorOpenTimeMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 entry + : internalGetSkipFloorGrantedRewardItemMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + @java.lang.Override + public int getTowerScheduleId() { + return towerScheduleId_; + } + /** + * uint32 towerScheduleId = 1; + * @param value The towerScheduleId to set. + * @return This builder for chaining. + */ + public Builder setTowerScheduleId(int value) { + + towerScheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 towerScheduleId = 1; + * @return This builder for chaining. + */ + public Builder clearTowerScheduleId() { + + towerScheduleId_ = 0; + onChanged(); + return this; + } + + private java.util.List towerFloorRecordList_ = + java.util.Collections.emptyList(); + private void ensureTowerFloorRecordListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + towerFloorRecordList_ = new java.util.ArrayList(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_; + + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public java.util.List getTowerFloorRecordListList() { + if (towerFloorRecordListBuilder_ == null) { + return java.util.Collections.unmodifiableList(towerFloorRecordList_); + } else { + return towerFloorRecordListBuilder_.getMessageList(); + } + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public int getTowerFloorRecordListCount() { + if (towerFloorRecordListBuilder_ == null) { + return towerFloorRecordList_.size(); + } else { + return towerFloorRecordListBuilder_.getCount(); + } + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord getTowerFloorRecordList(int index) { + if (towerFloorRecordListBuilder_ == null) { + return towerFloorRecordList_.get(index); + } else { + return towerFloorRecordListBuilder_.getMessage(index); + } + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + 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; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public Builder addAllTowerFloorRecordList( + java.lang.Iterable values) { + if (towerFloorRecordListBuilder_ == null) { + ensureTowerFloorRecordListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, towerFloorRecordList_); + onChanged(); + } else { + towerFloorRecordListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public Builder clearTowerFloorRecordList() { + if (towerFloorRecordListBuilder_ == null) { + towerFloorRecordList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + towerFloorRecordListBuilder_.clear(); + } + return this; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public Builder removeTowerFloorRecordList(int index) { + if (towerFloorRecordListBuilder_ == null) { + ensureTowerFloorRecordListIsMutable(); + towerFloorRecordList_.remove(index); + onChanged(); + } else { + towerFloorRecordListBuilder_.remove(index); + } + return this; + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder getTowerFloorRecordListBuilder( + int index) { + return getTowerFloorRecordListFieldBuilder().getBuilder(index); + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecordOrBuilder getTowerFloorRecordListOrBuilder( + int index) { + if (towerFloorRecordListBuilder_ == null) { + return towerFloorRecordList_.get(index); } else { + return towerFloorRecordListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public java.util.List + getTowerFloorRecordListOrBuilderList() { + if (towerFloorRecordListBuilder_ != null) { + return towerFloorRecordListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(towerFloorRecordList_); + } + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder addTowerFloorRecordListBuilder() { + return getTowerFloorRecordListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance()); + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.Builder addTowerFloorRecordListBuilder( + int index) { + return getTowerFloorRecordListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.TowerFloorRecordOuterClass.TowerFloorRecord.getDefaultInstance()); + } + /** + * repeated .TowerFloorRecord towerFloorRecordList = 2; + */ + public java.util.List + 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_ ; + /** + * uint32 dailyFloorId = 3; + * @return The dailyFloorId. + */ + @java.lang.Override + public int getDailyFloorId() { + return dailyFloorId_; + } + /** + * uint32 dailyFloorId = 3; + * @param value The dailyFloorId to set. + * @return This builder for chaining. + */ + public Builder setDailyFloorId(int value) { + + dailyFloorId_ = value; + onChanged(); + return this; + } + /** + * uint32 dailyFloorId = 3; + * @return This builder for chaining. + */ + public Builder clearDailyFloorId() { + + dailyFloorId_ = 0; + onChanged(); + return this; + } + + private int dailyLevelIndex_ ; + /** + * uint32 dailyLevelIndex = 4; + * @return The dailyLevelIndex. + */ + @java.lang.Override + public int getDailyLevelIndex() { + return dailyLevelIndex_; + } + /** + * uint32 dailyLevelIndex = 4; + * @param value The dailyLevelIndex to set. + * @return This builder for chaining. + */ + public Builder setDailyLevelIndex(int value) { + + dailyLevelIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 dailyLevelIndex = 4; + * @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_; + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @return Whether the curLevelRecord field is set. + */ + public boolean hasCurLevelRecord() { + return curLevelRecordBuilder_ != null || curLevelRecord_ != null; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + * @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(); + } + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + 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; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + 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; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + 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; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + public Builder clearCurLevelRecord() { + if (curLevelRecordBuilder_ == null) { + curLevelRecord_ = null; + onChanged(); + } else { + curLevelRecord_ = null; + curLevelRecordBuilder_ = null; + } + + return this; + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + public emu.grasscutter.net.proto.TowerCurLevelRecordOuterClass.TowerCurLevelRecord.Builder getCurLevelRecordBuilder() { + + onChanged(); + return getCurLevelRecordFieldBuilder().getBuilder(); + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + 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_; + } + } + /** + * .TowerCurLevelRecord curLevelRecord = 5; + */ + 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_ ; + /** + * uint32 nextScheduleChangeTime = 6; + * @return The nextScheduleChangeTime. + */ + @java.lang.Override + public int getNextScheduleChangeTime() { + return nextScheduleChangeTime_; + } + /** + * uint32 nextScheduleChangeTime = 6; + * @param value The nextScheduleChangeTime to set. + * @return This builder for chaining. + */ + public Builder setNextScheduleChangeTime(int value) { + + nextScheduleChangeTime_ = value; + onChanged(); + return this; + } + /** + * uint32 nextScheduleChangeTime = 6; + * @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 + internalGetFloorOpenTimeMap() { + if (floorOpenTimeMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FloorOpenTimeMapDefaultEntryHolder.defaultEntry); + } + return floorOpenTimeMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + @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 getFloorOpenTimeMap() { + return getFloorOpenTimeMapMap(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public java.util.Map getFloorOpenTimeMapMap() { + return internalGetFloorOpenTimeMap().getMap(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public int getFloorOpenTimeMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetFloorOpenTimeMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + @java.lang.Override + + public int getFloorOpenTimeMapOrThrow( + int key) { + + java.util.Map map = + internalGetFloorOpenTimeMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFloorOpenTimeMap() { + internalGetMutableFloorOpenTimeMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + public Builder removeFloorOpenTimeMap( + int key) { + + internalGetMutableFloorOpenTimeMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFloorOpenTimeMap() { + return internalGetMutableFloorOpenTimeMap().getMutableMap(); + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + public Builder putFloorOpenTimeMap( + int key, + int value) { + + + internalGetMutableFloorOpenTimeMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> floorOpenTimeMap = 7; + */ + + public Builder putAllFloorOpenTimeMap( + java.util.Map values) { + internalGetMutableFloorOpenTimeMap().getMutableMap() + .putAll(values); + return this; + } + + private boolean isFirstInteract_ ; + /** + * bool isFirstInteract = 8; + * @return The isFirstInteract. + */ + @java.lang.Override + public boolean getIsFirstInteract() { + return isFirstInteract_; + } + /** + * bool isFirstInteract = 8; + * @param value The isFirstInteract to set. + * @return This builder for chaining. + */ + public Builder setIsFirstInteract(boolean value) { + + isFirstInteract_ = value; + onChanged(); + return this; + } + /** + * bool isFirstInteract = 8; + * @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_; + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @return Whether the monthlyBrief field is set. + */ + public boolean hasMonthlyBrief() { + return monthlyBriefBuilder_ != null || monthlyBrief_ != null; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + * @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(); + } + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + 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; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + 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; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + 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; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + public Builder clearMonthlyBrief() { + if (monthlyBriefBuilder_ == null) { + monthlyBrief_ = null; + onChanged(); + } else { + monthlyBrief_ = null; + monthlyBriefBuilder_ = null; + } + + return this; + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder getMonthlyBriefBuilder() { + + onChanged(); + return getMonthlyBriefFieldBuilder().getBuilder(); + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + 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_; + } + } + /** + * .TowerMonthlyBrief monthlyBrief = 9; + */ + 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_ ; + /** + * uint32 skipToFloorIndex = 10; + * @return The skipToFloorIndex. + */ + @java.lang.Override + public int getSkipToFloorIndex() { + return skipToFloorIndex_; + } + /** + * uint32 skipToFloorIndex = 10; + * @param value The skipToFloorIndex to set. + * @return This builder for chaining. + */ + public Builder setSkipToFloorIndex(int value) { + + skipToFloorIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 skipToFloorIndex = 10; + * @return This builder for chaining. + */ + public Builder clearSkipToFloorIndex() { + + skipToFloorIndex_ = 0; + onChanged(); + return this; + } + + private int commemorativeRewardId_ ; + /** + * uint32 commemorativeRewardId = 11; + * @return The commemorativeRewardId. + */ + @java.lang.Override + public int getCommemorativeRewardId() { + return commemorativeRewardId_; + } + /** + * uint32 commemorativeRewardId = 11; + * @param value The commemorativeRewardId to set. + * @return This builder for chaining. + */ + public Builder setCommemorativeRewardId(int value) { + + commemorativeRewardId_ = value; + onChanged(); + return this; + } + /** + * uint32 commemorativeRewardId = 11; + * @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 + internalGetSkipFloorGrantedRewardItemMap() { + if (skipFloorGrantedRewardItemMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SkipFloorGrantedRewardItemMapDefaultEntryHolder.defaultEntry); + } + return skipFloorGrantedRewardItemMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + @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 getSkipFloorGrantedRewardItemMap() { + return getSkipFloorGrantedRewardItemMapMap(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public java.util.Map getSkipFloorGrantedRewardItemMapMap() { + return internalGetSkipFloorGrantedRewardItemMap().getMap(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public int getSkipFloorGrantedRewardItemMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetSkipFloorGrantedRewardItemMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + @java.lang.Override + + public int getSkipFloorGrantedRewardItemMapOrThrow( + int key) { + + java.util.Map map = + internalGetSkipFloorGrantedRewardItemMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSkipFloorGrantedRewardItemMap() { + internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + public Builder removeSkipFloorGrantedRewardItemMap( + int key) { + + internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSkipFloorGrantedRewardItemMap() { + return internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap(); + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + public Builder putSkipFloorGrantedRewardItemMap( + int key, + int value) { + + + internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> skipFloorGrantedRewardItemMap = 12; + */ + + public Builder putAllSkipFloorGrantedRewardItemMap( + java.util.Map values) { + internalGetMutableSkipFloorGrantedRewardItemMap().getMutableMap() + .putAll(values); + return this; + } + + private int validTowerRecordNum_ ; + /** + * uint32 validTowerRecordNum = 13; + * @return The validTowerRecordNum. + */ + @java.lang.Override + public int getValidTowerRecordNum() { + return validTowerRecordNum_; + } + /** + * uint32 validTowerRecordNum = 13; + * @param value The validTowerRecordNum to set. + * @return This builder for chaining. + */ + public Builder setValidTowerRecordNum(int value) { + + validTowerRecordNum_ = value; + onChanged(); + return this; + } + /** + * uint32 validTowerRecordNum = 13; + * @return This builder for chaining. + */ + public Builder clearValidTowerRecordNum() { + + validTowerRecordNum_ = 0; + onChanged(); + return this; + } + + private int retcode_ ; + /** + * int32 retcode = 14; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 14; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 14; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private boolean isFinishedEntranceFloor_ ; + /** + * bool isFinishedEntranceFloor = 15; + * @return The isFinishedEntranceFloor. + */ + @java.lang.Override + public boolean getIsFinishedEntranceFloor() { + return isFinishedEntranceFloor_; + } + /** + * bool isFinishedEntranceFloor = 15; + * @param value The isFinishedEntranceFloor to set. + * @return This builder for chaining. + */ + public Builder setIsFinishedEntranceFloor(boolean value) { + + isFinishedEntranceFloor_ = value; + onChanged(); + return this; + } + /** + * bool isFinishedEntranceFloor = 15; + * @return This builder for chaining. + */ + public Builder clearIsFinishedEntranceFloor() { + + isFinishedEntranceFloor_ = false; + onChanged(); + return this; + } + + private int scheduleStartTime_ ; + /** + * uint32 scheduleStartTime = 16; + * @return The scheduleStartTime. + */ + @java.lang.Override + public int getScheduleStartTime() { + return scheduleStartTime_; + } + /** + * uint32 scheduleStartTime = 16; + * @param value The scheduleStartTime to set. + * @return This builder for chaining. + */ + public Builder setScheduleStartTime(int value) { + + scheduleStartTime_ = value; + onChanged(); + return this; + } + /** + * uint32 scheduleStartTime = 16; + * @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_; + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @return Whether the lastScheduleMonthlyBrief field is set. + */ + public boolean hasLastScheduleMonthlyBrief() { + return lastScheduleMonthlyBriefBuilder_ != null || lastScheduleMonthlyBrief_ != null; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + * @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(); + } + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + public Builder clearLastScheduleMonthlyBrief() { + if (lastScheduleMonthlyBriefBuilder_ == null) { + lastScheduleMonthlyBrief_ = null; + onChanged(); + } else { + lastScheduleMonthlyBrief_ = null; + lastScheduleMonthlyBriefBuilder_ = null; + } + + return this; + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + public emu.grasscutter.net.proto.TowerMonthlyBriefOuterClass.TowerMonthlyBrief.Builder getLastScheduleMonthlyBriefBuilder() { + + onChanged(); + return getLastScheduleMonthlyBriefFieldBuilder().getBuilder(); + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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_; + } + } + /** + * .TowerMonthlyBrief lastScheduleMonthlyBrief = 17; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..971546492 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerCurLevelRecordOuterClass.java @@ -0,0 +1,1251 @@ +// 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 { + + /** + * uint32 curFloorId = 1; + * @return The curFloorId. + */ + int getCurFloorId(); + + /** + * uint32 curLevelIndex = 2; + * @return The curLevelIndex. + */ + int getCurLevelIndex(); + + /** + * repeated .TowerTeam towerTeamList = 3; + */ + java.util.List + getTowerTeamListList(); + /** + * repeated .TowerTeam towerTeamList = 3; + */ + emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index); + /** + * repeated .TowerTeam towerTeamList = 3; + */ + int getTowerTeamListCount(); + /** + * repeated .TowerTeam towerTeamList = 3; + */ + java.util.List + getTowerTeamListOrBuilderList(); + /** + * repeated .TowerTeam towerTeamList = 3; + */ + emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder( + int index); + + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + java.util.List getBuffIdListList(); + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + int getBuffIdListCount(); + /** + * repeated uint32 buffIdList = 4; + * @param index The index of the element to return. + * @return The buffIdList at the given index. + */ + int getBuffIdList(int index); + + /** + * bool isEmpty = 5; + * @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(); + 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_; + /** + * uint32 curFloorId = 1; + * @return The curFloorId. + */ + @java.lang.Override + public int getCurFloorId() { + return curFloorId_; + } + + public static final int CURLEVELINDEX_FIELD_NUMBER = 2; + private int curLevelIndex_; + /** + * uint32 curLevelIndex = 2; + * @return The curLevelIndex. + */ + @java.lang.Override + public int getCurLevelIndex() { + return curLevelIndex_; + } + + public static final int TOWERTEAMLIST_FIELD_NUMBER = 3; + private java.util.List towerTeamList_; + /** + * repeated .TowerTeam towerTeamList = 3; + */ + @java.lang.Override + public java.util.List getTowerTeamListList() { + return towerTeamList_; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + @java.lang.Override + public java.util.List + getTowerTeamListOrBuilderList() { + return towerTeamList_; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + @java.lang.Override + public int getTowerTeamListCount() { + return towerTeamList_.size(); + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) { + return towerTeamList_.get(index); + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + @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_; + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + @java.lang.Override + public java.util.List + getBuffIdListList() { + return buffIdList_; + } + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + public int getBuffIdListCount() { + return buffIdList_.size(); + } + /** + * repeated uint32 buffIdList = 4; + * @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_; + /** + * bool isEmpty = 5; + * @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 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_ ; + /** + * uint32 curFloorId = 1; + * @return The curFloorId. + */ + @java.lang.Override + public int getCurFloorId() { + return curFloorId_; + } + /** + * uint32 curFloorId = 1; + * @param value The curFloorId to set. + * @return This builder for chaining. + */ + public Builder setCurFloorId(int value) { + + curFloorId_ = value; + onChanged(); + return this; + } + /** + * uint32 curFloorId = 1; + * @return This builder for chaining. + */ + public Builder clearCurFloorId() { + + curFloorId_ = 0; + onChanged(); + return this; + } + + private int curLevelIndex_ ; + /** + * uint32 curLevelIndex = 2; + * @return The curLevelIndex. + */ + @java.lang.Override + public int getCurLevelIndex() { + return curLevelIndex_; + } + /** + * uint32 curLevelIndex = 2; + * @param value The curLevelIndex to set. + * @return This builder for chaining. + */ + public Builder setCurLevelIndex(int value) { + + curLevelIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevelIndex = 2; + * @return This builder for chaining. + */ + public Builder clearCurLevelIndex() { + + curLevelIndex_ = 0; + onChanged(); + return this; + } + + private java.util.List towerTeamList_ = + java.util.Collections.emptyList(); + private void ensureTowerTeamListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + towerTeamList_ = new java.util.ArrayList(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_; + + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public java.util.List getTowerTeamListList() { + if (towerTeamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(towerTeamList_); + } else { + return towerTeamListBuilder_.getMessageList(); + } + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public int getTowerTeamListCount() { + if (towerTeamListBuilder_ == null) { + return towerTeamList_.size(); + } else { + return towerTeamListBuilder_.getCount(); + } + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam getTowerTeamList(int index) { + if (towerTeamListBuilder_ == null) { + return towerTeamList_.get(index); + } else { + return towerTeamListBuilder_.getMessage(index); + } + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + 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; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public Builder addAllTowerTeamList( + java.lang.Iterable values) { + if (towerTeamListBuilder_ == null) { + ensureTowerTeamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, towerTeamList_); + onChanged(); + } else { + towerTeamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public Builder clearTowerTeamList() { + if (towerTeamListBuilder_ == null) { + towerTeamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + towerTeamListBuilder_.clear(); + } + return this; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public Builder removeTowerTeamList(int index) { + if (towerTeamListBuilder_ == null) { + ensureTowerTeamListIsMutable(); + towerTeamList_.remove(index); + onChanged(); + } else { + towerTeamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder getTowerTeamListBuilder( + int index) { + return getTowerTeamListFieldBuilder().getBuilder(index); + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeamOrBuilder getTowerTeamListOrBuilder( + int index) { + if (towerTeamListBuilder_ == null) { + return towerTeamList_.get(index); } else { + return towerTeamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public java.util.List + getTowerTeamListOrBuilderList() { + if (towerTeamListBuilder_ != null) { + return towerTeamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(towerTeamList_); + } + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder() { + return getTowerTeamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance()); + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.Builder addTowerTeamListBuilder( + int index) { + return getTowerTeamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.TowerTeamOuterClass.TowerTeam.getDefaultInstance()); + } + /** + * repeated .TowerTeam towerTeamList = 3; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 buffIdList = 4; + * @return A list containing the buffIdList. + */ + public java.util.List + getBuffIdListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(buffIdList_) : buffIdList_; + } + /** + * repeated uint32 buffIdList = 4; + * @return The count of buffIdList. + */ + public int getBuffIdListCount() { + return buffIdList_.size(); + } + /** + * repeated uint32 buffIdList = 4; + * @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); + } + /** + * repeated uint32 buffIdList = 4; + * @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; + } + /** + * repeated uint32 buffIdList = 4; + * @param value The buffIdList to add. + * @return This builder for chaining. + */ + public Builder addBuffIdList(int value) { + ensureBuffIdListIsMutable(); + buffIdList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 buffIdList = 4; + * @param values The buffIdList to add. + * @return This builder for chaining. + */ + public Builder addAllBuffIdList( + java.lang.Iterable values) { + ensureBuffIdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buffIdList_); + onChanged(); + return this; + } + /** + * repeated uint32 buffIdList = 4; + * @return This builder for chaining. + */ + public Builder clearBuffIdList() { + buffIdList_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private boolean isEmpty_ ; + /** + * bool isEmpty = 5; + * @return The isEmpty. + */ + @java.lang.Override + public boolean getIsEmpty() { + return isEmpty_; + } + /** + * bool isEmpty = 5; + * @param value The isEmpty to set. + * @return This builder for chaining. + */ + public Builder setIsEmpty(boolean value) { + + isEmpty_ = value; + onChanged(); + return this; + } + /** + * bool isEmpty = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..76f888c77 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerFloorRecordOuterClass.java @@ -0,0 +1,1317 @@ +// 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 { + + /** + * uint32 floorId = 1; + * @return The floorId. + */ + int getFloorId(); + + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + int getPassedLevelMapCount(); + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + boolean containsPassedLevelMap( + int key); + /** + * Use {@link #getPassedLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPassedLevelMap(); + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + java.util.Map + getPassedLevelMapMap(); + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + int getPassedLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + int getPassedLevelMapOrThrow( + int key); + + /** + * uint32 floorStarRewardProgress = 3; + * @return The floorStarRewardProgress. + */ + int getFloorStarRewardProgress(); + + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + java.util.List + getPassedLevelRecordListList(); + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index); + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + int getPassedLevelRecordListCount(); + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + java.util.List + getPassedLevelRecordListOrBuilderList(); + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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 + 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(); + 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_; + /** + * uint32 floorId = 1; + * @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 + .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 + internalGetPassedLevelMap() { + if (passedLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PassedLevelMapDefaultEntryHolder.defaultEntry); + } + return passedLevelMap_; + } + + public int getPassedLevelMapCount() { + return internalGetPassedLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + @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 getPassedLevelMap() { + return getPassedLevelMapMap(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public java.util.Map getPassedLevelMapMap() { + return internalGetPassedLevelMap().getMap(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public int getPassedLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetPassedLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public int getPassedLevelMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint32 floorStarRewardProgress = 3; + * @return The floorStarRewardProgress. + */ + @java.lang.Override + public int getFloorStarRewardProgress() { + return floorStarRewardProgress_; + } + + public static final int PASSEDLEVELRECORDLIST_FIELD_NUMBER = 4; + private java.util.List passedLevelRecordList_; + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + @java.lang.Override + public java.util.List getPassedLevelRecordListList() { + return passedLevelRecordList_; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + @java.lang.Override + public java.util.List + getPassedLevelRecordListOrBuilderList() { + return passedLevelRecordList_; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + @java.lang.Override + public int getPassedLevelRecordListCount() { + return passedLevelRecordList_.size(); + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + @java.lang.Override + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index) { + return passedLevelRecordList_.get(index); + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + @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 entry + : internalGetPassedLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 floorId = 1; + * @return The floorId. + */ + @java.lang.Override + public int getFloorId() { + return floorId_; + } + /** + * uint32 floorId = 1; + * @param value The floorId to set. + * @return This builder for chaining. + */ + public Builder setFloorId(int value) { + + floorId_ = value; + onChanged(); + return this; + } + /** + * uint32 floorId = 1; + * @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 + internalGetPassedLevelMap() { + if (passedLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PassedLevelMapDefaultEntryHolder.defaultEntry); + } + return passedLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + @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 getPassedLevelMap() { + return getPassedLevelMapMap(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public java.util.Map getPassedLevelMapMap() { + return internalGetPassedLevelMap().getMap(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public int getPassedLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetPassedLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + @java.lang.Override + + public int getPassedLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetPassedLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPassedLevelMap() { + internalGetMutablePassedLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + public Builder removePassedLevelMap( + int key) { + + internalGetMutablePassedLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePassedLevelMap() { + return internalGetMutablePassedLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + public Builder putPassedLevelMap( + int key, + int value) { + + + internalGetMutablePassedLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> passedLevelMap = 2; + */ + + public Builder putAllPassedLevelMap( + java.util.Map values) { + internalGetMutablePassedLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private int floorStarRewardProgress_ ; + /** + * uint32 floorStarRewardProgress = 3; + * @return The floorStarRewardProgress. + */ + @java.lang.Override + public int getFloorStarRewardProgress() { + return floorStarRewardProgress_; + } + /** + * uint32 floorStarRewardProgress = 3; + * @param value The floorStarRewardProgress to set. + * @return This builder for chaining. + */ + public Builder setFloorStarRewardProgress(int value) { + + floorStarRewardProgress_ = value; + onChanged(); + return this; + } + /** + * uint32 floorStarRewardProgress = 3; + * @return This builder for chaining. + */ + public Builder clearFloorStarRewardProgress() { + + floorStarRewardProgress_ = 0; + onChanged(); + return this; + } + + private java.util.List passedLevelRecordList_ = + java.util.Collections.emptyList(); + private void ensurePassedLevelRecordListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + passedLevelRecordList_ = new java.util.ArrayList(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_; + + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public java.util.List getPassedLevelRecordListList() { + if (passedLevelRecordListBuilder_ == null) { + return java.util.Collections.unmodifiableList(passedLevelRecordList_); + } else { + return passedLevelRecordListBuilder_.getMessageList(); + } + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public int getPassedLevelRecordListCount() { + if (passedLevelRecordListBuilder_ == null) { + return passedLevelRecordList_.size(); + } else { + return passedLevelRecordListBuilder_.getCount(); + } + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord getPassedLevelRecordList(int index) { + if (passedLevelRecordListBuilder_ == null) { + return passedLevelRecordList_.get(index); + } else { + return passedLevelRecordListBuilder_.getMessage(index); + } + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + 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; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public Builder addAllPassedLevelRecordList( + java.lang.Iterable values) { + if (passedLevelRecordListBuilder_ == null) { + ensurePassedLevelRecordListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, passedLevelRecordList_); + onChanged(); + } else { + passedLevelRecordListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public Builder clearPassedLevelRecordList() { + if (passedLevelRecordListBuilder_ == null) { + passedLevelRecordList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + passedLevelRecordListBuilder_.clear(); + } + return this; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public Builder removePassedLevelRecordList(int index) { + if (passedLevelRecordListBuilder_ == null) { + ensurePassedLevelRecordListIsMutable(); + passedLevelRecordList_.remove(index); + onChanged(); + } else { + passedLevelRecordListBuilder_.remove(index); + } + return this; + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder getPassedLevelRecordListBuilder( + int index) { + return getPassedLevelRecordListFieldBuilder().getBuilder(index); + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecordOrBuilder getPassedLevelRecordListOrBuilder( + int index) { + if (passedLevelRecordListBuilder_ == null) { + return passedLevelRecordList_.get(index); } else { + return passedLevelRecordListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public java.util.List + getPassedLevelRecordListOrBuilderList() { + if (passedLevelRecordListBuilder_ != null) { + return passedLevelRecordListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(passedLevelRecordList_); + } + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder addPassedLevelRecordListBuilder() { + return getPassedLevelRecordListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance()); + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.Builder addPassedLevelRecordListBuilder( + int index) { + return getPassedLevelRecordListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.TowerLevelRecordOuterClass.TowerLevelRecord.getDefaultInstance()); + } + /** + * repeated .TowerLevelRecord passedLevelRecordList = 4; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..e1c885711 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerLevelRecordOuterClass.java @@ -0,0 +1,734 @@ +// 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 { + + /** + * uint32 levelId = 1; + * @return The levelId. + */ + int getLevelId(); + + /** + * repeated uint32 satisfiedCondList = 2; + * @return A list containing the satisfiedCondList. + */ + java.util.List getSatisfiedCondListList(); + /** + * repeated uint32 satisfiedCondList = 2; + * @return The count of satisfiedCondList. + */ + int getSatisfiedCondListCount(); + /** + * repeated uint32 satisfiedCondList = 2; + * @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_; + /** + * uint32 levelId = 1; + * @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_; + /** + * repeated uint32 satisfiedCondList = 2; + * @return A list containing the satisfiedCondList. + */ + @java.lang.Override + public java.util.List + getSatisfiedCondListList() { + return satisfiedCondList_; + } + /** + * repeated uint32 satisfiedCondList = 2; + * @return The count of satisfiedCondList. + */ + public int getSatisfiedCondListCount() { + return satisfiedCondList_.size(); + } + /** + * repeated uint32 satisfiedCondList = 2; + * @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 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_ ; + /** + * uint32 levelId = 1; + * @return The levelId. + */ + @java.lang.Override + public int getLevelId() { + return levelId_; + } + /** + * uint32 levelId = 1; + * @param value The levelId to set. + * @return This builder for chaining. + */ + public Builder setLevelId(int value) { + + levelId_ = value; + onChanged(); + return this; + } + /** + * uint32 levelId = 1; + * @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; + } + } + /** + * repeated uint32 satisfiedCondList = 2; + * @return A list containing the satisfiedCondList. + */ + public java.util.List + getSatisfiedCondListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(satisfiedCondList_) : satisfiedCondList_; + } + /** + * repeated uint32 satisfiedCondList = 2; + * @return The count of satisfiedCondList. + */ + public int getSatisfiedCondListCount() { + return satisfiedCondList_.size(); + } + /** + * repeated uint32 satisfiedCondList = 2; + * @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); + } + /** + * repeated uint32 satisfiedCondList = 2; + * @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; + } + /** + * repeated uint32 satisfiedCondList = 2; + * @param value The satisfiedCondList to add. + * @return This builder for chaining. + */ + public Builder addSatisfiedCondList(int value) { + ensureSatisfiedCondListIsMutable(); + satisfiedCondList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 satisfiedCondList = 2; + * @param values The satisfiedCondList to add. + * @return This builder for chaining. + */ + public Builder addAllSatisfiedCondList( + java.lang.Iterable values) { + ensureSatisfiedCondListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, satisfiedCondList_); + onChanged(); + return this; + } + /** + * repeated uint32 satisfiedCondList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2afd981f3 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerMonthlyBriefOuterClass.java @@ -0,0 +1,748 @@ +// 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 { + + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + int getTowerScheduleId(); + + /** + * uint32 bestFloorIndex = 2; + * @return The bestFloorIndex. + */ + int getBestFloorIndex(); + + /** + * uint32 bestLevelIndex = 3; + * @return The bestLevelIndex. + */ + int getBestLevelIndex(); + + /** + * uint32 totalStarCount = 4; + * @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_; + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + @java.lang.Override + public int getTowerScheduleId() { + return towerScheduleId_; + } + + public static final int BESTFLOORINDEX_FIELD_NUMBER = 2; + private int bestFloorIndex_; + /** + * uint32 bestFloorIndex = 2; + * @return The bestFloorIndex. + */ + @java.lang.Override + public int getBestFloorIndex() { + return bestFloorIndex_; + } + + public static final int BESTLEVELINDEX_FIELD_NUMBER = 3; + private int bestLevelIndex_; + /** + * uint32 bestLevelIndex = 3; + * @return The bestLevelIndex. + */ + @java.lang.Override + public int getBestLevelIndex() { + return bestLevelIndex_; + } + + public static final int TOTALSTARCOUNT_FIELD_NUMBER = 4; + private int totalStarCount_; + /** + * uint32 totalStarCount = 4; + * @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 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_ ; + /** + * uint32 towerScheduleId = 1; + * @return The towerScheduleId. + */ + @java.lang.Override + public int getTowerScheduleId() { + return towerScheduleId_; + } + /** + * uint32 towerScheduleId = 1; + * @param value The towerScheduleId to set. + * @return This builder for chaining. + */ + public Builder setTowerScheduleId(int value) { + + towerScheduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 towerScheduleId = 1; + * @return This builder for chaining. + */ + public Builder clearTowerScheduleId() { + + towerScheduleId_ = 0; + onChanged(); + return this; + } + + private int bestFloorIndex_ ; + /** + * uint32 bestFloorIndex = 2; + * @return The bestFloorIndex. + */ + @java.lang.Override + public int getBestFloorIndex() { + return bestFloorIndex_; + } + /** + * uint32 bestFloorIndex = 2; + * @param value The bestFloorIndex to set. + * @return This builder for chaining. + */ + public Builder setBestFloorIndex(int value) { + + bestFloorIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 bestFloorIndex = 2; + * @return This builder for chaining. + */ + public Builder clearBestFloorIndex() { + + bestFloorIndex_ = 0; + onChanged(); + return this; + } + + private int bestLevelIndex_ ; + /** + * uint32 bestLevelIndex = 3; + * @return The bestLevelIndex. + */ + @java.lang.Override + public int getBestLevelIndex() { + return bestLevelIndex_; + } + /** + * uint32 bestLevelIndex = 3; + * @param value The bestLevelIndex to set. + * @return This builder for chaining. + */ + public Builder setBestLevelIndex(int value) { + + bestLevelIndex_ = value; + onChanged(); + return this; + } + /** + * uint32 bestLevelIndex = 3; + * @return This builder for chaining. + */ + public Builder clearBestLevelIndex() { + + bestLevelIndex_ = 0; + onChanged(); + return this; + } + + private int totalStarCount_ ; + /** + * uint32 totalStarCount = 4; + * @return The totalStarCount. + */ + @java.lang.Override + public int getTotalStarCount() { + return totalStarCount_; + } + /** + * uint32 totalStarCount = 4; + * @param value The totalStarCount to set. + * @return This builder for chaining. + */ + public Builder setTotalStarCount(int value) { + + totalStarCount_ = value; + onChanged(); + return this; + } + /** + * uint32 totalStarCount = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bd6d4f900 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TowerTeamOuterClass.java @@ -0,0 +1,733 @@ +// 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 { + + /** + * uint32 towerTeamId = 1; + * @return The towerTeamId. + */ + int getTowerTeamId(); + + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + java.util.List getAvatarGuidListList(); + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + int getAvatarGuidListCount(); + /** + * repeated uint64 avatarGuidList = 2; + * @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_; + /** + * uint32 towerTeamId = 1; + * @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_; + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + @java.lang.Override + public java.util.List + getAvatarGuidListList() { + return avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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 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_ ; + /** + * uint32 towerTeamId = 1; + * @return The towerTeamId. + */ + @java.lang.Override + public int getTowerTeamId() { + return towerTeamId_; + } + /** + * uint32 towerTeamId = 1; + * @param value The towerTeamId to set. + * @return This builder for chaining. + */ + public Builder setTowerTeamId(int value) { + + towerTeamId_ = value; + onChanged(); + return this; + } + /** + * uint32 towerTeamId = 1; + * @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; + } + } + /** + * repeated uint64 avatarGuidList = 2; + * @return A list containing the avatarGuidList. + */ + public java.util.List + getAvatarGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_; + } + /** + * repeated uint64 avatarGuidList = 2; + * @return The count of avatarGuidList. + */ + public int getAvatarGuidListCount() { + return avatarGuidList_.size(); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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); + } + /** + * repeated uint64 avatarGuidList = 2; + * @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; + } + /** + * repeated uint64 avatarGuidList = 2; + * @param value The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAvatarGuidList(long value) { + ensureAvatarGuidListIsMutable(); + avatarGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 2; + * @param values The avatarGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllAvatarGuidList( + java.lang.Iterable values) { + ensureAvatarGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, avatarGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 avatarGuidList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2d37ae7f0 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TrackingIOInfoOuterClass.java @@ -0,0 +1,1519 @@ +// 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 { + + /** + * string appid = 1; + * @return The appid. + */ + java.lang.String getAppid(); + /** + * string appid = 1; + * @return The bytes for appid. + */ + com.google.protobuf.ByteString + getAppidBytes(); + + /** + * string deviceid = 2; + * @return The deviceid. + */ + java.lang.String getDeviceid(); + /** + * string deviceid = 2; + * @return The bytes for deviceid. + */ + com.google.protobuf.ByteString + getDeviceidBytes(); + + /** + * string mac = 3; + * @return The mac. + */ + java.lang.String getMac(); + /** + * string mac = 3; + * @return The bytes for mac. + */ + com.google.protobuf.ByteString + getMacBytes(); + + /** + * string rydevicetype = 4; + * @return The rydevicetype. + */ + java.lang.String getRydevicetype(); + /** + * string rydevicetype = 4; + * @return The bytes for rydevicetype. + */ + com.google.protobuf.ByteString + getRydevicetypeBytes(); + + /** + * string clientTz = 5; + * @return The clientTz. + */ + java.lang.String getClientTz(); + /** + * string clientTz = 5; + * @return The bytes for clientTz. + */ + com.google.protobuf.ByteString + getClientTzBytes(); + + /** + * string currentCaid = 6; + * @return The currentCaid. + */ + java.lang.String getCurrentCaid(); + /** + * string currentCaid = 6; + * @return The bytes for currentCaid. + */ + com.google.protobuf.ByteString + getCurrentCaidBytes(); + + /** + * string cachedCaid = 7; + * @return The cachedCaid. + */ + java.lang.String getCachedCaid(); + /** + * string cachedCaid = 7; + * @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_; + /** + * string appid = 1; + * @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; + } + } + /** + * string appid = 1; + * @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_; + /** + * string deviceid = 2; + * @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; + } + } + /** + * string deviceid = 2; + * @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_; + /** + * string mac = 3; + * @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; + } + } + /** + * string mac = 3; + * @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_; + /** + * string rydevicetype = 4; + * @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; + } + } + /** + * string rydevicetype = 4; + * @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_; + /** + * string clientTz = 5; + * @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; + } + } + /** + * string clientTz = 5; + * @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_; + /** + * string currentCaid = 6; + * @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; + } + } + /** + * string currentCaid = 6; + * @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_; + /** + * string cachedCaid = 7; + * @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; + } + } + /** + * string cachedCaid = 7; + * @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 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_ = ""; + /** + * string appid = 1; + * @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; + } + } + /** + * string appid = 1; + * @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; + } + } + /** + * string appid = 1; + * @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; + } + /** + * string appid = 1; + * @return This builder for chaining. + */ + public Builder clearAppid() { + + appid_ = getDefaultInstance().getAppid(); + onChanged(); + return this; + } + /** + * string appid = 1; + * @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_ = ""; + /** + * string deviceid = 2; + * @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; + } + } + /** + * string deviceid = 2; + * @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; + } + } + /** + * string deviceid = 2; + * @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; + } + /** + * string deviceid = 2; + * @return This builder for chaining. + */ + public Builder clearDeviceid() { + + deviceid_ = getDefaultInstance().getDeviceid(); + onChanged(); + return this; + } + /** + * string deviceid = 2; + * @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_ = ""; + /** + * string mac = 3; + * @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; + } + } + /** + * string mac = 3; + * @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; + } + } + /** + * string mac = 3; + * @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; + } + /** + * string mac = 3; + * @return This builder for chaining. + */ + public Builder clearMac() { + + mac_ = getDefaultInstance().getMac(); + onChanged(); + return this; + } + /** + * string mac = 3; + * @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_ = ""; + /** + * string rydevicetype = 4; + * @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; + } + } + /** + * string rydevicetype = 4; + * @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; + } + } + /** + * string rydevicetype = 4; + * @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; + } + /** + * string rydevicetype = 4; + * @return This builder for chaining. + */ + public Builder clearRydevicetype() { + + rydevicetype_ = getDefaultInstance().getRydevicetype(); + onChanged(); + return this; + } + /** + * string rydevicetype = 4; + * @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_ = ""; + /** + * string clientTz = 5; + * @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; + } + } + /** + * string clientTz = 5; + * @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; + } + } + /** + * string clientTz = 5; + * @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; + } + /** + * string clientTz = 5; + * @return This builder for chaining. + */ + public Builder clearClientTz() { + + clientTz_ = getDefaultInstance().getClientTz(); + onChanged(); + return this; + } + /** + * string clientTz = 5; + * @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_ = ""; + /** + * string currentCaid = 6; + * @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; + } + } + /** + * string currentCaid = 6; + * @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; + } + } + /** + * string currentCaid = 6; + * @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; + } + /** + * string currentCaid = 6; + * @return This builder for chaining. + */ + public Builder clearCurrentCaid() { + + currentCaid_ = getDefaultInstance().getCurrentCaid(); + onChanged(); + return this; + } + /** + * string currentCaid = 6; + * @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_ = ""; + /** + * string cachedCaid = 7; + * @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; + } + } + /** + * string cachedCaid = 7; + * @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; + } + } + /** + * string cachedCaid = 7; + * @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; + } + /** + * string cachedCaid = 7; + * @return This builder for chaining. + */ + public Builder clearCachedCaid() { + + cachedCaid_ = getDefaultInstance().getCachedCaid(); + onChanged(); + return this; + } + /** + * string cachedCaid = 7; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..550db6ac2 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TrialAvatarGrantRecordOuterClass.java @@ -0,0 +1,607 @@ +// 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 { + + /** + * uint32 grantReason = 1; + * @return The grantReason. + */ + int getGrantReason(); + + /** + * uint32 fromParentQuestId = 2; + * @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_; + /** + * uint32 grantReason = 1; + * @return The grantReason. + */ + @java.lang.Override + public int getGrantReason() { + return grantReason_; + } + + public static final int FROMPARENTQUESTID_FIELD_NUMBER = 2; + private int fromParentQuestId_; + /** + * uint32 fromParentQuestId = 2; + * @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 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_ ; + /** + * uint32 grantReason = 1; + * @return The grantReason. + */ + @java.lang.Override + public int getGrantReason() { + return grantReason_; + } + /** + * uint32 grantReason = 1; + * @param value The grantReason to set. + * @return This builder for chaining. + */ + public Builder setGrantReason(int value) { + + grantReason_ = value; + onChanged(); + return this; + } + /** + * uint32 grantReason = 1; + * @return This builder for chaining. + */ + public Builder clearGrantReason() { + + grantReason_ = 0; + onChanged(); + return this; + } + + private int fromParentQuestId_ ; + /** + * uint32 fromParentQuestId = 2; + * @return The fromParentQuestId. + */ + @java.lang.Override + public int getFromParentQuestId() { + return fromParentQuestId_; + } + /** + * uint32 fromParentQuestId = 2; + * @param value The fromParentQuestId to set. + * @return This builder for chaining. + */ + public Builder setFromParentQuestId(int value) { + + fromParentQuestId_ = value; + onChanged(); + return this; + } + /** + * uint32 fromParentQuestId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..bec68ca06 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/TrialAvatarInfoOuterClass.java @@ -0,0 +1,1121 @@ +// 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 { + + /** + * uint32 trialAvatarId = 1; + * @return The trialAvatarId. + */ + int getTrialAvatarId(); + + /** + * repeated .Item trialEquipList = 2; + */ + java.util.List + getTrialEquipListList(); + /** + * repeated .Item trialEquipList = 2; + */ + emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index); + /** + * repeated .Item trialEquipList = 2; + */ + int getTrialEquipListCount(); + /** + * repeated .Item trialEquipList = 2; + */ + java.util.List + getTrialEquipListOrBuilderList(); + /** + * repeated .Item trialEquipList = 2; + */ + emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder( + int index); + + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @return Whether the grantRecord field is set. + */ + boolean hasGrantRecord(); + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @return The grantRecord. + */ + emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord getGrantRecord(); + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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(); + 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_; + /** + * uint32 trialAvatarId = 1; + * @return The trialAvatarId. + */ + @java.lang.Override + public int getTrialAvatarId() { + return trialAvatarId_; + } + + public static final int TRIALEQUIPLIST_FIELD_NUMBER = 2; + private java.util.List trialEquipList_; + /** + * repeated .Item trialEquipList = 2; + */ + @java.lang.Override + public java.util.List getTrialEquipListList() { + return trialEquipList_; + } + /** + * repeated .Item trialEquipList = 2; + */ + @java.lang.Override + public java.util.List + getTrialEquipListOrBuilderList() { + return trialEquipList_; + } + /** + * repeated .Item trialEquipList = 2; + */ + @java.lang.Override + public int getTrialEquipListCount() { + return trialEquipList_.size(); + } + /** + * repeated .Item trialEquipList = 2; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) { + return trialEquipList_.get(index); + } + /** + * repeated .Item trialEquipList = 2; + */ + @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_; + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @return Whether the grantRecord field is set. + */ + @java.lang.Override + public boolean hasGrantRecord() { + return grantRecord_ != null; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @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_; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + @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 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_ ; + /** + * uint32 trialAvatarId = 1; + * @return The trialAvatarId. + */ + @java.lang.Override + public int getTrialAvatarId() { + return trialAvatarId_; + } + /** + * uint32 trialAvatarId = 1; + * @param value The trialAvatarId to set. + * @return This builder for chaining. + */ + public Builder setTrialAvatarId(int value) { + + trialAvatarId_ = value; + onChanged(); + return this; + } + /** + * uint32 trialAvatarId = 1; + * @return This builder for chaining. + */ + public Builder clearTrialAvatarId() { + + trialAvatarId_ = 0; + onChanged(); + return this; + } + + private java.util.List trialEquipList_ = + java.util.Collections.emptyList(); + private void ensureTrialEquipListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + trialEquipList_ = new java.util.ArrayList(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_; + + /** + * repeated .Item trialEquipList = 2; + */ + public java.util.List getTrialEquipListList() { + if (trialEquipListBuilder_ == null) { + return java.util.Collections.unmodifiableList(trialEquipList_); + } else { + return trialEquipListBuilder_.getMessageList(); + } + } + /** + * repeated .Item trialEquipList = 2; + */ + public int getTrialEquipListCount() { + if (trialEquipListBuilder_ == null) { + return trialEquipList_.size(); + } else { + return trialEquipListBuilder_.getCount(); + } + } + /** + * repeated .Item trialEquipList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item getTrialEquipList(int index) { + if (trialEquipListBuilder_ == null) { + return trialEquipList_.get(index); + } else { + return trialEquipListBuilder_.getMessage(index); + } + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + 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; + } + /** + * repeated .Item trialEquipList = 2; + */ + public Builder addAllTrialEquipList( + java.lang.Iterable values) { + if (trialEquipListBuilder_ == null) { + ensureTrialEquipListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trialEquipList_); + onChanged(); + } else { + trialEquipListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Item trialEquipList = 2; + */ + public Builder clearTrialEquipList() { + if (trialEquipListBuilder_ == null) { + trialEquipList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trialEquipListBuilder_.clear(); + } + return this; + } + /** + * repeated .Item trialEquipList = 2; + */ + public Builder removeTrialEquipList(int index) { + if (trialEquipListBuilder_ == null) { + ensureTrialEquipListIsMutable(); + trialEquipList_.remove(index); + onChanged(); + } else { + trialEquipListBuilder_.remove(index); + } + return this; + } + /** + * repeated .Item trialEquipList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder getTrialEquipListBuilder( + int index) { + return getTrialEquipListFieldBuilder().getBuilder(index); + } + /** + * repeated .Item trialEquipList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder getTrialEquipListOrBuilder( + int index) { + if (trialEquipListBuilder_ == null) { + return trialEquipList_.get(index); } else { + return trialEquipListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Item trialEquipList = 2; + */ + public java.util.List + getTrialEquipListOrBuilderList() { + if (trialEquipListBuilder_ != null) { + return trialEquipListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trialEquipList_); + } + } + /** + * repeated .Item trialEquipList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder() { + return getTrialEquipListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item trialEquipList = 2; + */ + public emu.grasscutter.net.proto.ItemOuterClass.Item.Builder addTrialEquipListBuilder( + int index) { + return getTrialEquipListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()); + } + /** + * repeated .Item trialEquipList = 2; + */ + public java.util.List + 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_; + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @return Whether the grantRecord field is set. + */ + public boolean hasGrantRecord() { + return grantRecordBuilder_ != null || grantRecord_ != null; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + * @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(); + } + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + public Builder clearGrantRecord() { + if (grantRecordBuilder_ == null) { + grantRecord_ = null; + onChanged(); + } else { + grantRecord_ = null; + grantRecordBuilder_ = null; + } + + return this; + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + public emu.grasscutter.net.proto.TrialAvatarGrantRecordOuterClass.TrialAvatarGrantRecord.Builder getGrantRecordBuilder() { + + onChanged(); + return getGrantRecordFieldBuilder().getBuilder(); + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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_; + } + } + /** + * .TrialAvatarGrantRecord grantRecord = 3; + */ + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..1c105ea3b --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UnionCmdNotifyOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .UnionCmd cmdList = 1; + */ + java.util.List + getCmdListList(); + /** + * repeated .UnionCmd cmdList = 1; + */ + emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index); + /** + * repeated .UnionCmd cmdList = 1; + */ + int getCmdListCount(); + /** + * repeated .UnionCmd cmdList = 1; + */ + java.util.List + getCmdListOrBuilderList(); + /** + * repeated .UnionCmd cmdList = 1; + */ + 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(); + 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 cmdList_; + /** + * repeated .UnionCmd cmdList = 1; + */ + @java.lang.Override + public java.util.List getCmdListList() { + return cmdList_; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + @java.lang.Override + public java.util.List + getCmdListOrBuilderList() { + return cmdList_; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + @java.lang.Override + public int getCmdListCount() { + return cmdList_.size(); + } + /** + * repeated .UnionCmd cmdList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index) { + return cmdList_.get(index); + } + /** + * repeated .UnionCmd cmdList = 1; + */ + @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 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 cmdList_ = + java.util.Collections.emptyList(); + private void ensureCmdListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cmdList_ = new java.util.ArrayList(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_; + + /** + * repeated .UnionCmd cmdList = 1; + */ + public java.util.List getCmdListList() { + if (cmdListBuilder_ == null) { + return java.util.Collections.unmodifiableList(cmdList_); + } else { + return cmdListBuilder_.getMessageList(); + } + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public int getCmdListCount() { + if (cmdListBuilder_ == null) { + return cmdList_.size(); + } else { + return cmdListBuilder_.getCount(); + } + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd getCmdList(int index) { + if (cmdListBuilder_ == null) { + return cmdList_.get(index); + } else { + return cmdListBuilder_.getMessage(index); + } + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + 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; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public Builder addAllCmdList( + java.lang.Iterable values) { + if (cmdListBuilder_ == null) { + ensureCmdListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cmdList_); + onChanged(); + } else { + cmdListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public Builder clearCmdList() { + if (cmdListBuilder_ == null) { + cmdList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cmdListBuilder_.clear(); + } + return this; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public Builder removeCmdList(int index) { + if (cmdListBuilder_ == null) { + ensureCmdListIsMutable(); + cmdList_.remove(index); + onChanged(); + } else { + cmdListBuilder_.remove(index); + } + return this; + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder getCmdListBuilder( + int index) { + return getCmdListFieldBuilder().getBuilder(index); + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmdOrBuilder getCmdListOrBuilder( + int index) { + if (cmdListBuilder_ == null) { + return cmdList_.get(index); } else { + return cmdListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public java.util.List + getCmdListOrBuilderList() { + if (cmdListBuilder_ != null) { + return cmdListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cmdList_); + } + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder addCmdListBuilder() { + return getCmdListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance()); + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.Builder addCmdListBuilder( + int index) { + return getCmdListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd.getDefaultInstance()); + } + /** + * repeated .UnionCmd cmdList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..a5604aae4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UnionCmdOuterClass.java @@ -0,0 +1,610 @@ +// 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 { + + /** + * uint32 messageId = 1; + * @return The messageId. + */ + int getMessageId(); + + /** + * bytes body = 2; + * @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_; + /** + * uint32 messageId = 1; + * @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_; + /** + * bytes body = 2; + * @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 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_ ; + /** + * uint32 messageId = 1; + * @return The messageId. + */ + @java.lang.Override + public int getMessageId() { + return messageId_; + } + /** + * uint32 messageId = 1; + * @param value The messageId to set. + * @return This builder for chaining. + */ + public Builder setMessageId(int value) { + + messageId_ = value; + onChanged(); + return this; + } + /** + * uint32 messageId = 1; + * @return This builder for chaining. + */ + public Builder clearMessageId() { + + messageId_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes body = 2; + * @return The body. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBody() { + return body_; + } + /** + * bytes body = 2; + * @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; + } + /** + * bytes body = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ef7efd41e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 talentId = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int TALENTID_FIELD_NUMBER = 2; + private int talentId_; + /** + * uint32 talentId = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int talentId_ ; + /** + * uint32 talentId = 2; + * @return The talentId. + */ + @java.lang.Override + public int getTalentId() { + return talentId_; + } + /** + * uint32 talentId = 2; + * @param value The talentId to set. + * @return This builder for chaining. + */ + public Builder setTalentId(int value) { + + talentId_ = value; + onChanged(); + return this; + } + /** + * uint32 talentId = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..35361ecda --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UnlockAvatarTalentRspOuterClass.java @@ -0,0 +1,678 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint32 talentId = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int TALENTID_FIELD_NUMBER = 3; + private int talentId_; + /** + * uint32 talentId = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private int talentId_ ; + /** + * uint32 talentId = 3; + * @return The talentId. + */ + @java.lang.Override + public int getTalentId() { + return talentId_; + } + /** + * uint32 talentId = 3; + * @param value The talentId to set. + * @return This builder for chaining. + */ + public Builder setTalentId(int value) { + + talentId_ = value; + onChanged(); + return this; + } + /** + * uint32 talentId = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..eed65f28f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UnlockNameCardNotifyOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * uint32 nameCardId = 1; + * @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_; + /** + * uint32 nameCardId = 1; + * @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 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_ ; + /** + * uint32 nameCardId = 1; + * @return The nameCardId. + */ + @java.lang.Override + public int getNameCardId() { + return nameCardId_; + } + /** + * uint32 nameCardId = 1; + * @param value The nameCardId to set. + * @return This builder for chaining. + */ + public Builder setNameCardId(int value) { + + nameCardId_ = value; + onChanged(); + return this; + } + /** + * uint32 nameCardId = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f3afd262d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UseItemReqOuterClass.java @@ -0,0 +1,821 @@ +// 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 { + + /** + * uint64 guid = 1; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 count = 2; + * @return The count. + */ + int getCount(); + + /** + * uint64 targetGuid = 3; + * @return The targetGuid. + */ + long getTargetGuid(); + + /** + * uint32 optionIdx = 4; + * @return The optionIdx. + */ + int getOptionIdx(); + + /** + * bool isEnterMpDungeonTeam = 5; + * @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_; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + public static final int TARGETGUID_FIELD_NUMBER = 3; + private long targetGuid_; + /** + * uint64 targetGuid = 3; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + + public static final int OPTIONIDX_FIELD_NUMBER = 4; + private int optionIdx_; + /** + * uint32 optionIdx = 4; + * @return The optionIdx. + */ + @java.lang.Override + public int getOptionIdx() { + return optionIdx_; + } + + public static final int ISENTERMPDUNGEONTEAM_FIELD_NUMBER = 5; + private boolean isEnterMpDungeonTeam_; + /** + * bool isEnterMpDungeonTeam = 5; + * @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 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_ ; + /** + * uint64 guid = 1; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 1; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 1; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int count_ ; + /** + * uint32 count = 2; + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + /** + * uint32 count = 2; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + onChanged(); + return this; + } + /** + * uint32 count = 2; + * @return This builder for chaining. + */ + public Builder clearCount() { + + count_ = 0; + onChanged(); + return this; + } + + private long targetGuid_ ; + /** + * uint64 targetGuid = 3; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + /** + * uint64 targetGuid = 3; + * @param value The targetGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetGuid(long value) { + + targetGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetGuid = 3; + * @return This builder for chaining. + */ + public Builder clearTargetGuid() { + + targetGuid_ = 0L; + onChanged(); + return this; + } + + private int optionIdx_ ; + /** + * uint32 optionIdx = 4; + * @return The optionIdx. + */ + @java.lang.Override + public int getOptionIdx() { + return optionIdx_; + } + /** + * uint32 optionIdx = 4; + * @param value The optionIdx to set. + * @return This builder for chaining. + */ + public Builder setOptionIdx(int value) { + + optionIdx_ = value; + onChanged(); + return this; + } + /** + * uint32 optionIdx = 4; + * @return This builder for chaining. + */ + public Builder clearOptionIdx() { + + optionIdx_ = 0; + onChanged(); + return this; + } + + private boolean isEnterMpDungeonTeam_ ; + /** + * bool isEnterMpDungeonTeam = 5; + * @return The isEnterMpDungeonTeam. + */ + @java.lang.Override + public boolean getIsEnterMpDungeonTeam() { + return isEnterMpDungeonTeam_; + } + /** + * bool isEnterMpDungeonTeam = 5; + * @param value The isEnterMpDungeonTeam to set. + * @return This builder for chaining. + */ + public Builder setIsEnterMpDungeonTeam(boolean value) { + + isEnterMpDungeonTeam_ = value; + onChanged(); + return this; + } + /** + * bool isEnterMpDungeonTeam = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..dd2fbad10 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/UseItemRspOuterClass.java @@ -0,0 +1,819 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 guid = 2; + * @return The guid. + */ + long getGuid(); + + /** + * uint32 itemId = 3; + * @return The itemId. + */ + int getItemId(); + + /** + * uint64 targetGuid = 4; + * @return The targetGuid. + */ + long getTargetGuid(); + + /** + * uint32 optionIdx = 5; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int GUID_FIELD_NUMBER = 2; + private long guid_; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + + public static final int ITEMID_FIELD_NUMBER = 3; + private int itemId_; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + + public static final int TARGETGUID_FIELD_NUMBER = 4; + private long targetGuid_; + /** + * uint64 targetGuid = 4; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + + public static final int OPTIONIDX_FIELD_NUMBER = 5; + private int optionIdx_; + /** + * uint32 optionIdx = 5; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long guid_ ; + /** + * uint64 guid = 2; + * @return The guid. + */ + @java.lang.Override + public long getGuid() { + return guid_; + } + /** + * uint64 guid = 2; + * @param value The guid to set. + * @return This builder for chaining. + */ + public Builder setGuid(long value) { + + guid_ = value; + onChanged(); + return this; + } + /** + * uint64 guid = 2; + * @return This builder for chaining. + */ + public Builder clearGuid() { + + guid_ = 0L; + onChanged(); + return this; + } + + private int itemId_ ; + /** + * uint32 itemId = 3; + * @return The itemId. + */ + @java.lang.Override + public int getItemId() { + return itemId_; + } + /** + * uint32 itemId = 3; + * @param value The itemId to set. + * @return This builder for chaining. + */ + public Builder setItemId(int value) { + + itemId_ = value; + onChanged(); + return this; + } + /** + * uint32 itemId = 3; + * @return This builder for chaining. + */ + public Builder clearItemId() { + + itemId_ = 0; + onChanged(); + return this; + } + + private long targetGuid_ ; + /** + * uint64 targetGuid = 4; + * @return The targetGuid. + */ + @java.lang.Override + public long getTargetGuid() { + return targetGuid_; + } + /** + * uint64 targetGuid = 4; + * @param value The targetGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetGuid(long value) { + + targetGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetGuid = 4; + * @return This builder for chaining. + */ + public Builder clearTargetGuid() { + + targetGuid_ = 0L; + onChanged(); + return this; + } + + private int optionIdx_ ; + /** + * uint32 optionIdx = 5; + * @return The optionIdx. + */ + @java.lang.Override + public int getOptionIdx() { + return optionIdx_; + } + /** + * uint32 optionIdx = 5; + * @param value The optionIdx to set. + * @return This builder for chaining. + */ + public Builder setOptionIdx(int value) { + + optionIdx_ = value; + onChanged(); + return this; + } + /** + * uint32 optionIdx = 5; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..4151faaec --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/VectorOuterClass.java @@ -0,0 +1,682 @@ +// 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 { + + /** + * float x = 1; + * @return The x. + */ + float getX(); + + /** + * float y = 2; + * @return The y. + */ + float getY(); + + /** + * float z = 3; + * @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_; + /** + * float x = 1; + * @return The x. + */ + @java.lang.Override + public float getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private float y_; + /** + * float y = 2; + * @return The y. + */ + @java.lang.Override + public float getY() { + return y_; + } + + public static final int Z_FIELD_NUMBER = 3; + private float z_; + /** + * float z = 3; + * @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 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_ ; + /** + * float x = 1; + * @return The x. + */ + @java.lang.Override + public float getX() { + return x_; + } + /** + * float x = 1; + * @param value The x to set. + * @return This builder for chaining. + */ + public Builder setX(float value) { + + x_ = value; + onChanged(); + return this; + } + /** + * float x = 1; + * @return This builder for chaining. + */ + public Builder clearX() { + + x_ = 0F; + onChanged(); + return this; + } + + private float y_ ; + /** + * float y = 2; + * @return The y. + */ + @java.lang.Override + public float getY() { + return y_; + } + /** + * float y = 2; + * @param value The y to set. + * @return This builder for chaining. + */ + public Builder setY(float value) { + + y_ = value; + onChanged(); + return this; + } + /** + * float y = 2; + * @return This builder for chaining. + */ + public Builder clearY() { + + y_ = 0F; + onChanged(); + return this; + } + + private float z_ ; + /** + * float z = 3; + * @return The z. + */ + @java.lang.Override + public float getZ() { + return z_; + } + /** + * float z = 3; + * @param value The z to set. + * @return This builder for chaining. + */ + public Builder setZ(float value) { + + z_ = value; + onChanged(); + return this; + } + /** + * float z = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..da5ffb0ea --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/VisionTypeOuterClass.java @@ -0,0 +1,269 @@ +// 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 { + /** + * VisionNone = 0; + */ + VisionNone(0), + /** + * VisionMeet = 1; + */ + VisionMeet(1), + /** + * VisionReborn = 2; + */ + VisionReborn(2), + /** + * VisionReplace = 3; + */ + VisionReplace(3), + /** + * VisionWaypointReborn = 4; + */ + VisionWaypointReborn(4), + /** + * VisionMiss = 5; + */ + VisionMiss(5), + /** + * VisionDie = 6; + */ + VisionDie(6), + /** + * VisionGatherEscape = 7; + */ + VisionGatherEscape(7), + /** + * VisionRefresh = 8; + */ + VisionRefresh(8), + /** + * VisionTransport = 9; + */ + VisionTransport(9), + /** + * VisionReplaceDie = 10; + */ + VisionReplaceDie(10), + /** + * VisionReplaceNoNotify = 11; + */ + VisionReplaceNoNotify(11), + /** + * VisionBorn = 12; + */ + VisionBorn(12), + /** + * VisionPickup = 13; + */ + VisionPickup(13), + /** + * VisionRemove = 14; + */ + VisionRemove(14), + UNRECOGNIZED(-1), + ; + + /** + * VisionNone = 0; + */ + public static final int VisionNone_VALUE = 0; + /** + * VisionMeet = 1; + */ + public static final int VisionMeet_VALUE = 1; + /** + * VisionReborn = 2; + */ + public static final int VisionReborn_VALUE = 2; + /** + * VisionReplace = 3; + */ + public static final int VisionReplace_VALUE = 3; + /** + * VisionWaypointReborn = 4; + */ + public static final int VisionWaypointReborn_VALUE = 4; + /** + * VisionMiss = 5; + */ + public static final int VisionMiss_VALUE = 5; + /** + * VisionDie = 6; + */ + public static final int VisionDie_VALUE = 6; + /** + * VisionGatherEscape = 7; + */ + public static final int VisionGatherEscape_VALUE = 7; + /** + * VisionRefresh = 8; + */ + public static final int VisionRefresh_VALUE = 8; + /** + * VisionTransport = 9; + */ + public static final int VisionTransport_VALUE = 9; + /** + * VisionReplaceDie = 10; + */ + public static final int VisionReplaceDie_VALUE = 10; + /** + * VisionReplaceNoNotify = 11; + */ + public static final int VisionReplaceNoNotify_VALUE = 11; + /** + * VisionBorn = 12; + */ + public static final int VisionBorn_VALUE = 12; + /** + * VisionPickup = 13; + */ + public static final int VisionPickup_VALUE = 13; + /** + * VisionRemove = 14; + */ + 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 + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VisionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + 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 new file mode 100644 index 000000000..e1cd71b50 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponAwakenReqOuterClass.java @@ -0,0 +1,942 @@ +// 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 { + + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * uint64 itemGuid = 2; + * @return The itemGuid. + */ + long getItemGuid(); + + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + int getAffixLevelMapCount(); + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + boolean containsAffixLevelMap( + int key); + /** + * Use {@link #getAffixLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAffixLevelMap(); + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + java.util.Map + getAffixLevelMapMap(); + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + int getAffixLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + 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 + 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_; + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + + public static final int ITEMGUID_FIELD_NUMBER = 2; + private long itemGuid_; + /** + * uint64 itemGuid = 2; + * @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 + .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 + internalGetAffixLevelMap() { + if (affixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixLevelMapDefaultEntryHolder.defaultEntry); + } + return affixLevelMap_; + } + + public int getAffixLevelMapCount() { + return internalGetAffixLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + @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 getAffixLevelMap() { + return getAffixLevelMapMap(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public java.util.Map getAffixLevelMapMap() { + return internalGetAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public int getAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public int getAffixLevelMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetAffixLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 1; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 1; + * @return This builder for chaining. + */ + public Builder clearTargetWeaponGuid() { + + targetWeaponGuid_ = 0L; + onChanged(); + return this; + } + + private long itemGuid_ ; + /** + * uint64 itemGuid = 2; + * @return The itemGuid. + */ + @java.lang.Override + public long getItemGuid() { + return itemGuid_; + } + /** + * uint64 itemGuid = 2; + * @param value The itemGuid to set. + * @return This builder for chaining. + */ + public Builder setItemGuid(long value) { + + itemGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 itemGuid = 2; + * @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 + internalGetAffixLevelMap() { + if (affixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixLevelMapDefaultEntryHolder.defaultEntry); + } + return affixLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + @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 getAffixLevelMap() { + return getAffixLevelMapMap(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public java.util.Map getAffixLevelMapMap() { + return internalGetAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public int getAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + @java.lang.Override + + public int getAffixLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetAffixLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAffixLevelMap() { + internalGetMutableAffixLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + public Builder removeAffixLevelMap( + int key) { + + internalGetMutableAffixLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAffixLevelMap() { + return internalGetMutableAffixLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + public Builder putAffixLevelMap( + int key, + int value) { + + + internalGetMutableAffixLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> affixLevelMap = 3; + */ + + public Builder putAllAffixLevelMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f5cc42232 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponAwakenRspOuterClass.java @@ -0,0 +1,1387 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * uint32 targetWeaponAwakenLevel = 3; + * @return The targetWeaponAwakenLevel. + */ + int getTargetWeaponAwakenLevel(); + + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + int getOldAffixLevelMapCount(); + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + boolean containsOldAffixLevelMap( + int key); + /** + * Use {@link #getOldAffixLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOldAffixLevelMap(); + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + java.util.Map + getOldAffixLevelMapMap(); + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + int getOldAffixLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + int getOldAffixLevelMapOrThrow( + int key); + + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + int getCurAffixLevelMapCount(); + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + boolean containsCurAffixLevelMap( + int key); + /** + * Use {@link #getCurAffixLevelMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCurAffixLevelMap(); + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + java.util.Map + getCurAffixLevelMapMap(); + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + int getCurAffixLevelMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + int getCurAffixLevelMapOrThrow( + int key); + + /** + * uint64 avatarGuid = 6; + * @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 + 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 + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; + private long targetWeaponGuid_; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + + public static final int TARGETWEAPONAWAKENLEVEL_FIELD_NUMBER = 3; + private int targetWeaponAwakenLevel_; + /** + * uint32 targetWeaponAwakenLevel = 3; + * @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 + .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 + internalGetOldAffixLevelMap() { + if (oldAffixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldAffixLevelMapDefaultEntryHolder.defaultEntry); + } + return oldAffixLevelMap_; + } + + public int getOldAffixLevelMapCount() { + return internalGetOldAffixLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + @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 getOldAffixLevelMap() { + return getOldAffixLevelMapMap(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public java.util.Map getOldAffixLevelMapMap() { + return internalGetOldAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public int getOldAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetOldAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public int getOldAffixLevelMapOrThrow( + int key) { + + java.util.Map 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 + .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 + internalGetCurAffixLevelMap() { + if (curAffixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurAffixLevelMapDefaultEntryHolder.defaultEntry); + } + return curAffixLevelMap_; + } + + public int getCurAffixLevelMapCount() { + return internalGetCurAffixLevelMap().getMap().size(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + @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 getCurAffixLevelMap() { + return getCurAffixLevelMapMap(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public java.util.Map getCurAffixLevelMapMap() { + return internalGetCurAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public int getCurAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetCurAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public int getCurAffixLevelMapOrThrow( + int key) { + + java.util.Map 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_; + /** + * uint64 avatarGuid = 6; + * @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 entry + : internalGetOldAffixLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + oldAffixLevelMap__ = OldAffixLevelMapDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, oldAffixLevelMap__); + } + for (java.util.Map.Entry entry + : internalGetCurAffixLevelMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetWeaponGuid_ ; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 2; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetWeaponGuid() { + + targetWeaponGuid_ = 0L; + onChanged(); + return this; + } + + private int targetWeaponAwakenLevel_ ; + /** + * uint32 targetWeaponAwakenLevel = 3; + * @return The targetWeaponAwakenLevel. + */ + @java.lang.Override + public int getTargetWeaponAwakenLevel() { + return targetWeaponAwakenLevel_; + } + /** + * uint32 targetWeaponAwakenLevel = 3; + * @param value The targetWeaponAwakenLevel to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponAwakenLevel(int value) { + + targetWeaponAwakenLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 targetWeaponAwakenLevel = 3; + * @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 + internalGetOldAffixLevelMap() { + if (oldAffixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OldAffixLevelMapDefaultEntryHolder.defaultEntry); + } + return oldAffixLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + @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 getOldAffixLevelMap() { + return getOldAffixLevelMapMap(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public java.util.Map getOldAffixLevelMapMap() { + return internalGetOldAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public int getOldAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetOldAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + @java.lang.Override + + public int getOldAffixLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetOldAffixLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOldAffixLevelMap() { + internalGetMutableOldAffixLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + public Builder removeOldAffixLevelMap( + int key) { + + internalGetMutableOldAffixLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOldAffixLevelMap() { + return internalGetMutableOldAffixLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + public Builder putOldAffixLevelMap( + int key, + int value) { + + + internalGetMutableOldAffixLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> oldAffixLevelMap = 4; + */ + + public Builder putAllOldAffixLevelMap( + java.util.Map values) { + internalGetMutableOldAffixLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.Integer, java.lang.Integer> curAffixLevelMap_; + private com.google.protobuf.MapField + internalGetCurAffixLevelMap() { + if (curAffixLevelMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CurAffixLevelMapDefaultEntryHolder.defaultEntry); + } + return curAffixLevelMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + @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 getCurAffixLevelMap() { + return getCurAffixLevelMapMap(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public java.util.Map getCurAffixLevelMapMap() { + return internalGetCurAffixLevelMap().getMap(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public int getCurAffixLevelMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetCurAffixLevelMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + @java.lang.Override + + public int getCurAffixLevelMapOrThrow( + int key) { + + java.util.Map map = + internalGetCurAffixLevelMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCurAffixLevelMap() { + internalGetMutableCurAffixLevelMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + public Builder removeCurAffixLevelMap( + int key) { + + internalGetMutableCurAffixLevelMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCurAffixLevelMap() { + return internalGetMutableCurAffixLevelMap().getMutableMap(); + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + public Builder putCurAffixLevelMap( + int key, + int value) { + + + internalGetMutableCurAffixLevelMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> curAffixLevelMap = 5; + */ + + public Builder putAllCurAffixLevelMap( + java.util.Map values) { + internalGetMutableCurAffixLevelMap().getMutableMap() + .putAll(values); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 6; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 6; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 6; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2a5dbad22 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponOuterClass.java @@ -0,0 +1,1010 @@ +// 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 { + + /** + * uint32 level = 1; + * @return The level. + */ + int getLevel(); + + /** + * uint32 exp = 2; + * @return The exp. + */ + int getExp(); + + /** + * uint32 promoteLevel = 3; + * @return The promoteLevel. + */ + int getPromoteLevel(); + + /** + * map<uint32, uint32> affixMap = 4; + */ + int getAffixMapCount(); + /** + * map<uint32, uint32> affixMap = 4; + */ + boolean containsAffixMap( + int key); + /** + * Use {@link #getAffixMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAffixMap(); + /** + * map<uint32, uint32> affixMap = 4; + */ + java.util.Map + getAffixMapMap(); + /** + * map<uint32, uint32> affixMap = 4; + */ + + int getAffixMapOrDefault( + int key, + int defaultValue); + /** + * map<uint32, uint32> affixMap = 4; + */ + + 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 + 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_; + /** + * uint32 level = 1; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + + public static final int EXP_FIELD_NUMBER = 2; + private int exp_; + /** + * uint32 exp = 2; + * @return The exp. + */ + @java.lang.Override + public int getExp() { + return exp_; + } + + public static final int PROMOTELEVEL_FIELD_NUMBER = 3; + private int promoteLevel_; + /** + * uint32 promoteLevel = 3; + * @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 + .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 + internalGetAffixMap() { + if (affixMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixMapDefaultEntryHolder.defaultEntry); + } + return affixMap_; + } + + public int getAffixMapCount() { + return internalGetAffixMap().getMap().size(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + + @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 getAffixMap() { + return getAffixMapMap(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public java.util.Map getAffixMapMap() { + return internalGetAffixMap().getMap(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public int getAffixMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public int getAffixMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetAffixMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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_ ; + /** + * uint32 level = 1; + * @return The level. + */ + @java.lang.Override + public int getLevel() { + return level_; + } + /** + * uint32 level = 1; + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * uint32 level = 1; + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private int exp_ ; + /** + * uint32 exp = 2; + * @return The exp. + */ + @java.lang.Override + public int getExp() { + return exp_; + } + /** + * uint32 exp = 2; + * @param value The exp to set. + * @return This builder for chaining. + */ + public Builder setExp(int value) { + + exp_ = value; + onChanged(); + return this; + } + /** + * uint32 exp = 2; + * @return This builder for chaining. + */ + public Builder clearExp() { + + exp_ = 0; + onChanged(); + return this; + } + + private int promoteLevel_ ; + /** + * uint32 promoteLevel = 3; + * @return The promoteLevel. + */ + @java.lang.Override + public int getPromoteLevel() { + return promoteLevel_; + } + /** + * uint32 promoteLevel = 3; + * @param value The promoteLevel to set. + * @return This builder for chaining. + */ + public Builder setPromoteLevel(int value) { + + promoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 promoteLevel = 3; + * @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 + internalGetAffixMap() { + if (affixMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AffixMapDefaultEntryHolder.defaultEntry); + } + return affixMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + + @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 getAffixMap() { + return getAffixMapMap(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public java.util.Map getAffixMapMap() { + return internalGetAffixMap().getMap(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public int getAffixMapOrDefault( + int key, + int defaultValue) { + + java.util.Map map = + internalGetAffixMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, uint32> affixMap = 4; + */ + @java.lang.Override + + public int getAffixMapOrThrow( + int key) { + + java.util.Map map = + internalGetAffixMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAffixMap() { + internalGetMutableAffixMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, uint32> affixMap = 4; + */ + + public Builder removeAffixMap( + int key) { + + internalGetMutableAffixMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAffixMap() { + return internalGetMutableAffixMap().getMutableMap(); + } + /** + * map<uint32, uint32> affixMap = 4; + */ + public Builder putAffixMap( + int key, + int value) { + + + internalGetMutableAffixMap().getMutableMap() + .put(key, value); + return this; + } + /** + * map<uint32, uint32> affixMap = 4; + */ + + public Builder putAllAffixMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..dad5a8d93 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponPromoteReqOuterClass.java @@ -0,0 +1,537 @@ +// 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 { + + /** + * uint64 targetWeaponGuid = 1; + * @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_; + /** + * uint64 targetWeaponGuid = 1; + * @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 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_ ; + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 1; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..fe5efdef7 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponPromoteRspOuterClass.java @@ -0,0 +1,749 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + int getOldPromoteLevel(); + + /** + * uint32 curPromoteLevel = 4; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; + private long targetWeaponGuid_; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + + public static final int OLDPROMOTELEVEL_FIELD_NUMBER = 3; + private int oldPromoteLevel_; + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + @java.lang.Override + public int getOldPromoteLevel() { + return oldPromoteLevel_; + } + + public static final int CURPROMOTELEVEL_FIELD_NUMBER = 4; + private int curPromoteLevel_; + /** + * uint32 curPromoteLevel = 4; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetWeaponGuid_ ; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 2; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetWeaponGuid() { + + targetWeaponGuid_ = 0L; + onChanged(); + return this; + } + + private int oldPromoteLevel_ ; + /** + * uint32 oldPromoteLevel = 3; + * @return The oldPromoteLevel. + */ + @java.lang.Override + public int getOldPromoteLevel() { + return oldPromoteLevel_; + } + /** + * uint32 oldPromoteLevel = 3; + * @param value The oldPromoteLevel to set. + * @return This builder for chaining. + */ + public Builder setOldPromoteLevel(int value) { + + oldPromoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldPromoteLevel = 3; + * @return This builder for chaining. + */ + public Builder clearOldPromoteLevel() { + + oldPromoteLevel_ = 0; + onChanged(); + return this; + } + + private int curPromoteLevel_ ; + /** + * uint32 curPromoteLevel = 4; + * @return The curPromoteLevel. + */ + @java.lang.Override + public int getCurPromoteLevel() { + return curPromoteLevel_; + } + /** + * uint32 curPromoteLevel = 4; + * @param value The curPromoteLevel to set. + * @return This builder for chaining. + */ + public Builder setCurPromoteLevel(int value) { + + curPromoteLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curPromoteLevel = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..9490c6e29 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeReqOuterClass.java @@ -0,0 +1,1110 @@ +// 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 { + + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + java.util.List getFoodWeaponGuidListList(); + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + int getFoodWeaponGuidListCount(); + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param index The index of the element to return. + * @return The foodWeaponGuidList at the given index. + */ + long getFoodWeaponGuidList(int index); + + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 3; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 3; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 3; + */ + 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(); + 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_; + /** + * uint64 targetWeaponGuid = 1; + * @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_; + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + @java.lang.Override + public java.util.List + getFoodWeaponGuidListList() { + return foodWeaponGuidList_; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + public int getFoodWeaponGuidListCount() { + return foodWeaponGuidList_.size(); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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 itemParamList_; + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + @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 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_ ; + /** + * uint64 targetWeaponGuid = 1; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 1; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 1; + * @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; + } + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return A list containing the foodWeaponGuidList. + */ + public java.util.List + getFoodWeaponGuidListList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return The count of foodWeaponGuidList. + */ + public int getFoodWeaponGuidListCount() { + return foodWeaponGuidList_.size(); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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); + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @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; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param value The foodWeaponGuidList to add. + * @return This builder for chaining. + */ + public Builder addFoodWeaponGuidList(long value) { + ensureFoodWeaponGuidListIsMutable(); + foodWeaponGuidList_.addLong(value); + onChanged(); + return this; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @param values The foodWeaponGuidList to add. + * @return This builder for chaining. + */ + public Builder addAllFoodWeaponGuidList( + java.lang.Iterable values) { + ensureFoodWeaponGuidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, foodWeaponGuidList_); + onChanged(); + return this; + } + /** + * repeated uint64 foodWeaponGuidList = 2; + * @return This builder for chaining. + */ + public Builder clearFoodWeaponGuidList() { + foodWeaponGuidList_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 3; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..eb12cb769 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeaponUpgradeRspOuterClass.java @@ -0,0 +1,1127 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + long getTargetWeaponGuid(); + + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + int getOldLevel(); + + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + int getCurLevel(); + + /** + * repeated .ItemParam itemParamList = 5; + */ + java.util.List + getItemParamListList(); + /** + * repeated .ItemParam itemParamList = 5; + */ + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index); + /** + * repeated .ItemParam itemParamList = 5; + */ + int getItemParamListCount(); + /** + * repeated .ItemParam itemParamList = 5; + */ + java.util.List + getItemParamListOrBuilderList(); + /** + * repeated .ItemParam itemParamList = 5; + */ + 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(); + 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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int TARGETWEAPONGUID_FIELD_NUMBER = 2; + private long targetWeaponGuid_; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + + public static final int OLDLEVEL_FIELD_NUMBER = 3; + private int oldLevel_; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + + public static final int CURLEVEL_FIELD_NUMBER = 4; + private int curLevel_; + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + + public static final int ITEMPARAMLIST_FIELD_NUMBER = 5; + private java.util.List itemParamList_; + /** + * repeated .ItemParam itemParamList = 5; + */ + @java.lang.Override + public java.util.List getItemParamListList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + @java.lang.Override + public java.util.List + getItemParamListOrBuilderList() { + return itemParamList_; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + @java.lang.Override + public int getItemParamListCount() { + return itemParamList_.size(); + } + /** + * repeated .ItemParam itemParamList = 5; + */ + @java.lang.Override + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + return itemParamList_.get(index); + } + /** + * repeated .ItemParam itemParamList = 5; + */ + @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long targetWeaponGuid_ ; + /** + * uint64 targetWeaponGuid = 2; + * @return The targetWeaponGuid. + */ + @java.lang.Override + public long getTargetWeaponGuid() { + return targetWeaponGuid_; + } + /** + * uint64 targetWeaponGuid = 2; + * @param value The targetWeaponGuid to set. + * @return This builder for chaining. + */ + public Builder setTargetWeaponGuid(long value) { + + targetWeaponGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 targetWeaponGuid = 2; + * @return This builder for chaining. + */ + public Builder clearTargetWeaponGuid() { + + targetWeaponGuid_ = 0L; + onChanged(); + return this; + } + + private int oldLevel_ ; + /** + * uint32 oldLevel = 3; + * @return The oldLevel. + */ + @java.lang.Override + public int getOldLevel() { + return oldLevel_; + } + /** + * uint32 oldLevel = 3; + * @param value The oldLevel to set. + * @return This builder for chaining. + */ + public Builder setOldLevel(int value) { + + oldLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 oldLevel = 3; + * @return This builder for chaining. + */ + public Builder clearOldLevel() { + + oldLevel_ = 0; + onChanged(); + return this; + } + + private int curLevel_ ; + /** + * uint32 curLevel = 4; + * @return The curLevel. + */ + @java.lang.Override + public int getCurLevel() { + return curLevel_; + } + /** + * uint32 curLevel = 4; + * @param value The curLevel to set. + * @return This builder for chaining. + */ + public Builder setCurLevel(int value) { + + curLevel_ = value; + onChanged(); + return this; + } + /** + * uint32 curLevel = 4; + * @return This builder for chaining. + */ + public Builder clearCurLevel() { + + curLevel_ = 0; + onChanged(); + return this; + } + + private java.util.List itemParamList_ = + java.util.Collections.emptyList(); + private void ensureItemParamListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + itemParamList_ = new java.util.ArrayList(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_; + + /** + * repeated .ItemParam itemParamList = 5; + */ + public java.util.List getItemParamListList() { + if (itemParamListBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemParamList_); + } else { + return itemParamListBuilder_.getMessageList(); + } + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public int getItemParamListCount() { + if (itemParamListBuilder_ == null) { + return itemParamList_.size(); + } else { + return itemParamListBuilder_.getCount(); + } + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); + } else { + return itemParamListBuilder_.getMessage(index); + } + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + 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; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public Builder addAllItemParamList( + java.lang.Iterable values) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemParamList_); + onChanged(); + } else { + itemParamListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public Builder clearItemParamList() { + if (itemParamListBuilder_ == null) { + itemParamList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemParamListBuilder_.clear(); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public Builder removeItemParamList(int index) { + if (itemParamListBuilder_ == null) { + ensureItemParamListIsMutable(); + itemParamList_.remove(index); + onChanged(); + } else { + itemParamListBuilder_.remove(index); + } + return this; + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().getBuilder(index); + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder( + int index) { + if (itemParamListBuilder_ == null) { + return itemParamList_.get(index); } else { + return itemParamListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public java.util.List + getItemParamListOrBuilderList() { + if (itemParamListBuilder_ != null) { + return itemParamListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemParamList_); + } + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() { + return getItemParamListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder( + int index) { + return getItemParamListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance()); + } + /** + * repeated .ItemParam itemParamList = 5; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..2a7823da4 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WearEquipReqOuterClass.java @@ -0,0 +1,608 @@ +// 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 { + + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint64 equipGuid = 2; + * @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_; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int EQUIPGUID_FIELD_NUMBER = 2; + private long equipGuid_; + /** + * uint64 equipGuid = 2; + * @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 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_ ; + /** + * uint64 avatarGuid = 1; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 1; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 1; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private long equipGuid_ ; + /** + * uint64 equipGuid = 2; + * @return The equipGuid. + */ + @java.lang.Override + public long getEquipGuid() { + return equipGuid_; + } + /** + * uint64 equipGuid = 2; + * @param value The equipGuid to set. + * @return This builder for chaining. + */ + public Builder setEquipGuid(long value) { + + equipGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 equipGuid = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..356f21e6f --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WearEquipRspOuterClass.java @@ -0,0 +1,679 @@ +// 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 { + + /** + * int32 retcode = 1; + * @return The retcode. + */ + int getRetcode(); + + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + long getAvatarGuid(); + + /** + * uint64 equipGuid = 3; + * @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_; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + + public static final int AVATARGUID_FIELD_NUMBER = 2; + private long avatarGuid_; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + + public static final int EQUIPGUID_FIELD_NUMBER = 3; + private long equipGuid_; + /** + * uint64 equipGuid = 3; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @return This builder for chaining. + */ + public Builder clearRetcode() { + + retcode_ = 0; + onChanged(); + return this; + } + + private long avatarGuid_ ; + /** + * uint64 avatarGuid = 2; + * @return The avatarGuid. + */ + @java.lang.Override + public long getAvatarGuid() { + return avatarGuid_; + } + /** + * uint64 avatarGuid = 2; + * @param value The avatarGuid to set. + * @return This builder for chaining. + */ + public Builder setAvatarGuid(long value) { + + avatarGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 avatarGuid = 2; + * @return This builder for chaining. + */ + public Builder clearAvatarGuid() { + + avatarGuid_ = 0L; + onChanged(); + return this; + } + + private long equipGuid_ ; + /** + * uint64 equipGuid = 3; + * @return The equipGuid. + */ + @java.lang.Override + public long getEquipGuid() { + return equipGuid_; + } + /** + * uint64 equipGuid = 3; + * @param value The equipGuid to set. + * @return This builder for chaining. + */ + public Builder setEquipGuid(long value) { + + equipGuid_ = value; + onChanged(); + return this; + } + /** + * uint64 equipGuid = 3; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..3f87aeb8c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WeeklyBossResinDiscountInfoOuterClass.java @@ -0,0 +1,748 @@ +// 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 { + + /** + * uint32 discountNum = 1; + * @return The discountNum. + */ + int getDiscountNum(); + + /** + * uint32 discountNumLimit = 2; + * @return The discountNumLimit. + */ + int getDiscountNumLimit(); + + /** + * uint32 resinCost = 3; + * @return The resinCost. + */ + int getResinCost(); + + /** + * uint32 originalResinCost = 4; + * @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_; + /** + * uint32 discountNum = 1; + * @return The discountNum. + */ + @java.lang.Override + public int getDiscountNum() { + return discountNum_; + } + + public static final int DISCOUNTNUMLIMIT_FIELD_NUMBER = 2; + private int discountNumLimit_; + /** + * uint32 discountNumLimit = 2; + * @return The discountNumLimit. + */ + @java.lang.Override + public int getDiscountNumLimit() { + return discountNumLimit_; + } + + public static final int RESINCOST_FIELD_NUMBER = 3; + private int resinCost_; + /** + * uint32 resinCost = 3; + * @return The resinCost. + */ + @java.lang.Override + public int getResinCost() { + return resinCost_; + } + + public static final int ORIGINALRESINCOST_FIELD_NUMBER = 4; + private int originalResinCost_; + /** + * uint32 originalResinCost = 4; + * @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 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_ ; + /** + * uint32 discountNum = 1; + * @return The discountNum. + */ + @java.lang.Override + public int getDiscountNum() { + return discountNum_; + } + /** + * uint32 discountNum = 1; + * @param value The discountNum to set. + * @return This builder for chaining. + */ + public Builder setDiscountNum(int value) { + + discountNum_ = value; + onChanged(); + return this; + } + /** + * uint32 discountNum = 1; + * @return This builder for chaining. + */ + public Builder clearDiscountNum() { + + discountNum_ = 0; + onChanged(); + return this; + } + + private int discountNumLimit_ ; + /** + * uint32 discountNumLimit = 2; + * @return The discountNumLimit. + */ + @java.lang.Override + public int getDiscountNumLimit() { + return discountNumLimit_; + } + /** + * uint32 discountNumLimit = 2; + * @param value The discountNumLimit to set. + * @return This builder for chaining. + */ + public Builder setDiscountNumLimit(int value) { + + discountNumLimit_ = value; + onChanged(); + return this; + } + /** + * uint32 discountNumLimit = 2; + * @return This builder for chaining. + */ + public Builder clearDiscountNumLimit() { + + discountNumLimit_ = 0; + onChanged(); + return this; + } + + private int resinCost_ ; + /** + * uint32 resinCost = 3; + * @return The resinCost. + */ + @java.lang.Override + public int getResinCost() { + return resinCost_; + } + /** + * uint32 resinCost = 3; + * @param value The resinCost to set. + * @return This builder for chaining. + */ + public Builder setResinCost(int value) { + + resinCost_ = value; + onChanged(); + return this; + } + /** + * uint32 resinCost = 3; + * @return This builder for chaining. + */ + public Builder clearResinCost() { + + resinCost_ = 0; + onChanged(); + return this; + } + + private int originalResinCost_ ; + /** + * uint32 originalResinCost = 4; + * @return The originalResinCost. + */ + @java.lang.Override + public int getOriginalResinCost() { + return originalResinCost_; + } + /** + * uint32 originalResinCost = 4; + * @param value The originalResinCost to set. + * @return This builder for chaining. + */ + public Builder setOriginalResinCost(int value) { + + originalResinCost_ = value; + onChanged(); + return this; + } + /** + * uint32 originalResinCost = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..6fc843b25 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldDataNotifyOuterClass.java @@ -0,0 +1,802 @@ +// 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 { + + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + int getWorldPropMapCount(); + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + boolean containsWorldPropMap( + int key); + /** + * Use {@link #getWorldPropMapMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getWorldPropMap(); + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + java.util.Map + getWorldPropMapMap(); + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue); + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + 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 + 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 + .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 + internalGetWorldPropMap() { + if (worldPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WorldPropMapDefaultEntryHolder.defaultEntry); + } + return worldPropMap_; + } + + public int getWorldPropMapCount() { + return internalGetWorldPropMap().getMap().size(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + @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 getWorldPropMap() { + return getWorldPropMapMap(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public java.util.Map getWorldPropMapMap() { + return internalGetWorldPropMap().getMap(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetWorldPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrThrow( + int key) { + + java.util.Map 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 entry + : internalGetWorldPropMap().getMap().entrySet()) { + com.google.protobuf.MapEntry + 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 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 + internalGetWorldPropMap() { + if (worldPropMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WorldPropMapDefaultEntryHolder.defaultEntry); + } + return worldPropMap_; + } + private com.google.protobuf.MapField + 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(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + @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 getWorldPropMap() { + return getWorldPropMapMap(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public java.util.Map getWorldPropMapMap() { + return internalGetWorldPropMap().getMap(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrDefault( + int key, + emu.grasscutter.net.proto.PropValueOuterClass.PropValue defaultValue) { + + java.util.Map map = + internalGetWorldPropMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + @java.lang.Override + + public emu.grasscutter.net.proto.PropValueOuterClass.PropValue getWorldPropMapOrThrow( + int key) { + + java.util.Map map = + internalGetWorldPropMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearWorldPropMap() { + internalGetMutableWorldPropMap().getMutableMap() + .clear(); + return this; + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + public Builder removeWorldPropMap( + int key) { + + internalGetMutableWorldPropMap().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableWorldPropMap() { + return internalGetMutableWorldPropMap().getMutableMap(); + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + 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; + } + /** + * map<uint32, .PropValue> worldPropMap = 1; + */ + + public Builder putAllWorldPropMap( + java.util.Map 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..f7ea9a90e --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldPlayerDieNotifyOuterClass.java @@ -0,0 +1,927 @@ +// 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 { + + /** + * .PlayerDieType dieType = 1; + * @return The enum numeric value on the wire for dieType. + */ + int getDieTypeValue(); + /** + * .PlayerDieType dieType = 1; + * @return The dieType. + */ + emu.grasscutter.net.proto.PlayerDieTypeOuterClass.PlayerDieType getDieType(); + + /** + * uint32 murdererEntityId = 2; + * @return The murdererEntityId. + */ + int getMurdererEntityId(); + + /** + * uint32 monsterId = 3; + * @return Whether the monsterId field is set. + */ + boolean hasMonsterId(); + /** + * uint32 monsterId = 3; + * @return The monsterId. + */ + int getMonsterId(); + + /** + * uint32 gadgetId = 4; + * @return Whether the gadgetId field is set. + */ + boolean hasGadgetId(); + /** + * uint32 gadgetId = 4; + * @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_; + /** + * .PlayerDieType dieType = 1; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 1; + * @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_; + /** + * uint32 murdererEntityId = 2; + * @return The murdererEntityId. + */ + @java.lang.Override + public int getMurdererEntityId() { + return murdererEntityId_; + } + + public static final int MONSTERID_FIELD_NUMBER = 3; + /** + * uint32 monsterId = 3; + * @return Whether the monsterId field is set. + */ + @java.lang.Override + public boolean hasMonsterId() { + return entityCase_ == 3; + } + /** + * uint32 monsterId = 3; + * @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; + /** + * uint32 gadgetId = 4; + * @return Whether the gadgetId field is set. + */ + @java.lang.Override + public boolean hasGadgetId() { + return entityCase_ == 4; + } + /** + * uint32 gadgetId = 4; + * @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 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; + /** + * .PlayerDieType dieType = 1; + * @return The enum numeric value on the wire for dieType. + */ + @java.lang.Override public int getDieTypeValue() { + return dieType_; + } + /** + * .PlayerDieType dieType = 1; + * @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; + } + /** + * .PlayerDieType dieType = 1; + * @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; + } + /** + * .PlayerDieType dieType = 1; + * @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; + } + /** + * .PlayerDieType dieType = 1; + * @return This builder for chaining. + */ + public Builder clearDieType() { + + dieType_ = 0; + onChanged(); + return this; + } + + private int murdererEntityId_ ; + /** + * uint32 murdererEntityId = 2; + * @return The murdererEntityId. + */ + @java.lang.Override + public int getMurdererEntityId() { + return murdererEntityId_; + } + /** + * uint32 murdererEntityId = 2; + * @param value The murdererEntityId to set. + * @return This builder for chaining. + */ + public Builder setMurdererEntityId(int value) { + + murdererEntityId_ = value; + onChanged(); + return this; + } + /** + * uint32 murdererEntityId = 2; + * @return This builder for chaining. + */ + public Builder clearMurdererEntityId() { + + murdererEntityId_ = 0; + onChanged(); + return this; + } + + /** + * uint32 monsterId = 3; + * @return Whether the monsterId field is set. + */ + public boolean hasMonsterId() { + return entityCase_ == 3; + } + /** + * uint32 monsterId = 3; + * @return The monsterId. + */ + public int getMonsterId() { + if (entityCase_ == 3) { + return (java.lang.Integer) entity_; + } + return 0; + } + /** + * uint32 monsterId = 3; + * @param value The monsterId to set. + * @return This builder for chaining. + */ + public Builder setMonsterId(int value) { + entityCase_ = 3; + entity_ = value; + onChanged(); + return this; + } + /** + * uint32 monsterId = 3; + * @return This builder for chaining. + */ + public Builder clearMonsterId() { + if (entityCase_ == 3) { + entityCase_ = 0; + entity_ = null; + onChanged(); + } + return this; + } + + /** + * uint32 gadgetId = 4; + * @return Whether the gadgetId field is set. + */ + public boolean hasGadgetId() { + return entityCase_ == 4; + } + /** + * uint32 gadgetId = 4; + * @return The gadgetId. + */ + public int getGadgetId() { + if (entityCase_ == 4) { + return (java.lang.Integer) entity_; + } + return 0; + } + /** + * uint32 gadgetId = 4; + * @param value The gadgetId to set. + * @return This builder for chaining. + */ + public Builder setGadgetId(int value) { + entityCase_ = 4; + entity_ = value; + onChanged(); + return this; + } + /** + * uint32 gadgetId = 4; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..ac9be187c --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldPlayerInfoNotifyOuterClass.java @@ -0,0 +1,1039 @@ +// 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 { + + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + java.util.List + getPlayerInfoListList(); + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index); + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + int getPlayerInfoListCount(); + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + java.util.List + getPlayerInfoListOrBuilderList(); + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getPlayerInfoListOrBuilder( + int index); + + /** + * repeated uint32 playerUidList = 2; + * @return A list containing the playerUidList. + */ + java.util.List getPlayerUidListList(); + /** + * repeated uint32 playerUidList = 2; + * @return The count of playerUidList. + */ + int getPlayerUidListCount(); + /** + * repeated uint32 playerUidList = 2; + * @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(); + 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 playerInfoList_; + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public java.util.List getPlayerInfoListList() { + return playerInfoList_; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public java.util.List + getPlayerInfoListOrBuilderList() { + return playerInfoList_; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public int getPlayerInfoListCount() { + return playerInfoList_.size(); + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index) { + return playerInfoList_.get(index); + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + @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_; + /** + * repeated uint32 playerUidList = 2; + * @return A list containing the playerUidList. + */ + @java.lang.Override + public java.util.List + getPlayerUidListList() { + return playerUidList_; + } + /** + * repeated uint32 playerUidList = 2; + * @return The count of playerUidList. + */ + public int getPlayerUidListCount() { + return playerUidList_.size(); + } + /** + * repeated uint32 playerUidList = 2; + * @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 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 playerInfoList_ = + java.util.Collections.emptyList(); + private void ensurePlayerInfoListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + playerInfoList_ = new java.util.ArrayList(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_; + + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public java.util.List getPlayerInfoListList() { + if (playerInfoListBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerInfoList_); + } else { + return playerInfoListBuilder_.getMessageList(); + } + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public int getPlayerInfoListCount() { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.size(); + } else { + return playerInfoListBuilder_.getCount(); + } + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo getPlayerInfoList(int index) { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.get(index); + } else { + return playerInfoListBuilder_.getMessage(index); + } + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + 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; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public Builder addAllPlayerInfoList( + java.lang.Iterable values) { + if (playerInfoListBuilder_ == null) { + ensurePlayerInfoListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerInfoList_); + onChanged(); + } else { + playerInfoListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public Builder clearPlayerInfoList() { + if (playerInfoListBuilder_ == null) { + playerInfoList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + playerInfoListBuilder_.clear(); + } + return this; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public Builder removePlayerInfoList(int index) { + if (playerInfoListBuilder_ == null) { + ensurePlayerInfoListIsMutable(); + playerInfoList_.remove(index); + onChanged(); + } else { + playerInfoListBuilder_.remove(index); + } + return this; + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder getPlayerInfoListBuilder( + int index) { + return getPlayerInfoListFieldBuilder().getBuilder(index); + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfoOrBuilder getPlayerInfoListOrBuilder( + int index) { + if (playerInfoListBuilder_ == null) { + return playerInfoList_.get(index); } else { + return playerInfoListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public java.util.List + getPlayerInfoListOrBuilderList() { + if (playerInfoListBuilder_ != null) { + return playerInfoListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerInfoList_); + } + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder addPlayerInfoListBuilder() { + return getPlayerInfoListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance()); + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.Builder addPlayerInfoListBuilder( + int index) { + return getPlayerInfoListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.OnlinePlayerInfoOuterClass.OnlinePlayerInfo.getDefaultInstance()); + } + /** + * repeated .OnlinePlayerInfo playerInfoList = 1; + */ + public java.util.List + 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; + } + } + /** + * repeated uint32 playerUidList = 2; + * @return A list containing the playerUidList. + */ + public java.util.List + getPlayerUidListList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(playerUidList_) : playerUidList_; + } + /** + * repeated uint32 playerUidList = 2; + * @return The count of playerUidList. + */ + public int getPlayerUidListCount() { + return playerUidList_.size(); + } + /** + * repeated uint32 playerUidList = 2; + * @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); + } + /** + * repeated uint32 playerUidList = 2; + * @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; + } + /** + * repeated uint32 playerUidList = 2; + * @param value The playerUidList to add. + * @return This builder for chaining. + */ + public Builder addPlayerUidList(int value) { + ensurePlayerUidListIsMutable(); + playerUidList_.addInt(value); + onChanged(); + return this; + } + /** + * repeated uint32 playerUidList = 2; + * @param values The playerUidList to add. + * @return This builder for chaining. + */ + public Builder addAllPlayerUidList( + java.lang.Iterable values) { + ensurePlayerUidListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerUidList_); + onChanged(); + return this; + } + /** + * repeated uint32 playerUidList = 2; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/WorldPlayerLocationNotifyOuterClass.java b/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationNotifyOuterClass.java new file mode 100644 index 000000000..fb3321673 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldPlayerLocationNotifyOuterClass.java @@ -0,0 +1,845 @@ +// 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 { + + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + java.util.List + getPlayerLocListList(); + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index); + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + int getPlayerLocListCount(); + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + java.util.List + getPlayerLocListOrBuilderList(); + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder 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 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + playerLocList_ = new java.util.ArrayList(); + 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.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 = 1; + private java.util.List playerLocList_; + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + @java.lang.Override + public java.util.List getPlayerLocListList() { + return playerLocList_; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + @java.lang.Override + public java.util.List + getPlayerLocListOrBuilderList() { + return playerLocList_; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + @java.lang.Override + public int getPlayerLocListCount() { + return playerLocList_.size(); + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { + return playerLocList_.get(index); + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + @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 { + for (int i = 0; i < playerLocList_.size(); i++) { + output.writeMessage(1, 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(1, 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 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 playerLocList_ = + java.util.Collections.emptyList(); + private void ensurePlayerLocListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + playerLocList_ = new java.util.ArrayList(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_; + + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public java.util.List getPlayerLocListList() { + if (playerLocListBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerLocList_); + } else { + return playerLocListBuilder_.getMessageList(); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public int getPlayerLocListCount() { + if (playerLocListBuilder_ == null) { + return playerLocList_.size(); + } else { + return playerLocListBuilder_.getCount(); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo getPlayerLocList(int index) { + if (playerLocListBuilder_ == null) { + return playerLocList_.get(index); + } else { + return playerLocListBuilder_.getMessage(index); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + 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; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public Builder addAllPlayerLocList( + java.lang.Iterable values) { + if (playerLocListBuilder_ == null) { + ensurePlayerLocListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerLocList_); + onChanged(); + } else { + playerLocListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public Builder clearPlayerLocList() { + if (playerLocListBuilder_ == null) { + playerLocList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + playerLocListBuilder_.clear(); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public Builder removePlayerLocList(int index) { + if (playerLocListBuilder_ == null) { + ensurePlayerLocListIsMutable(); + playerLocList_.remove(index); + onChanged(); + } else { + playerLocListBuilder_.remove(index); + } + return this; + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder getPlayerLocListBuilder( + int index) { + return getPlayerLocListFieldBuilder().getBuilder(index); + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfoOrBuilder getPlayerLocListOrBuilder( + int index) { + if (playerLocListBuilder_ == null) { + return playerLocList_.get(index); } else { + return playerLocListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public java.util.List + getPlayerLocListOrBuilderList() { + if (playerLocListBuilder_ != null) { + return playerLocListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerLocList_); + } + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder() { + return getPlayerLocListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.Builder addPlayerLocListBuilder( + int index) { + return getPlayerLocListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.PlayerLocationInfoOuterClass.PlayerLocationInfo.getDefaultInstance()); + } + /** + * repeated .PlayerLocationInfo playerLocList = 1; + */ + public java.util.List + 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: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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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\030Playe" + + "rLocationInfo.proto\"G\n\031WorldPlayerLocati" + + "onNotify\022*\n\rplayerLocList\030\001 \003(\0132\023.Player" + + "LocationInfoB\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.PlayerLocationInfoOuterClass.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.PlayerLocationInfoOuterClass.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 new file mode 100644 index 000000000..10b83637d --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldPlayerRTTNotifyOuterClass.java @@ -0,0 +1,844 @@ +// 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 { + + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + java.util.List + getPlayerRttListList(); + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index); + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + int getPlayerRttListCount(); + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + java.util.List + getPlayerRttListOrBuilderList(); + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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(); + 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 playerRttList_; + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + @java.lang.Override + public java.util.List getPlayerRttListList() { + return playerRttList_; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + @java.lang.Override + public java.util.List + getPlayerRttListOrBuilderList() { + return playerRttList_; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + @java.lang.Override + public int getPlayerRttListCount() { + return playerRttList_.size(); + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + @java.lang.Override + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index) { + return playerRttList_.get(index); + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + @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 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 playerRttList_ = + java.util.Collections.emptyList(); + private void ensurePlayerRttListIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + playerRttList_ = new java.util.ArrayList(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_; + + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public java.util.List getPlayerRttListList() { + if (playerRttListBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerRttList_); + } else { + return playerRttListBuilder_.getMessageList(); + } + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public int getPlayerRttListCount() { + if (playerRttListBuilder_ == null) { + return playerRttList_.size(); + } else { + return playerRttListBuilder_.getCount(); + } + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo getPlayerRttList(int index) { + if (playerRttListBuilder_ == null) { + return playerRttList_.get(index); + } else { + return playerRttListBuilder_.getMessage(index); + } + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + 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; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public Builder addAllPlayerRttList( + java.lang.Iterable values) { + if (playerRttListBuilder_ == null) { + ensurePlayerRttListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, playerRttList_); + onChanged(); + } else { + playerRttListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public Builder clearPlayerRttList() { + if (playerRttListBuilder_ == null) { + playerRttList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + playerRttListBuilder_.clear(); + } + return this; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public Builder removePlayerRttList(int index) { + if (playerRttListBuilder_ == null) { + ensurePlayerRttListIsMutable(); + playerRttList_.remove(index); + onChanged(); + } else { + playerRttListBuilder_.remove(index); + } + return this; + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder getPlayerRttListBuilder( + int index) { + return getPlayerRttListFieldBuilder().getBuilder(index); + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfoOrBuilder getPlayerRttListOrBuilder( + int index) { + if (playerRttListBuilder_ == null) { + return playerRttList_.get(index); } else { + return playerRttListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public java.util.List + getPlayerRttListOrBuilderList() { + if (playerRttListBuilder_ != null) { + return playerRttListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerRttList_); + } + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder addPlayerRttListBuilder() { + return getPlayerRttListFieldBuilder().addBuilder( + emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance()); + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.Builder addPlayerRttListBuilder( + int index) { + return getPlayerRttListFieldBuilder().addBuilder( + index, emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo.getDefaultInstance()); + } + /** + * repeated .PlayerRTTInfo playerRttList = 1; + */ + public java.util.List + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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 new file mode 100644 index 000000000..5986c9d92 --- /dev/null +++ b/src/main/java/emu/grasscutter/net/proto/WorldPlayerReviveRspOuterClass.java @@ -0,0 +1,536 @@ +// 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 { + + /** + * int32 retcode = 1; + * @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_; + /** + * int32 retcode = 1; + * @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 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_ ; + /** + * int32 retcode = 1; + * @return The retcode. + */ + @java.lang.Override + public int getRetcode() { + return retcode_; + } + /** + * int32 retcode = 1; + * @param value The retcode to set. + * @return This builder for chaining. + */ + public Builder setRetcode(int value) { + + retcode_ = value; + onChanged(); + return this; + } + /** + * int32 retcode = 1; + * @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 + PARSER = new com.google.protobuf.AbstractParser() { + @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 parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser 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/MihoyoKcpChannel.java new file mode 100644 index 000000000..233579199 --- /dev/null +++ b/src/main/java/emu/grasscutter/netty/MihoyoKcpChannel.java @@ -0,0 +1,89 @@ +package emu.grasscutter.netty; + +import emu.grasscutter.Grasscutter; +import io.jpower.kcp.netty.UkcpChannel; +import io.netty.buffer.ByteBuf; +import io.netty.buffer.ByteBufUtil; +import io.netty.buffer.Unpooled; +import io.netty.channel.ChannelHandlerContext; +import io.netty.channel.ChannelInboundHandlerAdapter; + +public abstract class MihoyoKcpChannel extends ChannelInboundHandlerAdapter { + private UkcpChannel kcpChannel; + private ChannelHandlerContext ctx; + private boolean isActive; + + public UkcpChannel getChannel() { + return kcpChannel; + } + + public boolean isActive() { + return this.isActive; + } + + @Override + public void channelActive(ChannelHandlerContext ctx) throws Exception { + this.kcpChannel = (UkcpChannel) ctx.channel(); + this.ctx = ctx; + this.isActive = true; + + this.onConnect(); + } + + @Override + public void channelInactive(ChannelHandlerContext ctx) throws Exception { + this.isActive = false; + + this.onDisconnect(); + } + + @Override + public void channelRead(ChannelHandlerContext ctx, Object msg) { + ByteBuf data = (ByteBuf) msg; + onMessage(ctx, data); + } + + @Override + public void channelReadComplete(ChannelHandlerContext ctx) { + ctx.flush(); + } + + @Override + public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { + cause.printStackTrace(); + close(); + } + + protected void send(byte[] data) { + if (!isActive()) { + return; + } + ByteBuf packet = Unpooled.wrappedBuffer(data); + kcpChannel.writeAndFlush(packet); + } + + public void close() { + if (getChannel() != null) { + getChannel().close(); + } + } + + /* + protected void logPacket(ByteBuffer buf) { + ByteBuf b = Unpooled.wrappedBuffer(buf.array()); + logPacket(b); + } + */ + + protected void logPacket(ByteBuf buf) { + Grasscutter.getLogger().info("Received: \n" + ByteBufUtil.prettyHexDump(buf)); + } + + // Events + + protected abstract void onConnect(); + + protected abstract void onDisconnect(); + + public abstract void onMessage(ChannelHandlerContext ctx, ByteBuf data); +} diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java b/src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java new file mode 100644 index 000000000..cf94c7c75 --- /dev/null +++ b/src/main/java/emu/grasscutter/netty/MihoyoKcpHandshaker.java @@ -0,0 +1,85 @@ +package emu.grasscutter.netty; + +import java.net.SocketAddress; +import java.nio.channels.SelectableChannel; +import java.util.List; + +import io.netty.channel.Channel; +import io.netty.channel.ChannelConfig; +import io.netty.channel.ChannelMetadata; +import io.netty.channel.ChannelOutboundBuffer; +import io.netty.channel.nio.AbstractNioMessageChannel; + +public class MihoyoKcpHandshaker extends AbstractNioMessageChannel { + + protected MihoyoKcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) { + super(parent, ch, readInterestOp); + } + + @Override + public ChannelConfig config() { + // TODO Auto-generated method stub + return null; + } + + @Override + public boolean isActive() { + // TODO Auto-generated method stub + return false; + } + + @Override + public ChannelMetadata metadata() { + // TODO Auto-generated method stub + return null; + } + + @Override + protected int doReadMessages(List buf) throws Exception { + // TODO Auto-generated method stub + return 0; + } + + @Override + protected boolean doWriteMessage(Object msg, ChannelOutboundBuffer in) throws Exception { + // TODO Auto-generated method stub + return false; + } + + @Override + protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception { + // TODO Auto-generated method stub + return false; + } + + @Override + protected void doFinishConnect() throws Exception { + // TODO Auto-generated method stub + + } + + @Override + protected SocketAddress localAddress0() { + // TODO Auto-generated method stub + return null; + } + + @Override + protected SocketAddress remoteAddress0() { + // TODO Auto-generated method stub + return null; + } + + @Override + protected void doBind(SocketAddress localAddress) throws Exception { + // TODO Auto-generated method stub + + } + + @Override + protected void doDisconnect() throws Exception { + // TODO Auto-generated method stub + + } + +} diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java b/src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java new file mode 100644 index 000000000..c3a9297b2 --- /dev/null +++ b/src/main/java/emu/grasscutter/netty/MihoyoKcpServer.java @@ -0,0 +1,94 @@ +package emu.grasscutter.netty; + +import java.net.InetSocketAddress; + +import emu.grasscutter.Grasscutter; +import io.jpower.kcp.netty.ChannelOptionHelper; +import io.jpower.kcp.netty.UkcpChannelOption; +import io.jpower.kcp.netty.UkcpServerChannel; +import io.netty.bootstrap.UkcpServerBootstrap; +import io.netty.channel.ChannelFuture; +import io.netty.channel.ChannelInitializer; +import io.netty.channel.EventLoopGroup; +import io.netty.channel.nio.NioEventLoopGroup; + +@SuppressWarnings("rawtypes") +public class MihoyoKcpServer extends Thread { + private EventLoopGroup group; + private UkcpServerBootstrap bootstrap; + + private ChannelInitializer serverInitializer; + private InetSocketAddress address; + + public MihoyoKcpServer(InetSocketAddress address) { + this.address = address; + this.setName("Netty Server Thread"); + } + + public InetSocketAddress getAddress() { + return this.address; + } + + public ChannelInitializer getServerInitializer() { + return serverInitializer; + } + + public void setServerInitializer(ChannelInitializer serverInitializer) { + this.serverInitializer = serverInitializer; + } + + @Override + public void run() { + if (getServerInitializer() == null) { + this.setServerInitializer(new MihoyoKcpServerInitializer()); + } + + try { + group = new NioEventLoopGroup(); + bootstrap = new UkcpServerBootstrap(); + bootstrap.group(group) + .channel(UkcpServerChannel.class) + .childHandler(this.getServerInitializer()); + ChannelOptionHelper + .nodelay(bootstrap, true, 20, 2, true) + .childOption(UkcpChannelOption.UKCP_MTU, 1200); + + // Start handler + this.onStart(); + + // Start the server. + ChannelFuture f = bootstrap.bind(getAddress()).sync(); + + // Start finish handler + this.onStartFinish(); + + // Wait until the server socket is closed. + f.channel().closeFuture().sync(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } finally { + // Close + finish(); + } + } + + public void onStart() { + + } + + public void onStartFinish() { + + } + + private void finish() { + try { + group.shutdownGracefully(); + } catch (Exception e) { + + } + Grasscutter.getLogger().info("Game Server closed"); + } +} + + diff --git a/src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java b/src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java new file mode 100644 index 000000000..7d4e58926 --- /dev/null +++ b/src/main/java/emu/grasscutter/netty/MihoyoKcpServerInitializer.java @@ -0,0 +1,15 @@ +package emu.grasscutter.netty; + +import io.jpower.kcp.netty.UkcpChannel; +import io.netty.channel.ChannelInitializer; +import io.netty.channel.ChannelPipeline; + +@SuppressWarnings("unused") +public class MihoyoKcpServerInitializer extends ChannelInitializer { + + @Override + protected void initChannel(UkcpChannel ch) throws Exception { + ChannelPipeline pipeline = ch.pipeline(); + } + +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java new file mode 100644 index 000000000..b4ef13229 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchHttpJsonHandler.java @@ -0,0 +1,28 @@ +package emu.grasscutter.server.dispatch; + +import java.io.IOException; +import java.io.OutputStream; +import java.util.Collections; + +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpHandler; + +public class DispatchHttpJsonHandler implements HttpHandler { + private final String response; + + public DispatchHttpJsonHandler(String response) { + this.response = response; + } + + @Override + public void handle(HttpExchange t) throws IOException { + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("application/json")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java new file mode 100644 index 000000000..e33e1de2a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/DispatchServer.java @@ -0,0 +1,467 @@ +package emu.grasscutter.server.dispatch; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.net.InetSocketAddress; +import java.net.URI; +import java.net.URLDecoder; +import java.security.KeyStore; +import java.util.Base64; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +import javax.net.ssl.KeyManagerFactory; +import javax.net.ssl.SSLContext; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.protobuf.ByteString; +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpHandler; +import com.sun.net.httpserver.HttpsConfigurator; +import com.sun.net.httpserver.HttpsServer; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.Account; +import emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp; +import emu.grasscutter.net.proto.QueryRegionListHttpRspOuterClass.QueryRegionListHttpRsp; +import emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo; +import emu.grasscutter.net.proto.RegionSimpleInfoOuterClass.RegionSimpleInfo; +import emu.grasscutter.server.dispatch.json.ComboTokenReqJson; +import emu.grasscutter.server.dispatch.json.ComboTokenResJson; +import emu.grasscutter.server.dispatch.json.LoginAccountRequestJson; +import emu.grasscutter.server.dispatch.json.LoginResultJson; +import emu.grasscutter.server.dispatch.json.LoginTokenRequestJson; +import emu.grasscutter.server.dispatch.json.ComboTokenReqJson.LoginTokenData; +import emu.grasscutter.utils.FileUtils; +import emu.grasscutter.utils.Utils; + +import com.sun.net.httpserver.HttpServer; + +public class DispatchServer { + private HttpsServer server; + private final InetSocketAddress address; + private final Gson gson; + private QueryCurrRegionHttpRsp currRegion; + + public String regionListBase64; + public String regionCurrentBase64; + + public static String query_region_list = ""; + public static String query_cur_region = ""; + + public DispatchServer() { + this.address = new InetSocketAddress(Grasscutter.getConfig().DispatchServerIp, Grasscutter.getConfig().DispatchServerPort); + this.gson = new GsonBuilder().create(); + + this.loadQueries(); + this.initRegion(); + } + + public InetSocketAddress getAddress() { + return address; + } + + public Gson getGsonFactory() { + return gson; + } + + public QueryCurrRegionHttpRsp getCurrRegion() { + return currRegion; + } + + public void loadQueries() { + File file; + + file = new File(Grasscutter.getConfig().DATA_FOLDER + "query_region_list.txt"); + if (file.exists()) { + query_region_list = new String(FileUtils.read(file)); + } else { + Grasscutter.getLogger().warn("query_region_list not found! Using default region list."); + } + + file = new File(Grasscutter.getConfig().DATA_FOLDER + "query_cur_region.txt"); + if (file.exists()) { + query_cur_region = new String(FileUtils.read(file)); + } else { + Grasscutter.getLogger().warn("query_cur_region not found! Using default current region."); + } + } + + private void initRegion() { + try { + byte[] decoded = Base64.getDecoder().decode(query_region_list); + QueryRegionListHttpRsp rl = QueryRegionListHttpRsp.parseFrom(decoded); + + byte[] decoded2 = Base64.getDecoder().decode(query_cur_region); + QueryCurrRegionHttpRsp regionQuery = QueryCurrRegionHttpRsp.parseFrom(decoded2); + + RegionSimpleInfo server = RegionSimpleInfo.newBuilder() + .setName("os_usa") + .setTitle(Grasscutter.getConfig().GameServerName) + .setType("DEV_PUBLIC") + .setDispatchUrl("https://" + Grasscutter.getConfig().DispatchServerIp + ":" + getAddress().getPort() + "/query_cur_region") + .build(); + + RegionSimpleInfo serverTest2 = RegionSimpleInfo.newBuilder() + .setName("os_euro") + .setTitle("Grasscutter") + .setType("DEV_PUBLIC") + .setDispatchUrl("https://" + Grasscutter.getConfig().DispatchServerIp + ":" + getAddress().getPort() + "/query_cur_region") + .build(); + + QueryRegionListHttpRsp regionList = QueryRegionListHttpRsp.newBuilder() + .addServers(server) + .addServers(serverTest2) + .setClientSecretKey(rl.getClientSecretKey()) + .setClientCustomConfigEncrypted(rl.getClientCustomConfigEncrypted()) + .setEnableLoginPc(true) + .build(); + + RegionInfo currentRegion = regionQuery.getRegionInfo().toBuilder() + .setIp(Grasscutter.getConfig().GameServerIp) + .setPort(Grasscutter.getConfig().GameServerPort) + .setSecretKey(ByteString.copyFrom(FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "dispatchSeed.bin"))) + .build(); + + QueryCurrRegionHttpRsp parsedRegionQuery = regionQuery.toBuilder().setRegionInfo(currentRegion).build(); + + this.regionListBase64 = Base64.getEncoder().encodeToString(regionList.toByteString().toByteArray()); + this.regionCurrentBase64 = Base64.getEncoder().encodeToString(parsedRegionQuery.toByteString().toByteArray()); + this.currRegion = parsedRegionQuery; + } catch (Exception e) { + e.printStackTrace(); + } + } + + public void start() throws Exception { + server = HttpsServer.create(getAddress(), 0); + SSLContext sslContext = SSLContext.getInstance("TLS"); + + try (FileInputStream fis = new FileInputStream(Grasscutter.getConfig().DispatchServerKeystorePath)) { + char[] keystorePassword = Grasscutter.getConfig().DispatchServerKeystorePassword.toCharArray(); + KeyStore ks = KeyStore.getInstance("PKCS12"); + ks.load(fis, keystorePassword); + KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509"); + kmf.init(ks, keystorePassword); + + sslContext.init(kmf.getKeyManagers(), null, null); + + server.setHttpsConfigurator(new HttpsConfigurator(sslContext)); + } catch (Exception e) { + Grasscutter.getLogger().error("No SSL cert found!"); + return; + } + + server.createContext("/", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + //Create a response form the request query parameters + String response = "Hello"; + //Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("text/html; charset=UTF-8")); + t.sendResponseHeaders(200, response.getBytes().length); + //Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + + // Dispatch + server.createContext("/query_region_list", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + // Log + Grasscutter.getLogger().info("Client request: query_region_list"); + // Create a response form the request query parameters + String response = regionListBase64; + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("text/html; charset=UTF-8")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + server.createContext("/query_cur_region", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + // Log + Grasscutter.getLogger().info("Client request: query_cur_region"); + // Create a response form the request query parameters + URI uri = t.getRequestURI(); + String response = "CAESGE5vdCBGb3VuZCB2ZXJzaW9uIGNvbmZpZw=="; + if (uri.getQuery() != null && uri.getQuery().length() > 0) { + response = regionCurrentBase64; + } + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("text/html; charset=UTF-8")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + // Login via account + server.createContext("/hk4e_global/mdk/shield/api/login", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + // Get post data + LoginAccountRequestJson requestData = null; + try { + String body = Utils.toString(t.getRequestBody()); + requestData = getGsonFactory().fromJson(body, LoginAccountRequestJson.class); + } catch (Exception e) { + + } + // Create response json + if (requestData == null) { + return; + } + LoginResultJson responseData = new LoginResultJson(); + + // Login + Account account = DatabaseHelper.getAccountByName(requestData.account); + + // Test + if (account == null) { + responseData.retcode = -201; + responseData.message = "Username not found."; + } else { + responseData.message = "OK"; + responseData.data.account.uid = account.getId(); + responseData.data.account.token = account.generateSessionKey(); + responseData.data.account.email = account.getEmail(); + } + + // Create a response + String response = getGsonFactory().toJson(responseData); + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("application/json")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + // Login via token + server.createContext("/hk4e_global/mdk/shield/api/verify", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + // Get post data + LoginTokenRequestJson requestData = null; + try { + String body = Utils.toString(t.getRequestBody()); + requestData = getGsonFactory().fromJson(body, LoginTokenRequestJson.class); + } catch (Exception e) { + + } + // Create response json + if (requestData == null) { + return; + } + LoginResultJson responseData = new LoginResultJson(); + + // Login + Account account = DatabaseHelper.getAccountById(requestData.uid); + + // Test + if (account == null || !account.getSessionKey().equals(requestData.token)) { + responseData.retcode = -111; + responseData.message = "Game account cache information error"; + } else { + responseData.message = "OK"; + responseData.data.account.uid = requestData.uid; + responseData.data.account.token = requestData.token; + responseData.data.account.email = account.getEmail(); + } + + // Create a response + String response = getGsonFactory().toJson(responseData); + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("application/json")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + // Exchange for combo token + server.createContext("/hk4e_global/combo/granter/login/v2/login", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + // Get post data + ComboTokenReqJson requestData = null; + try { + String body = Utils.toString(t.getRequestBody()); + requestData = getGsonFactory().fromJson(body, ComboTokenReqJson.class); + } catch (Exception e) { + + } + // Create response json + if (requestData == null || requestData.data == null) { + return; + } + LoginTokenData loginData = getGsonFactory().fromJson(requestData.data, LoginTokenData.class); // Get login data + ComboTokenResJson responseData = new ComboTokenResJson(); + + // Login + Account account = DatabaseHelper.getAccountById(loginData.uid); + + // Test + if (account == null || !account.getSessionKey().equals(loginData.token)) { + responseData.retcode = -201; + responseData.message = "Wrong session key."; + } else { + responseData.message = "OK"; + responseData.data.open_id = loginData.uid; + responseData.data.combo_id = "157795300"; + responseData.data.combo_token = account.generateLoginToken(); + } + + // Create a response + String response = getGsonFactory().toJson(responseData); + // Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("application/json")); + t.sendResponseHeaders(200, response.getBytes().length); + // Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + // Agreement and Protocol + server.createContext( // hk4e-sdk-os.hoyoverse.com + "/hk4e_global/mdk/agreement/api/getAgreementInfos", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"marketing_agreements\":[]}}") + ); + server.createContext( // hk4e-sdk-os.hoyoverse.com + "/hk4e_global/combo/granter/api/compareProtocolVersion", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"modified\":true,\"protocol\":{\"id\":0,\"app_id\":4,\"language\":\"en\",\"user_proto\":\"\",\"priv_proto\":\"\",\"major\":7,\"minimum\":0,\"create_time\":\"0\",\"teenager_proto\":\"\",\"third_proto\":\"\"}}}") + ); + // Game data + server.createContext( // hk4e-api-os.hoyoverse.com + "/common/hk4e_global/announcement/api/getAlertPic", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"total\":0,\"list\":[]}}") + ); + server.createContext( // hk4e-api-os.hoyoverse.com + "/common/hk4e_global/announcement/api/getAlertAnn", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"alert\":false,\"alert_id\":0,\"remind\":true}}") + ); + server.createContext( // hk4e-api-os.hoyoverse.com + "/common/hk4e_global/announcement/api/getAnnList", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"list\":[],\"total\":0,\"type_list\":[],\"alert\":false,\"alert_id\":0,\"timezone\":0,\"t\":\"" + System.currentTimeMillis() + "\"}}") + ); + server.createContext( // hk4e-api-os-static.hoyoverse.com + "/common/hk4e_global/announcement/api/getAnnContent", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"list\":[],\"total\":0}}") + ); + server.createContext( // hk4e-sdk-os.hoyoverse.com + "/hk4e_global/mdk/shopwindow/shopwindow/listPriceTier", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"suggest_currency\":\"USD\",\"tiers\":[]}}") + ); + // Captcha + server.createContext( // api-account-os.hoyoverse.com + "/account/risky/api/check", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"id\":\"c8820f246a5241ab9973f71df3ddd791\",\"action\":\"\",\"geetest\":{\"challenge\":\"\",\"gt\":\"\",\"new_captcha\":0,\"success\":1}}}") + ); + // Config + server.createContext( // sdk-os-static.hoyoverse.com + "/combo/box/api/config/sdk/combo", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"vals\":{\"disable_email_bind_skip\":\"false\",\"email_bind_remind_interval\":\"7\",\"email_bind_remind\":\"true\"}}}") + ); + server.createContext( // hk4e-sdk-os-static.hoyoverse.com + "/hk4e_global/combo/granter/api/getConfig", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"protocol\":true,\"qr_enabled\":false,\"log_level\":\"INFO\",\"announce_url\":\"https://webstatic-sea.hoyoverse.com/hk4e/announcement/index.html?sdk_presentation_style=fullscreen\\u0026sdk_screen_transparent=true\\u0026game_biz=hk4e_global\\u0026auth_appid=announcement\\u0026game=hk4e#/\",\"push_alias_type\":2,\"disable_ysdk_guard\":false,\"enable_announce_pic_popup\":true}}") + ); + server.createContext( // hk4e-sdk-os-static.hoyoverse.com + "/hk4e_global/mdk/shield/api/loadConfig", + new DispatchHttpJsonHandler("{\"retcode\":0,\"message\":\"OK\",\"data\":{\"id\":6,\"game_key\":\"hk4e_global\",\"client\":\"PC\",\"identity\":\"I_IDENTITY\",\"guest\":false,\"ignore_versions\":\"\",\"scene\":\"S_NORMAL\",\"name\":\"原神海外\",\"disable_regist\":false,\"enable_email_captcha\":false,\"thirdparty\":[\"fb\",\"tw\"],\"disable_mmt\":false,\"server_guest\":false,\"thirdparty_ignore\":{\"tw\":\"\",\"fb\":\"\"},\"enable_ps_bind_account\":false,\"thirdparty_login_configs\":{\"tw\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800},\"fb\":{\"token_type\":\"TK_GAME_TOKEN\",\"game_token_expires_in\":604800}}}}") + ); + // Test api? + server.createContext( // abtest-api-data-sg.hoyoverse.com + "/data_abtest_api/config/experiment/list", + new DispatchHttpJsonHandler("{\"retcode\":0,\"success\":true,\"message\":\"\",\"data\":[{\"code\":1000,\"type\":2,\"config_id\":\"14\",\"period_id\":\"6036_99\",\"version\":\"1\",\"configs\":{\"cardType\":\"old\"}}]}") + ); + // Log Server + server.createContext( // log-upload-os.mihoyo.com + "/log/sdk/upload", + new DispatchHttpJsonHandler("{\"code\":0}") + ); + server.createContext( // log-upload-os.mihoyo.com + "/sdk/upload", + new DispatchHttpJsonHandler("{\"code\":0}") + ); + // Start server + server.start(); + Grasscutter.getLogger().info("Dispatch server started on port " + getAddress().getPort()); + + // Logging servers + HttpServer overseaLogServer = HttpServer.create(new InetSocketAddress(Grasscutter.getConfig().DispatchServerIp, 8888), 0); + overseaLogServer.createContext( // overseauspider.yuanshen.com + "/log", + new DispatchHttpJsonHandler("{\"code\":0}") + ); + overseaLogServer.start(); + Grasscutter.getLogger().info("Log server (overseauspider) started on port " + 8888); + + HttpServer uploadLogServer = HttpServer.create(new InetSocketAddress(Grasscutter.getConfig().DispatchServerIp, 80), 0); + uploadLogServer.createContext( // log-upload-os.mihoyo.com + "/crash/dataUpload", + new DispatchHttpJsonHandler("{\"code\":0}") + ); + uploadLogServer.createContext("/gacha", new HttpHandler() { + @Override + public void handle(HttpExchange t) throws IOException { + //Create a response form the request query parameters + String response = "Gacha"; + //Set the response header status and length + t.getResponseHeaders().put("Content-Type", Collections.singletonList("text/html; charset=UTF-8")); + t.sendResponseHeaders(200, response.getBytes().length); + //Write the response string + OutputStream os = t.getResponseBody(); + os.write(response.getBytes()); + os.close(); + } + }); + uploadLogServer.start(); + Grasscutter.getLogger().info("Log server (log-upload-os) started on port " + 80); + } + + private Map parseQueryString(String qs) { + Map result = new HashMap<>(); + if (qs == null) + return result; + + int last = 0, next, l = qs.length(); + while (last < l) { + next = qs.indexOf('&', last); + if (next == -1) + next = l; + + if (next > last) { + int eqPos = qs.indexOf('=', last); + try { + if (eqPos < 0 || eqPos > next) + result.put(URLDecoder.decode(qs.substring(last, next), "utf-8"), ""); + else + result.put(URLDecoder.decode(qs.substring(last, eqPos), "utf-8"), URLDecoder.decode(qs.substring(eqPos + 1, next), "utf-8")); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); // will never happen, utf-8 support is mandatory for java + } + } + last = next + 1; + } + return result; + } +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenReqJson.java b/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenReqJson.java new file mode 100644 index 000000000..dac26cfa4 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenReqJson.java @@ -0,0 +1,15 @@ +package emu.grasscutter.server.dispatch.json; + +public class ComboTokenReqJson { + public int app_id; + public int channel_id; + public String data; + public String device; + public String sign; + + public class LoginTokenData { + public String uid; + public String token; + public boolean guest; + } +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenResJson.java b/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenResJson.java new file mode 100644 index 000000000..731d50853 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/json/ComboTokenResJson.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.dispatch.json; + +public class ComboTokenResJson { + public String message; + public int retcode; + public LoginData data = new LoginData(); + + public class LoginData { + public int account_type = 1; + public boolean heartbeat; + public String combo_id; + public String combo_token; + public String open_id; + public String data = "{\"guest\":false}"; + public String fatigue_remind = null; // ? + } +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/json/LoginAccountRequestJson.java b/src/main/java/emu/grasscutter/server/dispatch/json/LoginAccountRequestJson.java new file mode 100644 index 000000000..cb3aff349 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/json/LoginAccountRequestJson.java @@ -0,0 +1,7 @@ +package emu.grasscutter.server.dispatch.json; + +public class LoginAccountRequestJson { + public String account; + public String password; + public boolean is_crypto; +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/json/LoginResultJson.java b/src/main/java/emu/grasscutter/server/dispatch/json/LoginResultJson.java new file mode 100644 index 000000000..5988752d8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/json/LoginResultJson.java @@ -0,0 +1,38 @@ +package emu.grasscutter.server.dispatch.json; + +public class LoginResultJson { + public String message; + public int retcode; + public VerifyData data = new VerifyData(); + + public class VerifyData { + public VerifyAccountData account = new VerifyAccountData(); + public boolean device_grant_required = false; + public String realname_operation = "NONE"; + public boolean realperson_required = false; + public boolean safe_mobile_required = false; + } + + public class VerifyAccountData { + public String uid; + public String name = ""; + public String email; + public String mobile = ""; + public String is_email_verify = "0"; + public String realname = ""; + public String identity_card = ""; + public String token; + public String safe_mobile = ""; + public String facebook_name = ""; + public String twitter_name = ""; + public String game_center_name = ""; + public String google_name = ""; + public String apple_name = ""; + public String sony_name = ""; + public String tap_name = ""; + public String country = "US"; + public String reactivate_ticket = ""; + public String area_code = "**"; + public String device_grant_ticket = ""; + } +} diff --git a/src/main/java/emu/grasscutter/server/dispatch/json/LoginTokenRequestJson.java b/src/main/java/emu/grasscutter/server/dispatch/json/LoginTokenRequestJson.java new file mode 100644 index 000000000..12fed8f09 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/dispatch/json/LoginTokenRequestJson.java @@ -0,0 +1,6 @@ +package emu.grasscutter.server.dispatch.json; + +public class LoginTokenRequestJson { + public String uid; + public String token; +} diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java new file mode 100644 index 000000000..1baf3253d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -0,0 +1,160 @@ +package emu.grasscutter.server.game; + +import java.net.InetSocketAddress; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.Timer; +import java.util.TimerTask; +import java.util.concurrent.ConcurrentHashMap; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.GenshinPlayer; +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.shop.ShopManager; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; +import emu.grasscutter.netty.MihoyoKcpServer; + +public class GameServer extends MihoyoKcpServer { + private final InetSocketAddress address; + private final GameServerPacketHandler packetHandler; + private final Timer gameLoop; + + private final Map players; + + private final ChatManager chatManager; + private final InventoryManager inventoryManager; + private final GachaManager gachaManager; + private final ShopManager shopManager; + private final MultiplayerManager multiplayerManager; + private final DungeonManager dungeonManager; + + public GameServer(InetSocketAddress address) { + super(address); + this.setServerInitializer(new GameServerInitializer(this)); + this.address = address; + this.packetHandler = new GameServerPacketHandler(PacketHandler.class); + this.players = new ConcurrentHashMap<>(); + + this.chatManager = new ChatManager(this); + this.inventoryManager = new InventoryManager(this); + this.gachaManager = new GachaManager(this); + this.shopManager = new ShopManager(this); + this.multiplayerManager = new MultiplayerManager(this); + this.dungeonManager = new DungeonManager(this); + + // Ticker + this.gameLoop = new Timer(); + this.gameLoop.scheduleAtFixedRate(new TimerTask() { + @Override + public void run() { + try { + onTick(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + }, new Date(), 1000L); + + // Shutdown hook + Runtime.getRuntime().addShutdownHook(new Thread(this::onServerShutdown)); + } + + public GameServerPacketHandler getPacketHandler() { + return packetHandler; + } + + public Map getPlayers() { + return players; + } + + public ChatManager getChatManager() { + return chatManager; + } + + public InventoryManager getInventoryManager() { + return inventoryManager; + } + + public GachaManager getGachaManager() { + return gachaManager; + } + + public ShopManager getShopManager() { + return shopManager; + } + + public MultiplayerManager getMultiplayerManager() { + return multiplayerManager; + } + + public DungeonManager getDungeonManager() { + return dungeonManager; + } + + public void registerPlayer(GenshinPlayer player) { + getPlayers().put(player.getId(), player); + } + + public GenshinPlayer getPlayerById(int id) { + return this.getPlayers().get(id); + } + + public GenshinPlayer forceGetPlayerById(int id) { + // Console check + if (id == GenshinConstants.SERVER_CONSOLE_UID) { + return null; + } + + // Get from online players + GenshinPlayer player = this.getPlayerById(id); + + // Check database if character isnt here + if (player == null) { + player = DatabaseHelper.getPlayerById(id); + } + + return player; + } + + public SocialDetail.Builder getSocialDetailById(int id) { + // Get from online players + GenshinPlayer player = this.forceGetPlayerById(id); + + if (player == null) { + return null; + } + + return player.getSocialDetail(); + } + + public void onTick() throws Exception { + for (GenshinPlayer player : this.getPlayers().values()) { + player.onTick(); + } + } + + @Override + public void onStartFinish() { + Grasscutter.getLogger().info("Game Server started on port " + address.getPort()); + } + + public void onServerShutdown() { + // Kick and save all players + List list = new ArrayList<>(this.getPlayers().size()); + list.addAll(this.getPlayers().values()); + + for (GenshinPlayer 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 new file mode 100644 index 000000000..5472c1db5 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/game/GameServerInitializer.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.game; + +import emu.grasscutter.netty.MihoyoKcpServerInitializer; +import io.jpower.kcp.netty.UkcpChannel; +import io.netty.channel.ChannelPipeline; + +public class GameServerInitializer extends MihoyoKcpServerInitializer { + private GameServer server; + + public GameServerInitializer(GameServer server) { + this.server = server; + } + + @Override + protected void initChannel(UkcpChannel ch) throws Exception { + ChannelPipeline pipeline = ch.pipeline(); + GameSession session = new GameSession(server); + pipeline.addLast(session); + } +} diff --git a/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java b/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java new file mode 100644 index 000000000..118637668 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/game/GameServerPacketHandler.java @@ -0,0 +1,94 @@ +package emu.grasscutter.server.game; + +import java.util.Set; + +import org.reflections.Reflections; + +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.server.game.GameSession.SessionState; +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; + +public class GameServerPacketHandler { + private final Int2ObjectMap handlers; + + public GameServerPacketHandler(Class handlerClass) { + this.handlers = new Int2ObjectOpenHashMap<>(); + + this.registerHandlers(handlerClass); + } + + public void registerHandlers(Class handlerClass) { + Reflections reflections = new Reflections("emu.grasscutter.server.packet"); + Set handlerClasses = reflections.getSubTypesOf(handlerClass); + + for (Object obj : handlerClasses) { + Class c = (Class) obj; + + try { + Opcodes opcode = c.getAnnotation(Opcodes.class); + + if (opcode == null || opcode.disabled() || opcode.value() <= 0) { + continue; + } + + PacketHandler packetHandler = (PacketHandler) c.newInstance(); + + this.handlers.put(opcode.value(), packetHandler); + } catch (Exception e) { + e.printStackTrace(); + } + } + + // Debug + Grasscutter.getLogger().info("Registered " + this.handlers.size() + " " + handlerClass.getSimpleName() + "s"); + } + + public void handle(GameSession session, int opcode, byte[] header, byte[] payload) { + PacketHandler handler = null; + + handler = this.handlers.get(opcode); + + if (handler != null) { + try { + // Make sure session is ready for packets + SessionState state = session.getState(); + + if (opcode == PacketOpcodes.PingReq) { + // Always continue if packet is ping request + } else if (opcode == PacketOpcodes.GetPlayerTokenReq) { + if (state != SessionState.WAITING_FOR_TOKEN) { + return; + } + } else if (opcode == PacketOpcodes.PlayerLoginReq) { + if (state != SessionState.WAITING_FOR_LOGIN) { + return; + } + } else if (opcode == PacketOpcodes.SetPlayerBornDataReq) { + if (state != SessionState.PICKING_CHARACTER) { + return; + } + } else { + if (state != SessionState.ACTIVE) { + return; + } + } + + // Handle + handler.handle(session, header, payload); + } catch (Exception ex) { + // TODO Remove this when no more needed + ex.printStackTrace(); + } + return; // Packet successfully handled + } + + // Log unhandled packets + if (Grasscutter.getConfig().LOG_PACKETS) { + //Grasscutter.getLogger().info("Unhandled packet (" + opcode + "): " + 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 new file mode 100644 index 000000000..29dcd46b6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/game/GameSession.java @@ -0,0 +1,250 @@ +package emu.grasscutter.server.game; + +import java.io.File; +import java.net.InetSocketAddress; +import java.nio.ByteBuffer; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.Account; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodesUtil; +import emu.grasscutter.netty.MihoyoKcpChannel; +import emu.grasscutter.utils.Crypto; +import emu.grasscutter.utils.FileUtils; +import emu.grasscutter.utils.Utils; +import io.netty.buffer.ByteBuf; +import io.netty.buffer.Unpooled; +import io.netty.channel.ChannelHandlerContext; + +public class GameSession extends MihoyoKcpChannel { + private GameServer server; + + private Account account; + private GenshinPlayer player; + + private boolean useSecretKey; + private SessionState state; + + private int clientTime; + private long lastPingTime; + private int lastClientSeq = 10; + + public GameSession(GameServer server) { + this.server = server; + this.state = SessionState.WAITING_FOR_TOKEN; + this.lastPingTime = System.currentTimeMillis(); + } + + public GameServer getServer() { + return server; + } + + public InetSocketAddress getAddress() { + if (this.getChannel() == null) { + return null; + } + return this.getChannel().remoteAddress(); + } + + public boolean useSecretKey() { + return useSecretKey; + } + + public Account getAccount() { + return account; + } + + public void setAccount(Account account) { + this.account = account; + } + + public String getAccountId() { + return this.getAccount().getId(); + } + + public GenshinPlayer getPlayer() { + return player; + } + + public synchronized void setPlayer(GenshinPlayer player) { + this.player = player; + this.player.setSession(this); + this.player.setAccount(this.getAccount()); + } + + public SessionState getState() { + return state; + } + + public void setState(SessionState state) { + this.state = state; + } + + public boolean isLoggedIn() { + return this.getPlayer() != null; + } + + public void setUseSecretKey(boolean useSecretKey) { + this.useSecretKey = useSecretKey; + } + + public int getClientTime() { + return this.clientTime; + } + + public long getLastPingTime() { + return lastPingTime; + } + + public void updateLastPingTime(int clientTime) { + this.clientTime = clientTime; + this.lastPingTime = System.currentTimeMillis(); + } + + public int getNextClientSequence() { + return ++lastClientSeq; + } + + @Override + protected void onConnect() { + Grasscutter.getLogger().info("Client connected from " + getAddress().getHostString().toLowerCase()); + } + + @Override + protected synchronized void onDisconnect() { // Synchronize so we dont add character at the same time + Grasscutter.getLogger().info("Client disconnected from " + getAddress().getHostString().toLowerCase()); + + // Set state so no more packets can be handled + this.setState(SessionState.INACTIVE); + + // Save after disconnecting + if (this.isLoggedIn()) { + // Save + getPlayer().onLogout(); + // Remove from gameserver + getServer().getPlayers().remove(getPlayer().getId()); + } + } + + protected void logPacket(ByteBuffer buf) { + ByteBuf b = Unpooled.wrappedBuffer(buf.array()); + logPacket(b); + } + + public void replayPacket(int opcode, String name) { + String filePath = Grasscutter.getConfig().PACKETS_FOLDER + name; + File p = new File(filePath); + + if (!p.exists()) return; + + byte[] packet = FileUtils.read(p); + + GenshinPacket genshinPacket = new GenshinPacket(opcode); + genshinPacket.setData(packet); + + // Log + logPacket(genshinPacket.getOpcode()); + + send(genshinPacket); + } + + public void send(GenshinPacket genshinPacket) { + // Test + if (genshinPacket.getOpcode() <= 0) { + Grasscutter.getLogger().warn("Tried to send packet with missing cmd id!"); + return; + } + + // Header + if (genshinPacket.shouldBuildHeader()) { + genshinPacket.buildHeader(this.getNextClientSequence()); + } + + // Build packet + byte[] data = genshinPacket.build(); + + // Log + if (Grasscutter.getConfig().LOG_PACKETS) { + logPacket(genshinPacket); + } + + // Send + send(data); + } + + 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())); + } + + @Override + public void onMessage(ChannelHandlerContext ctx, ByteBuf data) { + // Decrypt and turn back into a packet + byte[] byteData = Utils.byteBufToArray(data); + Crypto.xor(byteData, useSecretKey() ? Crypto.ENCRYPT_KEY : Crypto.DISPATCH_KEY); + ByteBuf packet = Unpooled.wrappedBuffer(byteData); + + // Log + //logPacket(packet); + + // Handle + try { + while (packet.readableBytes() > 0) { + // Length + if (packet.readableBytes() < 12) { + return; + } + + // Packet sanity check + int const1 = packet.readShort(); + if (const1 != 17767) { + return; // Bad packet + } + + // Data + int opcode = packet.readShort(); + int headerLength = packet.readShort(); + int payloadLength = packet.readInt(); + + byte[] header = new byte[headerLength]; + byte[] payload = new byte[payloadLength]; + + packet.readBytes(header); + packet.readBytes(payload); + + // Sanity check #2 + int const2 = packet.readShort(); + if (const2 != -30293) { + return; // Bad packet + } + + // Log packet + if (Grasscutter.getConfig().LOG_PACKETS) { + Grasscutter.getLogger().info("RECV: " + PacketOpcodesUtil.getOpcodeName(opcode) + " (" + opcode + ")"); + System.out.println(Utils.bytesToHex(payload)); + } + + // Handle + getServer().getPacketHandler().handle(this, opcode, header, payload); + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + packet.release(); + } + } + + public enum SessionState { + INACTIVE, + WAITING_FOR_TOKEN, + WAITING_FOR_LOGIN, + PICKING_CHARACTER, + ACTIVE; + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/Handler.java b/src/main/java/emu/grasscutter/server/packet/recv/Handler.java new file mode 100644 index 000000000..e56664ac2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/Handler.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.NONE) +public class Handler extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAbilityInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAbilityInvocationsNotify.java new file mode 100644 index 000000000..710ea0fea --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAbilityInvocationsNotify.java @@ -0,0 +1,27 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AbilityInvocationsNotifyOuterClass.AbilityInvocationsNotify; +import emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AbilityInvocationsNotify) +public class HandlerAbilityInvocationsNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AbilityInvocationsNotify notif = AbilityInvocationsNotify.parseFrom(payload); + + for (AbilityInvokeEntry entry : notif.getInvokesList()) { + //System.out.println(entry.getArgumentType() + ": " + Utils.bytesToHex(entry.getAbilityData().toByteArray())); + session.getPlayer().getAbilityInvokeHandler().addEntry(entry.getForwardType(), entry); + } + + if (notif.getInvokesList().size() > 0) { + session.getPlayer().getAbilityInvokeHandler().update(session.getPlayer()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAskAddFriendReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAskAddFriendReq.java new file mode 100644 index 000000000..3449b88d4 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAskAddFriendReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AskAddFriendReqOuterClass.AskAddFriendReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AskAddFriendReq) +public class HandlerAskAddFriendReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AskAddFriendReq req = AskAddFriendReq.parseFrom(payload); + + session.getPlayer().getFriendsList().sendFriendRequest(req.getTargetUid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarChangeCostumeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarChangeCostumeReq.java new file mode 100644 index 000000000..d2270a524 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarChangeCostumeReq.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarChangeCostumeReqOuterClass.AvatarChangeCostumeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketAvatarChangeCostumeRsp; + +@Opcodes(PacketOpcodes.AvatarChangeCostumeReq) +public class HandlerAvatarChangeCostumeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarChangeCostumeReq req = AvatarChangeCostumeReq.parseFrom(payload); + + boolean success = session.getPlayer().getAvatars().changeCostume(req.getAvatarGuid(), req.getCostumeId()); + + if (success) { + session.getPlayer().sendPacket(new PacketAvatarChangeCostumeRsp(req.getAvatarGuid(), req.getCostumeId())); + } else { + session.getPlayer().sendPacket(new PacketAvatarChangeCostumeRsp()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarDieAnimationEndReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarDieAnimationEndReq.java new file mode 100644 index 000000000..2935da00c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarDieAnimationEndReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarDieAnimationEndReqOuterClass.AvatarDieAnimationEndReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AvatarDieAnimationEndReq) +public class HandlerAvatarDieAnimationEndReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarDieAnimationEndReq req = AvatarDieAnimationEndReq.parseFrom(payload); + + session.getPlayer().getTeamManager().onAvatarDie(req.getDieGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarPromoteReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarPromoteReq.java new file mode 100644 index 000000000..cd863f5bf --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarPromoteReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarPromoteReqOuterClass.AvatarPromoteReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AvatarPromoteReq) +public class HandlerAvatarPromoteReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarPromoteReq req = AvatarPromoteReq.parseFrom(payload); + + // Ascend avatar + session.getServer().getInventoryManager().promoteAvatar(session.getPlayer(), req.getGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarSkillUpgradeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarSkillUpgradeReq.java new file mode 100644 index 000000000..e179bcd8e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarSkillUpgradeReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarSkillUpgradeReqOuterClass.AvatarSkillUpgradeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AvatarSkillUpgradeReq) +public class HandlerAvatarSkillUpgradeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarSkillUpgradeReq req = AvatarSkillUpgradeReq.parseFrom(payload); + + // Level up avatar talent + session.getServer().getInventoryManager().upgradeAvatarSkill(session.getPlayer(), req.getAvatarGuid(), req.getAvatarSkillId()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarUpgradeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarUpgradeReq.java new file mode 100644 index 000000000..3254b2327 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarUpgradeReq.java @@ -0,0 +1,25 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarUpgradeReqOuterClass.AvatarUpgradeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.AvatarUpgradeReq) +public class HandlerAvatarUpgradeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarUpgradeReq req = AvatarUpgradeReq.parseFrom(payload); + + // Level up avatar + session.getServer().getInventoryManager().upgradeAvatar( + session.getPlayer(), + req.getAvatarGuid(), + req.getItemId(), + req.getCount() + ); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarWearFlycloakReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarWearFlycloakReq.java new file mode 100644 index 000000000..a33db86df --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerAvatarWearFlycloakReq.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarWearFlycloakReqOuterClass.AvatarWearFlycloakReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketAvatarWearFlycloakRsp; + +@Opcodes(PacketOpcodes.AvatarWearFlycloakReq) +public class HandlerAvatarWearFlycloakReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + AvatarWearFlycloakReq req = AvatarWearFlycloakReq.parseFrom(payload); + + boolean success = session.getPlayer().getAvatars().wearFlycloak(req.getAvatarGuid(), req.getFlycloakId()); + + if (success) { + session.getPlayer().sendPacket(new PacketAvatarWearFlycloakRsp(req.getAvatarGuid(), req.getFlycloakId())); + } else { + session.getPlayer().sendPacket(new PacketAvatarWearFlycloakRsp()); + } + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCalcWeaponUpgradeReturnItemsReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCalcWeaponUpgradeReturnItemsReq.java new file mode 100644 index 000000000..79f199ee9 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCalcWeaponUpgradeReturnItemsReq.java @@ -0,0 +1,34 @@ +package emu.grasscutter.server.packet.recv; + +import java.util.List; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketCalcWeaponUpgradeReturnItemsRsp; + +@Opcodes(PacketOpcodes.CalcWeaponUpgradeReturnItemsReq) +public class HandlerCalcWeaponUpgradeReturnItemsReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + CalcWeaponUpgradeReturnItemsReq req = CalcWeaponUpgradeReturnItemsReq.parseFrom(payload); + + List returnOres = session.getServer().getInventoryManager().calcWeaponUpgradeReturnItems( + session.getPlayer(), + req.getTargetWeaponGuid(), + req.getFoodWeaponGuidListList(), + req.getItemParamListList() + ); + + if (returnOres != null) { + session.send(new PacketCalcWeaponUpgradeReturnItemsRsp(req.getTargetWeaponGuid(), returnOres)); + } else { + session.send(new PacketCalcWeaponUpgradeReturnItemsRsp()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeAvatarReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeAvatarReq.java new file mode 100644 index 000000000..eeba74418 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeAvatarReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeAvatarReqOuterClass.ChangeAvatarReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ChangeAvatarReq) +public class HandlerChangeAvatarReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChangeAvatarReq req = ChangeAvatarReq.parseFrom(payload); + + session.getPlayer().getTeamManager().changeAvatar(req.getGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeGameTimeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeGameTimeReq.java new file mode 100644 index 000000000..42f633c27 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeGameTimeReq.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeGameTimeReqOuterClass.ChangeGameTimeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketChangeGameTimeRsp; + +@Opcodes(PacketOpcodes.ChangeGameTimeReq) +public class HandlerChangeGameTimeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChangeGameTimeReq req = ChangeGameTimeReq.parseFrom(payload); + + session.getPlayer().getWorld().changeTime(req.getGameTime()); + session.getPlayer().sendPacket(new PacketChangeGameTimeRsp(session.getPlayer().getWorld())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMpTeamAvatarReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMpTeamAvatarReq.java new file mode 100644 index 000000000..a8b0b05e8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeMpTeamAvatarReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeMpTeamAvatarReqOuterClass.ChangeMpTeamAvatarReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ChangeMpTeamAvatarReq) +public class HandlerChangeMpTeamAvatarReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChangeMpTeamAvatarReq req = ChangeMpTeamAvatarReq.parseFrom(payload); + + session.getPlayer().getTeamManager().setupMpTeam(req.getAvatarGuidListList()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeTeamNameReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeTeamNameReq.java new file mode 100644 index 000000000..c754ff7c5 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChangeTeamNameReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeTeamNameReqOuterClass.ChangeTeamNameReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ChangeTeamNameReq) +public class HandlerChangeTeamNameReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChangeTeamNameReq req = ChangeTeamNameReq.parseFrom(payload); + + session.getPlayer().getTeamManager().setTeamName(req.getTeamId(), req.getTeamName()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerChooseCurAvatarTeamReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChooseCurAvatarTeamReq.java new file mode 100644 index 000000000..16c28ad48 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerChooseCurAvatarTeamReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChooseCurAvatarTeamReqOuterClass.ChooseCurAvatarTeamReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ChooseCurAvatarTeamReq) +public class HandlerChooseCurAvatarTeamReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ChooseCurAvatarTeamReq req = ChooseCurAvatarTeamReq.parseFrom(payload); + + session.getPlayer().getTeamManager().setCurrentTeam(req.getTeamId()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java new file mode 100644 index 000000000..58ae9691d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java @@ -0,0 +1,51 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.CombatInvocationsNotifyOuterClass.CombatInvocationsNotify; +import emu.grasscutter.net.proto.CombatInvokeEntryOuterClass.CombatInvokeEntry; +import emu.grasscutter.net.proto.EntityMoveInfoOuterClass.EntityMoveInfo; +import emu.grasscutter.net.proto.EvtBeingHitInfoOuterClass.EvtBeingHitInfo; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.CombatInvocationsNotify) +public class HandlerCombatInvocationsNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + CombatInvocationsNotify notif = CombatInvocationsNotify.parseFrom(payload); + + for (CombatInvokeEntry entry : notif.getInvokeListList()) { + switch (entry.getArgumentType()) { + case CombatEvtBeingHit: + // Handle damage + EvtBeingHitInfo hitInfo = EvtBeingHitInfo.parseFrom(entry.getCombatData()); + session.getPlayer().getWorld().handleAttack(hitInfo.getAttackResult()); + break; + case EntityMove: + // Handle movement + EntityMoveInfo moveInfo = EntityMoveInfo.parseFrom(entry.getCombatData()); + GenshinEntity entity = session.getPlayer().getWorld().getEntityById(moveInfo.getEntityId()); + if (entity != null) { + entity.getPosition().set(moveInfo.getMotionInfo().getPos()); + entity.getRotation().set(moveInfo.getMotionInfo().getRot()); + entity.setLastMoveSceneTimeMs(moveInfo.getSceneTime()); + entity.setLastMoveReliableSeq(moveInfo.getReliableSeq()); + entity.setMotionState(moveInfo.getMotionInfo().getState()); + } + break; + default: + break; + } + + session.getPlayer().getCombatInvokeHandler().addEntry(entry.getForwardType(), entry); + } + + if (notif.getInvokeListList().size() > 0) { + session.getPlayer().getCombatInvokeHandler().update(session.getPlayer()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDealAddFriendReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDealAddFriendReq.java new file mode 100644 index 000000000..ebf1e39d0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDealAddFriendReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DealAddFriendReqOuterClass.DealAddFriendReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.DealAddFriendReq) +public class HandlerDealAddFriendReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + DealAddFriendReq req = DealAddFriendReq.parseFrom(payload); + + session.getPlayer().getFriendsList().handleFriendRequest(req.getTargetUid(), req.getDealAddFriendResult()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDeleteFriendReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDeleteFriendReq.java new file mode 100644 index 000000000..5f0c958ba --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDeleteFriendReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DeleteFriendReqOuterClass.DeleteFriendReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.DeleteFriendReq) +public class HandlerDeleteFriendReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + DeleteFriendReq req = DeleteFriendReq.parseFrom(payload); + + session.getPlayer().getFriendsList().deleteFriend(req.getTargetUid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDestroyMaterialReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDestroyMaterialReq.java new file mode 100644 index 000000000..e39239f68 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDestroyMaterialReq.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DestroyMaterialReqOuterClass.DestroyMaterialReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.DestroyMaterialReq) +public class HandlerDestroyMaterialReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + DestroyMaterialReq req = DestroyMaterialReq.parseFrom(payload); + + // Delete items + session.getServer().getInventoryManager().destroyMaterial(session.getPlayer(), req.getMaterialListList()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDoGachaReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDoGachaReq.java new file mode 100644 index 000000000..0aa680a18 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDoGachaReq.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DoGachaReqOuterClass.DoGachaReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.DoGachaReq) +public class HandlerDoGachaReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + DoGachaReq req = DoGachaReq.parseFrom(payload); + + session.getServer().getGachaManager().doPulls(session.getPlayer(), req.getGachaType(), req.getGachaTimes()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerDungeonEntryInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDungeonEntryInfoReq.java new file mode 100644 index 000000000..a490e9d73 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerDungeonEntryInfoReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.DungeonEntryInfoReq) +public class HandlerDungeonEntryInfoReq 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/HandlerEnterSceneDoneReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java new file mode 100644 index 000000000..7a929f132 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java @@ -0,0 +1,38 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketEnterSceneDoneRsp; +import emu.grasscutter.server.packet.send.PacketPlayerTimeNotify; +import emu.grasscutter.server.packet.send.PacketScenePlayerLocationNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerLocationNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerRTTNotify; + +@Opcodes(PacketOpcodes.EnterSceneDoneReq) +public class HandlerEnterSceneDoneReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Finished loading + session.getPlayer().setSceneLoadState(SceneLoadState.LOADED); + + // Done + session.send(new PacketEnterSceneDoneRsp(session.getPlayer())); + session.send(new PacketPlayerTimeNotify(session.getPlayer())); // Probably not the right place + + // Spawn player in world + session.getPlayer().getWorld().spawnPlayer(session.getPlayer()); + + // Spawn other entites already in world + session.getPlayer().getWorld().showOtherEntities(session.getPlayer()); + + // Locations + session.send(new PacketWorldPlayerLocationNotify(session.getPlayer().getWorld())); + session.send(new PacketScenePlayerLocationNotify(session.getPlayer())); + session.send(new PacketWorldPlayerRTTNotify(session.getPlayer().getWorld())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneReadyReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneReadyReq.java new file mode 100644 index 000000000..b9a979b6c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneReadyReq.java @@ -0,0 +1,19 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketEnterScenePeerNotify; +import emu.grasscutter.server.packet.send.PacketEnterSceneReadyRsp; + +@Opcodes(PacketOpcodes.EnterSceneReadyReq) +public class HandlerEnterSceneReadyReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) { + session.send(new PacketEnterScenePeerNotify(session.getPlayer())); + session.send(new PacketEnterSceneReadyRsp(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterWorldAreaReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterWorldAreaReq.java new file mode 100644 index 000000000..53211a12d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterWorldAreaReq.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq; +import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketEnterWorldAreaRsp; + +@Opcodes(PacketOpcodes.EnterWorldAreaReq) +public class HandlerEnterWorldAreaReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PacketHead head = PacketHead.parseFrom(header); + EnterWorldAreaReq enterWorld = EnterWorldAreaReq.parseFrom(payload); + + session.send(new PacketEnterWorldAreaRsp(head.getClientSequenceId(), enterWorld)); + //session.send(new PacketScenePlayerLocationNotify(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEntityAiSyncNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEntityAiSyncNotify.java new file mode 100644 index 000000000..23c3b3ae6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEntityAiSyncNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketEntityAiSyncNotify; + +@Opcodes(PacketOpcodes.EntityAiSyncNotify) +public class HandlerEntityAiSyncNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + EntityAiSyncNotify notify = EntityAiSyncNotify.parseFrom(payload); + + if (notify.getLocalAvatarAlertedMonsterListCount() > 0) { + session.getPlayer().getWorld().broadcastPacket(new PacketEntityAiSyncNotify(notify)); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncCombatThreatInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncCombatThreatInfoNotify.java new file mode 100644 index 000000000..84c6df4dd --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncCombatThreatInfoNotify.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.EvtAiSyncCombatThreatInfoNotify) +public class HandlerEvtAiSyncCombatThreatInfoNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncSkillCdNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncSkillCdNotify.java new file mode 100644 index 000000000..03ad8cad2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtAiSyncSkillCdNotify.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.EvtAiSyncSkillCdNotify) +public class HandlerEvtAiSyncSkillCdNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtCreateGadgetNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtCreateGadgetNotify.java new file mode 100644 index 000000000..f4c5708d0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtCreateGadgetNotify.java @@ -0,0 +1,27 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.entity.EntityClientGadget; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.EvtCreateGadgetNotify) +public class HandlerEvtCreateGadgetNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + EvtCreateGadgetNotify notify = EvtCreateGadgetNotify.parseFrom(payload); + + // Dont handle in singleplayer + if (!session.getPlayer().getWorld().isMultiplayer()) { + return; + } + + // Create entity and summon in world + EntityClientGadget gadget = new EntityClientGadget(session.getPlayer().getWorld(), session.getPlayer(), notify); + session.getPlayer().getWorld().onPlayerCreateGadget(gadget); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtDestroyGadgetNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtDestroyGadgetNotify.java new file mode 100644 index 000000000..d391860f6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEvtDestroyGadgetNotify.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EvtDestroyGadgetNotifyOuterClass.EvtDestroyGadgetNotify; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.EvtDestroyGadgetNotify) +public class HandlerEvtDestroyGadgetNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + EvtDestroyGadgetNotify notify = EvtDestroyGadgetNotify.parseFrom(payload); + + // Dont handle in singleplayer + if (!session.getPlayer().getWorld().isMultiplayer()) { + return; + } + + session.getPlayer().getWorld().onPlayerDestroyGadget(notify.getEntityId()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGadgetInteractReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGadgetInteractReq.java new file mode 100644 index 000000000..6c8b6515a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGadgetInteractReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GadgetInteractReqOuterClass.GadgetInteractReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.GadgetInteractReq) +public class HandlerGadgetInteractReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GadgetInteractReq req = GadgetInteractReq.parseFrom(payload); + + session.getPlayer().interactWith(req.getGadgetEntityId()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetActivityInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetActivityInfoReq.java new file mode 100644 index 000000000..bf2cf7491 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetActivityInfoReq.java @@ -0,0 +1,15 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetActivityInfoRsp; + +@Opcodes(PacketOpcodes.GetActivityInfoReq) +public class HandlerGetActivityInfoReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketGetActivityInfoRsp()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllH5ActivityInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllH5ActivityInfoReq.java new file mode 100644 index 000000000..9ec01d195 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllH5ActivityInfoReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketH5ActivityIdsNotify; + +@Opcodes(PacketOpcodes.GetAllH5ActivityInfoReq) +public class HandlerGetAllH5ActivityInfoReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketH5ActivityIdsNotify()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllUnlockNameCardReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllUnlockNameCardReq.java new file mode 100644 index 000000000..37bf3a03b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAllUnlockNameCardReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetAllUnlockNameCardRsp; + +@Opcodes(PacketOpcodes.GetAllUnlockNameCardReq) +public class HandlerGetAllUnlockNameCardReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketGetAllUnlockNameCardRsp(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAuthkeyReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAuthkeyReq.java new file mode 100644 index 000000000..16440426e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetAuthkeyReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetAuthkeyRsp; + +@Opcodes(PacketOpcodes.GetAuthkeyReq) +public class HandlerGetAuthkeyReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketGetAuthkeyRsp()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetGachaInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetGachaInfoReq.java new file mode 100644 index 000000000..6c4c703a8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetGachaInfoReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetGachaInfoRsp; + +@Opcodes(PacketOpcodes.GetGachaInfoReq) +public class HandlerGetGachaInfoReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketGetGachaInfoRsp(session.getServer().getGachaManager())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java new file mode 100644 index 000000000..2d0b650d8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerBlacklistReq.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.GetPlayerBlacklistReq) +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)); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerFriendListReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerFriendListReq.java new file mode 100644 index 000000000..a825f1573 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerFriendListReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetPlayerFriendListRsp; + +@Opcodes(PacketOpcodes.GetPlayerFriendListReq) +public class HandlerGetPlayerFriendListReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + //session.send(new PacketGetPlayerAskFriendListRsp(session.getPlayer())); + session.send(new PacketGetPlayerFriendListRsp(session.getPlayer())); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerSocialDetailReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerSocialDetailReq.java new file mode 100644 index 000000000..8391f2352 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerSocialDetailReq.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetPlayerSocialDetailReqOuterClass.GetPlayerSocialDetailReq; +import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetPlayerSocialDetailRsp; + +@Opcodes(PacketOpcodes.GetPlayerSocialDetailReq) +public class HandlerGetPlayerSocialDetailReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetPlayerSocialDetailReq req = GetPlayerSocialDetailReq.parseFrom(payload); + + SocialDetail.Builder detail = session.getServer().getSocialDetailById(req.getUid()); + + if (detail != null) { + detail.setIsFriend(session.getPlayer().getFriendsList().isFriendsWith(req.getUid())); + } + + session.send(new PacketGetPlayerSocialDetailRsp(detail)); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerTokenReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerTokenReq.java new file mode 100644 index 000000000..dc686f5c1 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetPlayerTokenReq.java @@ -0,0 +1,56 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.database.DatabaseHelper; +import emu.grasscutter.game.Account; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetPlayerTokenReqOuterClass.GetPlayerTokenReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.game.GameSession.SessionState; +import emu.grasscutter.server.packet.send.PacketGetPlayerTokenRsp; + +@Opcodes(PacketOpcodes.GetPlayerTokenReq) +public class HandlerGetPlayerTokenReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetPlayerTokenReq req = GetPlayerTokenReq.parseFrom(payload); + + // Authenticate + Account account = DatabaseHelper.getAccountById(req.getAccountUid()); + if (account == null) { + return; + } + + // Check token + if (!account.getToken().equals(req.getAccountToken())) { + return; + } + + // Set account + session.setAccount(account); + session.setUseSecretKey(true); + session.setState(SessionState.WAITING_FOR_LOGIN); + + // Has character + boolean doesPlayerExist = false; + if (account.getPlayerId() > 0) { + // Set flag for player existing + doesPlayerExist = DatabaseHelper.checkPlayerExists(account.getPlayerId()); + } + + // Set reserve player id if account doesnt exist + if (!doesPlayerExist) { + int id = DatabaseHelper.getNextPlayerId(session.getAccount().getPlayerId()); + if (id != session.getAccount().getPlayerId()) { + session.getAccount().setPlayerId(id); + session.getAccount().save(); + } + } + + // Send packet + session.send(new PacketGetPlayerTokenRsp(session, doesPlayerExist)); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetRegionSearchReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetRegionSearchReq.java new file mode 100644 index 000000000..88ed20910 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetRegionSearchReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.GetRegionSearchReq) +public class HandlerGetRegionSearchReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetSceneAreaReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetSceneAreaReq.java new file mode 100644 index 000000000..ac890623e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetSceneAreaReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetSceneAreaReqOuterClass.GetSceneAreaReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetSceneAreaRsp; + +@Opcodes(PacketOpcodes.GetSceneAreaReq) +public class HandlerGetSceneAreaReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetSceneAreaReq req = GetSceneAreaReq.parseFrom(payload); + + session.send(new PacketGetSceneAreaRsp(req.getSceneId())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetScenePointReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetScenePointReq.java new file mode 100644 index 000000000..f4352ba1c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetScenePointReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetScenePointReqOuterClass.GetScenePointReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetScenePointRsp; + +@Opcodes(PacketOpcodes.GetScenePointReq) +public class HandlerGetScenePointReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetScenePointReq req = GetScenePointReq.parseFrom(payload); + + session.send(new PacketGetScenePointRsp(req.getSceneId())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopReq.java new file mode 100644 index 000000000..9b7c6e96d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetShopReqOuterClass.GetShopReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetShopRsp; + +@Opcodes(PacketOpcodes.GetShopReq) +public class HandlerGetShopReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + GetShopReq req = GetShopReq.parseFrom(payload); + + // TODO + session.send(new PacketGetShopRsp(req.getShopType())); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopmallDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopmallDataReq.java new file mode 100644 index 000000000..c9c98f045 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetShopmallDataReq.java @@ -0,0 +1,18 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetShopmallDataRsp; + +@Opcodes(PacketOpcodes.GetShopmallDataReq) +public class HandlerGetShopmallDataReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // TODO add the correct shops + session.send(new PacketGetShopmallDataRsp()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWidgetSlotReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWidgetSlotReq.java new file mode 100644 index 000000000..b41a6cc1d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWidgetSlotReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.GetWidgetSlotReq) +public class HandlerGetWidgetSlotReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Unhandled + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWorldMpInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWorldMpInfoReq.java new file mode 100644 index 000000000..e93ecfad0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerGetWorldMpInfoReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketGetWorldMpInfoRsp; + +@Opcodes(PacketOpcodes.GetWorldMpInfoReq) +public class HandlerGetWorldMpInfoReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketGetWorldMpInfoRsp(session.getPlayer().getWorld())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java new file mode 100644 index 000000000..3a651e4cb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java @@ -0,0 +1,32 @@ +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.proto.MarkMapReqOuterClass.MarkMapReq; +import emu.grasscutter.net.proto.OperationOuterClass.Operation; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSceneEntityAppearNotify; + +@Opcodes(PacketOpcodes.MarkMapReq) +public class HandlerMarkMapReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + MarkMapReq req = MarkMapReq.parseFrom(payload); + + if (req.getOp() != Operation.Add) { + return; + } + + session.getPlayer().getPos().setX(req.getMark().getPos().getX()); + session.getPlayer().getPos().setZ(req.getMark().getPos().getZ()); + session.getPlayer().getPos().setY(300); + + Grasscutter.getLogger().info("Player [" + session.getPlayer().getId() + ":" + session.getPlayer().getNickname() + "] tp to " + session.getPlayer().getPos()); + + session.getPlayer().getWorld().broadcastPacket(new PacketSceneEntityAppearNotify(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerMonsterAIConfigHashNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMonsterAIConfigHashNotify.java new file mode 100644 index 000000000..52149d460 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerMonsterAIConfigHashNotify.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.MonsterAIConfigHashNotify) +public class HandlerMonsterAIConfigHashNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerObstacleModifyNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerObstacleModifyNotify.java new file mode 100644 index 000000000..6c2bff830 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerObstacleModifyNotify.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.ObstacleModifyNotify) +public class HandlerObstacleModifyNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPathfindingEnterSceneReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPathfindingEnterSceneReq.java new file mode 100644 index 000000000..2d69d07f4 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPathfindingEnterSceneReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPathfindingEnterSceneRsp; + +@Opcodes(PacketOpcodes.PathfindingEnterSceneReq) +public class HandlerPathfindingEnterSceneReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PacketHead head = PacketHead.parseFrom(header); + session.send(new PacketPathfindingEnterSceneRsp(head.getClientSequenceId())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPingReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPingReq.java new file mode 100644 index 000000000..70d661ebd --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPingReq.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; +import emu.grasscutter.net.proto.PingReqOuterClass.PingReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPingRsp; + +@Opcodes(PacketOpcodes.PingReq) +public class HandlerPingReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PacketHead head = PacketHead.parseFrom(header); + PingReq ping = PingReq.parseFrom(payload); + + session.updateLastPingTime(ping.getClientTime()); + + session.send(new PacketPingRsp(head.getClientSequenceId(), ping.getClientTime())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpReq.java new file mode 100644 index 000000000..ed5591a1b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpReq.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpReqOuterClass.PlayerApplyEnterMpReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpRsp; + +@Opcodes(PacketOpcodes.PlayerApplyEnterMpReq) +public class HandlerPlayerApplyEnterMpReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PlayerApplyEnterMpReq req = PlayerApplyEnterMpReq.parseFrom(payload); + + session.getServer().getMultiplayerManager().applyEnterMp(session.getPlayer(), req.getTargetUid()); + session.send(new PacketPlayerApplyEnterMpRsp(req.getTargetUid())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpResultReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpResultReq.java new file mode 100644 index 000000000..7a9c41db2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerApplyEnterMpResultReq.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultReqOuterClass.PlayerApplyEnterMpResultReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPlayerApplyEnterMpResultRsp; + +@Opcodes(PacketOpcodes.PlayerApplyEnterMpResultReq) +public class HandlerPlayerApplyEnterMpResultReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PlayerApplyEnterMpResultReq req = PlayerApplyEnterMpResultReq.parseFrom(payload); + + session.getServer().getMultiplayerManager().applyEnterMpReply(session.getPlayer(), req.getApplyUid(), req.getIsAgreed()); + session.send(new PacketPlayerApplyEnterMpResultRsp(req.getApplyUid(), req.getIsAgreed())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerChatReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerChatReq.java new file mode 100644 index 000000000..9a807e991 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerChatReq.java @@ -0,0 +1,28 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChatInfoOuterClass.ChatInfo; +import emu.grasscutter.net.proto.PlayerChatReqOuterClass.PlayerChatReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPlayerChatRsp; + +@Opcodes(PacketOpcodes.PlayerChatReq) +public class HandlerPlayerChatReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PlayerChatReq req = PlayerChatReq.parseFrom(payload); + ChatInfo.ContentCase content = req.getChatInfo().getContentCase(); + + if (content == ChatInfo.ContentCase.TEXT) { + session.getServer().getChatManager().sendTeamChat(session.getPlayer(), req.getChannelId(), req.getChatInfo().getText()); + } else if (content == ChatInfo.ContentCase.ICON) { + session.getServer().getChatManager().sendTeamChat(session.getPlayer(), req.getChannelId(), req.getChatInfo().getIcon()); + } + + session.send(new PacketPlayerChatRsp()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java new file mode 100644 index 000000000..1fe4c8d54 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java @@ -0,0 +1,14 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.PlayerForceExitReq) +public class HandlerPlayerForceExitReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Client should auto disconnect right now + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java new file mode 100644 index 000000000..b7afdb905 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerGetForceQuitBanInfoReq.java @@ -0,0 +1,24 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPlayerGetForceQuitBanInfoRsp; + +@Opcodes(PacketOpcodes.PlayerGetForceQuitBanInfoReq) +public class HandlerPlayerGetForceQuitBanInfoReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + + if (session.getServer().getMultiplayerManager().leaveCoop(session.getPlayer())) { + // Success + session.send(new PacketPlayerGetForceQuitBanInfoRsp(0)); + } else { + // Fail + session.send(new PacketPlayerGetForceQuitBanInfoRsp(1)); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java new file mode 100644 index 000000000..183ef7461 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerLoginReq.java @@ -0,0 +1,52 @@ +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.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerLoginReqOuterClass.PlayerLoginReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.game.GameSession.SessionState; +import emu.grasscutter.server.packet.send.PacketPlayerLoginRsp; + +@Opcodes(PacketOpcodes.PlayerLoginReq) // Sends initial data packets +public class HandlerPlayerLoginReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Check + if (session.getAccount() == null) { + return; + } + + // Parse request + PlayerLoginReq req = PlayerLoginReq.parseFrom(payload); + + // Authenticate session + if (!req.getToken().equals(session.getAccount().getToken())) { + return; + } + + // Load character from db + GenshinPlayer player = DatabaseHelper.getPlayerById(session.getAccount().getPlayerId()); + + if (player == null) { + // Send packets + session.setState(SessionState.PICKING_CHARACTER); + session.send(new GenshinPacket(PacketOpcodes.DoSetPlayerBornDataNotify)); + } else { + // Set character + session.setPlayer(player); + + // Login done + session.getPlayer().onLogin(); + session.setState(SessionState.ACTIVE); + } + + // Final packet to tell client logging in is done + session.send(new PacketPlayerLoginRsp(session)); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerSetPauseReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerSetPauseReq.java new file mode 100644 index 000000000..7c1680d20 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerSetPauseReq.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead; +import emu.grasscutter.net.proto.PlayerSetPauseReqOuterClass.PlayerSetPauseReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPlayerSetPauseRsp; + +@Opcodes(PacketOpcodes.PlayerSetPauseReq) +public class HandlerPlayerSetPauseReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PacketHead head = PacketHead.parseFrom(header); + PlayerSetPauseReq req = PlayerSetPauseReq.parseFrom(payload); + + session.send(new PacketPlayerSetPauseRsp(head.getClientSequenceId())); + session.getPlayer().setPaused(req.getIsPaused()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPostEnterSceneReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPostEnterSceneReq.java new file mode 100644 index 000000000..9c74946b7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPostEnterSceneReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPostEnterSceneRsp; + +@Opcodes(PacketOpcodes.PostEnterSceneReq) +public class HandlerPostEnterSceneReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketPostEnterSceneRsp(session.getPlayer())); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java new file mode 100644 index 000000000..081c0883a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPrivateChatReq.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PrivateChatReqOuterClass.PrivateChatReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.PrivateChatReq) +public class HandlerPrivateChatReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PrivateChatReq req = PrivateChatReq.parseFrom(payload); + PrivateChatReq.ContentCase content = req.getContentCase(); + + if (content == PrivateChatReq.ContentCase.TEXT) { + session.getServer().getChatManager().sendPrivChat(session.getPlayer(), req.getTargetUid(), req.getText()); + } else if (content == PrivateChatReq.ContentCase.ICON) { + session.getServer().getChatManager().sendPrivChat(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/HandlerPullPrivateChatReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPullPrivateChatReq.java new file mode 100644 index 000000000..b00e7ad12 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPullPrivateChatReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PullPrivateChatReqOuterClass.PullPrivateChatReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPullPrivateChatRsp; + +@Opcodes(PacketOpcodes.PullPrivateChatReq) +public class HandlerPullPrivateChatReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + PullPrivateChatReq req = PullPrivateChatReq.parseFrom(payload); + + session.send(new PacketPullPrivateChatRsp()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPullRecentChatReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPullRecentChatReq.java new file mode 100644 index 000000000..3a7d8262d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPullRecentChatReq.java @@ -0,0 +1,15 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketPullRecentChatRsp; + +@Opcodes(PacketOpcodes.PullRecentChatReq) +public class HandlerPullRecentChatReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketPullRecentChatRsp(session.getPlayer())); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerQueryPathReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerQueryPathReq.java new file mode 100644 index 000000000..aa8492b25 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerQueryPathReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.QueryPathReq) +public class HandlerQueryPathReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerReliquaryUpgradeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerReliquaryUpgradeReq.java new file mode 100644 index 000000000..bd8ec9e58 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerReliquaryUpgradeReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ReliquaryUpgradeReqOuterClass.ReliquaryUpgradeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.ReliquaryUpgradeReq) +public class HandlerReliquaryUpgradeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + ReliquaryUpgradeReq req = ReliquaryUpgradeReq.parseFrom(payload); + + session.getServer().getInventoryManager().upgradeRelic(session.getPlayer(), req.getTargetReliquaryGuid(), req.getFoodReliquaryGuidListList(), req.getItemParamListList()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java new file mode 100644 index 000000000..19a5cf955 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneInitFinishReq.java @@ -0,0 +1,51 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketHostPlayerNotify; +import emu.grasscutter.server.packet.send.PacketPlayerEnterSceneInfoNotify; +import emu.grasscutter.server.packet.send.PacketPlayerGameTimeNotify; +import emu.grasscutter.server.packet.send.PacketSceneAreaWeatherNotify; +import emu.grasscutter.server.packet.send.PacketSceneInitFinishRsp; +import emu.grasscutter.server.packet.send.PacketScenePlayerInfoNotify; +import emu.grasscutter.server.packet.send.PacketSceneTeamUpdateNotify; +import emu.grasscutter.server.packet.send.PacketSceneTimeNotify; +import emu.grasscutter.server.packet.send.PacketServerTimeNotify; +import emu.grasscutter.server.packet.send.PacketSyncScenePlayTeamEntityNotify; +import emu.grasscutter.server.packet.send.PacketSyncTeamEntityNotify; +import emu.grasscutter.server.packet.send.PacketWorldDataNotify; +import emu.grasscutter.server.packet.send.PacketWorldPlayerInfoNotify; + +@Opcodes(PacketOpcodes.SceneInitFinishReq) +public class HandlerSceneInitFinishReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Info packets + session.send(new PacketServerTimeNotify()); + session.send(new PacketWorldPlayerInfoNotify(session.getPlayer().getWorld())); + session.send(new PacketWorldDataNotify(session.getPlayer().getWorld())); + session.send(new GenshinPacket(PacketOpcodes.SceneForceUnlockNotify)); + session.send(new PacketHostPlayerNotify(session.getPlayer().getWorld())); + + session.send(new PacketSceneTimeNotify(session.getPlayer())); + session.send(new PacketPlayerGameTimeNotify(session.getPlayer().getWorld(), session.getPlayer())); + session.send(new PacketPlayerEnterSceneInfoNotify(session.getPlayer())); + session.send(new PacketSceneAreaWeatherNotify(session.getPlayer().getWorld(), session.getPlayer())); + session.send(new PacketScenePlayerInfoNotify(session.getPlayer().getWorld())); + session.send(new PacketSceneTeamUpdateNotify(session.getPlayer())); + + session.send(new PacketSyncTeamEntityNotify(session.getPlayer())); + session.send(new PacketSyncScenePlayTeamEntityNotify(session.getPlayer())); + + // Done Packet + session.send(new PacketSceneInitFinishRsp(session.getPlayer())); + + // Set state + session.getPlayer().setSceneLoadState(SceneLoadState.INIT); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneKickPlayerReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneKickPlayerReq.java new file mode 100644 index 000000000..732664481 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneKickPlayerReq.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneKickPlayerReqOuterClass.SceneKickPlayerReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSceneKickPlayerRsp; + +@Opcodes(PacketOpcodes.SceneKickPlayerReq) +public class HandlerSceneKickPlayerReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SceneKickPlayerReq req = SceneKickPlayerReq.parseFrom(payload); + + if (session.getServer().getMultiplayerManager().kickPlayer(session.getPlayer(), req.getTargetUid())) { + // Success + session.send(new PacketSceneKickPlayerRsp(req.getTargetUid())); + } else { + // Fail + session.send(new PacketSceneKickPlayerRsp()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java new file mode 100644 index 000000000..accbd253d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEntityClientDataNotify.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.SetEntityClientDataNotify) +public class HandlerSetEntityClientDataNotify extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEquipLockStateReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEquipLockStateReq.java new file mode 100644 index 000000000..27bd8b1cb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetEquipLockStateReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetEquipLockStateReqOuterClass.SetEquipLockStateReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.SetEquipLockStateReq) +public class HandlerSetEquipLockStateReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SetEquipLockStateReq req = SetEquipLockStateReq.parseFrom(payload); + + session.getServer().getInventoryManager().lockEquip(session.getPlayer(), req.getTargetEquipGuid(), req.getIsLocked()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetNameCardReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetNameCardReq.java new file mode 100644 index 000000000..158bfc923 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetNameCardReq.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetNameCardReqOuterClass.SetNameCardReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.SetNameCardReq) +public class HandlerSetNameCardReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SetNameCardReq req = SetNameCardReq.parseFrom(payload); + + session.getPlayer().setNameCard(req.getNameCardId()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java new file mode 100644 index 000000000..a45cca5b0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java @@ -0,0 +1,78 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.GenshinData; +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.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass.SetPlayerBornDataReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.game.GameSession.SessionState; + +@Opcodes(PacketOpcodes.SetPlayerBornDataReq) +public class HandlerSetPlayerBornDataReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SetPlayerBornDataReq req = SetPlayerBornDataReq.parseFrom(payload); + + // Sanity checks + int avatarId = req.getAvatarId(); + int startingSkillDepot = 0; + if (avatarId == GenshinConstants.MAIN_CHARACTER_MALE) { + startingSkillDepot = 504; + } else if (avatarId == GenshinConstants.MAIN_CHARACTER_FEMALE) { + startingSkillDepot = 704; + } else { + return; + } + + String nickname = req.getNickName(); + if (nickname == null) { + nickname = "Traveler"; + } + + // Create character + GenshinPlayer player = new GenshinPlayer(session); + player.setNickname(nickname); + + try { + // Save to db + DatabaseHelper.createPlayer(player, session.getAccount().getPlayerId()); + + // Create avatar + if (player.getAvatars().getAvatarCount() == 0) { + GenshinAvatar mainCharacter = new GenshinAvatar(avatarId); + mainCharacter.setSkillDepot(GenshinData.getAvatarSkillDepotDataMap().get(startingSkillDepot)); + player.addAvatar(mainCharacter); + player.setMainCharacterId(avatarId); + player.setHeadImage(avatarId); + player.getTeamManager().getCurrentSinglePlayerTeamInfo().getAvatars().add(mainCharacter.getAvatarId()); + player.save(); // TODO save player team in different object + } + + // Save account + session.getAccount().setPlayerId(player.getId()); + session.getAccount().save(); + + // Set character + session.setPlayer(player); + + // Login done + session.getPlayer().onLogin(); + session.setState(SessionState.ACTIVE); + + // Born resp packet + session.send(new GenshinPacket(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/HandlerSetPlayerHeadImageReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerHeadImageReq.java new file mode 100644 index 000000000..d478dc285 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerHeadImageReq.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerHeadImageReqOuterClass.SetPlayerHeadImageReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSetPlayerHeadImageRsp; + +@Opcodes(PacketOpcodes.SetPlayerHeadImageReq) +public class HandlerSetPlayerHeadImageReq extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SetPlayerHeadImageReq req = SetPlayerHeadImageReq.parseFrom(payload); + + int id = req.getAvatarId(); + + if (session.getPlayer().getAvatars().hasAvatar(id)) { + session.getPlayer().setHeadImage(id); + session.send(new PacketSetPlayerHeadImageRsp(session.getPlayer())); + } + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerNameReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerNameReq.java new file mode 100644 index 000000000..d7babb6c2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerNameReq.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerNameReqOuterClass.SetPlayerNameReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSetPlayerNameRsp; + +@Opcodes(PacketOpcodes.SetPlayerNameReq) +public class HandlerSetPlayerNameReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + SetPlayerNameReq req = SetPlayerNameReq.parseFrom(payload); + + if (req.getNickName() != null && req.getNickName().length() > 0) { + session.getPlayer().setNickname(req.getNickName()); + session.send(new PacketSetPlayerNameRsp(session.getPlayer())); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerSignatureReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerSignatureReq.java new file mode 100644 index 000000000..a20a78f85 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerSignatureReq.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerSignatureReqOuterClass.SetPlayerSignatureReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketSetPlayerSignatureRsp; + +@Opcodes(PacketOpcodes.SetPlayerSignatureReq) +public class HandlerSetPlayerSignatureReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + // Auto template + SetPlayerSignatureReq req = SetPlayerSignatureReq.parseFrom(payload); + + if (req.getSignature() != null && req.getSignature().length() > 0) { + session.getPlayer().setSignature(req.getSignature()); + session.send(new PacketSetPlayerSignatureRsp(session.getPlayer())); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetUpAvatarTeamReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetUpAvatarTeamReq.java new file mode 100644 index 000000000..eed605c61 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetUpAvatarTeamReq.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetUpAvatarTeamReqOuterClass.SetUpAvatarTeamReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.SetUpAvatarTeamReq) +public class HandlerSetUpAvatarTeamReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + SetUpAvatarTeamReq req = SetUpAvatarTeamReq.parseFrom(payload); + + session.getPlayer().getTeamManager().setupAvatarTeam(req.getTeamId(), req.getAvatarTeamGuidListList()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeoffEquipReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeoffEquipReq.java new file mode 100644 index 000000000..1160cbeef --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTakeoffEquipReq.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.TakeoffEquipReqOuterClass.TakeoffEquipReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketTakeoffEquipRsp; + +@Opcodes(PacketOpcodes.TakeoffEquipReq) +public class HandlerTakeoffEquipReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + TakeoffEquipReq req = TakeoffEquipReq.parseFrom(payload); + + if (session.getPlayer().getInventory().unequipItem(req.getAvatarGuid(), req.getSlot())) { + session.send(new PacketTakeoffEquipRsp(req.getAvatarGuid(), req.getSlot())); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTowerAllDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTowerAllDataReq.java new file mode 100644 index 000000000..2a9ef2004 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTowerAllDataReq.java @@ -0,0 +1,17 @@ +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.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketTowerAllDataRsp; + +@Opcodes(PacketOpcodes.TowerAllDataReq) +public class HandlerTowerAllDataReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.send(new PacketTowerAllDataRsp()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnionCmdNotify.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnionCmdNotify.java new file mode 100644 index 000000000..1f4a9e7f3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnionCmdNotify.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UnionCmdNotifyOuterClass.UnionCmdNotify; +import emu.grasscutter.net.proto.UnionCmdOuterClass.UnionCmd; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.UnionCmdNotify) +public class HandlerUnionCmdNotify extends PacketHandler { + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + UnionCmdNotify req = UnionCmdNotify.parseFrom(payload); + for (UnionCmd cmd : req.getCmdListList()) { + session.getServer().getPacketHandler().handle(session, cmd.getMessageId(), EMPTY_BYTE_ARRAY, cmd.getBody().toByteArray()); + } + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnlockAvatarTalentReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnlockAvatarTalentReq.java new file mode 100644 index 000000000..93cf1cad7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUnlockAvatarTalentReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UnlockAvatarTalentReqOuterClass.UnlockAvatarTalentReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.UnlockAvatarTalentReq) +public class HandlerUnlockAvatarTalentReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + UnlockAvatarTalentReq req = UnlockAvatarTalentReq.parseFrom(payload); + + // Unlock avatar const + session.getServer().getInventoryManager().unlockAvatarConstellation(session.getPlayer(), req.getAvatarGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java new file mode 100644 index 000000000..8a1f4a70c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerUseItemReq.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UseItemReqOuterClass.UseItemReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketUseItemRsp; + +@Opcodes(PacketOpcodes.UseItemReq) +public class HandlerUseItemReq extends PacketHandler { + + @Override + 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()); + if (useItem != null) { + session.send(new PacketUseItemRsp(req.getTargetGuid(), useItem)); + } else { + session.send(new PacketUseItemRsp()); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponAwakenReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponAwakenReq.java new file mode 100644 index 000000000..b33510ad0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponAwakenReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WeaponAwakenReqOuterClass.WeaponAwakenReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.WeaponAwakenReq) +public class HandlerWeaponAwakenReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + WeaponAwakenReq req = WeaponAwakenReq.parseFrom(payload); + + // Weapon refinement + session.getServer().getInventoryManager().refineWeapon(session.getPlayer(), req.getTargetWeaponGuid(), req.getItemGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponPromoteReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponPromoteReq.java new file mode 100644 index 000000000..0b3c23b49 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponPromoteReq.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WeaponPromoteReqOuterClass.WeaponPromoteReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.WeaponPromoteReq) +public class HandlerWeaponPromoteReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + WeaponPromoteReq req = WeaponPromoteReq.parseFrom(payload); + + // Ascend weapon + session.getServer().getInventoryManager().promoteWeapon(session.getPlayer(), req.getTargetWeaponGuid()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponUpgradeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponUpgradeReq.java new file mode 100644 index 000000000..f099c976a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWeaponUpgradeReq.java @@ -0,0 +1,25 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; + +@Opcodes(PacketOpcodes.WeaponUpgradeReq) +public class HandlerWeaponUpgradeReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + WeaponUpgradeReq req = WeaponUpgradeReq.parseFrom(payload); + + // Level up weapon + session.getServer().getInventoryManager().upgradeWeapon( + session.getPlayer(), + req.getTargetWeaponGuid(), + req.getFoodWeaponGuidListList(), + req.getItemParamListList() + ); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerWearEquipReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWearEquipReq.java new file mode 100644 index 000000000..3907aee89 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWearEquipReq.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.recv; + +import emu.grasscutter.net.packet.Opcodes; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WearEquipReqOuterClass.WearEquipReq; +import emu.grasscutter.net.packet.PacketHandler; +import emu.grasscutter.server.game.GameSession; +import emu.grasscutter.server.packet.send.PacketWearEquipRsp; + +@Opcodes(PacketOpcodes.WearEquipReq) +public class HandlerWearEquipReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + WearEquipReq req = WearEquipReq.parseFrom(payload); + + if (session.getPlayer().getInventory().equipItem(req.getAvatarGuid(), req.getEquipGuid())) { + session.send(new PacketWearEquipRsp(req.getAvatarGuid(), req.getEquipGuid())); + } + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerWorldPlayerReviveReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWorldPlayerReviveReq.java new file mode 100644 index 000000000..cbe95a322 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerWorldPlayerReviveReq.java @@ -0,0 +1,16 @@ +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.server.game.GameSession; + +@Opcodes(PacketOpcodes.WorldPlayerReviveReq) +public class HandlerWorldPlayerReviveReq extends PacketHandler { + + @Override + public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { + session.getPlayer().getTeamManager().respawnTeam(); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/Packet.java b/src/main/java/emu/grasscutter/server/packet/send/Packet.java new file mode 100644 index 000000000..70306892d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/Packet.java @@ -0,0 +1,12 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; + +public class Packet extends GenshinPacket { + + 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 new file mode 100644 index 000000000..a6e1fb452 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityChangeNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify; + +public class PacketAbilityChangeNotify extends GenshinPacket { + + public PacketAbilityChangeNotify(EntityAvatar entity) { + super(PacketOpcodes.AbilityChangeNotify); + + AbilityChangeNotify proto = AbilityChangeNotify.newBuilder() + .setEntityId(entity.getId()) + .setAbilityControlBlock(entity.getAbilityControlBlock()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java new file mode 100644 index 000000000..5b1b19a4b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAbilityInvocationsNotify.java @@ -0,0 +1,32 @@ +package emu.grasscutter.server.packet.send; + +import java.util.List; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketAbilityInvocationsNotify(AbilityInvokeEntry entry) { + super(PacketOpcodes.AbilityInvocationsNotify, true); + + AbilityInvocationsNotify proto = AbilityInvocationsNotify.newBuilder() + .addInvokes(entry) + .build(); + + this.setData(proto); + } + + public PacketAbilityInvocationsNotify(List entries) { + super(PacketOpcodes.AbilityInvocationsNotify, true); + + AbilityInvocationsNotify proto = AbilityInvocationsNotify.newBuilder() + .addAllInvokes(entries) + .build(); + + this.setData(proto); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java new file mode 100644 index 000000000..a0f2e428f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.friends.Friendship; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AskAddFriendNotifyOuterClass.AskAddFriendNotify; + +public class PacketAskAddFriendNotify extends GenshinPacket { + + public PacketAskAddFriendNotify(Friendship friendship) { + super(PacketOpcodes.AskAddFriendNotify); + + AskAddFriendNotify proto = AskAddFriendNotify.newBuilder() + .setTargetUid(friendship.getFriendId()) + .setTargetFriendBrief(friendship.toProto()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java new file mode 100644 index 000000000..df46ac296 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAskAddFriendRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AskAddFriendRspOuterClass.AskAddFriendRsp; + +public class PacketAskAddFriendRsp extends GenshinPacket { + + public PacketAskAddFriendRsp(int targetUid) { + super(PacketOpcodes.AskAddFriendRsp); + + AskAddFriendRsp proto = AskAddFriendRsp.newBuilder() + .setTargetUid(targetUid) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java new file mode 100644 index 000000000..620165d5c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarAddNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarAddNotifyOuterClass.AvatarAddNotify; + +public class PacketAvatarAddNotify extends GenshinPacket { + + public PacketAvatarAddNotify(GenshinAvatar avatar, boolean addedToTeam) { + super(PacketOpcodes.AvatarAddNotify); + + AvatarAddNotify proto = AvatarAddNotify.newBuilder() + .setAvatar(avatar.toProto()) + .setIsInTeam(addedToTeam) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java new file mode 100644 index 000000000..0319fc4c9 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeNotify.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.EntityAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarChangeCostumeNotifyOuterClass.AvatarChangeCostumeNotify; + +public class PacketAvatarChangeCostumeNotify extends GenshinPacket { + + public PacketAvatarChangeCostumeNotify(EntityAvatar entity) { + super(PacketOpcodes.AvatarChangeCostumeNotify); + + AvatarChangeCostumeNotify proto = AvatarChangeCostumeNotify.newBuilder() + .setEntity(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 new file mode 100644 index 000000000..66c1d5050 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarChangeCostumeRsp.java @@ -0,0 +1,29 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarChangeCostumeRspOuterClass.AvatarChangeCostumeRsp; + +public class PacketAvatarChangeCostumeRsp extends GenshinPacket { + + public PacketAvatarChangeCostumeRsp(long avatarGuid, int costumeId) { + super(PacketOpcodes.AvatarChangeCostumeRsp); + + AvatarChangeCostumeRsp proto = AvatarChangeCostumeRsp.newBuilder() + .setAvatarGuid(avatarGuid) + .setCostumeId(costumeId) + .build(); + + this.setData(proto); + } + + public PacketAvatarChangeCostumeRsp() { + super(PacketOpcodes.AvatarChangeCostumeRsp); + + AvatarChangeCostumeRsp proto = AvatarChangeCostumeRsp.newBuilder() + .setRetcode(1) + .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 new file mode 100644 index 000000000..a05a2dabb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDataNotify.java @@ -0,0 +1,44 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarDataNotifyOuterClass.AvatarDataNotify; +import emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam; + +public class PacketAvatarDataNotify extends GenshinPacket { + + public PacketAvatarDataNotify(GenshinPlayer player) { + super(PacketOpcodes.AvatarDataNotify, 2); + + AvatarDataNotify.Builder proto = AvatarDataNotify.newBuilder() + .setCurAvatarTeamId(player.getTeamManager().getCurrentTeamId()) + .setChooseAvatarGuid(player.getTeamManager().getCurrentCharacterGuid()) + .addAllOwnedFlycloakList(player.getFlyCloakList()) + .addAllOwnedCostumeList(player.getCostumeList()); + + for (GenshinAvatar avatar : player.getAvatars()) { + proto.addAvatarList(avatar.toProto()); + } + + for (Entry entry : player.getTeamManager().getTeams().entrySet()) { + TeamInfo teamInfo = entry.getValue(); + AvatarTeam.Builder avatarTeam = AvatarTeam.newBuilder() + .setTeamName(teamInfo.getName()); + + for (int i = 0; i < teamInfo.getAvatars().size(); i++) { + GenshinAvatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); + avatarTeam.addAvatarGuidList(avatar.getGuid()); + } + + proto.putAvatarTeamMap(entry.getKey(), avatarTeam.build()); + } + + this.setData(proto.build()); + } + +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java new file mode 100644 index 000000000..3fa913a0a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarDieAnimationEndRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarDieAnimationEndRspOuterClass.AvatarDieAnimationEndRsp; + +public class PacketAvatarDieAnimationEndRsp extends GenshinPacket { + + public PacketAvatarDieAnimationEndRsp(long dieGuid, int skillId) { + super(PacketOpcodes.AvatarDieAnimationEndRsp); + + AvatarDieAnimationEndRsp proto = AvatarDieAnimationEndRsp.newBuilder() + .setDieGuid(dieGuid) + .setSkillId(skillId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java new file mode 100644 index 000000000..000c72d38 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarEquipChangeNotify.java @@ -0,0 +1,39 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.inventory.EquipType; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarEquipChangeNotifyOuterClass.AvatarEquipChangeNotify; + +public class PacketAvatarEquipChangeNotify extends GenshinPacket { + + public PacketAvatarEquipChangeNotify(GenshinAvatar avatar, GenshinItem item) { + super(PacketOpcodes.AvatarEquipChangeNotify); + + AvatarEquipChangeNotify.Builder proto = AvatarEquipChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setEquipType(item.getEquipSlot()) + .setItemId(item.getItemId()) + .setEquipGuid(item.getGuid()); + + if (item.getItemData().getEquipType() == EquipType.EQUIP_WEAPON) { + proto.setWeapon(item.createSceneWeaponInfo()); + } else { + proto.setReliquary(item.createSceneReliquaryInfo()); + } + + this.setData(proto); + } + + public PacketAvatarEquipChangeNotify(GenshinAvatar avatar, EquipType slot) { + super(PacketOpcodes.AvatarEquipChangeNotify); + + AvatarEquipChangeNotify.Builder proto = AvatarEquipChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setEquipType(slot.getValue()); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java new file mode 100644 index 000000000..bb68c5d12 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarFightPropNotifyOuterClass.AvatarFightPropNotify; + +public class PacketAvatarFightPropNotify extends GenshinPacket { + + public PacketAvatarFightPropNotify(GenshinAvatar avatar) { + super(PacketOpcodes.AvatarFightPropNotify); + + AvatarFightPropNotify proto = AvatarFightPropNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .putAllFightPropMap(avatar.getFightProperties()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java new file mode 100644 index 000000000..a939ba057 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFightPropUpdateNotify.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarFightPropUpdateNotifyOuterClass.AvatarFightPropUpdateNotify; + +public class PacketAvatarFightPropUpdateNotify extends GenshinPacket { + + public PacketAvatarFightPropUpdateNotify(GenshinAvatar avatar, FightProperty prop) { + super(PacketOpcodes.AvatarFightPropUpdateNotify); + + AvatarFightPropUpdateNotify proto = AvatarFightPropUpdateNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .putFightPropMap(prop.getId(), avatar.getFightProperty(prop)) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java new file mode 100644 index 000000000..88efecfe7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarFlycloakChangeNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarFlycloakChangeNotifyOuterClass.AvatarFlycloakChangeNotify; + +public class PacketAvatarFlycloakChangeNotify extends GenshinPacket { + + public PacketAvatarFlycloakChangeNotify(GenshinAvatar avatar) { + super(PacketOpcodes.AvatarFlycloakChangeNotify); + + AvatarFlycloakChangeNotify proto = AvatarFlycloakChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setFlycloakId(avatar.getFlyCloak()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java new file mode 100644 index 000000000..74946d959 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainCostumeNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarGainCostumeNotifyOuterClass.AvatarGainCostumeNotify; + +public class PacketAvatarGainCostumeNotify extends GenshinPacket { + + public PacketAvatarGainCostumeNotify(int costumeId) { + super(PacketOpcodes.AvatarGainCostumeNotify); + + AvatarGainCostumeNotify proto = AvatarGainCostumeNotify.newBuilder() + .setCostumeId(costumeId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java new file mode 100644 index 000000000..a3dfacc13 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarGainFlycloakNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarGainFlycloakNotifyOuterClass.AvatarGainFlycloakNotify; + +public class PacketAvatarGainFlycloakNotify extends GenshinPacket { + + public PacketAvatarGainFlycloakNotify(int flycloak) { + super(PacketOpcodes.AvatarGainFlycloakNotify); + + AvatarGainFlycloakNotify proto = AvatarGainFlycloakNotify.newBuilder() + .setFlycloakId(flycloak) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java new file mode 100644 index 000000000..d9acb5d4e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarLifeStateChangeNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.game.props.LifeState; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarLifeStateChangeNotifyOuterClass.AvatarLifeStateChangeNotify; + +public class PacketAvatarLifeStateChangeNotify extends GenshinPacket { + + public PacketAvatarLifeStateChangeNotify(GenshinAvatar avatar) { + super(PacketOpcodes.AvatarLifeStateChangeNotify); + + AvatarLifeStateChangeNotify proto = AvatarLifeStateChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setLifeState(avatar.getFightProperty(FightProperty.FIGHT_PROP_CUR_HP) > 0 ? LifeState.LIFE_ALIVE.getValue() : LifeState.LIFE_DEAD.getValue()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java new file mode 100644 index 000000000..feef149e7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPromoteRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarPromoteRspOuterClass.AvatarPromoteRsp; + +public class PacketAvatarPromoteRsp extends GenshinPacket { + + public PacketAvatarPromoteRsp(GenshinAvatar avatar) { + super(PacketOpcodes.AvatarPromoteRsp); + + AvatarPromoteRsp proto = AvatarPromoteRsp.newBuilder() + .setGuid(avatar.getGuid()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java new file mode 100644 index 000000000..d1c04d9db --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarPropNotify.java @@ -0,0 +1,35 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarPropNotifyOuterClass.AvatarPropNotify; + +public class PacketAvatarPropNotify extends GenshinPacket { + public PacketAvatarPropNotify(GenshinAvatar avatar) { + super(PacketOpcodes.AvatarPropNotify); + + AvatarPropNotify proto = AvatarPropNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .putPropMap(PlayerProperty.PROP_LEVEL.getId(), avatar.getLevel()) + .putPropMap(PlayerProperty.PROP_EXP.getId(), avatar.getExp()) + .putPropMap(PlayerProperty.PROP_BREAK_LEVEL.getId(), avatar.getPromoteLevel()) + .putPropMap(PlayerProperty.PROP_SATIATION_VAL.getId(), 0) + .putPropMap(PlayerProperty.PROP_SATIATION_PENALTY_TIME.getId(), 0) + .build(); + + this.setData(proto); + } + + public PacketAvatarPropNotify(GenshinAvatar avatar, PlayerProperty prop, int value) { + super(PacketOpcodes.AvatarPropNotify); + + AvatarPropNotify proto = AvatarPropNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .putPropMap(prop.getId(), value) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java new file mode 100644 index 000000000..ba787ee7c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillChangeNotify.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarSkillChangeNotifyOuterClass.AvatarSkillChangeNotify; + +public class PacketAvatarSkillChangeNotify extends GenshinPacket { + + public PacketAvatarSkillChangeNotify(GenshinAvatar avatar, int skillId, int oldLevel, int curLevel) { + super(PacketOpcodes.AvatarSkillChangeNotify); + + AvatarSkillChangeNotify proto = AvatarSkillChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setEntityId(avatar.getEntityId()) + .setSkillDepotId(avatar.getSkillDepotId()) + .setAvatarSkillId(skillId) + .setOldLevel(oldLevel) + .setCurLevel(curLevel) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java new file mode 100644 index 000000000..21163e901 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarSkillUpgradeRsp.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarSkillUpgradeRspOuterClass.AvatarSkillUpgradeRsp; + +public class PacketAvatarSkillUpgradeRsp extends GenshinPacket { + + public PacketAvatarSkillUpgradeRsp(GenshinAvatar avatar, int skillId, int oldLevel, int newLevel) { + super(PacketOpcodes.AvatarSkillUpgradeRsp); + + AvatarSkillUpgradeRsp proto = AvatarSkillUpgradeRsp.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setAvatarSkillId(skillId) + .setOldLevel(oldLevel) + .setCurLevel(newLevel) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java new file mode 100644 index 000000000..519584cc3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarTeamUpdateNotify.java @@ -0,0 +1,35 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam; +import emu.grasscutter.net.proto.AvatarTeamUpdateNotifyOuterClass.AvatarTeamUpdateNotify; + +public class PacketAvatarTeamUpdateNotify extends GenshinPacket { + + public PacketAvatarTeamUpdateNotify(GenshinPlayer player) { + super(PacketOpcodes.AvatarTeamUpdateNotify); + + AvatarTeamUpdateNotify.Builder proto = AvatarTeamUpdateNotify.newBuilder(); + + for (Entry entry : player.getTeamManager().getTeams().entrySet()) { + TeamInfo teamInfo = entry.getValue(); + AvatarTeam.Builder avatarTeam = AvatarTeam.newBuilder() + .setTeamName(teamInfo.getName()); + + for (int i = 0; i < teamInfo.getAvatars().size(); i++) { + GenshinAvatar avatar = player.getAvatars().getAvatarById(teamInfo.getAvatars().get(i)); + avatarTeam.addAvatarGuidList(avatar.getGuid()); + } + + proto.putAvatarTeamMap(entry.getKey(), avatarTeam.build()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java new file mode 100644 index 000000000..4c0b11ae9 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUnlockTalentNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarUnlockTalentNotifyOuterClass.AvatarUnlockTalentNotify; + +public class PacketAvatarUnlockTalentNotify extends GenshinPacket { + + public PacketAvatarUnlockTalentNotify(GenshinAvatar avatar, int talentId) { + super(PacketOpcodes.AvatarUnlockTalentNotify); + + AvatarUnlockTalentNotify proto = AvatarUnlockTalentNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setEntityId(avatar.getEntityId()) + .setTalentId(talentId) + .setSkillDepotId(avatar.getSkillDepotId()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java new file mode 100644 index 000000000..031313ea6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarUpgradeRsp.java @@ -0,0 +1,27 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarUpgradeRspOuterClass.AvatarUpgradeRsp; + +public class PacketAvatarUpgradeRsp extends GenshinPacket { + + public PacketAvatarUpgradeRsp(GenshinAvatar avatar, int oldLevel, Map oldFightPropMap) { + super(PacketOpcodes.AvatarUpgradeRsp); + + this.buildHeader(0); + + AvatarUpgradeRsp proto = AvatarUpgradeRsp.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setOldLevel(oldLevel) + .setCurLevel(avatar.getLevel()) + .putAllOldFightPropMap(oldFightPropMap) + .putAllCurFightPropMap(avatar.getFightProperties()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java new file mode 100644 index 000000000..b95cfafcf --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketAvatarWearFlycloakRsp.java @@ -0,0 +1,28 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.AvatarWearFlycloakRspOuterClass.AvatarWearFlycloakRsp; + +public class PacketAvatarWearFlycloakRsp extends GenshinPacket { + public PacketAvatarWearFlycloakRsp(long avatarGuid, int costumeId) { + super(PacketOpcodes.AvatarWearFlycloakRsp); + + AvatarWearFlycloakRsp proto = AvatarWearFlycloakRsp.newBuilder() + .setAvatarGuid(avatarGuid) + .setFlycloakId(costumeId) + .build(); + + this.setData(proto); + } + + public PacketAvatarWearFlycloakRsp() { + super(PacketOpcodes.AvatarWearFlycloakRsp); + + AvatarWearFlycloakRsp proto = AvatarWearFlycloakRsp.newBuilder() + .setRetcode(1) + .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 new file mode 100644 index 000000000..d3a30a700 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCalcWeaponUpgradeReturnItemsRsp.java @@ -0,0 +1,33 @@ +package emu.grasscutter.server.packet.send; + +import java.util.List; + +import emu.grasscutter.net.packet.GenshinPacket; +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; + +public class PacketCalcWeaponUpgradeReturnItemsRsp extends GenshinPacket { + + public PacketCalcWeaponUpgradeReturnItemsRsp(long itemGuid, List returnItems) { + super(PacketOpcodes.CalcWeaponUpgradeReturnItemsRsp); + + CalcWeaponUpgradeReturnItemsRsp proto = CalcWeaponUpgradeReturnItemsRsp.newBuilder() + .setTargetWeaponGuid(itemGuid) + .addAllItemParamList(returnItems) + .build(); + + this.setData(proto); + } + + public PacketCalcWeaponUpgradeReturnItemsRsp() { + super(PacketOpcodes.CalcWeaponUpgradeReturnItemsRsp); + + CalcWeaponUpgradeReturnItemsRsp proto = CalcWeaponUpgradeReturnItemsRsp.newBuilder() + .setRetcode(Retcode.FAIL) + .build(); + + 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 new file mode 100644 index 000000000..ac222a43f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeAvatarRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeAvatarRspOuterClass.ChangeAvatarRsp; + +public class PacketChangeAvatarRsp extends GenshinPacket { + + public PacketChangeAvatarRsp(long guid) { + super(PacketOpcodes.ChangeAvatarRsp); + + ChangeAvatarRsp p = ChangeAvatarRsp.newBuilder() + .setRetcode(0) + .setCurrGuid(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 new file mode 100644 index 000000000..5a97331f8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeGameTimeRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.World; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeGameTimeRspOuterClass.ChangeGameTimeRsp; + +public class PacketChangeGameTimeRsp extends GenshinPacket { + + public PacketChangeGameTimeRsp(World world) { + super(PacketOpcodes.ChangeGameTimeRsp); + + ChangeGameTimeRsp proto = ChangeGameTimeRsp.newBuilder() + .setCurGameTime(world.getTime()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java new file mode 100644 index 000000000..36d2ed248 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeMpTeamAvatarRsp.java @@ -0,0 +1,23 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeMpTeamAvatarRspOuterClass.ChangeMpTeamAvatarRsp; + +public class PacketChangeMpTeamAvatarRsp extends GenshinPacket { + + public PacketChangeMpTeamAvatarRsp(GenshinPlayer player, TeamInfo teamInfo) { + super(PacketOpcodes.ChangeMpTeamAvatarRsp); + + ChangeMpTeamAvatarRsp.Builder proto = ChangeMpTeamAvatarRsp.newBuilder() + .setCurAvatarGuid(player.getTeamManager().getCurrentCharacterGuid()); + + for (int avatarId : teamInfo.getAvatars()) { + proto.addAvatarGuidList(player.getAvatars().getAvatarById(avatarId).getGuid()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java new file mode 100644 index 000000000..52c6bccbf --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChangeTeamNameRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChangeTeamNameRspOuterClass.ChangeTeamNameRsp; + +public class PacketChangeTeamNameRsp extends GenshinPacket { + + public PacketChangeTeamNameRsp(int teamId, String teamName) { + super(PacketOpcodes.ChangeTeamNameRsp); + + ChangeTeamNameRsp proto = ChangeTeamNameRsp.newBuilder() + .setTeamId(teamId) + .setTeamName(teamName) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java new file mode 100644 index 000000000..2af34109a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketChooseCurAvatarTeamRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ChooseCurAvatarTeamRspOuterClass.ChooseCurAvatarTeamRsp; + +public class PacketChooseCurAvatarTeamRsp extends GenshinPacket { + + public PacketChooseCurAvatarTeamRsp(int teamId) { + super(PacketOpcodes.ChooseCurAvatarTeamRsp); + + ChooseCurAvatarTeamRsp proto = ChooseCurAvatarTeamRsp.newBuilder() + .setCurTeamId(teamId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java new file mode 100644 index 000000000..c2031065f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketCombatInvocationsNotify.java @@ -0,0 +1,32 @@ +package emu.grasscutter.server.packet.send; + +import java.util.List; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketCombatInvocationsNotify(CombatInvokeEntry entry) { + super(PacketOpcodes.CombatInvocationsNotify, true); + + CombatInvocationsNotify proto = CombatInvocationsNotify.newBuilder() + .addInvokeList(entry) + .build(); + + this.setData(proto); + } + + public PacketCombatInvocationsNotify(List entries) { + super(PacketOpcodes.CombatInvocationsNotify, true); + + CombatInvocationsNotify proto = CombatInvocationsNotify.newBuilder() + .addAllInvokeList(entries) + .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 new file mode 100644 index 000000000..590506c1f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDealAddFriendRsp.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketDealAddFriendRsp(int targetUid, DealAddFriendResultType result) { + super(PacketOpcodes.DealAddFriendRsp); + + DealAddFriendRsp proto = DealAddFriendRsp.newBuilder() + .setTargetUid(targetUid) + .setDealAddFriendResult(result) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java new file mode 100644 index 000000000..8e6bd10f3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDelTeamEntityNotify.java @@ -0,0 +1,32 @@ +package emu.grasscutter.server.packet.send; + +import java.util.List; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DelTeamEntityNotifyOuterClass.DelTeamEntityNotify; + +public class PacketDelTeamEntityNotify extends GenshinPacket { + + public PacketDelTeamEntityNotify(int sceneId, int teamEntityId) { + super(PacketOpcodes.DelTeamEntityNotify); + + DelTeamEntityNotify proto = DelTeamEntityNotify.newBuilder() + .setSceneId(sceneId) + .addDelEntityIdList(teamEntityId) + .build(); + + this.setData(proto); + } + + public PacketDelTeamEntityNotify(int sceneId, List list) { + super(PacketOpcodes.DelTeamEntityNotify); + + DelTeamEntityNotify proto = DelTeamEntityNotify.newBuilder() + .setSceneId(sceneId) + .addAllDelEntityIdList(list) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java new file mode 100644 index 000000000..7b41b14a5 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DeleteFriendNotifyOuterClass.DeleteFriendNotify; + +public class PacketDeleteFriendNotify extends GenshinPacket { + + public PacketDeleteFriendNotify(int targetUid) { + super(PacketOpcodes.DeleteFriendNotify); + + DeleteFriendNotify proto = DeleteFriendNotify.newBuilder() + .setTargetUid(targetUid) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java new file mode 100644 index 000000000..bfe7c2ced --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDeleteFriendRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.DeleteFriendRspOuterClass.DeleteFriendRsp; + +public class PacketDeleteFriendRsp extends GenshinPacket { + + public PacketDeleteFriendRsp(int targetUid) { + super(PacketOpcodes.DeleteFriendRsp); + + DeleteFriendRsp proto = DeleteFriendRsp.newBuilder() + .setTargetUid(targetUid) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java new file mode 100644 index 000000000..76bc1ebb5 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDestroyMaterialRsp.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketDestroyMaterialRsp(Int2IntOpenHashMap returnMaterialMap) { + super(PacketOpcodes.DestroyMaterialRsp); + + DestroyMaterialRsp.Builder proto = DestroyMaterialRsp.newBuilder(); + + for (Int2IntMap.Entry e : returnMaterialMap.int2IntEntrySet()) { + proto.addItemIdList(e.getIntKey()); + proto.addItemCountList(e.getIntValue()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java new file mode 100644 index 000000000..090fcfc23 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketDoGachaRsp.java @@ -0,0 +1,41 @@ +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.PacketOpcodes; +import emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp; +import emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem; + +public class PacketDoGachaRsp extends GenshinPacket { + + public PacketDoGachaRsp(GachaBanner banner, List list) { + super(PacketOpcodes.DoGachaRsp); + + DoGachaRsp p = DoGachaRsp.newBuilder() + .setGachaType(banner.getGachaType()) + .setGachaScheduleId(banner.getScheduleId()) + .setGachaTimes(list.size()) + .setNewGachaRandom(12345) + .setLeftGachaTimes(Integer.MAX_VALUE) + .setCostItemId(banner.getCostItem()) + .setCostItemNum(1) + .setTenCostItemId(banner.getCostItem()) + .setTenCostItemNum(10) + .addAllGachaItemList(list) + .build(); + + this.setData(p); + } + + public PacketDoGachaRsp() { + super(PacketOpcodes.DoGachaRsp); + + DoGachaRsp p = DoGachaRsp.newBuilder() + .setRetcode(1) + .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 new file mode 100644 index 000000000..6f1314a25 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneDoneRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EnterSceneDoneRspOuterClass.EnterSceneDoneRsp; + +public class PacketEnterSceneDoneRsp extends GenshinPacket { + + public PacketEnterSceneDoneRsp(GenshinPlayer player) { + super(PacketOpcodes.EnterSceneDoneRsp); + + EnterSceneDoneRsp p = EnterSceneDoneRsp.newBuilder() + .setEnterSceneToken(player.getEnterSceneToken()) + .build(); + + this.setData(p); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java new file mode 100644 index 000000000..07c2bbf27 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterScenePeerNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EnterScenePeerNotifyOuterClass.EnterScenePeerNotify; + +public class PacketEnterScenePeerNotify extends GenshinPacket { + + public PacketEnterScenePeerNotify(GenshinPlayer player) { + super(PacketOpcodes.EnterScenePeerNotify); + + EnterScenePeerNotify proto = EnterScenePeerNotify.newBuilder() + .setDestSceneId(player.getSceneId()) + .setPeerId(player.getPeerId()) + .setHostPeerId(player.getWorld().getHost().getPeerId()) + .setEnterSceneToken(player.getEnterSceneToken()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java new file mode 100644 index 000000000..c426bc728 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterSceneReadyRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EnterSceneReadyRspOuterClass.EnterSceneReadyRsp; + +public class PacketEnterSceneReadyRsp extends GenshinPacket { + + public PacketEnterSceneReadyRsp(GenshinPlayer player) { + super(PacketOpcodes.EnterSceneReadyRsp, 11); + + EnterSceneReadyRsp p = EnterSceneReadyRsp.newBuilder() + .setEnterSceneToken(player.getEnterSceneToken()) + .build(); + + this.setData(p.toByteArray()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java new file mode 100644 index 000000000..0d907f318 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEnterWorldAreaRsp.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketEnterWorldAreaRsp(int clientSequence, EnterWorldAreaReq enterWorld) { + super(PacketOpcodes.EnterWorldAreaRsp, clientSequence); + + EnterWorldAreaRsp p = EnterWorldAreaRsp.newBuilder() + .setAreaType(enterWorld.getAreaType()) + .setAreaId(enterWorld.getAreaId()) + .build(); + + this.setData(p.toByteArray()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java new file mode 100644 index 000000000..36e4d813e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityAiSyncNotify.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketEntityAiSyncNotify(EntityAiSyncNotify notify) { + super(PacketOpcodes.EntityAiSyncNotify, true); + + EntityAiSyncNotify.Builder proto = EntityAiSyncNotify.newBuilder(); + + for (int monsterId : notify.getLocalAvatarAlertedMonsterListList()) { + proto.addInfoList(AiSyncInfo.newBuilder().setEntityId(monsterId)); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java new file mode 100644 index 000000000..8d76891ef --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketEntityFightPropUpdateNotify.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.props.FightProperty; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.EntityFightPropUpdateNotifyOuterClass.EntityFightPropUpdateNotify; + +public class PacketEntityFightPropUpdateNotify extends GenshinPacket { + + public PacketEntityFightPropUpdateNotify(GenshinEntity entity, FightProperty prop) { + super(PacketOpcodes.EntityFightPropUpdateNotify); + + EntityFightPropUpdateNotify proto = EntityFightPropUpdateNotify.newBuilder() + .setEntityId(entity.getId()) + .putFightPropMap(prop.getId(), entity.getFightProperty(prop)) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java new file mode 100644 index 000000000..3cb2661de --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetInteractRsp.java @@ -0,0 +1,31 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.EntityGadget; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GadgetInteractRspOuterClass.GadgetInteractRsp; +import emu.grasscutter.net.proto.InteractTypeOuterClass.InteractType; + +public class PacketGadgetInteractRsp extends GenshinPacket { + public PacketGadgetInteractRsp(EntityGadget gadget, InteractType interact) { + super(PacketOpcodes.GadgetInteractRsp); + + GadgetInteractRsp proto = GadgetInteractRsp.newBuilder() + .setGadgetEntityId(gadget.getId()) + .setInteractType(interact) + .setGadgetId(gadget.getGadgetId()) + .build(); + + this.setData(proto); + } + + public PacketGadgetInteractRsp() { + super(PacketOpcodes.GadgetInteractRsp); + + GadgetInteractRsp proto = GadgetInteractRsp.newBuilder() + .setRetcode(1) + .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 new file mode 100644 index 000000000..8b8a5cffa --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetActivityInfoRsp.java @@ -0,0 +1,15 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetActivityInfoRspOuterClass.GetActivityInfoRsp; + +public class PacketGetActivityInfoRsp extends GenshinPacket { + public PacketGetActivityInfoRsp() { + super(PacketOpcodes.GetActivityInfoRsp); + + GetActivityInfoRsp proto = GetActivityInfoRsp.newBuilder().build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java new file mode 100644 index 000000000..0ac6516de --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAllUnlockNameCardRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetAllUnlockNameCardRspOuterClass.GetAllUnlockNameCardRsp; + +public class PacketGetAllUnlockNameCardRsp extends GenshinPacket { + + public PacketGetAllUnlockNameCardRsp(GenshinPlayer player) { + super(PacketOpcodes.GetAllUnlockNameCardRsp); + + GetAllUnlockNameCardRsp proto = GetAllUnlockNameCardRsp.newBuilder() + .addAllNameCardList(player.getNameCardList()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java new file mode 100644 index 000000000..da250fec8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetAuthkeyRsp.java @@ -0,0 +1,16 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetAuthkeyRspOuterClass.GetAuthkeyRsp; + +public class PacketGetAuthkeyRsp extends GenshinPacket { + + public PacketGetAuthkeyRsp() { + super(PacketOpcodes.GetAuthkeyRsp); + + GetAuthkeyRsp proto = GetAuthkeyRsp.newBuilder().setRetcode(1).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 new file mode 100644 index 000000000..6772516a7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetGachaInfoRsp.java @@ -0,0 +1,14 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.gacha.GachaManager; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; + +public class PacketGetGachaInfoRsp extends GenshinPacket { + + public PacketGetGachaInfoRsp(GachaManager manager) { + super(PacketOpcodes.GetGachaInfoRsp); + + this.setData(manager.toProto()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java new file mode 100644 index 000000000..14bd3432d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerAskFriendListRsp.java @@ -0,0 +1,25 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetPlayerAskFriendListRspOuterClass.GetPlayerAskFriendListRsp; + +public class PacketGetPlayerAskFriendListRsp extends GenshinPacket { + + public PacketGetPlayerAskFriendListRsp(GenshinPlayer player) { + super(PacketOpcodes.GetPlayerAskFriendListRsp); + + GetPlayerAskFriendListRsp.Builder proto = GetPlayerAskFriendListRsp.newBuilder(); + + for (Friendship friendship : player.getFriendsList().getPendingFriends().values()) { + if (friendship.getAskerId() == player.getId()) { + continue; + } + proto.addAskFriendList(friendship.toProto()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java new file mode 100644 index 000000000..bf0630eee --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerFriendListRsp.java @@ -0,0 +1,48 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.friends.Friendship; +import emu.grasscutter.net.packet.GenshinPacket; +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; + +public class PacketGetPlayerFriendListRsp extends GenshinPacket { + + public PacketGetPlayerFriendListRsp(GenshinPlayer player) { + super(PacketOpcodes.GetPlayerFriendListRsp); + + FriendBrief serverFriend = FriendBrief.newBuilder() + .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setNickname("Server") + .setLevel(1) + .setAvatar(HeadImage.newBuilder().setAvatarId(GenshinConstants.MAIN_CHARACTER_FEMALE)) + .setWorldLevel(0) + .setSignature("") + .setLastActiveTime((int) (System.currentTimeMillis() / 1000f)) + .setIsMpModeAvailable(true) + .setNameCardId(210001) + .setOnlineState(FriendOnlineState.FRIEND_ONLINE) + .setParam(1) + .setUnk1(1) + .setUnk2(3) + .build(); + + GetPlayerFriendListRsp.Builder proto = GetPlayerFriendListRsp.newBuilder().addFriendList(serverFriend); + + for (Friendship friendship : player.getFriendsList().getFriends().values()) { + proto.addFriendList(friendship.toProto()); + } + for (Friendship friendship : player.getFriendsList().getPendingFriends().values()) { + if (friendship.getAskerId() == player.getId()) { + continue; + } + proto.addAskFriendList(friendship.toProto()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java new file mode 100644 index 000000000..5529d7227 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerSocialDetailRsp.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetPlayerSocialDetailRspOuterClass.GetPlayerSocialDetailRsp; +import emu.grasscutter.net.proto.SocialDetailOuterClass.SocialDetail; + +public class PacketGetPlayerSocialDetailRsp extends GenshinPacket { + + public PacketGetPlayerSocialDetailRsp(SocialDetail.Builder detail) { + super(PacketOpcodes.GetPlayerSocialDetailRsp); + + GetPlayerSocialDetailRsp.Builder proto = GetPlayerSocialDetailRsp.newBuilder(); + + if (detail != null) { + proto.setDetailData(detail); + } else { + proto.setRetcode(1); + } + + 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 new file mode 100644 index 000000000..2306aa0ae --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetPlayerTokenRsp.java @@ -0,0 +1,35 @@ +package emu.grasscutter.server.packet.send; + +import com.google.protobuf.ByteString; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketGetPlayerTokenRsp(GameSession session, boolean doesPlayerExist) { + super(PacketOpcodes.GetPlayerTokenRsp, true); + + this.setUseDispatchKey(true); + + GetPlayerTokenRsp p = GetPlayerTokenRsp.newBuilder() + .setPlayerUid(session.getAccount().getPlayerId()) + .setAccountToken(session.getAccount().getToken()) + .setAccountType(1) + .setIsProficientPlayer(doesPlayerExist) // Not sure where this goes + .setSecretKey(Crypto.ENCRYPT_SEED) + .setSecretKeyBuffer(ByteString.copyFrom(Crypto.ENCRYPT_SEED_BUFFER)) + .setPlatformType(3) + .setChannelId(1) + .setCountryCode("US") + .setUnk1("c25-314dd05b0b5f") + .setUnk3(3) + .setClientIp(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 new file mode 100644 index 000000000..8a8bdca38 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetSceneAreaRsp.java @@ -0,0 +1,28 @@ +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.PacketOpcodes; +import emu.grasscutter.net.proto.CityInfoOuterClass.CityInfo; +import emu.grasscutter.net.proto.GetSceneAreaRspOuterClass.GetSceneAreaRsp; + +public class PacketGetSceneAreaRsp extends GenshinPacket { + + public PacketGetSceneAreaRsp(int sceneId) { + super(PacketOpcodes.GetSceneAreaRsp); + + this.buildHeader(0); + + GetSceneAreaRsp p = GetSceneAreaRsp.newBuilder() + .setSceneId(3) + .addAllAreaIdList(Arrays.stream(new int[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,18,19}).boxed().collect(Collectors.toList())) + .addCityInfoList(CityInfo.newBuilder().setCityId(1).setLevel(1).build()) + .addCityInfoList(CityInfo.newBuilder().setCityId(2).setLevel(1).build()) + .addCityInfoList(CityInfo.newBuilder().setCityId(3).setLevel(1).build()) + .build(); + + this.setData(p); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java new file mode 100644 index 000000000..73807bed7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java @@ -0,0 +1,25 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetScenePointRspOuterClass.GetScenePointRsp; + +public class PacketGetScenePointRsp extends GenshinPacket { + + public PacketGetScenePointRsp(int sceneId) { + super(PacketOpcodes.GetScenePointRsp); + + GetScenePointRsp.Builder p = GetScenePointRsp.newBuilder() + .setSceneId(sceneId); + + for (int i = 1; i < 1000; i++) { + p.addUnlockedPointList(i); + } + + for (int i = 1; i < 9; i++) { + p.addUnlockAreaList(i); + } + + this.setData(p); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java new file mode 100644 index 000000000..d80d445d9 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketGetShopRsp(int shopType) { + super(PacketOpcodes.GetShopRsp); + + GetShopRsp proto = GetShopRsp.newBuilder() + .setShop(Shop.newBuilder().setShopType(shopType)) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java new file mode 100644 index 000000000..38b44b5b6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetShopmallDataRsp.java @@ -0,0 +1,16 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetShopmallDataRspOuterClass.GetShopmallDataRsp; + +public class PacketGetShopmallDataRsp extends GenshinPacket { + + public PacketGetShopmallDataRsp() { + super(PacketOpcodes.GetShopmallDataRsp); + + GetShopmallDataRsp proto = GetShopmallDataRsp.newBuilder().build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java new file mode 100644 index 000000000..1b06c2cfe --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketGetWorldMpInfoRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.World; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp; + +public class PacketGetWorldMpInfoRsp extends GenshinPacket { + + public PacketGetWorldMpInfoRsp(World world) { + super(PacketOpcodes.GetWorldMpInfoRsp); + + GetWorldMpInfoRsp proto = GetWorldMpInfoRsp.newBuilder() + .setIsInMpMode(world.isMultiplayer()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java new file mode 100644 index 000000000..9ce59137b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketH5ActivityIdsNotify.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify; + +public class PacketH5ActivityIdsNotify extends GenshinPacket { + + public PacketH5ActivityIdsNotify() { + super(PacketOpcodes.H5ActivityIdsNotify); + + H5ActivityIdsNotify proto = H5ActivityIdsNotify.newBuilder() + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java new file mode 100644 index 000000000..b291074d8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketHostPlayerNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.World; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.HostPlayerNotifyOuterClass.HostPlayerNotify; + +public class PacketHostPlayerNotify extends GenshinPacket { + + public PacketHostPlayerNotify(World world) { + super(PacketOpcodes.HostPlayerNotify); + + HostPlayerNotify proto = HostPlayerNotify.newBuilder() + .setHostUid(world.getHost().getId()) + .setHostPeerId(world.getHost().getPeerId()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java new file mode 100644 index 000000000..598b9a0f6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java @@ -0,0 +1,36 @@ +package emu.grasscutter.server.packet.send; + +import java.util.List; + +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.game.props.ActionReason; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ItemAddHintNotifyOuterClass.ItemAddHintNotify; + +public class PacketItemAddHintNotify extends GenshinPacket { + + public PacketItemAddHintNotify(GenshinItem item, ActionReason reason) { + super(PacketOpcodes.ItemAddHintNotify); + + ItemAddHintNotify proto = ItemAddHintNotify.newBuilder() + .addItemList(item.toItemHintProto()) + .setReason(reason.getValue()) + .build(); + + this.setData(proto); + } + + public PacketItemAddHintNotify(List items, ActionReason reason) { + super(PacketOpcodes.ItemAddHintNotify); + + ItemAddHintNotify.Builder proto = ItemAddHintNotify.newBuilder() + .setReason(reason.getValue()); + + for (GenshinItem item : items) { + proto.addItemList(item.toItemHintProto()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java new file mode 100644 index 000000000..1f26717a3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketLifeStateChangeNotify.java @@ -0,0 +1,32 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.game.props.LifeState; +import emu.grasscutter.net.packet.GenshinPacket; +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) { + super(PacketOpcodes.LifeStateChangeNotify); + + LifeStateChangeNotify proto = LifeStateChangeNotify.newBuilder() + .setEntityId(target.getId()) + .setLifeState(lifeState.getValue()) + .setSourceEntityId(attacker.getId()) + .build(); + + this.setData(proto); + } + public PacketLifeStateChangeNotify(int attackerId, GenshinEntity target, LifeState lifeState) { + super(PacketOpcodes.LifeStateChangeNotify); + + LifeStateChangeNotify proto = LifeStateChangeNotify.newBuilder() + .setEntityId(target.getId()) + .setLifeState(lifeState.getValue()) + .setSourceEntityId(attackerId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java new file mode 100644 index 000000000..c0b5fd38f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketOpenStateUpdateNotify.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.props.OpenState; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify; + +public class PacketOpenStateUpdateNotify extends GenshinPacket { + + public PacketOpenStateUpdateNotify() { + super(PacketOpcodes.OpenStateUpdateNotify); + + OpenStateUpdateNotify.Builder proto = OpenStateUpdateNotify.newBuilder(); + + for (OpenState type : OpenState.values()) { + if (type.getValue() > 0) { + proto.putOpenStateMap(type.getValue(), 1); + } + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java new file mode 100644 index 000000000..029b0fc7e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPathfindingEnterSceneRsp.java @@ -0,0 +1,13 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; + +public class PacketPathfindingEnterSceneRsp extends GenshinPacket { + + public PacketPathfindingEnterSceneRsp(int clientSequence) { + super(PacketOpcodes.PathfindingEnterSceneRsp); + + this.buildHeader(clientSequence); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java new file mode 100644 index 000000000..47151bf06 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPingRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PingRspOuterClass.PingRsp; + +public class PacketPingRsp extends GenshinPacket { + + public PacketPingRsp(int clientSeq, int time) { + super(PacketOpcodes.PingRsp, clientSeq); + + PingRsp p = PingRsp.newBuilder() + .setClientTime(time) + .build(); + + this.setData(p.toByteArray()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java new file mode 100644 index 000000000..7d064aa9c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpNotify.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpNotifyOuterClass.PlayerApplyEnterMpNotify; + +public class PacketPlayerApplyEnterMpNotify extends GenshinPacket { + + public PacketPlayerApplyEnterMpNotify(GenshinPlayer srcPlayer) { + super(PacketOpcodes.PlayerApplyEnterMpNotify); + + PlayerApplyEnterMpNotify proto = PlayerApplyEnterMpNotify.newBuilder() + .setSrcPlayerInfo(srcPlayer.getOnlinePlayerInfo()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java new file mode 100644 index 000000000..2e94cc4d0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultNotify.java @@ -0,0 +1,36 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpReasonOuterClass.PlayerApplyEnterMpReason; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultNotifyOuterClass.PlayerApplyEnterMpResultNotify; + +public class PacketPlayerApplyEnterMpResultNotify extends GenshinPacket { + + public PacketPlayerApplyEnterMpResultNotify(GenshinPlayer target, boolean isAgreed, PlayerApplyEnterMpReason reason) { + super(PacketOpcodes.PlayerApplyEnterMpResultNotify); + + PlayerApplyEnterMpResultNotify proto = PlayerApplyEnterMpResultNotify.newBuilder() + .setTargetUid(target.getId()) + .setTargetNickname(target.getNickname()) + .setIsAgreed(isAgreed) + .setReason(reason) + .build(); + + this.setData(proto); + } + + public PacketPlayerApplyEnterMpResultNotify(int targetId, String targetName, boolean isAgreed, PlayerApplyEnterMpReason reason) { + super(PacketOpcodes.PlayerApplyEnterMpResultNotify); + + PlayerApplyEnterMpResultNotify proto = PlayerApplyEnterMpResultNotify.newBuilder() + .setTargetUid(targetId) + .setTargetNickname(targetName) + .setIsAgreed(isAgreed) + .setReason(reason) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java new file mode 100644 index 000000000..7fa4baa55 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpResultRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpResultRspOuterClass.PlayerApplyEnterMpResultRsp; + +public class PacketPlayerApplyEnterMpResultRsp extends GenshinPacket { + + public PacketPlayerApplyEnterMpResultRsp(int applyUid, boolean isAgreed) { + super(PacketOpcodes.PlayerApplyEnterMpResultRsp); + + PlayerApplyEnterMpResultRsp proto = PlayerApplyEnterMpResultRsp.newBuilder() + .setApplyUid(applyUid) + .setIsAgreed(isAgreed) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java new file mode 100644 index 000000000..71174371d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerApplyEnterMpRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerApplyEnterMpRspOuterClass.PlayerApplyEnterMpRsp; + +public class PacketPlayerApplyEnterMpRsp extends GenshinPacket { + + public PacketPlayerApplyEnterMpRsp(int targetUid) { + super(PacketOpcodes.PlayerApplyEnterMpRsp); + + PlayerApplyEnterMpRsp proto = PlayerApplyEnterMpRsp.newBuilder() + .setTargetUid(targetUid) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java new file mode 100644 index 000000000..482a00ae2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatNotify.java @@ -0,0 +1,62 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketPlayerChatNotify(GenshinPlayer sender, int channelId, String message) { + super(PacketOpcodes.PlayerChatNotify); + + ChatInfo info = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(sender.getId()) + .setText(message) + .build(); + + PlayerChatNotify proto = PlayerChatNotify.newBuilder() + .setChannelId(channelId) + .setChatInfo(info) + .build(); + + this.setData(proto); + } + + public PacketPlayerChatNotify(GenshinPlayer sender, int channelId, int emote) { + super(PacketOpcodes.PlayerChatNotify); + + ChatInfo info = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(sender.getId()) + .setIcon(emote) + .build(); + + PlayerChatNotify proto = PlayerChatNotify.newBuilder() + .setChannelId(channelId) + .setChatInfo(info) + .build(); + + this.setData(proto); + } + + public PacketPlayerChatNotify(GenshinPlayer sender, int channelId, SystemHint systemHint) { + super(PacketOpcodes.PlayerChatNotify); + + ChatInfo info = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(sender.getId()) + .setSystemHint(systemHint) + .build(); + + PlayerChatNotify proto = PlayerChatNotify.newBuilder() + .setChannelId(channelId) + .setChatInfo(info) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java new file mode 100644 index 000000000..83b51a2a2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerChatRsp.java @@ -0,0 +1,16 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerChatRspOuterClass.PlayerChatRsp; + +public class PacketPlayerChatRsp extends GenshinPacket { + + public PacketPlayerChatRsp() { + super(PacketOpcodes.PlayerChatRsp); + + PlayerChatRsp proto = PlayerChatRsp.newBuilder().build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java new file mode 100644 index 000000000..51b043ab3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerDataNotify.java @@ -0,0 +1,26 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketPlayerDataNotify(GenshinPlayer player) { + super(PacketOpcodes.PlayerDataNotify, 2); + + PlayerDataNotify.Builder p = PlayerDataNotify.newBuilder() + .setNickName(player.getNickname()) + .setClientTime(System.currentTimeMillis()) + .setIsFirstLoginToday(true) + .setRegionId(player.getRegionId()); + + player.getProperties().forEach((key, value) -> { + p.putPropMap(key, PropValue.newBuilder().setType(key).setIval(value).setVal(value).build()); + }); + + this.setData(p.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java new file mode 100644 index 000000000..e47021a05 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneInfoNotify.java @@ -0,0 +1,56 @@ +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.net.packet.PacketOpcodes; +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 PacketPlayerEnterSceneInfoNotify(GenshinPlayer player) { + super(PacketOpcodes.PlayerEnterSceneInfoNotify); + + AbilitySyncStateInfo empty = AbilitySyncStateInfo.newBuilder().build(); + + PlayerEnterSceneInfoNotify.Builder proto = PlayerEnterSceneInfoNotify.newBuilder() + .setCurAvatarEntityId(player.getTeamManager().getCurrentAvatarEntity().getId()) + .setEnterSceneToken(player.getEnterSceneToken()); + + proto.setTeamEnterInfo( + TeamEnterSceneInfo.newBuilder() + .setTeamEntityId(player.getTeamManager().getEntityId()) // 150995833 + .setTeamAbilityInfo(empty) + .setUnk(empty) + ); + proto.setMpLevelEntityInfo( + MPLevelEntityInfo.newBuilder() + .setEntityId(player.getWorld().getLevelEntityId()) // 184550274 + .setAuthorityPeerId(player.getWorld().getHostPeerId()) + .setAbilityInfo(empty) + ); + + for (EntityAvatar avatarEntity : player.getTeamManager().getActiveTeam()) { + GenshinItem weapon = avatarEntity.getAvatar().getWeapon(); + long weaponGuid = weapon != null ? weapon.getGuid() : 0; + + AvatarEnterSceneInfo avatarInfo = AvatarEnterSceneInfo.newBuilder() + .setAvatarGuid(avatarEntity.getAvatar().getGuid()) + .setAvatarEntityId(avatarEntity.getId()) + .setWeaponGuid(weaponGuid) + .setWeaponEntityId(avatarEntity.getWeaponEntityId()) + .setAvatarAbilityInfo(empty) + .setWeaponAbilityInfo(empty) + .build(); + + proto.addAvatarEnterInfo(avatarInfo); + } + + this.setData(proto.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java new file mode 100644 index 000000000..a40663b14 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerEnterSceneNotify.java @@ -0,0 +1,74 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.GenshinPlayer.SceneLoadState; +import emu.grasscutter.game.props.EnterReason; +import emu.grasscutter.net.packet.GenshinPacket; +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 { + + // Login + public PacketPlayerEnterSceneNotify(GenshinPlayer player) { + super(PacketOpcodes.PlayerEnterSceneNotify); + + player.setSceneLoadState(SceneLoadState.LOADING); + player.setEnterSceneToken(Utils.randomRange(1000, 99999)); + + PlayerEnterSceneNotify proto = PlayerEnterSceneNotify.newBuilder() + .setSceneId(player.getSceneId()) + .setPos(player.getPos().toProto()) + .setSceneBeginTime(System.currentTimeMillis()) + .setType(EnterType.EnterSelf) + .setTargetUid(player.getId()) + .setEnterSceneToken(player.getEnterSceneToken()) + .setWorldLevel(player.getWorldLevel()) + .setEnterReason(EnterReason.Login.getValue()) + .setIsFirstLoginEnterScene(player.isFirstLoginEnterScene()) + .addSceneTagIdList(102) + .addSceneTagIdList(107) + .addSceneTagIdList(113) + .addSceneTagIdList(117) + .setUnk1(1) + .setUnk2("3-" + player.getId() + "-" + (int) (System.currentTimeMillis() / 1000) + "-" + 18402) + .build(); + + this.setData(proto); + } + + public PacketPlayerEnterSceneNotify(GenshinPlayer 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) { + super(PacketOpcodes.PlayerEnterSceneNotify); + + player.setEnterSceneToken(Utils.randomRange(1000, 99999)); + + PlayerEnterSceneNotify proto = PlayerEnterSceneNotify.newBuilder() + .setPrevSceneId(player.getSceneId()) + .setPrevPos(player.getPos().toProto()) + .setSceneId(newScene) + .setPos(newPos.toProto()) + .setSceneBeginTime(System.currentTimeMillis()) + .setType(EnterType.EnterSelf) + .setTargetUid(target.getId()) + .setEnterSceneToken(player.getEnterSceneToken()) + .setWorldLevel(target.getWorld().getWorldLevel()) + .setEnterReason(reason.getValue()) + .addSceneTagIdList(102) + .addSceneTagIdList(107) + .addSceneTagIdList(113) + .addSceneTagIdList(117) + .setUnk1(1) + .setUnk2(newScene + "-" + target.getId() + "-" + (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 new file mode 100644 index 000000000..08502cdf3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGameTimeNotify.java @@ -0,0 +1,21 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerGameTimeNotifyOuterClass.PlayerGameTimeNotify; + +public class PacketPlayerGameTimeNotify extends GenshinPacket { + + public PacketPlayerGameTimeNotify(World world, GenshinPlayer player) { + super(PacketOpcodes.PlayerGameTimeNotify); + + PlayerGameTimeNotify proto = PlayerGameTimeNotify.newBuilder() + .setGameTime(world.getTime()) + .setUid(player.getId()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java new file mode 100644 index 000000000..acc030817 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerGetForceQuitBanInfoRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerGetForceQuitBanInfoRspOuterClass.PlayerGetForceQuitBanInfoRsp; + +public class PacketPlayerGetForceQuitBanInfoRsp extends GenshinPacket { + + public PacketPlayerGetForceQuitBanInfoRsp(int retcode) { + super(PacketOpcodes.PlayerGetForceQuitBanInfoRsp); + + PlayerGetForceQuitBanInfoRsp proto = PlayerGetForceQuitBanInfoRsp.newBuilder() + .setRetcode(retcode) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java new file mode 100644 index 000000000..0d0871ca9 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerLoginRsp.java @@ -0,0 +1,38 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerLoginRspOuterClass.PlayerLoginRsp; +import emu.grasscutter.net.proto.RegionInfoOuterClass.RegionInfo; +import emu.grasscutter.server.game.GameSession; + +public class PacketPlayerLoginRsp extends GenshinPacket { + + public PacketPlayerLoginRsp(GameSession session) { + super(PacketOpcodes.PlayerLoginRsp, 1); + + this.setUseDispatchKey(true); + + RegionInfo info = Grasscutter.getDispatchServer().getCurrRegion().getRegionInfo(); + + PlayerLoginRsp p = PlayerLoginRsp.newBuilder() + .setIsUseAbilityHash(true) // true + .setAbilityHashCode(1844674) // 1844674 + .setGameBiz("hk4e_global") + .setClientDataVersion(info.getClientDataVersion()) + .setClientSilenceDataVersion(info.getClientSilenceDataVersion()) + .setClientMd5(info.getClientDataMd5()) + .setClientSilenceMd5(info.getClientSilenceDataMd5()) + .setResVersionConfig(info.getConfig()) + .setClientVersionSuffix(info.getClientVersionSuffix()) + .setClientSilenceVersionSuffix(info.getClientSilenceVersionSuffix()) + .setIsScOpen(false) + //.setScInfo(ByteString.copyFrom(new byte[] {})) + .setRegisterCps("mihoyo") + .setCountryCode("US") + .build(); + + this.setData(p.toByteArray()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java new file mode 100644 index 000000000..2e2812eb8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerPropNotify.java @@ -0,0 +1,23 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerPropNotifyOuterClass.PlayerPropNotify; +import emu.grasscutter.utils.ProtoHelper; + +public class PacketPlayerPropNotify extends GenshinPacket { + + public PacketPlayerPropNotify(GenshinPlayer player, PlayerProperty prop) { + super(PacketOpcodes.PlayerPropNotify); + + this.buildHeader(0); + + PlayerPropNotify proto = PlayerPropNotify.newBuilder() + .putPropMap(prop.getId(), ProtoHelper.newPropValue(prop, player.getProperty(prop))) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java new file mode 100644 index 000000000..e199381f8 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerSetPauseRsp.java @@ -0,0 +1,13 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; + +public class PacketPlayerSetPauseRsp extends GenshinPacket { + + public PacketPlayerSetPauseRsp(int clientSequence) { + super(PacketOpcodes.PlayerSetPauseRsp); + + this.buildHeader(clientSequence); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java new file mode 100644 index 000000000..45a13325b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerStoreNotify.java @@ -0,0 +1,30 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketPlayerStoreNotify(GenshinPlayer player) { + super(PacketOpcodes.PlayerStoreNotify); + + this.buildHeader(2); + + PlayerStoreNotify.Builder p = PlayerStoreNotify.newBuilder() + .setStoreType(StoreType.StorePack) + .setWeightLimit(GenshinConstants.LIMIT_ALL); + + for (GenshinItem item : player.getInventory()) { + Item itemProto = item.toProto(); + p.addItemList(itemProto); + } + + this.setData(p.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java new file mode 100644 index 000000000..ad9a869cf --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerTimeNotify.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerTimeNotifyOuterClass.PlayerTimeNotify; + +public class PacketPlayerTimeNotify extends GenshinPacket { + + public PacketPlayerTimeNotify(GenshinPlayer player) { + super(PacketOpcodes.PlayerTimeNotify); + + PlayerTimeNotify proto = PlayerTimeNotify.newBuilder() + .setIsPaused(player.isPaused()) + .setPlayerTime(player.getClientTime()) + .setServerTime(System.currentTimeMillis()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java new file mode 100644 index 000000000..be8dede98 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPostEnterSceneRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PostEnterSceneRspOuterClass.PostEnterSceneRsp; + +public class PacketPostEnterSceneRsp extends GenshinPacket { + + public PacketPostEnterSceneRsp(GenshinPlayer player) { + super(PacketOpcodes.PostEnterSceneRsp); + + PostEnterSceneRsp p = PostEnterSceneRsp.newBuilder() + .setEnterSceneToken(player.getEnterSceneToken()) + .build(); + + this.setData(p); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java new file mode 100644 index 000000000..60e08827b --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPrivateChatNotify.java @@ -0,0 +1,42 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketPrivateChatNotify(int senderId, int recvId, String message) { + super(PacketOpcodes.PrivateChatNotify); + + ChatInfo info = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(senderId) + .setToUid(recvId) + .setText(message) + .build(); + + PrivateChatNotify proto = PrivateChatNotify.newBuilder() + .setChatInfo(info) + .build(); + + this.setData(proto); + } + + public PacketPrivateChatNotify(int senderId, int recvId, int emote) { + super(PacketOpcodes.PrivateChatNotify); + + ChatInfo info = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(senderId) + .setToUid(recvId) + .setIcon(emote) + .build(); + + PrivateChatNotify proto = PrivateChatNotify.newBuilder() + .setChatInfo(info) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java new file mode 100644 index 000000000..b089e5c8e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillChangeNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ProudSkillChangeNotifyOuterClass.ProudSkillChangeNotify; + +public class PacketProudSkillChangeNotify extends GenshinPacket { + + public PacketProudSkillChangeNotify(GenshinAvatar avatar) { + super(PacketOpcodes.ProudSkillChangeNotify); + + ProudSkillChangeNotify proto = ProudSkillChangeNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setEntityId(avatar.getEntityId()) + .setSkillDepotId(avatar.getSkillDepotId()) + .addAllProudSkillList(avatar.getProudSkillList()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java new file mode 100644 index 000000000..127a0ec4f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketProudSkillExtraLevelNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ProudSkillExtraLevelNotifyOuterClass.ProudSkillExtraLevelNotify; + +public class PacketProudSkillExtraLevelNotify extends GenshinPacket { + + public PacketProudSkillExtraLevelNotify(GenshinAvatar avatar, int talentIndex) { + super(PacketOpcodes.ProudSkillExtraLevelNotify); + + ProudSkillExtraLevelNotify proto = ProudSkillExtraLevelNotify.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setTalentType(3) // Talent type = 3 + .setTalentIndex(talentIndex) + .setExtraLevel(3) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java new file mode 100644 index 000000000..6d5e829c3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPullPrivateChatRsp.java @@ -0,0 +1,16 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PullPrivateChatRspOuterClass.PullPrivateChatRsp; + +public class PacketPullPrivateChatRsp extends GenshinPacket { + + public PacketPullPrivateChatRsp() { + super(PacketOpcodes.PullPrivateChatRsp); + + PullPrivateChatRsp proto = PullPrivateChatRsp.newBuilder().build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java new file mode 100644 index 000000000..34ca8b3b7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPullRecentChatRsp.java @@ -0,0 +1,44 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.Config.ServerOptions; +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +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) { + super(PacketOpcodes.PullRecentChatRsp); + + ServerOptions serverOptions = Grasscutter.getConfig().getServerOptions(); + PullRecentChatRsp.Builder proto = PullRecentChatRsp.newBuilder(); + + if (serverOptions.WelcomeEmotes != null && serverOptions.WelcomeEmotes.length > 0) { + ChatInfo welcomeEmote = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setToUid(player.getId()) + .setIcon(serverOptions.WelcomeEmotes[Utils.randomRange(0, serverOptions.WelcomeEmotes.length - 1)]) + .build(); + + proto.addChatInfo(welcomeEmote); + } + + if (serverOptions.WelcomeMotd != null && serverOptions.WelcomeMotd.length() > 0) { + ChatInfo welcomeMotd = ChatInfo.newBuilder() + .setTime((int) (System.currentTimeMillis() / 1000)) + .setUid(GenshinConstants.SERVER_CONSOLE_UID) + .setToUid(player.getId()) + .setText(Grasscutter.getConfig().getServerOptions().WelcomeMotd) + .build(); + + proto.addChatInfo(welcomeMotd); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java new file mode 100644 index 000000000..34c9c3d85 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketReliquaryUpgradeRsp.java @@ -0,0 +1,26 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp; + +public class PacketReliquaryUpgradeRsp extends GenshinPacket { + + public PacketReliquaryUpgradeRsp(GenshinItem relic, int rate, int oldLevel, List oldAppendPropIdList) { + super(PacketOpcodes.ReliquaryUpgradeRsp); + + ReliquaryUpgradeRsp proto = ReliquaryUpgradeRsp.newBuilder() + .setTargetReliquaryGuid(relic.getGuid()) + .setOldLevel(oldLevel) + .setCurLevel(relic.getLevel()) + .setPowerUpRate(rate) + .addAllOldAppendPropList(oldAppendPropIdList) + .addAllCurAppendPropList(relic.getAppendPropIdList()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java new file mode 100644 index 000000000..0cf622977 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneAreaWeatherNotify.java @@ -0,0 +1,21 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneAreaWeatherNotifyOuterClass.SceneAreaWeatherNotify; + +public class PacketSceneAreaWeatherNotify extends GenshinPacket { + + public PacketSceneAreaWeatherNotify(World world, GenshinPlayer player) { + super(PacketOpcodes.SceneAreaWeatherNotify); + + SceneAreaWeatherNotify proto = SceneAreaWeatherNotify.newBuilder() + .setWeatherAreaId(1) + .setClimateType(world.getClimate().getValue()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java new file mode 100644 index 000000000..3b8a39025 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityAppearNotify.java @@ -0,0 +1,49 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneEntityAppearNotifyOuterClass.SceneEntityAppearNotify; +import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType; + +public class PacketSceneEntityAppearNotify extends GenshinPacket { + + public PacketSceneEntityAppearNotify(GenshinEntity entity) { + super(PacketOpcodes.SceneEntityAppearNotify, true); + + SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() + .setAppearType(VisionType.VisionBorn) + .addEntityList(entity.toProto()); + + this.setData(proto.build()); + } + + public PacketSceneEntityAppearNotify(GenshinEntity entity, VisionType vision, int param) { + super(PacketOpcodes.SceneEntityAppearNotify, true); + + SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() + .setAppearType(vision) + .setParam(param) + .addEntityList(entity.toProto()); + + this.setData(proto.build()); + } + + public PacketSceneEntityAppearNotify(GenshinPlayer player) { + this(player.getTeamManager().getCurrentAvatarEntity()); + } + + public PacketSceneEntityAppearNotify(Collection entities, VisionType visionType) { + super(PacketOpcodes.SceneEntityAppearNotify, true); + + SceneEntityAppearNotify.Builder proto = SceneEntityAppearNotify.newBuilder() + .setAppearType(visionType); + + entities.forEach(e -> proto.addEntityList(e.toProto())); + + this.setData(proto.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java new file mode 100644 index 000000000..93d91063a --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityDisappearNotify.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.entity.GenshinEntity; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketSceneEntityDisappearNotify(GenshinEntity entity, VisionType disappearType) { + super(PacketOpcodes.SceneEntityDisappearNotify); + + SceneEntityDisappearNotify proto = SceneEntityDisappearNotify.newBuilder() + .setDisappearType(disappearType) + .addEntityList(entity.getId()) + .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 new file mode 100644 index 000000000..c3230f4d4 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneEntityMoveNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketSceneEntityMoveNotify(EntityMoveInfo moveInfo) { + super(PacketOpcodes.SceneEntityMoveNotify, true); + + SceneEntityMoveNotify proto = SceneEntityMoveNotify.newBuilder() + .setMotionInfo(moveInfo.getMotionInfo()) + .setEntityId(moveInfo.getEntityId()) + .setSceneTime(moveInfo.getSceneTime()) + .setReliableSeq(moveInfo.getReliableSeq()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java new file mode 100644 index 000000000..78661f014 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneInitFinishRsp.java @@ -0,0 +1,17 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneInitFinishRspOuterClass.SceneInitFinishRsp; + +public class PacketSceneInitFinishRsp extends GenshinPacket { + + public PacketSceneInitFinishRsp(GenshinPlayer player) { + super(PacketOpcodes.SceneInitFinishRsp, 11); + + SceneInitFinishRsp p = SceneInitFinishRsp.newBuilder().setEnterSceneToken(player.getEnterSceneToken()).build(); + + this.setData(p.toByteArray()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java new file mode 100644 index 000000000..7f0a6a12e --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneKickPlayerRsp.java @@ -0,0 +1,28 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneKickPlayerRspOuterClass.SceneKickPlayerRsp; + +public class PacketSceneKickPlayerRsp extends GenshinPacket { + + public PacketSceneKickPlayerRsp(int targetUid) { + super(PacketOpcodes.SceneKickPlayerRsp); + + SceneKickPlayerRsp proto = SceneKickPlayerRsp.newBuilder() + .setTargetUid(targetUid) + .build(); + + this.setData(proto); + } + + public PacketSceneKickPlayerRsp() { + super(PacketOpcodes.SceneKickPlayerRsp); + + SceneKickPlayerRsp proto = SceneKickPlayerRsp.newBuilder() + .setRetcode(1) + .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 new file mode 100644 index 000000000..8e6830167 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerInfoNotify.java @@ -0,0 +1,33 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ScenePlayerInfoNotifyOuterClass.ScenePlayerInfoNotify; +import emu.grasscutter.net.proto.ScenePlayerInfoOuterClass.ScenePlayerInfo; + +public class PacketScenePlayerInfoNotify extends GenshinPacket { + + public PacketScenePlayerInfoNotify(World world) { + super(PacketOpcodes.ScenePlayerInfoNotify); + + ScenePlayerInfoNotify.Builder proto = ScenePlayerInfoNotify.newBuilder(); + + for (int i = 0; i < world.getPlayers().size(); i++) { + GenshinPlayer p = world.getPlayers().get(i); + + ScenePlayerInfo pInfo = ScenePlayerInfo.newBuilder() + .setUid(p.getId()) + .setPeerId(p.getPeerId()) + .setName(p.getNickname()) + .setSceneId(world.getSceneId()) + .setOnlinePlayerInfo(p.getOnlinePlayerInfo()) + .build(); + + proto.addPlayerInfoList(pInfo); + } + + this.setData(proto.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java new file mode 100644 index 000000000..f6fa9b8f0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketScenePlayerLocationNotify.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ScenePlayerLocationNotifyOuterClass.ScenePlayerLocationNotify; + +public class PacketScenePlayerLocationNotify extends GenshinPacket { + + public PacketScenePlayerLocationNotify(GenshinPlayer player) { + super(PacketOpcodes.ScenePlayerLocationNotify); + + ScenePlayerLocationNotify.Builder proto = ScenePlayerLocationNotify.newBuilder() + .setSceneId(player.getSceneId()); + + for (GenshinPlayer p : player.getWorld().getPlayers()) { + proto.addPlayerLocList(p.getPlayerLocationInfo()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java new file mode 100644 index 000000000..1dac583ce --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTeamUpdateNotify.java @@ -0,0 +1,46 @@ +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.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 PacketSceneTeamUpdateNotify(GenshinPlayer player) { + super(PacketOpcodes.SceneTeamUpdateNotify); + + SceneTeamUpdateNotify.Builder proto = SceneTeamUpdateNotify.newBuilder() + .setIsInMp(player.getWorld().isMultiplayer()); + + for (GenshinPlayer p : player.getWorld().getPlayers()) { + for (EntityAvatar entityAvatar : p.getTeamManager().getActiveTeam()) { + SceneTeamAvatar.Builder avatarProto = SceneTeamAvatar.newBuilder() + .setPlayerId(p.getId()) + .setAvatarGuid(entityAvatar.getAvatar().getGuid()) + .setSceneId(p.getSceneId()) + .setEntityId(entityAvatar.getId()) + .setSceneEntityInfo(entityAvatar.toProto()) + .setWeaponGuid(entityAvatar.getAvatar().getWeapon().getGuid()) + .setWeaponEntityId(entityAvatar.getWeaponEntityId()) + .setIsPlayerCurAvatar(p.getTeamManager().getCurrentAvatarEntity() == entityAvatar) + .setIsOnScene(p.getTeamManager().getCurrentAvatarEntity() == entityAvatar) + .setAvatarAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setWeaponAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .setAbilityControlBlock(entityAvatar.getAbilityControlBlock()); + + if (player.getWorld().isMultiplayer()) { + avatarProto.setAvatarInfo(entityAvatar.getAvatar().toProto()); + avatarProto.setSceneAvatarInfo(entityAvatar.getSceneAvatarInfo()); // why mihoyo... + } + + proto.addSceneTeamAvatarList(avatarProto); + } + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java new file mode 100644 index 000000000..5af88cf26 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSceneTimeNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SceneTimeNotifyOuterClass.SceneTimeNotify; + +public class PacketSceneTimeNotify extends GenshinPacket { + + public PacketSceneTimeNotify(GenshinPlayer player) { + super(PacketOpcodes.SceneTimeNotify); + + SceneTimeNotify proto = SceneTimeNotify.newBuilder() + .setSceneId(player.getSceneId()) + .setSceneTime(0) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java new file mode 100644 index 000000000..a58b634f1 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketServerTimeNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ServerTimeNotifyOuterClass.ServerTimeNotify; + +public class PacketServerTimeNotify extends GenshinPacket { + + public PacketServerTimeNotify() { + super(PacketOpcodes.ServerTimeNotify); + + ServerTimeNotify proto = ServerTimeNotify.newBuilder() + .setServerTime(System.currentTimeMillis()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java new file mode 100644 index 000000000..7614c449d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetEquipLockStateRsp.java @@ -0,0 +1,22 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetEquipLockStateRspOuterClass.SetEquipLockStateRsp; + +public class PacketSetEquipLockStateRsp extends GenshinPacket { + + public PacketSetEquipLockStateRsp(GenshinItem equip) { + super(PacketOpcodes.SetEquipLockStateRsp); + + this.buildHeader(0); + + SetEquipLockStateRsp proto = SetEquipLockStateRsp.newBuilder() + .setTargetEquipGuid(equip.getGuid()) + .setIsLocked(equip.isLocked()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java new file mode 100644 index 000000000..b3c77c33f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetNameCardRsp.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetNameCardRspOuterClass.SetNameCardRsp; + +public class PacketSetNameCardRsp extends GenshinPacket { + + public PacketSetNameCardRsp(int nameCardId) { + super(PacketOpcodes.SetNameCardRsp); + + SetNameCardRsp proto = SetNameCardRsp.newBuilder() + .setNameCardId(nameCardId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java new file mode 100644 index 000000000..148c536f0 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerHeadImageRsp.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketSetPlayerHeadImageRsp(GenshinPlayer player) { + super(PacketOpcodes.SetPlayerHeadImageRsp); + + SetPlayerHeadImageRsp proto = SetPlayerHeadImageRsp.newBuilder() + .setAvatar(HeadImage.newBuilder().setAvatarId(player.getHeadImage())) + .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 new file mode 100644 index 000000000..a40b5115f --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerNameRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerNameRspOuterClass.SetPlayerNameRsp; + +public class PacketSetPlayerNameRsp extends GenshinPacket { + + public PacketSetPlayerNameRsp(GenshinPlayer player) { + super(PacketOpcodes.SetPlayerNameRsp); + + SetPlayerNameRsp proto = SetPlayerNameRsp.newBuilder() + .setNickName(player.getNickname()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java new file mode 100644 index 000000000..98ee97b68 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetPlayerSignatureRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetPlayerSignatureRspOuterClass.SetPlayerSignatureRsp; + +public class PacketSetPlayerSignatureRsp extends GenshinPacket { + + public PacketSetPlayerSignatureRsp(GenshinPlayer player) { + super(PacketOpcodes.SetPlayerSignatureRsp); + + SetPlayerSignatureRsp proto = SetPlayerSignatureRsp.newBuilder() + .setSignature(player.getSignature()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java new file mode 100644 index 000000000..55e530196 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSetUpAvatarTeamRsp.java @@ -0,0 +1,24 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SetUpAvatarTeamRspOuterClass.SetUpAvatarTeamRsp; + +public class PacketSetUpAvatarTeamRsp extends GenshinPacket { + + public PacketSetUpAvatarTeamRsp(GenshinPlayer player, int teamId, TeamInfo teamInfo) { + super(PacketOpcodes.SetUpAvatarTeamRsp); + + SetUpAvatarTeamRsp.Builder proto = SetUpAvatarTeamRsp.newBuilder() + .setTeamId(teamId) + .setCurAvatarGuid(player.getTeamManager().getCurrentCharacterGuid()); + + for (int avatarId : teamInfo.getAvatars()) { + proto.addAvatarTeamGuidList(player.getAvatars().getAvatarById(avatarId).getGuid()); + } + + 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 new file mode 100644 index 000000000..70f86b782 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemChangeNotify.java @@ -0,0 +1,37 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.StoreItemChangeNotifyOuterClass.StoreItemChangeNotify; +import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; + +public class PacketStoreItemChangeNotify extends GenshinPacket { + + private PacketStoreItemChangeNotify() { + super(PacketOpcodes.StoreItemChangeNotify); + } + + public PacketStoreItemChangeNotify(GenshinItem item) { + this(); + + StoreItemChangeNotify.Builder proto = StoreItemChangeNotify.newBuilder() + .setStoreType(StoreType.StorePack) + .addItemList(item.toProto()); + + this.setData(proto); + } + + public PacketStoreItemChangeNotify(Collection items) { + this(); + + StoreItemChangeNotify.Builder proto = StoreItemChangeNotify.newBuilder() + .setStoreType(StoreType.StorePack); + + items.stream().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 new file mode 100644 index 000000000..0bd585720 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreItemDelNotify.java @@ -0,0 +1,37 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.StoreItemDelNotifyOuterClass.StoreItemDelNotify; +import emu.grasscutter.net.proto.StoreTypeOuterClass.StoreType; + +public class PacketStoreItemDelNotify extends GenshinPacket { + + private PacketStoreItemDelNotify() { + super(PacketOpcodes.StoreItemDelNotify); + } + + public PacketStoreItemDelNotify(GenshinItem item) { + this(); + + StoreItemDelNotify.Builder proto = StoreItemDelNotify.newBuilder() + .setStoreType(StoreType.StorePack) + .addGuidList(item.getGuid()); + + this.setData(proto); + } + + public PacketStoreItemDelNotify(Collection items) { + this(); + + StoreItemDelNotify.Builder proto = StoreItemDelNotify.newBuilder() + .setStoreType(StoreType.StorePack); + + items.stream().forEach(item -> proto.addGuidList(item.getGuid())); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java new file mode 100644 index 000000000..ae4418cb6 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketStoreWeightLimitNotify.java @@ -0,0 +1,25 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketStoreWeightLimitNotify() { + super(PacketOpcodes.StoreWeightLimitNotify); + + StoreWeightLimitNotify p = StoreWeightLimitNotify.newBuilder() + .setStoreType(StoreType.StorePack) + .setWeightLimit(GenshinConstants.LIMIT_ALL) + .setWeaponCountLimit(GenshinConstants.LIMIT_WEAPON) + .setReliquaryCountLimit(GenshinConstants.LIMIT_RELIC) + .setMaterialCountLimit(GenshinConstants.LIMIT_MATERIAL) + .setFurnitureCountLimit(GenshinConstants.LIMIT_FURNITURE) + .build(); + + this.setData(p); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java new file mode 100644 index 000000000..2983adbcb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncScenePlayTeamEntityNotify.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.SyncScenePlayTeamEntityNotifyOuterClass.SyncScenePlayTeamEntityNotify; + +public class PacketSyncScenePlayTeamEntityNotify extends GenshinPacket { + + public PacketSyncScenePlayTeamEntityNotify(GenshinPlayer player) { + super(PacketOpcodes.SyncScenePlayTeamEntityNotify); + + SyncScenePlayTeamEntityNotify proto = SyncScenePlayTeamEntityNotify.newBuilder() + .setSceneId(player.getSceneId()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java new file mode 100644 index 000000000..2c0bae908 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketSyncTeamEntityNotify.java @@ -0,0 +1,38 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.GenshinPlayer; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketSyncTeamEntityNotify(GenshinPlayer player) { + super(PacketOpcodes.SyncTeamEntityNotify); + + SyncTeamEntityNotify.Builder proto = SyncTeamEntityNotify.newBuilder() + .setSceneId(player.getSceneId()); + + if (player.getWorld().isMultiplayer()) { + for (GenshinPlayer p : player.getWorld().getPlayers()) { + // Skip if same player + if (player == p) { + continue; + } + + // Set info + TeamEntityInfo info = TeamEntityInfo.newBuilder() + .setTeamEntityId(p.getTeamManager().getEntityId()) + .setAuthorityPeerId(p.getPeerId()) + .setTeamAbilityInfo(AbilitySyncStateInfo.newBuilder()) + .build(); + + proto.addTeamEntityInfoList(info); + } + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java new file mode 100644 index 000000000..7250491e2 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTakeoffEquipRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.TakeoffEquipRspOuterClass.TakeoffEquipRsp; + +public class PacketTakeoffEquipRsp extends GenshinPacket { + + public PacketTakeoffEquipRsp(long avatarGuid, int slot) { + super(PacketOpcodes.TakeoffEquipRsp); + + TakeoffEquipRsp proto = TakeoffEquipRsp.newBuilder() + .setAvatarGuid(avatarGuid) + .setSlot(slot) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java new file mode 100644 index 000000000..cb0d75abb --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketTowerAllDataRsp.java @@ -0,0 +1,28 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketTowerAllDataRsp() { + super(PacketOpcodes.TowerAllDataRsp); + + TowerAllDataRsp proto = TowerAllDataRsp.newBuilder() + .setTowerScheduleId(29) + .addTowerFloorRecordList(TowerFloorRecord.newBuilder().setFloorId(1001)) + .setCurLevelRecord(TowerCurLevelRecord.newBuilder().setIsEmpty(true)) + .setNextScheduleChangeTime(Integer.MAX_VALUE) + .putFloorOpenTimeMap(1024, 1630486800) + .putFloorOpenTimeMap(1025, 1630486800) + .putFloorOpenTimeMap(1026, 1630486800) + .putFloorOpenTimeMap(1027, 1630486800) + .setScheduleStartTime(1630486800) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java new file mode 100644 index 000000000..7c87f14e3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.avatar.GenshinAvatar; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp; + +public class PacketUnlockAvatarTalentRsp extends GenshinPacket { + + public PacketUnlockAvatarTalentRsp(GenshinAvatar avatar, int talentId) { + super(PacketOpcodes.UnlockAvatarTalentRsp); + + UnlockAvatarTalentRsp proto = UnlockAvatarTalentRsp.newBuilder() + .setAvatarGuid(avatar.getGuid()) + .setTalentId(talentId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java new file mode 100644 index 000000000..9bbd7d5c3 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockNameCardNotify.java @@ -0,0 +1,18 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UnlockNameCardNotifyOuterClass.UnlockNameCardNotify; + +public class PacketUnlockNameCardNotify extends GenshinPacket { + + public PacketUnlockNameCardNotify(int nameCard) { + super(PacketOpcodes.UnlockNameCardNotify); + + UnlockNameCardNotify proto = UnlockNameCardNotify.newBuilder() + .setNameCardId(nameCard) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java new file mode 100644 index 000000000..0069ee114 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketUseItemRsp.java @@ -0,0 +1,29 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.UseItemRspOuterClass.UseItemRsp; + +public class PacketUseItemRsp extends GenshinPacket { + + public PacketUseItemRsp(long targetGuid, GenshinItem useItem) { + super(PacketOpcodes.UseItemRsp); + + UseItemRsp proto = UseItemRsp.newBuilder() + .setTargetGuid(targetGuid) + .setItemId(useItem.getItemId()) + .setGuid(useItem.getGuid()) + .build(); + + this.setData(proto); + } + + public PacketUseItemRsp() { + super(PacketOpcodes.UseItemRsp); + + UseItemRsp proto = UseItemRsp.newBuilder().setRetcode(1).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 new file mode 100644 index 000000000..6ffba63fa --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponAwakenRsp.java @@ -0,0 +1,29 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WeaponAwakenRspOuterClass.WeaponAwakenRsp; + +public class PacketWeaponAwakenRsp extends GenshinPacket { + + public PacketWeaponAwakenRsp(GenshinAvatar avatar, GenshinItem item, GenshinItem feedWeapon, int oldRefineLevel) { + super(PacketOpcodes.WeaponAwakenRsp); + + WeaponAwakenRsp.Builder proto = WeaponAwakenRsp.newBuilder() + .setTargetWeaponGuid(item.getGuid()) + .setTargetWeaponAwakenLevel(item.getRefinement()); + + for (int affixId : item.getAffixes()) { + proto.putOldAffixLevelMap(affixId, oldRefineLevel); + proto.putCurAffixLevelMap(affixId, item.getRefinement()); + } + + if (avatar != null) { + proto.setAvatarGuid(avatar.getGuid()); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java new file mode 100644 index 000000000..f647bd1ff --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponPromoteRsp.java @@ -0,0 +1,21 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.inventory.GenshinItem; +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WeaponPromoteRspOuterClass.WeaponPromoteRsp; + +public class PacketWeaponPromoteRsp extends GenshinPacket { + + public PacketWeaponPromoteRsp(GenshinItem item, int oldPromoteLevel) { + super(PacketOpcodes.WeaponPromoteRsp); + + WeaponPromoteRsp proto = WeaponPromoteRsp.newBuilder() + .setTargetWeaponGuid(item.getGuid()) + .setCurPromoteLevel(item.getPromoteLevel()) + .setOldPromoteLevel(oldPromoteLevel) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java new file mode 100644 index 000000000..b00accb60 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWeaponUpgradeRsp.java @@ -0,0 +1,25 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam; +import emu.grasscutter.net.proto.WeaponUpgradeRspOuterClass.WeaponUpgradeRsp; + +public class PacketWeaponUpgradeRsp extends GenshinPacket { + + public PacketWeaponUpgradeRsp(GenshinItem item, int oldLevel, List leftoverOres) { + super(PacketOpcodes.WeaponUpgradeRsp); + + WeaponUpgradeRsp proto = WeaponUpgradeRsp.newBuilder() + .setTargetWeaponGuid(item.getGuid()) + .setCurLevel(item.getLevel()) + .setOldLevel(oldLevel) + .addAllItemParamList(leftoverOres) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java new file mode 100644 index 000000000..26e48566c --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWearEquipRsp.java @@ -0,0 +1,19 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +import emu.grasscutter.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WearEquipRspOuterClass.WearEquipRsp; + +public class PacketWearEquipRsp extends GenshinPacket { + + public PacketWearEquipRsp(long avatarGuid, long equipGuid) { + super(PacketOpcodes.WearEquipRsp); + + WearEquipRsp proto = WearEquipRsp.newBuilder() + .setAvatarGuid(avatarGuid) + .setEquipGuid(equipGuid) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java new file mode 100644 index 000000000..9a5aeb88d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldDataNotify.java @@ -0,0 +1,24 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.game.World; +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketWorldDataNotify(World world) { + super(PacketOpcodes.WorldDataNotify); + + int worldLevel = world.getWorldLevel(); + int isMp = world.isMultiplayer() ? 1 : 0; + + WorldDataNotify proto = WorldDataNotify.newBuilder() + .putWorldPropMap(1, PropValue.newBuilder().setType(1).setIval(worldLevel).setVal(worldLevel).build()) + .putWorldPropMap(2, PropValue.newBuilder().setType(2).setIval(isMp).setVal(isMp).build()) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java new file mode 100644 index 000000000..f67ff0d57 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerDieNotify.java @@ -0,0 +1,20 @@ +package emu.grasscutter.server.packet.send; + +import emu.grasscutter.net.packet.GenshinPacket; +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 PacketWorldPlayerDieNotify(PlayerDieType playerDieType, int killerId) { + super(PacketOpcodes.WorldPlayerDieNotify); + + WorldPlayerDieNotify proto = WorldPlayerDieNotify.newBuilder() + .setDieType(playerDieType) + .setMonsterId(killerId) + .build(); + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java new file mode 100644 index 000000000..c14c7e43d --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerInfoNotify.java @@ -0,0 +1,25 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify; + +public class PacketWorldPlayerInfoNotify extends GenshinPacket { + + public PacketWorldPlayerInfoNotify(World world) { + super(PacketOpcodes.WorldPlayerInfoNotify); + + WorldPlayerInfoNotify.Builder proto = WorldPlayerInfoNotify.newBuilder(); + + for (int i = 0; i < world.getPlayers().size(); i++) { + GenshinPlayer p = world.getPlayers().get(i); + + proto.addPlayerInfoList(p.getOnlinePlayerInfo()); + proto.addPlayerUidList(p.getId()); + } + + this.setData(proto.build()); + } +} diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java new file mode 100644 index 000000000..cb546f0e7 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerLocationNotify.java @@ -0,0 +1,22 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.WorldPlayerLocationNotifyOuterClass.WorldPlayerLocationNotify; + +public class PacketWorldPlayerLocationNotify extends GenshinPacket { + + public PacketWorldPlayerLocationNotify(World world) { + super(PacketOpcodes.WorldPlayerLocationNotify); + + WorldPlayerLocationNotify.Builder proto = WorldPlayerLocationNotify.newBuilder(); + + for (GenshinPlayer p : world.getPlayers()) { + proto.addPlayerLocList(p.getPlayerLocationInfo()); + } + + 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 new file mode 100644 index 000000000..20b64e418 --- /dev/null +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketWorldPlayerRTTNotify.java @@ -0,0 +1,27 @@ +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.net.packet.PacketOpcodes; +import emu.grasscutter.net.proto.PlayerRTTInfoOuterClass.PlayerRTTInfo; +import emu.grasscutter.net.proto.WorldPlayerRTTNotifyOuterClass.WorldPlayerRTTNotify; + +public class PacketWorldPlayerRTTNotify extends GenshinPacket { + + public PacketWorldPlayerRTTNotify(World world) { + super(PacketOpcodes.WorldPlayerRTTNotify); + + WorldPlayerRTTNotify.Builder proto = WorldPlayerRTTNotify.newBuilder(); + + for (GenshinPlayer player : world.getPlayers()) { + proto.addPlayerRttList( + PlayerRTTInfo.newBuilder() + .setUid(player.getId()) + .setRtt(10) // TODO - put player ping here + ); + } + + this.setData(proto); + } +} diff --git a/src/main/java/emu/grasscutter/tools/Dumpers.java b/src/main/java/emu/grasscutter/tools/Dumpers.java new file mode 100644 index 000000000..e417009a4 --- /dev/null +++ b/src/main/java/emu/grasscutter/tools/Dumpers.java @@ -0,0 +1,35 @@ +package emu.grasscutter.tools; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import emu.grasscutter.game.props.OpenState; +import emu.grasscutter.net.proto.GetGachaInfoRspOuterClass.GetGachaInfoRsp; +import emu.grasscutter.net.proto.GetShopRspOuterClass.GetShopRsp; +import emu.grasscutter.net.proto.OpenStateUpdateNotifyOuterClass.OpenStateUpdateNotify; +import emu.grasscutter.utils.FileUtils; + +public class Dumpers { + + public static void extractBanner(byte[] data) throws Exception { + GetGachaInfoRsp proto = GetGachaInfoRsp.parseFrom(data); + System.out.println(proto); + } + + public static void extractShop(byte[] data) throws Exception { + GetShopRsp proto = GetShopRsp.parseFrom(data); + System.out.println(proto); + } + + public static void dumpOpenStates(byte[] data) throws Exception { + OpenStateUpdateNotify proto = OpenStateUpdateNotify.parseFrom(data); + + List list = new ArrayList<>(proto.getOpenStateMap().keySet()); + Collections.sort(list); + + for (int key : list) { + System.out.println(OpenState.getTypeByValue(key) + " : " + key); + } + } +} diff --git a/src/main/java/emu/grasscutter/tools/Tools.java b/src/main/java/emu/grasscutter/tools/Tools.java new file mode 100644 index 000000000..fede40866 --- /dev/null +++ b/src/main/java/emu/grasscutter/tools/Tools.java @@ -0,0 +1,77 @@ +package emu.grasscutter.tools; + +import java.io.FileReader; +import java.io.FileWriter; +import java.io.PrintWriter; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import com.google.gson.reflect.TypeToken; + +import emu.grasscutter.GenshinConstants; +import emu.grasscutter.Grasscutter; +import emu.grasscutter.data.GenshinData; +import emu.grasscutter.data.ResourceLoader; +import emu.grasscutter.data.def.AvatarData; +import emu.grasscutter.data.def.ItemData; +import emu.grasscutter.data.def.MonsterData; + +public class Tools { + + @SuppressWarnings("deprecation") + public static void createGmHandbook() throws Exception { + ResourceLoader.loadResources(); + + Map map; + try (FileReader fileReader = new FileReader(Grasscutter.getConfig().RESOURCE_FOLDER + "TextMapEN.json")) { + map = Grasscutter.getGsonFactory().fromJson(fileReader, new TypeToken>() {}.getType()); + } + + List list; + String fileName = "./GM Handbook.txt"; + try (FileWriter fileWriter = new FileWriter(fileName); PrintWriter writer = new PrintWriter(fileWriter)) { + DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"); + LocalDateTime now = LocalDateTime.now(); + + writer.println("// Genshin Impact " + GenshinConstants.VERSION + " GM Handbook"); + writer.println("// Created " + dtf.format(now) + System.lineSeparator() + System.lineSeparator()); + + list = GenshinData.getAvatarDataMap().keySet().stream().collect(Collectors.toList()); + Collections.sort(list); + + writer.println("// Avatars"); + for (Integer id : list) { + AvatarData data = GenshinData.getAvatarDataMap().get(id); + writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); + } + + writer.println(); + + list = GenshinData.getItemDataMap().keySet().stream().collect(Collectors.toList()); + Collections.sort(list); + + writer.println("// Items"); + for (Integer id : list) { + ItemData data = GenshinData.getItemDataMap().get(id); + writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); + } + + writer.println(); + + writer.println("// Monsters"); + list = GenshinData.getMonsterDataMap().keySet().stream().collect(Collectors.toList()); + Collections.sort(list); + + for (Integer id : list) { + MonsterData data = GenshinData.getMonsterDataMap().get(id); + writer.println(data.getId() + " : " + map.get(data.getNameTextMapHash())); + } + } + + Grasscutter.getLogger().info("GM Handbook generated!"); + } +} diff --git a/src/main/java/emu/grasscutter/utils/Crypto.java b/src/main/java/emu/grasscutter/utils/Crypto.java new file mode 100644 index 000000000..a44cbfb98 --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/Crypto.java @@ -0,0 +1,59 @@ +package emu.grasscutter.utils; + +import java.security.SecureRandom; +import java.util.Base64; + +import emu.grasscutter.Grasscutter; +import emu.grasscutter.net.proto.GetPlayerTokenRspOuterClass.GetPlayerTokenRsp; +import emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp; + +public class Crypto { + private static SecureRandom secureRandom = new SecureRandom(); + public static final long ENCRYPT_SEED = Long.parseUnsignedLong("11468049314633205968"); + public static byte[] ENCRYPT_SEED_BUFFER = new byte[0]; + + public static byte[] DISPATCH_KEY; + public static byte[] ENCRYPT_KEY; + + public static void loadKeys() { + DISPATCH_KEY = FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "dispatchKey.bin"); + ENCRYPT_KEY = FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "secretKey.bin"); + ENCRYPT_SEED_BUFFER = FileUtils.read(Grasscutter.getConfig().KEY_FOLDER + "secretKeyBuffer.bin"); + } + + public static void xor(byte[] packet, byte[] key) { + try { + for (int i = 0; i < packet.length; i++) { + packet[i] ^= key[i % key.length]; + } + } catch (Exception e) { + Grasscutter.getLogger().error("Crypto error.", e); + } + } + + public static void extractSecretKeyBuffer(byte[] data) { + try { + GetPlayerTokenRsp p = GetPlayerTokenRsp.parseFrom(data); + FileUtils.write(Grasscutter.getConfig().KEY_FOLDER + "secretKeyBuffer.bin", p.getSecretKeyBuffer().toByteArray()); + Grasscutter.getLogger().info("Secret Key: " + p.getSecretKey()); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + public static void extractDispatchSeed(String data) { + try { + QueryCurrRegionHttpRsp p = QueryCurrRegionHttpRsp.parseFrom(Base64.getDecoder().decode(data)); + FileUtils.write(Grasscutter.getConfig().KEY_FOLDER + "dispatchSeed.bin", p.getRegionInfo().getSecretKey().toByteArray()); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static byte[] createSessionKey(int length) { + byte[] bytes = new byte[length]; + secureRandom.nextBytes(bytes); + return bytes; + } +} diff --git a/src/main/java/emu/grasscutter/utils/FileUtils.java b/src/main/java/emu/grasscutter/utils/FileUtils.java new file mode 100644 index 000000000..5398ee65d --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/FileUtils.java @@ -0,0 +1,48 @@ +package emu.grasscutter.utils; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; + +public class FileUtils { + + public static void write(String dest, byte[] bytes) { + Path path = Paths.get(dest); + + try { + Files.write(path, bytes); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + public static byte[] read(String dest) { + return read(Paths.get(dest)); + } + + public static byte[] read(Path path) { + try { + return Files.readAllBytes(path); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return new byte[0]; + } + + public static byte[] read(File file) { + return read(file.getPath()); + } + + public static String getFilenameWithoutPath(String fileName) { + if (fileName.indexOf(".") > 0) { + return fileName.substring(0, fileName.lastIndexOf(".")); + } else { + return fileName; + } + } +} diff --git a/src/main/java/emu/grasscutter/utils/Position.java b/src/main/java/emu/grasscutter/utils/Position.java new file mode 100644 index 000000000..6a02dacba --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/Position.java @@ -0,0 +1,156 @@ +package emu.grasscutter.utils; + +import java.io.Serializable; + +import emu.grasscutter.net.proto.VectorOuterClass.Vector; + +public class Position implements Serializable { + private static final long serialVersionUID = -2001232313615923575L; + + private float x; + private float y; + private float z; + + public Position() { + + } + + public Position(float x, float y) { + set(x, y); + } + + public Position(float x, float y, float z) { + set(x, y, z); + } + + public Position(String p) { + String[] split = p.split(","); + if (split.length >= 2) { + this.x = Float.parseFloat(split[0]); + this.y = Float.parseFloat(split[1]); + } + if (split.length >= 3) { + this.z = Float.parseFloat(split[2]); + } + } + + public Position(Vector vector) { + this.set(vector); + } + + public Position(Position pos) { + this.set(pos); + } + + public float getX() { + return x; + } + + public void setX(float x) { + this.x = x; + } + + public float getZ() { + return z; + } + + public void setZ(float z) { + this.z = z; + } + + public float getY() { + return y; + } + + public void setY(float y) { + this.y = y; + } + + public Position set(float x, float y) { + this.x = x; + this.y = y; + return this; + } + + // Deep copy + public Position set(Position pos) { + return this.set(pos.getX(), pos.getY(), pos.getZ()); + } + + public Position set(Vector pos) { + return this.set(pos.getX(), pos.getY(), pos.getZ()); + } + + public Position set(float x, float y, float z) { + this.x = x; + this.y = y; + this.z = z; + return this; + } + + public Position add(Position add) { + this.x += add.getX(); + this.y += add.getY(); + this.z += add.getZ(); + return this; + } + + public Position addX(float d) { + this.x += d; + return this; + } + + public Position addY(float d) { + this.y += d; + return this; + } + + public Position addZ(float d) { + this.z += d; + return this; + } + + public Position subtract(Position sub) { + this.x -= sub.getX(); + this.y -= sub.getY(); + this.z -= sub.getZ(); + return this; + } + + /** In radians + * */ + public Position translate(float dist, float angle) { + this.x += dist * Math.sin(angle); + this.y += dist * Math.cos(angle); + return this; + } + + public boolean equal2d(Position other) { + return getX() == other.getX() && getY() == other.getY(); + } + + public Position translateWithDegrees(float dist, float angle) { + angle = (float) Math.toRadians(angle); + this.x += dist * Math.sin(angle); + this.y += -dist * Math.cos(angle); + return this; + } + + @Override + public Position clone() { + return new Position(x, y, z); + } + + @Override + public String toString() { + return "(" + this.getX() + ", " + this.getY() + ", " + this.getZ() + ")"; + } + + public Vector toProto() { + return Vector.newBuilder() + .setX(this.getX()) + .setY(this.getY()) + .setZ(this.getZ()) + .build(); + } +} diff --git a/src/main/java/emu/grasscutter/utils/ProtoHelper.java b/src/main/java/emu/grasscutter/utils/ProtoHelper.java new file mode 100644 index 000000000..70aba3e3f --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/ProtoHelper.java @@ -0,0 +1,10 @@ +package emu.grasscutter.utils; + +import emu.grasscutter.game.props.PlayerProperty; +import emu.grasscutter.net.proto.PropValueOuterClass.PropValue; + +public class ProtoHelper { + public static PropValue newPropValue(PlayerProperty key, int value) { + return PropValue.newBuilder().setType(key.getId()).setIval(value).setVal(value).build(); + } +} diff --git a/src/main/java/emu/grasscutter/utils/Utils.java b/src/main/java/emu/grasscutter/utils/Utils.java new file mode 100644 index 000000000..cbfcb7ec9 --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/Utils.java @@ -0,0 +1,79 @@ +package emu.grasscutter.utils; + +import java.io.BufferedInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Random; + +import emu.grasscutter.Grasscutter; +import io.netty.buffer.ByteBuf; +import io.netty.buffer.ByteBufUtil; +import io.netty.buffer.Unpooled; + +public class Utils { + public static final Random random = new Random(); + + public static int randomRange(int min, int max) { + return random.nextInt(max - min + 1) + min; + } + + public static float randomFloatRange(float min, float max) { + return random.nextFloat() * (max - min) + min; + } + + public static int getCurrentSeconds() { + return (int) (System.currentTimeMillis() / 1000.0); + } + + public static String lowerCaseFirstChar(String s) { + StringBuilder sb = new StringBuilder(s); + sb.setCharAt(0, Character.toLowerCase(sb.charAt(0))); + return sb.toString(); + } + + public static String toString(InputStream inputStream) throws IOException { + BufferedInputStream bis = new BufferedInputStream(inputStream); + ByteArrayOutputStream buf = new ByteArrayOutputStream(); + for (int result = bis.read(); result != -1; result = bis.read()) { + buf.write((byte) result); + } + return buf.toString(); + } + + public static void logByteArray(byte[] array) { + ByteBuf b = Unpooled.wrappedBuffer(array); + Grasscutter.getLogger().info("\n" + ByteBufUtil.prettyHexDump(b)); + b.release(); + } + + private static final char[] HEX_ARRAY = "0123456789abcdef".toCharArray(); + public static String bytesToHex(byte[] bytes) { + char[] hexChars = new char[bytes.length * 2]; + for (int j = 0; j < bytes.length; j++) { + int v = bytes[j] & 0xFF; + hexChars[j * 2] = HEX_ARRAY[v >>> 4]; + hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F]; + } + return new String(hexChars); + } + + public static String bytesToHex(ByteBuf buf) { + return bytesToHex(byteBufToArray(buf)); + } + + public static byte[] byteBufToArray(ByteBuf buf) { + byte[] bytes = new byte[buf.capacity()]; + buf.getBytes(0, bytes); + return bytes; + } + + public static int abilityHash(String str) { + int v7 = 0; + int v8 = 0; + while (v8 < str.length()) { + v7 = str.charAt(v8++) + 131 * v7; + } + return v7; + } +} diff --git a/src/main/java/emu/grasscutter/utils/WeightedList.java b/src/main/java/emu/grasscutter/utils/WeightedList.java new file mode 100644 index 000000000..6c3e32220 --- /dev/null +++ b/src/main/java/emu/grasscutter/utils/WeightedList.java @@ -0,0 +1,30 @@ +package emu.grasscutter.utils; + +import java.util.NavigableMap; +import java.util.TreeMap; +import java.util.concurrent.ThreadLocalRandom; + +public class WeightedList { + private final NavigableMap map = new TreeMap(); + private double total = 0; + + public WeightedList() { + + } + + public WeightedList add(double weight, E result) { + if (weight <= 0) return this; + total += weight; + map.put(total, result); + return this; + } + + public E next() { + double value = ThreadLocalRandom.current().nextDouble() * total; + return map.higherEntry(value).getValue(); + } + + public int size() { + return map.size(); + } +} \ No newline at end of file diff --git a/src/main/java/logback.xml b/src/main/java/logback.xml new file mode 100644 index 000000000..66d630192 --- /dev/null +++ b/src/main/java/logback.xml @@ -0,0 +1,11 @@ + + + + [%d{HH:mm:ss}] [%level] %msg%n + + + + + + + \ No newline at end of file