Unverified Commit 2b2c612f authored by Magix's avatar Magix Committed by GitHub
Browse files

Merge pull request #1704 from Grasscutters/development

Merge `development` into `stable`
parents 1792c580 5529674b
...@@ -43,8 +43,7 @@ sourceCompatibility = JavaVersion.VERSION_17 ...@@ -43,8 +43,7 @@ sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
group = 'xyz.grasscutters' group = 'xyz.grasscutters'
version = '1.2.0' version = '1.3.1-dev'
sourceCompatibility = 17 sourceCompatibility = 17
targetCompatibility = 17 targetCompatibility = 17
...@@ -61,35 +60,48 @@ repositories { ...@@ -61,35 +60,48 @@ repositories {
dependencies { dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar']) implementation fileTree(dir: 'lib', include: ['*.jar'])
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32' implementation group: 'it.unimi.dsi', name: 'fastutil', version: '8.5.8'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.9'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.9' implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.11'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.11'
implementation group: 'org.jline', name: 'jline', version: '3.21.0' implementation group: 'org.jline', name: 'jline', version: '3.21.0'
implementation group: 'org.jline', name: 'jline-terminal-jna', version: '3.21.0' implementation group: 'org.jline', name: 'jline-terminal-jna', version: '3.21.0'
implementation group: 'net.java.dev.jna', name: 'jna', version: '5.10.0' implementation group: 'net.java.dev.jna', name: 'jna', version: '5.10.0'
implementation group: 'io.netty', name: 'netty-all', version: '4.1.71.Final' implementation group: 'io.netty', name: 'netty-common', version: '4.1.79.Final'
implementation group: 'io.netty', name: 'netty-handler', version: '4.1.79.Final'
implementation group: 'io.netty', name: 'netty-transport-native-epoll', version: '4.1.79.Final'
implementation group: 'io.netty', name: 'netty-transport-native-kqueue', version: '4.1.79.Final'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0' implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.18.2' implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.18.2'
implementation group: 'org.reflections', name: 'reflections', version: '0.10.2' implementation group: 'org.reflections', name: 'reflections', version: '0.10.2'
implementation group: 'dev.morphia.morphia', name: 'morphia-core', version: '2.2.6' implementation group: 'dev.morphia.morphia', name: 'morphia-core', version: '2.2.7'
implementation group: 'org.greenrobot', name: 'eventbus-java', version: '3.3.1' implementation group: 'org.greenrobot', name: 'eventbus-java', version: '3.3.1'
implementation group: 'org.danilopianini', name: 'java-quadtree', version: '0.1.9' //implementation group: 'org.danilopianini', name: 'java-quadtree', version: '0.1.9'
implementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.2' implementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.2'
implementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '2.3.2' implementation group: 'org.quartz-scheduler', name: 'quartz-jobs', version: '2.3.2'
implementation group: 'org.luaj', name: 'luaj-jse', version: '3.0.1' implementation group: 'org.luaj', name: 'luaj-jse', version: '3.0.1'
implementation group: 'com.esotericsoftware', name : 'reflectasm', version: '1.11.9'
implementation group: 'com.github.davidmoten', name : 'rtree-multi', version: '0.1'
implementation group: 'io.javalin', name: 'javalin', version: '4.6.4'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.3'
protobuf files('proto/') protobuf files('proto/')
compileOnly 'org.projectlombok:lombok:1.18.24' compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24' annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
} }
configurations.all { configurations.all {
...@@ -98,29 +110,33 @@ configurations.all { ...@@ -98,29 +110,33 @@ configurations.all {
application { application {
// Define the main class for the application // Define the main class for the application
mainClassName = 'emu.grasscutter.Grasscutter' getMainClass().set('emu.grasscutter.Grasscutter')
} }
jar { jar {
exclude '*.proto'
manifest { manifest {
attributes 'Main-Class': 'emu.grasscutter.Grasscutter' attributes 'Main-Class': 'emu.grasscutter.Grasscutter'
} }
jar.baseName = 'grasscutter' archiveBaseName = 'grasscutter'
jar.archiveName = project.hasProperty('jarFilename') ? "${jarFilename}.${extension}" : archiveName if (project.hasProperty('jarFilename')) {
archiveFileName = "${jarFilename}.${extension}"
}
from { from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} }
duplicatesStrategy = DuplicatesStrategy.INCLUDE duplicatesStrategy = DuplicatesStrategy.INCLUDE
from('src/main/java') { from('src/main/java') {
include '*.xml' include '*.xml'
} }
destinationDir = file(".") destinationDirectory = file(".")
} }
publishing { publishing {
...@@ -150,12 +166,7 @@ publishing { ...@@ -150,12 +166,7 @@ publishing {
developer { developer {
id = 'meledy' id = 'meledy'
name = 'Meledy' name = 'Meledy'
email = 'meledy@xigam.tech' // not a real email kek email = 'meledy@grasscutter.io' // not a real email kek
}
developer {
id = 'magix'
name = 'Magix'
email = 'magix@xigam.tech'
} }
} }
scm { scm {
...@@ -168,13 +179,23 @@ publishing { ...@@ -168,13 +179,23 @@ publishing {
} }
repositories { repositories {
maven { maven {
// change URLs to point to your repos, e.g. http://my.org/repo if(version.endsWith('-dev')) {
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' println ("Publishing to 4benj-maven")
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' url 'https://repo.4benj.com/releases'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl name '4benj-maven'
credentials {
name = 'sonatype' username System.getenv('benj_maven_username')
credentials(PasswordCredentials) password System.getenv('benj_maven_token')
}
} else {
println ("Publishing to sonatype")
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
name = 'sonatype'
credentials(PasswordCredentials)
}
} }
} }
} }
...@@ -222,7 +243,9 @@ eclipse { ...@@ -222,7 +243,9 @@ eclipse {
} }
signing { signing {
sign publishing.publications.mavenJava if(!version.endsWith('-dev')) {
sign publishing.publications.mavenJava
}
} }
javadoc { javadoc {
...@@ -236,17 +259,19 @@ task injectGitHash { ...@@ -236,17 +259,19 @@ task injectGitHash {
def gitCommitHash = { def gitCommitHash = {
try { try {
return 'git rev-parse --verify --short HEAD'.execute().text.trim() return 'git rev-parse --verify --short HEAD'.execute().text.trim()
} catch (e) { } catch (ignored) {
return "GIT_NOT_FOUND" return "GIT_NOT_FOUND"
} }
} }
new File(projectDir, "src/main/java/emu/grasscutter/BuildConfig.java").text = """
package emu.grasscutter; new File(projectDir, "src/main/java/emu/grasscutter/BuildConfig.java").text =
public class BuildConfig { """package emu.grasscutter;
public static final String VERSION = \"${version}\";
public static final String GIT_HASH = \"${gitCommitHash()}\"; public final class BuildConfig {
} public static final String VERSION = \"${version}\";
""" public static final String GIT_HASH = \"${gitCommitHash()}\";
}"""
} }
processResources { processResources {
......
import re
import subprocess
UPSTREAM = 'https://github.com/Grasscutters/Grasscutter.git'
RATCHET = 'LintRatchet'
RATCHET_FALLBACK = 'c517b8a2c95473811eb07e12e73c4a69e59fbbdc'
re_leading_whitespace = re.compile(r'^[ \t]+', re.MULTILINE) # Replace with \1.replace('\t', ' ')
re_trailing_whitespace = re.compile(r'[ \t]+$', re.MULTILINE) # Replace with ''
# Replace 'for (foo){bar' with 'for (foo) {bar'
re_bracket_space = re.compile(r'\) *\{(?!\})') # Replace with ') {'
# Replace 'for(foo)' with 'foo (bar)'
re_keyword_space = re.compile(r'(?<=\b)(if|for|while|switch|try|else|catch|finally|synchronized) *(?=[\(\{])') # Replace with '\1 '
def get_changed_filelist():
# subprocess.run(['git', 'fetch', UPSTREAM, f'{RATCHET}:{RATCHET}']) # Ensure LintRatchet ref is matched to upstream
# result = subprocess.run(['git', 'diff', RATCHET, '--name-only'], capture_output=True, text=True)
# if result.returncode != 0:
# print(f'{RATCHET} not found, trying fallback {RATCHET_FALLBACK}')
print(f'Attempting to diff against {RATCHET_FALLBACK}')
result = subprocess.run(['git', 'diff', RATCHET_FALLBACK, '--name-only'], capture_output=True, text=True)
if result.returncode != 0:
# print('Fallback is also missing, aborting.')
print(f'Could not find {RATCHET_FALLBACK}, aborting.')
exit(1)
return result.stdout.strip().split('\n')
def format_string(data: str):
data = re_leading_whitespace.sub(lambda m: m.group(0).replace('\t', ' '), data)
data = re_trailing_whitespace.sub('', data)
data = re_bracket_space.sub(') {', data)
data = re_keyword_space.sub(r'\1 ', data)
if not data.endswith('\n'): # Enforce trailing \n
data = data + '\n'
return data
def format_file(filename: str) -> bool:
try:
with open(filename, 'r') as file:
data = file.read()
data = format_string(data)
with open(filename, 'w') as file:
file.write(data)
return True
except FileNotFoundError:
print(f'File not found, probably deleted: {filename}')
return False
def main():
filelist = [f for f in get_changed_filelist() if f.endswith('.java') and not f.startswith('src/generated')]
replaced = 0
not_found = 0
if not filelist:
print('No changed files due for formatting!')
return
print('Changed files due for formatting: ', filelist)
for file in filelist:
if format_file(file):
replaced += 1
else:
not_found += 1
print(f'Format complete! {replaced} formatted, {not_found} missing.')
if __name__ == '__main__':
main()
#!/usr/bin/env bash
# Grasscutter install script for linux - Simpler version
# This installer doesn't ask you to install dependencies, you have to install them manually
# Made by TurtleIdiot and modified by syktyvkar (and then again modified by Blue)
# Stops the installer if any command has a non-zero exit status
set -e
# Checks for root
if [ $EUID != 0 ]; then
echo "Please run the installer as root (sudo)!"
exit
fi
is_command() {
# Checks if given command is available
local check_command="$1"
command -v "${check_command}" > /dev/null 2>&1
}
# IP validation
valid_ip() {
local ip=$1
local stat=1
if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
OIFS=$IFS
IFS="."
ip=($ip)
IFS=$OIFS
[[ ${ip[0]} -le 255 && ${ip[1]} -le 255 \
&& ${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
stat=$?
fi
return $stat
}
echo "#################################"
echo ""
echo "This script will take for granted that you have all dependencies installed (mongodb, openjdk-17-jre/jre17-openjdk, wget, openssl, unzip, git, curl, base-devel), in fact, this script is recommended to update your current server installation, and it should run from the same folder as grasscutter.jar"
echo "#################################"
echo ""
echo "If you are using version > 2.8 of the client, make sure to use the patched metadata if you don't use Cultivation."
echo "Search for METADATA here: https://discord.gg/grasscutter."
echo ""
echo "#################################"
echo "You can find plugins here: https://discord.com/channels/965284035985305680/970830969919664218"
echo ""
echo "Grasscutter will be installed to script's running directory"
echo "Do you wish to proceed and install Grasscutter?"
select yn in "Yes" "No" ; do
case $yn in
Yes ) break;;
No )
echo "Aborting..."
exit;;
esac
done
if [ -d "./resources" ]
then
echo "It's recommended to remove resources folder"
echo "Remove resources folder?"
select yn in "Yes" "No" ; do
case $yn in
Yes )
rm -rf resources
break;;
No )
echo "Aborting..."
exit;;
esac
done
echo "You may need to remove data folder and config.json to apply some updates"
echo "#################################"
fi
# Allows choice between stable and dev branch
echo "Please select the branch you wish to install"
echo -e "!!NOTE!!: stable is the recommended branch.\nDo *NOT* use development unless you have a reason to and know what you're doing"
select branch in "stable" "development" ; do
case $branch in
stable )
break;;
development )
break;;
esac
done
echo -e "Using $branch branch for installing server \n"
# Prompt IP address for config.json and for generating new keystore.p12 file
echo "Please enter the IP address that will be used to connect to the server"
echo "This can be a local or a public IP address"
echo "This IP address will be used to generate SSL certificates, so it is important it is correct!"
while : ; do
read -p "Enter server IP: " SERVER_IP
if valid_ip $SERVER_IP; then
break;
else
echo "Invalid IP address. Try again."
fi
done
echo "Beginning Grasscutter installation..."
# Download resources
echo "Downloading Grasscutter BinOutputs..."
git clone --single-branch https://github.com/Koko-boya/Grasscutter_Resources.git Grasscutter-bins
mv ./Grasscutter-bins/Resources ./resources
rm -rf Grasscutter-bins # takes ~350M of drive space after moving BinOutputs... :sob:
# Download and build jar
echo "Downloading Grasscutter source code..."
git clone --single-branch -b $branch https://github.com/Grasscutters/Grasscutter.git Grasscutter-src #change this to download a fork
echo "Building grasscutter.jar..."
cd Grasscutter-src
chmod +x ./gradlew #just in case
./gradlew --no-daemon jar
mv $(find -name "grasscutter*.jar" -type f) ../grasscutter.jar
echo "Building grasscutter.jar done!"
cd ..
# Generate handbook/config
echo "Grasscutter will be started to generate data files"
java -jar grasscutter.jar -version
# Replaces "127.0.0.1" with given IP
echo "Replacing IP address in server config..."
sed -i "s/127.0.0.1/$SERVER_IP/g" config.json
# Generates new keystore.p12 with the server's IP address
# This is done to prevent a "Connection Timed Out" error from appearing
# after clicking to enter the door in the main menu/title screen
# This issue only exists when connecting to a server *other* than localhost
# since the default keystore.p12 has only been made for localhost
mkdir certs
cd certs
echo "Generating CA key and certificate pair..."
openssl req -x509 -nodes -days 25202 -newkey rsa:2048 -subj "/C=GB/ST=Essex/L=London/O=Grasscutters/OU=Grasscutters/CN=$SERVER_IP" -keyout CAkey.key -out CAcert.crt
echo "Generating SSL key and certificate pair..."
openssl genpkey -out ssl.key -algorithm rsa
# Creates a conf file in order to generate a csr
cat > csr.conf <<EOF
[ req ]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C = GB
ST = Essex
L = London
O = Grasscutters
OU = Grasscutters
CN = $SERVER_IP
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
IP.1 = $SERVER_IP
EOF
# Creates csr using key and conf
openssl req -new -key ssl.key -out ssl.csr -config csr.conf
# Creates conf to finalise creation of certificate
cat > cert.conf <<EOF
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, keyAgreement, dataEncipherment
subjectAltName = @alt_names
[alt_names]
IP.1 = $SERVER_IP
EOF
# Creates SSL cert
openssl x509 -req -in ssl.csr -CA CAcert.crt -CAkey CAkey.key -CAcreateserial -out ssl.crt -days 25202 -sha256 -extfile cert.conf
echo "Generating keystore.p12 from key and certificate..."
openssl pkcs12 -export -out keystore.p12 -inkey ssl.key -in ssl.crt -certfile CAcert.crt -passout pass:123456
cd ../
mv ./certs/keystore.p12 ./keystore.p12
echo "Done!"
# Running scripts as sudo makes all Grasscutter files to be owned by root
# which may cause problems editing .jsons...
if [ $SUDO_USER ]; then
echo "Changing Grasscutter files owner to current user..."
chown -R $SUDO_USER:$SUDO_USER ./*
fi
echo "Removing unnecessary files..."
rm -rf ./certs ./Grasscutter-src
echo "All done!"
echo "-=-=-=-=-=--- !! IMPORTANT !! ---=-=-=-=-=-"
echo "Please make sure that ports 80, 443, 8888 and 22102 are OPEN (both tcp and udp)"
echo "In order to run the server, run the following command:"
echo " sudo java -jar grasscutter.jar"
echo "The GM Handbook of all supported languages will be generated automatically when you start the server for the first time."
echo "You must run it using sudo as port 443 is a privileged port"
echo "To play, use the IP you provided earlier ($SERVER_IP) via GrassClipper or Fiddler"
echo ""
exit
File added
# Written for Python 3.6+
# Older versions don't retain insertion order of regular dicts
import argparse
import cmd
import json
import os
import re
from pprint import pprint
INDENT = 2
PRIMARY_LANGUAGE = 'en-US.json'
PRIMARY_FALLBACK_PREFIX = '🇺🇸' # This is invisible in-game, terminal emulators might render it
LANGUAGE_FOLDER = 'src/main/resources/languages/'
LANGUAGE_FILENAMES = sorted(os.listdir(LANGUAGE_FOLDER), key=lambda x: 'AAA' if x == PRIMARY_LANGUAGE else x)
SOURCE_FOLDER = 'src/'
SOURCE_EXTENSIONS = ('java')
def ppprint(data):
pprint(data, width=130, sort_dicts=False, compact=True)
class JsonHelpers:
@staticmethod
def load(filename: str) -> dict:
with open(filename, 'r', encoding='utf-8') as file:
return json.load(file)
@staticmethod
def save(filename: str, data: dict) -> None:
with open(filename, 'w', encoding='utf-8', newline='\n') as file:
json.dump(data, file, ensure_ascii=False, indent=INDENT)
file.write('\n') # json.dump doesn't terminate last line
@staticmethod
def flatten(data: dict, prefix='') -> dict:
output = {}
for key, value in data.items():
if isinstance(value, dict):
for k,v in JsonHelpers.flatten(value, f'{prefix}{key}.').items():
output[k] = v
else:
output[f'{prefix}{key}'] = value
return output
@staticmethod
def unflatten(data: dict) -> dict:
output = {}
def add_key(k: list, value, d: dict):
if len(k) == 1:
d[k[0]] = value
else:
d[k[0]] = d.get(k[0], {})
add_key(k[1:], value, d[k[0]])
for key, value in data.items():
add_key(key.split('.'), value, output)
return output
@staticmethod
def pprint_keys(keys, indent=4) -> str:
# Only strip down to one level
padding = ' ' * indent
roots = {}
for key in keys:
root, _, k = key.rpartition('.')
roots[root] = roots.get(root, [])
roots[root].append(k)
lines = []
for root, ks in roots.items():
if len(ks) > 1:
lines.append(f'{padding}{root}.[{", ".join(ks)}]')
else:
lines.append(f'{padding}{root}.{ks[0]}')
return ',\n'.join(lines)
@staticmethod
def deep_clone_and_fill(d1: dict, d2: dict, fallback_prefix=PRIMARY_FALLBACK_PREFIX) -> dict:
out = {}
for key, value in d1.items():
if isinstance(value, dict):
out[key] = JsonHelpers.deep_clone_and_fill(value, d2.get(key, {}), fallback_prefix)
else:
v2 = d2.get(key, value)
if type(value) == str and v2 == value:
out[key] = fallback_prefix + value
else:
out[key] = v2
return out
class LanguageManager:
TRANSLATION_KEY = re.compile(r'[Tt]ranslate.*"(\w+\.[\w\.]+)"')
POTENTIAL_KEY = re.compile(r'"(\w+\.[\w\.]+)"')
COMMAND_LABEL = re.compile(r'@Command\s*\([\W\w]*?label\s*=\s*"(\w+)"', re.MULTILINE) # [\W\w] is a cheeky way to match everything including \n
def __init__(self):
self.load_jsons()
def load_jsons(self):
self.language_jsons = [JsonHelpers.load(LANGUAGE_FOLDER + filename) for filename in LANGUAGE_FILENAMES]
self.flattened_jsons = [JsonHelpers.flatten(j) for j in self.language_jsons]
self.update_keys()
def update_keys(self):
self.key_sets = [set(j.keys()) for j in self.flattened_jsons]
self.common_keys = set.intersection(*self.key_sets)
self.all_keys = set.union(*self.key_sets)
self.used_keys = self.find_all_used_keys(self.all_keys)
self.missing_keys = self.used_keys - self.common_keys
self.unused_keys = self.all_keys - self.used_keys
def find_all_used_keys(self, expected_keys=[]) -> set:
# Note that this will only find string literals passed to the translate() or sendTranslatedMessage() methods!
# String variables passed to them can be checked against expected_keys
used = set()
potential = set()
for root, dirs, files in os.walk(SOURCE_FOLDER):
for file in files:
if file.rpartition('.')[-1] in SOURCE_EXTENSIONS:
filename = os.path.join(root, file)
with open(filename, 'r', encoding='utf-8') as f:
data = f.read() # Loads in entire file at once
for k in self.TRANSLATION_KEY.findall(data):
used.add(k)
for k in self.POTENTIAL_KEY.findall(data):
potential.add(k)
for label in self.COMMAND_LABEL.findall(data):
used.add(f'commands.{label}.description')
return used | (potential & expected_keys)
def _lint_report_language(self, lang: str, keys: set, flattened: dict, primary_language_flattened: dict) -> None:
missing = self.used_keys - keys
unused = keys - self.used_keys
identical_keys = set() if (lang == PRIMARY_LANGUAGE) else {key for key in keys if primary_language_flattened.get(key, None) == flattened.get(key)}
placeholder_keys = {key for key in keys if flattened.get(key).startswith(PRIMARY_FALLBACK_PREFIX)}
p1 = f'Language {lang} has {len(missing)} missing keys and {len(unused)} unused keys.'
p2 = 'This is the primary language.' if (lang == PRIMARY_LANGUAGE) else f'{len(identical_keys)} match {PRIMARY_LANGUAGE}, {len(placeholder_keys)} have the placeholder mark.'
print(f'{p1} {p2}')
lint_categories = {
'Missing': missing,
'Unused': unused,
f'Matches {PRIMARY_LANGUAGE}': identical_keys,
'Placeholder': placeholder_keys,
}
for name, category in lint_categories.items():
if len(category) > 0:
print(name + ':')
print(JsonHelpers.pprint_keys(sorted(category)))
def lint_report(self) -> None:
print(f'There are {len(self.missing_keys)} translation keys in use that are missing from one or more language files.')
print(f'There are {len(self.unused_keys)} translation keys in language files that are not used.')
primary_language_flattened = self.flattened_jsons[LANGUAGE_FILENAMES.index(PRIMARY_LANGUAGE)]
for lang, keys, flattened in zip(LANGUAGE_FILENAMES, self.key_sets, self.flattened_jsons):
print('')
self._lint_report_language(lang, keys, flattened, primary_language_flattened)
def rename_keys(self, key_remappings: dict) -> None:
# Unfortunately we can't rename keys in-place preserving insertion order, so we have to make new dicts
for i in range(len(self.flattened_jsons)):
self.flattened_jsons[i] = {key_remappings.get(k,k):v for k,v in self.flattened_jsons[i].items()}
def update_secondary_languages(self):
# Push en_US fallback
primary_language_json = self.language_jsons[LANGUAGE_FILENAMES.index(PRIMARY_LANGUAGE)]
for filename, lang in zip(LANGUAGE_FILENAMES, self.language_jsons):
if filename != PRIMARY_LANGUAGE:
js = JsonHelpers.deep_clone_and_fill(primary_language_json, lang)
JsonHelpers.save(LANGUAGE_FOLDER + filename, js)
def update_all_languages_from_flattened(self):
for filename, flat in zip(LANGUAGE_FILENAMES, self.flattened_jsons):
JsonHelpers.save(LANGUAGE_FOLDER + filename, JsonHelpers.unflatten(flat))
def save_flattened_languages(self, prefix='flat_'):
for filename, flat in zip(LANGUAGE_FILENAMES, self.flattened_jsons):
JsonHelpers.save(prefix + filename, flat)
class InteractiveRename(cmd.Cmd):
intro = 'Welcome to the interactive rename shell. Type help or ? to list commands.\n'
prompt = '(rename) '
file = None
def __init__(self, language_manager: LanguageManager) -> None:
super().__init__()
self.language_manager = language_manager
self.flat_keys = [key for key in language_manager.flattened_jsons[LANGUAGE_FILENAMES.index(PRIMARY_LANGUAGE)].keys()]
self.mappings = {}
def do_add(self, arg):
'''
Prepare to rename an existing translation key. Will not actually rename anything until you confirm all your pending changes with 'rename'.
e.g. a single string: add commands.execution.argument_error commands.generic.invalid.argument
e.g. a group: add commands.enter_dungeon commands.new_enter_dungeon
'''
args = arg.split()
if len(args) < 2:
self.do_help('add')
return
old, new = args[:2]
if old in self.flat_keys:
self.mappings[old] = new
else:
# Check if we are renaming a higher level
if not old.endswith('.'):
old = old + '.'
results = [key for key in self.flat_keys if key.startswith(old)]
if len(results) > 0:
if not new.endswith('.'):
new = new + '.'
new_mappings = {key: key.replace(old, new) for key in results}
# Ask for confirmation
print('Will add the following mappings:')
ppprint(new_mappings)
print('Add these mappings? [y/N]')
if self.prompt_yn():
for k,v in new_mappings.items():
self.mappings[k] = v
else:
print('No translation keys matched!')
def complete_add(self, text: str, line: str, begidx: int, endidx: int) -> list:
if text == '':
return [k for k in {key.partition('.')[0] for key in self.flat_keys}]
results = [key for key in self.flat_keys if key.startswith(text)]
if len(results) > 40:
# Collapse categories
if text[-1] != '.':
text = text + '.'
level = text.count('.') + 1
new_results = {'.'.join(key.split('.')[:level]) for key in results}
return list(new_results)
return results
def do_remove(self, arg):
'''
Remove a pending rename mapping. Takes the old name of the key, not the new one.
e.g. a single key: remove commands.execution.argument_error
e.g. a group: remove commands.enter_dungeon
'''
old = arg.split()[0]
if old in self.mappings:
self.mappings.pop(old)
else:
# Check if we are renaming a higher level
if not old.endswith('.'):
old = old + '.'
results = [key for key in self.mappings if key.startswith(old)]
if len(results) > 0:
# Ask for confirmation
print('Will remove the following pending mappings:')
print(JsonHelpers.pprint_keys(results))
print('Delete these mappings? [y/N]')
if self.prompt_yn():
for key in results:
self.mappings.pop(key)
else:
print('No pending rename mappings matched!')
def complete_remove(self, text: str, line: str, begidx: int, endidx: int) -> list:
return [key for key in self.mappings if key.startswith(text)]
def do_rename(self, _arg):
'Applies pending renames and overwrites language jsons.'
# Ask for confirmation
print('Will perform the following mappings:')
ppprint(self.mappings)
print('Perform and save these rename mappings? [y/N]')
if self.prompt_yn():
self.language_manager.rename_keys(self.mappings)
self.language_manager.update_all_languages_from_flattened()
print('Renamed keys, closing')
return True
else:
print('Do you instead wish to quit without saving? [yes/N]')
if self.prompt_yn(True):
print('Left rename shell without renaming')
return True
def prompt_yn(self, strict_yes=False):
if strict_yes:
return input('(yes/N) ').lower() == 'yes'
return input('(y/N) ').lower()[0] == 'y'
def main(args: argparse.Namespace):
# print(args)
language_manager = LanguageManager()
errors = None
if args.lint_report:
language_manager.lint_report()
missing = language_manager.used_keys - language_manager.key_sets[LANGUAGE_FILENAMES.index(PRIMARY_LANGUAGE)]
if len(missing) > 0:
errors = f'[ERROR] {len(missing)} keys missing from primary language json!\n{JsonHelpers.pprint_keys(missing)}'
if prefix := args.save_flattened:
language_manager.save_flattened_languages(prefix)
if args.update:
print('Updating secondary languages')
language_manager.update_secondary_languages()
if args.interactive_rename:
language_manager.load_jsons() # Previous actions may have changed them on-disk
try:
InteractiveRename(language_manager).cmdloop()
except KeyboardInterrupt:
print('Left rename shell without renaming')
if errors:
print(errors)
exit(1)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Manage Grasscutter's language json files.")
parser.add_argument('-u', '--update', action='store_true',
help=f'Update secondary language files to conform to the layout of the primary language file ({PRIMARY_LANGUAGE}) and contain any new keys from it.')
parser.add_argument('-l', '--lint-report', action='store_true',
help='Prints a lint report, listing unused, missing, and untranslated keys among all language jsons.')
parser.add_argument('-f', '--save-flattened', const='./flat_', metavar='prefix', nargs='?',
help='Save copies of all the language jsons in a flattened key form.')
parser.add_argument('-i', '--interactive-rename', action='store_true',
help='Enter interactive rename mode, in which you can specify keys in flattened form to be renamed.')
args = parser.parse_args()
main(args)
\ No newline at end of file
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON schema for a Grasscutter Plugin", "title": "JSON schema for a Grasscutter Plugin",
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"definitions": { "definitions": {
"plugin-name": { "plugin-name": {
"type": "string", "type": "string",
"pattern": "^[A-Za-z\\d_.-]+$" "pattern": "^[A-Za-z\\d_.-]+$"
} }
},
"required": [ "name", "description", "mainClass" ],
"properties": {
"name": {
"description": "The unique name of plugin.",
"$ref": "#/definitions/plugin-name"
},
"mainClass": {
"description": "The plugin's initial class file.",
"type": "string",
"pattern": "^(?!org\\.bukkit\\.)([a-zA-Z_$][a-zA-Z\\d_$]*\\.)*[a-zA-Z_$][a-zA-Z\\d_$]*$"
},
"version": {
"description": "A plugin revision identifier.",
"type": [ "string", "number" ]
},
"description": {
"description": "Human readable plugin summary.",
"type": "string"
},
"author": {
"description": "The plugin author.",
"type": "string"
},
"authors": {
"description": "The plugin contributors.",
"type": "array",
"items": {
"type": "string"
}
}, },
"website": { "required": [
"title": "Website", "name",
"description": "The URL to the plugin's site", "description",
"type": "string", "mainClass"
"format": "uri" ],
"properties": {
"name": {
"description": "The unique name of plugin.",
"$ref": "#/definitions/plugin-name"
},
"mainClass": {
"description": "The plugin's initial class file.",
"type": "string",
"pattern": "^(?!org\\.bukkit\\.)([a-zA-Z_$][a-zA-Z\\d_$]*\\.)*[a-zA-Z_$][a-zA-Z\\d_$]*$"
},
"version": {
"description": "A plugin revision identifier.",
"type": [
"string",
"number"
]
},
"description": {
"description": "Human readable plugin summary.",
"type": "string"
},
"author": {
"description": "The plugin author.",
"type": "string"
},
"authors": {
"description": "The plugin contributors.",
"type": "array",
"items": {
"type": "string"
}
},
"website": {
"title": "Website",
"description": "The URL to the plugin's site",
"type": "string",
"format": "uri"
},
"loadAfter": {
"description": "Plugins to load before this plugin.",
"type": "array",
"items": {
"type": "string"
}
}
} }
}
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
## ##
# #
# Genshin Impact script for mitmproxy # Animation Company script for mitmproxy
# #
# https://github.com/MlgmXyysd/ # https://github.com/MlgmXyysd/
# #
...@@ -20,12 +20,17 @@ ...@@ -20,12 +20,17 @@
# #
## ##
from mitmproxy import http import collections
import random
from mitmproxy import http, connection, ctx, tls
from abc import ABC, abstractmethod
from enum import Enum
from mitmproxy.utils import human
from proxy_config import USE_SSL from proxy_config import USE_SSL
from proxy_config import REMOTE_HOST from proxy_config import REMOTE_HOST
from proxy_config import REMOTE_PORT from proxy_config import REMOTE_PORT
class MlgmXyysd_Genshin_Impact_Proxy: class MlgmXyysd_Animation_Company_Proxy:
LIST_DOMAINS = [ LIST_DOMAINS = [
"api-os-takumi.mihoyo.com", "api-os-takumi.mihoyo.com",
...@@ -71,6 +76,80 @@ class MlgmXyysd_Genshin_Impact_Proxy: ...@@ -71,6 +76,80 @@ class MlgmXyysd_Genshin_Impact_Proxy:
flow.request.host = REMOTE_HOST flow.request.host = REMOTE_HOST
flow.request.port = REMOTE_PORT flow.request.port = REMOTE_PORT
class InterceptionResult(Enum):
SUCCESS = 1
FAILURE = 2
SKIPPED = 3
class TlsStrategy(ABC):
def __init__(self):
self.history = collections.defaultdict(lambda: collections.deque(maxlen=200))
@abstractmethod
def should_intercept(self, server_address: connection.Address) -> bool:
raise NotImplementedError()
def record_success(self, server_address):
self.history[server_address].append(InterceptionResult.SUCCESS)
def record_failure(self, server_address):
self.history[server_address].append(InterceptionResult.FAILURE)
def record_skipped(self, server_address):
self.history[server_address].append(InterceptionResult.SKIPPED)
class ConservativeStrategy(TlsStrategy):
def should_intercept(self, server_address: connection.Address) -> bool:
return InterceptionResult.FAILURE not in self.history[server_address]
class ProbabilisticStrategy(TlsStrategy):
def __init__(self, p: float):
self.p = p
super().__init__()
def should_intercept(self, server_address: connection.Address) -> bool:
return random.uniform(0, 1) < self.p
class MaybeTls:
strategy: TlsStrategy
def load(self, l):
l.add_option(
"tls_strategy", int, 0,
"TLS passthrough strategy. If set to 0, connections will be passed through after the first unsuccessful "
"handshake. If set to 0 < p <= 100, connections with be passed through with probability p.",
)
def configure(self, updated):
if "tls_strategy" not in updated:
return
if ctx.options.tls_strategy > 0:
self.strategy = ProbabilisticStrategy(ctx.options.tls_strategy / 100)
else:
self.strategy = ConservativeStrategy()
def tls_clienthello(self, data: tls.ClientHelloData):
server_address = data.context.server.peername
if not self.strategy.should_intercept(server_address):
ctx.log(f"TLS passthrough: {human.format_address(server_address)}.")
data.ignore_connection = True
self.strategy.record_skipped(server_address)
def tls_established_client(self, data: tls.TlsData):
server_address = data.context.server.peername
ctx.log(f"TLS handshake successful: {human.format_address(server_address)}")
self.strategy.record_success(server_address)
def tls_failed_client(self, data: tls.TlsData):
server_address = data.context.server.peername
ctx.log(f"TLS handshake failed: {human.format_address(server_address)}")
self.strategy.record_failure(server_address)
addons = [ addons = [
MlgmXyysd_Genshin_Impact_Proxy() MlgmXyysd_Animation_Company_Proxy(),
MaybeTls()
] ]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityActionGenerateElemBall.proto
package emu.grasscutter.net.proto;
public final class AbilityActionGenerateElemBallOuterClass {
private AbilityActionGenerateElemBallOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityActionGenerateElemBallOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityActionGenerateElemBall)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 room_id = 2;</code>
* @return The roomId.
*/
int getRoomId();
/**
* <code>.Vector pos = 7;</code>
* @return Whether the pos field is set.
*/
boolean hasPos();
/**
* <code>.Vector pos = 7;</code>
* @return The pos.
*/
emu.grasscutter.net.proto.VectorOuterClass.Vector getPos();
/**
* <code>.Vector pos = 7;</code>
*/
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder();
/**
* <code>.Vector rot = 13;</code>
* @return Whether the rot field is set.
*/
boolean hasRot();
/**
* <code>.Vector rot = 13;</code>
* @return The rot.
*/
emu.grasscutter.net.proto.VectorOuterClass.Vector getRot();
/**
* <code>.Vector rot = 13;</code>
*/
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder();
}
/**
* Protobuf type {@code AbilityActionGenerateElemBall}
*/
public static final class AbilityActionGenerateElemBall extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityActionGenerateElemBall)
AbilityActionGenerateElemBallOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityActionGenerateElemBall.newBuilder() to construct.
private AbilityActionGenerateElemBall(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityActionGenerateElemBall() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityActionGenerateElemBall();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityActionGenerateElemBall(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder 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: {
roomId_ = input.readUInt32();
break;
}
case 58: {
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 106: {
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.AbilityActionGenerateElemBallOuterClass.internal_static_AbilityActionGenerateElemBall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.internal_static_AbilityActionGenerateElemBall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.class, emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.Builder.class);
}
public static final int ROOM_ID_FIELD_NUMBER = 2;
private int roomId_;
/**
* <code>uint32 room_id = 2;</code>
* @return The roomId.
*/
@java.lang.Override
public int getRoomId() {
return roomId_;
}
public static final int POS_FIELD_NUMBER = 7;
private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_;
/**
* <code>.Vector pos = 7;</code>
* @return Whether the pos field is set.
*/
@java.lang.Override
public boolean hasPos() {
return pos_ != null;
}
/**
* <code>.Vector pos = 7;</code>
* @return The pos.
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() {
return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
}
/**
* <code>.Vector pos = 7;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() {
return getPos();
}
public static final int ROT_FIELD_NUMBER = 13;
private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
/**
* <code>.Vector rot = 13;</code>
* @return Whether the rot field is set.
*/
@java.lang.Override
public boolean hasRot() {
return rot_ != null;
}
/**
* <code>.Vector rot = 13;</code>
* @return The rot.
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() {
return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
}
/**
* <code>.Vector rot = 13;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
return getRot();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (roomId_ != 0) {
output.writeUInt32(2, roomId_);
}
if (pos_ != null) {
output.writeMessage(7, getPos());
}
if (rot_ != null) {
output.writeMessage(13, getRot());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (roomId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, roomId_);
}
if (pos_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPos());
}
if (rot_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, 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.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall other = (emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall) obj;
if (getRoomId()
!= other.getRoomId()) 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) + ROOM_ID_FIELD_NUMBER;
hash = (53 * hash) + getRoomId();
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.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityActionGenerateElemBall}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityActionGenerateElemBall)
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.internal_static_AbilityActionGenerateElemBall_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.internal_static_AbilityActionGenerateElemBall_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.class, emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
roomId_ = 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.AbilityActionGenerateElemBallOuterClass.internal_static_AbilityActionGenerateElemBall_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall build() {
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall buildPartial() {
emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall result = new emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall(this);
result.roomId_ = roomId_;
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.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall) {
return mergeFrom((emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall other) {
if (other == emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall.getDefaultInstance()) return this;
if (other.getRoomId() != 0) {
setRoomId(other.getRoomId());
}
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.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int roomId_ ;
/**
* <code>uint32 room_id = 2;</code>
* @return The roomId.
*/
@java.lang.Override
public int getRoomId() {
return roomId_;
}
/**
* <code>uint32 room_id = 2;</code>
* @param value The roomId to set.
* @return This builder for chaining.
*/
public Builder setRoomId(int value) {
roomId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 room_id = 2;</code>
* @return This builder for chaining.
*/
public Builder clearRoomId() {
roomId_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_;
/**
* <code>.Vector pos = 7;</code>
* @return Whether the pos field is set.
*/
public boolean hasPos() {
return posBuilder_ != null || pos_ != null;
}
/**
* <code>.Vector pos = 7;</code>
* @return The pos.
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() {
if (posBuilder_ == null) {
return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
} else {
return posBuilder_.getMessage();
}
}
/**
* <code>.Vector pos = 7;</code>
*/
public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (posBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pos_ = value;
onChanged();
} else {
posBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.Vector pos = 7;</code>
*/
public Builder setPos(
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
if (posBuilder_ == null) {
pos_ = builderForValue.build();
onChanged();
} else {
posBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.Vector pos = 7;</code>
*/
public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (posBuilder_ == null) {
if (pos_ != null) {
pos_ =
emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial();
} else {
pos_ = value;
}
onChanged();
} else {
posBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.Vector pos = 7;</code>
*/
public Builder clearPos() {
if (posBuilder_ == null) {
pos_ = null;
onChanged();
} else {
pos_ = null;
posBuilder_ = null;
}
return this;
}
/**
* <code>.Vector pos = 7;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() {
onChanged();
return getPosFieldBuilder().getBuilder();
}
/**
* <code>.Vector pos = 7;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() {
if (posBuilder_ != null) {
return posBuilder_.getMessageOrBuilder();
} else {
return pos_ == null ?
emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
}
}
/**
* <code>.Vector pos = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>
getPosFieldBuilder() {
if (posBuilder_ == null) {
posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
getPos(),
getParentForChildren(),
isClean());
pos_ = null;
}
return posBuilder_;
}
private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotBuilder_;
/**
* <code>.Vector rot = 13;</code>
* @return Whether the rot field is set.
*/
public boolean hasRot() {
return rotBuilder_ != null || rot_ != null;
}
/**
* <code>.Vector rot = 13;</code>
* @return The rot.
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() {
if (rotBuilder_ == null) {
return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
} else {
return rotBuilder_.getMessage();
}
}
/**
* <code>.Vector rot = 13;</code>
*/
public Builder setRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (rotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rot_ = value;
onChanged();
} else {
rotBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.Vector rot = 13;</code>
*/
public Builder setRot(
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
if (rotBuilder_ == null) {
rot_ = builderForValue.build();
onChanged();
} else {
rotBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.Vector rot = 13;</code>
*/
public Builder mergeRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (rotBuilder_ == null) {
if (rot_ != null) {
rot_ =
emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(rot_).mergeFrom(value).buildPartial();
} else {
rot_ = value;
}
onChanged();
} else {
rotBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.Vector rot = 13;</code>
*/
public Builder clearRot() {
if (rotBuilder_ == null) {
rot_ = null;
onChanged();
} else {
rot_ = null;
rotBuilder_ = null;
}
return this;
}
/**
* <code>.Vector rot = 13;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() {
onChanged();
return getRotFieldBuilder().getBuilder();
}
/**
* <code>.Vector rot = 13;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
if (rotBuilder_ != null) {
return rotBuilder_.getMessageOrBuilder();
} else {
return rot_ == null ?
emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
}
}
/**
* <code>.Vector rot = 13;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>
getRotFieldBuilder() {
if (rotBuilder_ == null) {
rotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
getRot(),
getParentForChildren(),
isClean());
rot_ = null;
}
return rotBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityActionGenerateElemBall)
}
// @@protoc_insertion_point(class_scope:AbilityActionGenerateElemBall)
private static final emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall();
}
public static emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityActionGenerateElemBall>
PARSER = new com.google.protobuf.AbstractParser<AbilityActionGenerateElemBall>() {
@java.lang.Override
public AbilityActionGenerateElemBall parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityActionGenerateElemBall(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityActionGenerateElemBall> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityActionGenerateElemBall> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityActionGenerateElemBallOuterClass.AbilityActionGenerateElemBall getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityActionGenerateElemBall_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityActionGenerateElemBall_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n#AbilityActionGenerateElemBall.proto\032\014V" +
"ector.proto\"\\\n\035AbilityActionGenerateElem" +
"Ball\022\017\n\007room_id\030\002 \001(\r\022\024\n\003pos\030\007 \001(\0132\007.Vec" +
"tor\022\024\n\003rot\030\r \001(\0132\007.VectorB\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.VectorOuterClass.getDescriptor(),
});
internal_static_AbilityActionGenerateElemBall_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_AbilityActionGenerateElemBall_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AbilityActionGenerateElemBall_descriptor,
new java.lang.String[] { "RoomId", "Pos", "Rot", });
emu.grasscutter.net.proto.VectorOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityAppliedAbility.proto
package emu.grasscutter.net.proto;
public final class AbilityAppliedAbilityOuterClass {
private AbilityAppliedAbilityOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityAppliedAbilityOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityAppliedAbility)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.AbilityString ability_name = 1;</code>
* @return Whether the abilityName field is set.
*/
boolean hasAbilityName();
/**
* <code>.AbilityString ability_name = 1;</code>
* @return The abilityName.
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName();
/**
* <code>.AbilityString ability_name = 1;</code>
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder();
/**
* <code>.AbilityString ability_override = 2;</code>
* @return Whether the abilityOverride field is set.
*/
boolean hasAbilityOverride();
/**
* <code>.AbilityString ability_override = 2;</code>
* @return The abilityOverride.
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride();
/**
* <code>.AbilityString ability_override = 2;</code>
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder();
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>
getOverrideMapList();
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index);
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
int getOverrideMapCount();
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>
getOverrideMapOrBuilderList();
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder(
int index);
/**
* <code>uint32 instanced_ability_id = 4;</code>
* @return The instancedAbilityId.
*/
int getInstancedAbilityId();
}
/**
* Protobuf type {@code AbilityAppliedAbility}
*/
public static final class AbilityAppliedAbility extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityAppliedAbility)
AbilityAppliedAbilityOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityAppliedAbility.newBuilder() to construct.
private AbilityAppliedAbility(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityAppliedAbility() {
overrideMap_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityAppliedAbility();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityAppliedAbility(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null;
if (abilityName_ != null) {
subBuilder = abilityName_.toBuilder();
}
abilityName_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(abilityName_);
abilityName_ = subBuilder.buildPartial();
}
break;
}
case 18: {
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null;
if (abilityOverride_ != null) {
subBuilder = abilityOverride_.toBuilder();
}
abilityOverride_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(abilityOverride_);
abilityOverride_ = subBuilder.buildPartial();
}
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
overrideMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>();
mutable_bitField0_ |= 0x00000001;
}
overrideMap_.add(
input.readMessage(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.parser(), extensionRegistry));
break;
}
case 32: {
instancedAbilityId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
overrideMap_ = java.util.Collections.unmodifiableList(overrideMap_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.class, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder.class);
}
public static final int ABILITY_NAME_FIELD_NUMBER = 1;
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityName_;
/**
* <code>.AbilityString ability_name = 1;</code>
* @return Whether the abilityName field is set.
*/
@java.lang.Override
public boolean hasAbilityName() {
return abilityName_ != null;
}
/**
* <code>.AbilityString ability_name = 1;</code>
* @return The abilityName.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName() {
return abilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_;
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder() {
return getAbilityName();
}
public static final int ABILITY_OVERRIDE_FIELD_NUMBER = 2;
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityOverride_;
/**
* <code>.AbilityString ability_override = 2;</code>
* @return Whether the abilityOverride field is set.
*/
@java.lang.Override
public boolean hasAbilityOverride() {
return abilityOverride_ != null;
}
/**
* <code>.AbilityString ability_override = 2;</code>
* @return The abilityOverride.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride() {
return abilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_;
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder() {
return getAbilityOverride();
}
public static final int OVERRIDE_MAP_FIELD_NUMBER = 3;
private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> overrideMap_;
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getOverrideMapList() {
return overrideMap_;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>
getOverrideMapOrBuilderList() {
return overrideMap_;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
@java.lang.Override
public int getOverrideMapCount() {
return overrideMap_.size();
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) {
return overrideMap_.get(index);
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder(
int index) {
return overrideMap_.get(index);
}
public static final int INSTANCED_ABILITY_ID_FIELD_NUMBER = 4;
private int instancedAbilityId_;
/**
* <code>uint32 instanced_ability_id = 4;</code>
* @return The instancedAbilityId.
*/
@java.lang.Override
public int getInstancedAbilityId() {
return instancedAbilityId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (abilityName_ != null) {
output.writeMessage(1, getAbilityName());
}
if (abilityOverride_ != null) {
output.writeMessage(2, getAbilityOverride());
}
for (int i = 0; i < overrideMap_.size(); i++) {
output.writeMessage(3, overrideMap_.get(i));
}
if (instancedAbilityId_ != 0) {
output.writeUInt32(4, instancedAbilityId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (abilityName_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAbilityName());
}
if (abilityOverride_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAbilityOverride());
}
for (int i = 0; i < overrideMap_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, overrideMap_.get(i));
}
if (instancedAbilityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, instancedAbilityId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility other = (emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) obj;
if (hasAbilityName() != other.hasAbilityName()) return false;
if (hasAbilityName()) {
if (!getAbilityName()
.equals(other.getAbilityName())) return false;
}
if (hasAbilityOverride() != other.hasAbilityOverride()) return false;
if (hasAbilityOverride()) {
if (!getAbilityOverride()
.equals(other.getAbilityOverride())) return false;
}
if (!getOverrideMapList()
.equals(other.getOverrideMapList())) return false;
if (getInstancedAbilityId()
!= other.getInstancedAbilityId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAbilityName()) {
hash = (37 * hash) + ABILITY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getAbilityName().hashCode();
}
if (hasAbilityOverride()) {
hash = (37 * hash) + ABILITY_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getAbilityOverride().hashCode();
}
if (getOverrideMapCount() > 0) {
hash = (37 * hash) + OVERRIDE_MAP_FIELD_NUMBER;
hash = (53 * hash) + getOverrideMapList().hashCode();
}
hash = (37 * hash) + INSTANCED_ABILITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstancedAbilityId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityAppliedAbility}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityAppliedAbility)
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbilityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.class, emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOverrideMapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (abilityNameBuilder_ == null) {
abilityName_ = null;
} else {
abilityName_ = null;
abilityNameBuilder_ = null;
}
if (abilityOverrideBuilder_ == null) {
abilityOverride_ = null;
} else {
abilityOverride_ = null;
abilityOverrideBuilder_ = null;
}
if (overrideMapBuilder_ == null) {
overrideMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
overrideMapBuilder_.clear();
}
instancedAbilityId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.internal_static_AbilityAppliedAbility_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility build() {
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility buildPartial() {
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility result = new emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility(this);
int from_bitField0_ = bitField0_;
if (abilityNameBuilder_ == null) {
result.abilityName_ = abilityName_;
} else {
result.abilityName_ = abilityNameBuilder_.build();
}
if (abilityOverrideBuilder_ == null) {
result.abilityOverride_ = abilityOverride_;
} else {
result.abilityOverride_ = abilityOverrideBuilder_.build();
}
if (overrideMapBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
overrideMap_ = java.util.Collections.unmodifiableList(overrideMap_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.overrideMap_ = overrideMap_;
} else {
result.overrideMap_ = overrideMapBuilder_.build();
}
result.instancedAbilityId_ = instancedAbilityId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) {
return mergeFrom((emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility other) {
if (other == emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility.getDefaultInstance()) return this;
if (other.hasAbilityName()) {
mergeAbilityName(other.getAbilityName());
}
if (other.hasAbilityOverride()) {
mergeAbilityOverride(other.getAbilityOverride());
}
if (overrideMapBuilder_ == null) {
if (!other.overrideMap_.isEmpty()) {
if (overrideMap_.isEmpty()) {
overrideMap_ = other.overrideMap_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOverrideMapIsMutable();
overrideMap_.addAll(other.overrideMap_);
}
onChanged();
}
} else {
if (!other.overrideMap_.isEmpty()) {
if (overrideMapBuilder_.isEmpty()) {
overrideMapBuilder_.dispose();
overrideMapBuilder_ = null;
overrideMap_ = other.overrideMap_;
bitField0_ = (bitField0_ & ~0x00000001);
overrideMapBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOverrideMapFieldBuilder() : null;
} else {
overrideMapBuilder_.addAllMessages(other.overrideMap_);
}
}
}
if (other.getInstancedAbilityId() != 0) {
setInstancedAbilityId(other.getInstancedAbilityId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityName_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> abilityNameBuilder_;
/**
* <code>.AbilityString ability_name = 1;</code>
* @return Whether the abilityName field is set.
*/
public boolean hasAbilityName() {
return abilityNameBuilder_ != null || abilityName_ != null;
}
/**
* <code>.AbilityString ability_name = 1;</code>
* @return The abilityName.
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityName() {
if (abilityNameBuilder_ == null) {
return abilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_;
} else {
return abilityNameBuilder_.getMessage();
}
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public Builder setAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (abilityNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
abilityName_ = value;
onChanged();
} else {
abilityNameBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public Builder setAbilityName(
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) {
if (abilityNameBuilder_ == null) {
abilityName_ = builderForValue.build();
onChanged();
} else {
abilityNameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public Builder mergeAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (abilityNameBuilder_ == null) {
if (abilityName_ != null) {
abilityName_ =
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(abilityName_).mergeFrom(value).buildPartial();
} else {
abilityName_ = value;
}
onChanged();
} else {
abilityNameBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public Builder clearAbilityName() {
if (abilityNameBuilder_ == null) {
abilityName_ = null;
onChanged();
} else {
abilityName_ = null;
abilityNameBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityNameBuilder() {
onChanged();
return getAbilityNameFieldBuilder().getBuilder();
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityNameOrBuilder() {
if (abilityNameBuilder_ != null) {
return abilityNameBuilder_.getMessageOrBuilder();
} else {
return abilityName_ == null ?
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityName_;
}
}
/**
* <code>.AbilityString ability_name = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>
getAbilityNameFieldBuilder() {
if (abilityNameBuilder_ == null) {
abilityNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>(
getAbilityName(),
getParentForChildren(),
isClean());
abilityName_ = null;
}
return abilityNameBuilder_;
}
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString abilityOverride_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> abilityOverrideBuilder_;
/**
* <code>.AbilityString ability_override = 2;</code>
* @return Whether the abilityOverride field is set.
*/
public boolean hasAbilityOverride() {
return abilityOverrideBuilder_ != null || abilityOverride_ != null;
}
/**
* <code>.AbilityString ability_override = 2;</code>
* @return The abilityOverride.
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getAbilityOverride() {
if (abilityOverrideBuilder_ == null) {
return abilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_;
} else {
return abilityOverrideBuilder_.getMessage();
}
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public Builder setAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (abilityOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
abilityOverride_ = value;
onChanged();
} else {
abilityOverrideBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public Builder setAbilityOverride(
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) {
if (abilityOverrideBuilder_ == null) {
abilityOverride_ = builderForValue.build();
onChanged();
} else {
abilityOverrideBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public Builder mergeAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (abilityOverrideBuilder_ == null) {
if (abilityOverride_ != null) {
abilityOverride_ =
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(abilityOverride_).mergeFrom(value).buildPartial();
} else {
abilityOverride_ = value;
}
onChanged();
} else {
abilityOverrideBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public Builder clearAbilityOverride() {
if (abilityOverrideBuilder_ == null) {
abilityOverride_ = null;
onChanged();
} else {
abilityOverride_ = null;
abilityOverrideBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getAbilityOverrideBuilder() {
onChanged();
return getAbilityOverrideFieldBuilder().getBuilder();
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getAbilityOverrideOrBuilder() {
if (abilityOverrideBuilder_ != null) {
return abilityOverrideBuilder_.getMessageOrBuilder();
} else {
return abilityOverride_ == null ?
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : abilityOverride_;
}
}
/**
* <code>.AbilityString ability_override = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>
getAbilityOverrideFieldBuilder() {
if (abilityOverrideBuilder_ == null) {
abilityOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>(
getAbilityOverride(),
getParentForChildren(),
isClean());
abilityOverride_ = null;
}
return abilityOverrideBuilder_;
}
private java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> overrideMap_ =
java.util.Collections.emptyList();
private void ensureOverrideMapIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
overrideMap_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry>(overrideMap_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder> overrideMapBuilder_;
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> getOverrideMapList() {
if (overrideMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(overrideMap_);
} else {
return overrideMapBuilder_.getMessageList();
}
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public int getOverrideMapCount() {
if (overrideMapBuilder_ == null) {
return overrideMap_.size();
} else {
return overrideMapBuilder_.getCount();
}
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry getOverrideMap(int index) {
if (overrideMapBuilder_ == null) {
return overrideMap_.get(index);
} else {
return overrideMapBuilder_.getMessage(index);
}
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder setOverrideMap(
int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) {
if (overrideMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOverrideMapIsMutable();
overrideMap_.set(index, value);
onChanged();
} else {
overrideMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder setOverrideMap(
int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) {
if (overrideMapBuilder_ == null) {
ensureOverrideMapIsMutable();
overrideMap_.set(index, builderForValue.build());
onChanged();
} else {
overrideMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder addOverrideMap(emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) {
if (overrideMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOverrideMapIsMutable();
overrideMap_.add(value);
onChanged();
} else {
overrideMapBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder addOverrideMap(
int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry value) {
if (overrideMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOverrideMapIsMutable();
overrideMap_.add(index, value);
onChanged();
} else {
overrideMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder addOverrideMap(
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) {
if (overrideMapBuilder_ == null) {
ensureOverrideMapIsMutable();
overrideMap_.add(builderForValue.build());
onChanged();
} else {
overrideMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder addOverrideMap(
int index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder builderForValue) {
if (overrideMapBuilder_ == null) {
ensureOverrideMapIsMutable();
overrideMap_.add(index, builderForValue.build());
onChanged();
} else {
overrideMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder addAllOverrideMap(
java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry> values) {
if (overrideMapBuilder_ == null) {
ensureOverrideMapIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, overrideMap_);
onChanged();
} else {
overrideMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder clearOverrideMap() {
if (overrideMapBuilder_ == null) {
overrideMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
overrideMapBuilder_.clear();
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public Builder removeOverrideMap(int index) {
if (overrideMapBuilder_ == null) {
ensureOverrideMapIsMutable();
overrideMap_.remove(index);
onChanged();
} else {
overrideMapBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder getOverrideMapBuilder(
int index) {
return getOverrideMapFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder getOverrideMapOrBuilder(
int index) {
if (overrideMapBuilder_ == null) {
return overrideMap_.get(index); } else {
return overrideMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>
getOverrideMapOrBuilderList() {
if (overrideMapBuilder_ != null) {
return overrideMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(overrideMap_);
}
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder() {
return getOverrideMapFieldBuilder().addBuilder(
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance());
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder addOverrideMapBuilder(
int index) {
return getOverrideMapFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.getDefaultInstance());
}
/**
* <code>repeated .AbilityScalarValueEntry override_map = 3;</code>
*/
public java.util.List<emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder>
getOverrideMapBuilderList() {
return getOverrideMapFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>
getOverrideMapFieldBuilder() {
if (overrideMapBuilder_ == null) {
overrideMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntry.Builder, emu.grasscutter.net.proto.AbilityScalarValueEntryOuterClass.AbilityScalarValueEntryOrBuilder>(
overrideMap_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
overrideMap_ = null;
}
return overrideMapBuilder_;
}
private int instancedAbilityId_ ;
/**
* <code>uint32 instanced_ability_id = 4;</code>
* @return The instancedAbilityId.
*/
@java.lang.Override
public int getInstancedAbilityId() {
return instancedAbilityId_;
}
/**
* <code>uint32 instanced_ability_id = 4;</code>
* @param value The instancedAbilityId to set.
* @return This builder for chaining.
*/
public Builder setInstancedAbilityId(int value) {
instancedAbilityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 instanced_ability_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearInstancedAbilityId() {
instancedAbilityId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityAppliedAbility)
}
// @@protoc_insertion_point(class_scope:AbilityAppliedAbility)
private static final emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility();
}
public static emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityAppliedAbility>
PARSER = new com.google.protobuf.AbstractParser<AbilityAppliedAbility>() {
@java.lang.Override
public AbilityAppliedAbility parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityAppliedAbility(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityAppliedAbility> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityAppliedAbility> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedAbilityOuterClass.AbilityAppliedAbility getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityAppliedAbility_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityAppliedAbility_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033AbilityAppliedAbility.proto\032\035AbilitySc" +
"alarValueEntry.proto\032\023AbilityString.prot" +
"o\"\265\001\n\025AbilityAppliedAbility\022$\n\014ability_n" +
"ame\030\001 \001(\0132\016.AbilityString\022(\n\020ability_ove" +
"rride\030\002 \001(\0132\016.AbilityString\022.\n\014override_" +
"map\030\003 \003(\0132\030.AbilityScalarValueEntry\022\034\n\024i" +
"nstanced_ability_id\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[] {
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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityAppliedModifier.proto
package emu.grasscutter.net.proto;
public final class AbilityAppliedModifierOuterClass {
private AbilityAppliedModifierOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityAppliedModifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityAppliedModifier)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 modifier_local_id = 1;</code>
* @return The modifierLocalId.
*/
int getModifierLocalId();
/**
* <code>uint32 parent_ability_entity_id = 2;</code>
* @return The parentAbilityEntityId.
*/
int getParentAbilityEntityId();
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return Whether the parentAbilityName field is set.
*/
boolean hasParentAbilityName();
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return The parentAbilityName.
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName();
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder();
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return Whether the parentAbilityOverride field is set.
*/
boolean hasParentAbilityOverride();
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return The parentAbilityOverride.
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride();
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder();
/**
* <code>uint32 instanced_ability_id = 5;</code>
* @return The instancedAbilityId.
*/
int getInstancedAbilityId();
/**
* <code>uint32 instanced_modifier_id = 6;</code>
* @return The instancedModifierId.
*/
int getInstancedModifierId();
/**
* <code>float exist_duration = 7;</code>
* @return The existDuration.
*/
float getExistDuration();
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return Whether the attachedInstancedModifier field is set.
*/
boolean hasAttachedInstancedModifier();
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return The attachedInstancedModifier.
*/
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier();
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder();
/**
* <code>uint32 apply_entity_id = 9;</code>
* @return The applyEntityId.
*/
int getApplyEntityId();
/**
* <code>bool is_attached_parent_ability = 10;</code>
* @return The isAttachedParentAbility.
*/
boolean getIsAttachedParentAbility();
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return Whether the modifierDurability field is set.
*/
boolean hasModifierDurability();
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return The modifierDurability.
*/
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability();
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder();
/**
* <code>uint32 sbuff_uid = 12;</code>
* @return The sbuffUid.
*/
int getSbuffUid();
/**
* <code>bool is_serverbuff_modifier = 13;</code>
* @return The isServerbuffModifier.
*/
boolean getIsServerbuffModifier();
}
/**
* Protobuf type {@code AbilityAppliedModifier}
*/
public static final class AbilityAppliedModifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityAppliedModifier)
AbilityAppliedModifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityAppliedModifier.newBuilder() to construct.
private AbilityAppliedModifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityAppliedModifier() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityAppliedModifier();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityAppliedModifier(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
modifierLocalId_ = input.readInt32();
break;
}
case 16: {
parentAbilityEntityId_ = input.readUInt32();
break;
}
case 26: {
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null;
if (parentAbilityName_ != null) {
subBuilder = parentAbilityName_.toBuilder();
}
parentAbilityName_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentAbilityName_);
parentAbilityName_ = subBuilder.buildPartial();
}
break;
}
case 34: {
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder subBuilder = null;
if (parentAbilityOverride_ != null) {
subBuilder = parentAbilityOverride_.toBuilder();
}
parentAbilityOverride_ = input.readMessage(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parentAbilityOverride_);
parentAbilityOverride_ = subBuilder.buildPartial();
}
break;
}
case 40: {
instancedAbilityId_ = input.readUInt32();
break;
}
case 48: {
instancedModifierId_ = input.readUInt32();
break;
}
case 61: {
existDuration_ = input.readFloat();
break;
}
case 66: {
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder subBuilder = null;
if (attachedInstancedModifier_ != null) {
subBuilder = attachedInstancedModifier_.toBuilder();
}
attachedInstancedModifier_ = input.readMessage(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attachedInstancedModifier_);
attachedInstancedModifier_ = subBuilder.buildPartial();
}
break;
}
case 72: {
applyEntityId_ = input.readUInt32();
break;
}
case 80: {
isAttachedParentAbility_ = input.readBool();
break;
}
case 90: {
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder subBuilder = null;
if (modifierDurability_ != null) {
subBuilder = modifierDurability_.toBuilder();
}
modifierDurability_ = input.readMessage(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(modifierDurability_);
modifierDurability_ = subBuilder.buildPartial();
}
break;
}
case 96: {
sbuffUid_ = input.readUInt32();
break;
}
case 104: {
isServerbuffModifier_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.class, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder.class);
}
public static final int MODIFIER_LOCAL_ID_FIELD_NUMBER = 1;
private int modifierLocalId_;
/**
* <code>int32 modifier_local_id = 1;</code>
* @return The modifierLocalId.
*/
@java.lang.Override
public int getModifierLocalId() {
return modifierLocalId_;
}
public static final int PARENT_ABILITY_ENTITY_ID_FIELD_NUMBER = 2;
private int parentAbilityEntityId_;
/**
* <code>uint32 parent_ability_entity_id = 2;</code>
* @return The parentAbilityEntityId.
*/
@java.lang.Override
public int getParentAbilityEntityId() {
return parentAbilityEntityId_;
}
public static final int PARENT_ABILITY_NAME_FIELD_NUMBER = 3;
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityName_;
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return Whether the parentAbilityName field is set.
*/
@java.lang.Override
public boolean hasParentAbilityName() {
return parentAbilityName_ != null;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return The parentAbilityName.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName() {
return parentAbilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder() {
return getParentAbilityName();
}
public static final int PARENT_ABILITY_OVERRIDE_FIELD_NUMBER = 4;
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityOverride_;
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return Whether the parentAbilityOverride field is set.
*/
@java.lang.Override
public boolean hasParentAbilityOverride() {
return parentAbilityOverride_ != null;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return The parentAbilityOverride.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride() {
return parentAbilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder() {
return getParentAbilityOverride();
}
public static final int INSTANCED_ABILITY_ID_FIELD_NUMBER = 5;
private int instancedAbilityId_;
/**
* <code>uint32 instanced_ability_id = 5;</code>
* @return The instancedAbilityId.
*/
@java.lang.Override
public int getInstancedAbilityId() {
return instancedAbilityId_;
}
public static final int INSTANCED_MODIFIER_ID_FIELD_NUMBER = 6;
private int instancedModifierId_;
/**
* <code>uint32 instanced_modifier_id = 6;</code>
* @return The instancedModifierId.
*/
@java.lang.Override
public int getInstancedModifierId() {
return instancedModifierId_;
}
public static final int EXIST_DURATION_FIELD_NUMBER = 7;
private float existDuration_;
/**
* <code>float exist_duration = 7;</code>
* @return The existDuration.
*/
@java.lang.Override
public float getExistDuration() {
return existDuration_;
}
public static final int ATTACHED_INSTANCED_MODIFIER_FIELD_NUMBER = 8;
private emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier attachedInstancedModifier_;
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return Whether the attachedInstancedModifier field is set.
*/
@java.lang.Override
public boolean hasAttachedInstancedModifier() {
return attachedInstancedModifier_ != null;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return The attachedInstancedModifier.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier() {
return attachedInstancedModifier_ == null ? emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder() {
return getAttachedInstancedModifier();
}
public static final int APPLY_ENTITY_ID_FIELD_NUMBER = 9;
private int applyEntityId_;
/**
* <code>uint32 apply_entity_id = 9;</code>
* @return The applyEntityId.
*/
@java.lang.Override
public int getApplyEntityId() {
return applyEntityId_;
}
public static final int IS_ATTACHED_PARENT_ABILITY_FIELD_NUMBER = 10;
private boolean isAttachedParentAbility_;
/**
* <code>bool is_attached_parent_ability = 10;</code>
* @return The isAttachedParentAbility.
*/
@java.lang.Override
public boolean getIsAttachedParentAbility() {
return isAttachedParentAbility_;
}
public static final int MODIFIER_DURABILITY_FIELD_NUMBER = 11;
private emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability modifierDurability_;
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return Whether the modifierDurability field is set.
*/
@java.lang.Override
public boolean hasModifierDurability() {
return modifierDurability_ != null;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return The modifierDurability.
*/
@java.lang.Override
public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability() {
return modifierDurability_ == null ? emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder() {
return getModifierDurability();
}
public static final int SBUFF_UID_FIELD_NUMBER = 12;
private int sbuffUid_;
/**
* <code>uint32 sbuff_uid = 12;</code>
* @return The sbuffUid.
*/
@java.lang.Override
public int getSbuffUid() {
return sbuffUid_;
}
public static final int IS_SERVERBUFF_MODIFIER_FIELD_NUMBER = 13;
private boolean isServerbuffModifier_;
/**
* <code>bool is_serverbuff_modifier = 13;</code>
* @return The isServerbuffModifier.
*/
@java.lang.Override
public boolean getIsServerbuffModifier() {
return isServerbuffModifier_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (modifierLocalId_ != 0) {
output.writeInt32(1, modifierLocalId_);
}
if (parentAbilityEntityId_ != 0) {
output.writeUInt32(2, parentAbilityEntityId_);
}
if (parentAbilityName_ != null) {
output.writeMessage(3, getParentAbilityName());
}
if (parentAbilityOverride_ != null) {
output.writeMessage(4, getParentAbilityOverride());
}
if (instancedAbilityId_ != 0) {
output.writeUInt32(5, instancedAbilityId_);
}
if (instancedModifierId_ != 0) {
output.writeUInt32(6, instancedModifierId_);
}
if (existDuration_ != 0F) {
output.writeFloat(7, existDuration_);
}
if (attachedInstancedModifier_ != null) {
output.writeMessage(8, getAttachedInstancedModifier());
}
if (applyEntityId_ != 0) {
output.writeUInt32(9, applyEntityId_);
}
if (isAttachedParentAbility_ != false) {
output.writeBool(10, isAttachedParentAbility_);
}
if (modifierDurability_ != null) {
output.writeMessage(11, getModifierDurability());
}
if (sbuffUid_ != 0) {
output.writeUInt32(12, sbuffUid_);
}
if (isServerbuffModifier_ != false) {
output.writeBool(13, isServerbuffModifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (modifierLocalId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, modifierLocalId_);
}
if (parentAbilityEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, parentAbilityEntityId_);
}
if (parentAbilityName_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getParentAbilityName());
}
if (parentAbilityOverride_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getParentAbilityOverride());
}
if (instancedAbilityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, instancedAbilityId_);
}
if (instancedModifierId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, instancedModifierId_);
}
if (existDuration_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(7, existDuration_);
}
if (attachedInstancedModifier_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAttachedInstancedModifier());
}
if (applyEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, applyEntityId_);
}
if (isAttachedParentAbility_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isAttachedParentAbility_);
}
if (modifierDurability_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getModifierDurability());
}
if (sbuffUid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, sbuffUid_);
}
if (isServerbuffModifier_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, isServerbuffModifier_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier other = (emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) obj;
if (getModifierLocalId()
!= other.getModifierLocalId()) return false;
if (getParentAbilityEntityId()
!= other.getParentAbilityEntityId()) return false;
if (hasParentAbilityName() != other.hasParentAbilityName()) return false;
if (hasParentAbilityName()) {
if (!getParentAbilityName()
.equals(other.getParentAbilityName())) return false;
}
if (hasParentAbilityOverride() != other.hasParentAbilityOverride()) return false;
if (hasParentAbilityOverride()) {
if (!getParentAbilityOverride()
.equals(other.getParentAbilityOverride())) return false;
}
if (getInstancedAbilityId()
!= other.getInstancedAbilityId()) return false;
if (getInstancedModifierId()
!= other.getInstancedModifierId()) return false;
if (java.lang.Float.floatToIntBits(getExistDuration())
!= java.lang.Float.floatToIntBits(
other.getExistDuration())) return false;
if (hasAttachedInstancedModifier() != other.hasAttachedInstancedModifier()) return false;
if (hasAttachedInstancedModifier()) {
if (!getAttachedInstancedModifier()
.equals(other.getAttachedInstancedModifier())) return false;
}
if (getApplyEntityId()
!= other.getApplyEntityId()) return false;
if (getIsAttachedParentAbility()
!= other.getIsAttachedParentAbility()) return false;
if (hasModifierDurability() != other.hasModifierDurability()) return false;
if (hasModifierDurability()) {
if (!getModifierDurability()
.equals(other.getModifierDurability())) return false;
}
if (getSbuffUid()
!= other.getSbuffUid()) return false;
if (getIsServerbuffModifier()
!= other.getIsServerbuffModifier()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODIFIER_LOCAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getModifierLocalId();
hash = (37 * hash) + PARENT_ABILITY_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getParentAbilityEntityId();
if (hasParentAbilityName()) {
hash = (37 * hash) + PARENT_ABILITY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getParentAbilityName().hashCode();
}
if (hasParentAbilityOverride()) {
hash = (37 * hash) + PARENT_ABILITY_OVERRIDE_FIELD_NUMBER;
hash = (53 * hash) + getParentAbilityOverride().hashCode();
}
hash = (37 * hash) + INSTANCED_ABILITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstancedAbilityId();
hash = (37 * hash) + INSTANCED_MODIFIER_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstancedModifierId();
hash = (37 * hash) + EXIST_DURATION_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getExistDuration());
if (hasAttachedInstancedModifier()) {
hash = (37 * hash) + ATTACHED_INSTANCED_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + getAttachedInstancedModifier().hashCode();
}
hash = (37 * hash) + APPLY_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplyEntityId();
hash = (37 * hash) + IS_ATTACHED_PARENT_ABILITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsAttachedParentAbility());
if (hasModifierDurability()) {
hash = (37 * hash) + MODIFIER_DURABILITY_FIELD_NUMBER;
hash = (53 * hash) + getModifierDurability().hashCode();
}
hash = (37 * hash) + SBUFF_UID_FIELD_NUMBER;
hash = (53 * hash) + getSbuffUid();
hash = (37 * hash) + IS_SERVERBUFF_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsServerbuffModifier());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityAppliedModifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityAppliedModifier)
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.class, emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
modifierLocalId_ = 0;
parentAbilityEntityId_ = 0;
if (parentAbilityNameBuilder_ == null) {
parentAbilityName_ = null;
} else {
parentAbilityName_ = null;
parentAbilityNameBuilder_ = null;
}
if (parentAbilityOverrideBuilder_ == null) {
parentAbilityOverride_ = null;
} else {
parentAbilityOverride_ = null;
parentAbilityOverrideBuilder_ = null;
}
instancedAbilityId_ = 0;
instancedModifierId_ = 0;
existDuration_ = 0F;
if (attachedInstancedModifierBuilder_ == null) {
attachedInstancedModifier_ = null;
} else {
attachedInstancedModifier_ = null;
attachedInstancedModifierBuilder_ = null;
}
applyEntityId_ = 0;
isAttachedParentAbility_ = false;
if (modifierDurabilityBuilder_ == null) {
modifierDurability_ = null;
} else {
modifierDurability_ = null;
modifierDurabilityBuilder_ = null;
}
sbuffUid_ = 0;
isServerbuffModifier_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.internal_static_AbilityAppliedModifier_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier build() {
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier buildPartial() {
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier result = new emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier(this);
result.modifierLocalId_ = modifierLocalId_;
result.parentAbilityEntityId_ = parentAbilityEntityId_;
if (parentAbilityNameBuilder_ == null) {
result.parentAbilityName_ = parentAbilityName_;
} else {
result.parentAbilityName_ = parentAbilityNameBuilder_.build();
}
if (parentAbilityOverrideBuilder_ == null) {
result.parentAbilityOverride_ = parentAbilityOverride_;
} else {
result.parentAbilityOverride_ = parentAbilityOverrideBuilder_.build();
}
result.instancedAbilityId_ = instancedAbilityId_;
result.instancedModifierId_ = instancedModifierId_;
result.existDuration_ = existDuration_;
if (attachedInstancedModifierBuilder_ == null) {
result.attachedInstancedModifier_ = attachedInstancedModifier_;
} else {
result.attachedInstancedModifier_ = attachedInstancedModifierBuilder_.build();
}
result.applyEntityId_ = applyEntityId_;
result.isAttachedParentAbility_ = isAttachedParentAbility_;
if (modifierDurabilityBuilder_ == null) {
result.modifierDurability_ = modifierDurability_;
} else {
result.modifierDurability_ = modifierDurabilityBuilder_.build();
}
result.sbuffUid_ = sbuffUid_;
result.isServerbuffModifier_ = isServerbuffModifier_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) {
return mergeFrom((emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier other) {
if (other == emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier.getDefaultInstance()) return this;
if (other.getModifierLocalId() != 0) {
setModifierLocalId(other.getModifierLocalId());
}
if (other.getParentAbilityEntityId() != 0) {
setParentAbilityEntityId(other.getParentAbilityEntityId());
}
if (other.hasParentAbilityName()) {
mergeParentAbilityName(other.getParentAbilityName());
}
if (other.hasParentAbilityOverride()) {
mergeParentAbilityOverride(other.getParentAbilityOverride());
}
if (other.getInstancedAbilityId() != 0) {
setInstancedAbilityId(other.getInstancedAbilityId());
}
if (other.getInstancedModifierId() != 0) {
setInstancedModifierId(other.getInstancedModifierId());
}
if (other.getExistDuration() != 0F) {
setExistDuration(other.getExistDuration());
}
if (other.hasAttachedInstancedModifier()) {
mergeAttachedInstancedModifier(other.getAttachedInstancedModifier());
}
if (other.getApplyEntityId() != 0) {
setApplyEntityId(other.getApplyEntityId());
}
if (other.getIsAttachedParentAbility() != false) {
setIsAttachedParentAbility(other.getIsAttachedParentAbility());
}
if (other.hasModifierDurability()) {
mergeModifierDurability(other.getModifierDurability());
}
if (other.getSbuffUid() != 0) {
setSbuffUid(other.getSbuffUid());
}
if (other.getIsServerbuffModifier() != false) {
setIsServerbuffModifier(other.getIsServerbuffModifier());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int modifierLocalId_ ;
/**
* <code>int32 modifier_local_id = 1;</code>
* @return The modifierLocalId.
*/
@java.lang.Override
public int getModifierLocalId() {
return modifierLocalId_;
}
/**
* <code>int32 modifier_local_id = 1;</code>
* @param value The modifierLocalId to set.
* @return This builder for chaining.
*/
public Builder setModifierLocalId(int value) {
modifierLocalId_ = value;
onChanged();
return this;
}
/**
* <code>int32 modifier_local_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearModifierLocalId() {
modifierLocalId_ = 0;
onChanged();
return this;
}
private int parentAbilityEntityId_ ;
/**
* <code>uint32 parent_ability_entity_id = 2;</code>
* @return The parentAbilityEntityId.
*/
@java.lang.Override
public int getParentAbilityEntityId() {
return parentAbilityEntityId_;
}
/**
* <code>uint32 parent_ability_entity_id = 2;</code>
* @param value The parentAbilityEntityId to set.
* @return This builder for chaining.
*/
public Builder setParentAbilityEntityId(int value) {
parentAbilityEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 parent_ability_entity_id = 2;</code>
* @return This builder for chaining.
*/
public Builder clearParentAbilityEntityId() {
parentAbilityEntityId_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityName_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> parentAbilityNameBuilder_;
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return Whether the parentAbilityName field is set.
*/
public boolean hasParentAbilityName() {
return parentAbilityNameBuilder_ != null || parentAbilityName_ != null;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
* @return The parentAbilityName.
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityName() {
if (parentAbilityNameBuilder_ == null) {
return parentAbilityName_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_;
} else {
return parentAbilityNameBuilder_.getMessage();
}
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public Builder setParentAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (parentAbilityNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentAbilityName_ = value;
onChanged();
} else {
parentAbilityNameBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public Builder setParentAbilityName(
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) {
if (parentAbilityNameBuilder_ == null) {
parentAbilityName_ = builderForValue.build();
onChanged();
} else {
parentAbilityNameBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public Builder mergeParentAbilityName(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (parentAbilityNameBuilder_ == null) {
if (parentAbilityName_ != null) {
parentAbilityName_ =
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(parentAbilityName_).mergeFrom(value).buildPartial();
} else {
parentAbilityName_ = value;
}
onChanged();
} else {
parentAbilityNameBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public Builder clearParentAbilityName() {
if (parentAbilityNameBuilder_ == null) {
parentAbilityName_ = null;
onChanged();
} else {
parentAbilityName_ = null;
parentAbilityNameBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityNameBuilder() {
onChanged();
return getParentAbilityNameFieldBuilder().getBuilder();
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityNameOrBuilder() {
if (parentAbilityNameBuilder_ != null) {
return parentAbilityNameBuilder_.getMessageOrBuilder();
} else {
return parentAbilityName_ == null ?
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityName_;
}
}
/**
* <code>.AbilityString parent_ability_name = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>
getParentAbilityNameFieldBuilder() {
if (parentAbilityNameBuilder_ == null) {
parentAbilityNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>(
getParentAbilityName(),
getParentForChildren(),
isClean());
parentAbilityName_ = null;
}
return parentAbilityNameBuilder_;
}
private emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString parentAbilityOverride_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder> parentAbilityOverrideBuilder_;
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return Whether the parentAbilityOverride field is set.
*/
public boolean hasParentAbilityOverride() {
return parentAbilityOverrideBuilder_ != null || parentAbilityOverride_ != null;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
* @return The parentAbilityOverride.
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString getParentAbilityOverride() {
if (parentAbilityOverrideBuilder_ == null) {
return parentAbilityOverride_ == null ? emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_;
} else {
return parentAbilityOverrideBuilder_.getMessage();
}
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public Builder setParentAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (parentAbilityOverrideBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentAbilityOverride_ = value;
onChanged();
} else {
parentAbilityOverrideBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public Builder setParentAbilityOverride(
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder builderForValue) {
if (parentAbilityOverrideBuilder_ == null) {
parentAbilityOverride_ = builderForValue.build();
onChanged();
} else {
parentAbilityOverrideBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public Builder mergeParentAbilityOverride(emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString value) {
if (parentAbilityOverrideBuilder_ == null) {
if (parentAbilityOverride_ != null) {
parentAbilityOverride_ =
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.newBuilder(parentAbilityOverride_).mergeFrom(value).buildPartial();
} else {
parentAbilityOverride_ = value;
}
onChanged();
} else {
parentAbilityOverrideBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public Builder clearParentAbilityOverride() {
if (parentAbilityOverrideBuilder_ == null) {
parentAbilityOverride_ = null;
onChanged();
} else {
parentAbilityOverride_ = null;
parentAbilityOverrideBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder getParentAbilityOverrideBuilder() {
onChanged();
return getParentAbilityOverrideFieldBuilder().getBuilder();
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
public emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder getParentAbilityOverrideOrBuilder() {
if (parentAbilityOverrideBuilder_ != null) {
return parentAbilityOverrideBuilder_.getMessageOrBuilder();
} else {
return parentAbilityOverride_ == null ?
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.getDefaultInstance() : parentAbilityOverride_;
}
}
/**
* <code>.AbilityString parent_ability_override = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>
getParentAbilityOverrideFieldBuilder() {
if (parentAbilityOverrideBuilder_ == null) {
parentAbilityOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityString.Builder, emu.grasscutter.net.proto.AbilityStringOuterClass.AbilityStringOrBuilder>(
getParentAbilityOverride(),
getParentForChildren(),
isClean());
parentAbilityOverride_ = null;
}
return parentAbilityOverrideBuilder_;
}
private int instancedAbilityId_ ;
/**
* <code>uint32 instanced_ability_id = 5;</code>
* @return The instancedAbilityId.
*/
@java.lang.Override
public int getInstancedAbilityId() {
return instancedAbilityId_;
}
/**
* <code>uint32 instanced_ability_id = 5;</code>
* @param value The instancedAbilityId to set.
* @return This builder for chaining.
*/
public Builder setInstancedAbilityId(int value) {
instancedAbilityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 instanced_ability_id = 5;</code>
* @return This builder for chaining.
*/
public Builder clearInstancedAbilityId() {
instancedAbilityId_ = 0;
onChanged();
return this;
}
private int instancedModifierId_ ;
/**
* <code>uint32 instanced_modifier_id = 6;</code>
* @return The instancedModifierId.
*/
@java.lang.Override
public int getInstancedModifierId() {
return instancedModifierId_;
}
/**
* <code>uint32 instanced_modifier_id = 6;</code>
* @param value The instancedModifierId to set.
* @return This builder for chaining.
*/
public Builder setInstancedModifierId(int value) {
instancedModifierId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 instanced_modifier_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearInstancedModifierId() {
instancedModifierId_ = 0;
onChanged();
return this;
}
private float existDuration_ ;
/**
* <code>float exist_duration = 7;</code>
* @return The existDuration.
*/
@java.lang.Override
public float getExistDuration() {
return existDuration_;
}
/**
* <code>float exist_duration = 7;</code>
* @param value The existDuration to set.
* @return This builder for chaining.
*/
public Builder setExistDuration(float value) {
existDuration_ = value;
onChanged();
return this;
}
/**
* <code>float exist_duration = 7;</code>
* @return This builder for chaining.
*/
public Builder clearExistDuration() {
existDuration_ = 0F;
onChanged();
return this;
}
private emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier attachedInstancedModifier_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder> attachedInstancedModifierBuilder_;
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return Whether the attachedInstancedModifier field is set.
*/
public boolean hasAttachedInstancedModifier() {
return attachedInstancedModifierBuilder_ != null || attachedInstancedModifier_ != null;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
* @return The attachedInstancedModifier.
*/
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getAttachedInstancedModifier() {
if (attachedInstancedModifierBuilder_ == null) {
return attachedInstancedModifier_ == null ? emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_;
} else {
return attachedInstancedModifierBuilder_.getMessage();
}
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public Builder setAttachedInstancedModifier(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier value) {
if (attachedInstancedModifierBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attachedInstancedModifier_ = value;
onChanged();
} else {
attachedInstancedModifierBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public Builder setAttachedInstancedModifier(
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder builderForValue) {
if (attachedInstancedModifierBuilder_ == null) {
attachedInstancedModifier_ = builderForValue.build();
onChanged();
} else {
attachedInstancedModifierBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public Builder mergeAttachedInstancedModifier(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier value) {
if (attachedInstancedModifierBuilder_ == null) {
if (attachedInstancedModifier_ != null) {
attachedInstancedModifier_ =
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.newBuilder(attachedInstancedModifier_).mergeFrom(value).buildPartial();
} else {
attachedInstancedModifier_ = value;
}
onChanged();
} else {
attachedInstancedModifierBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public Builder clearAttachedInstancedModifier() {
if (attachedInstancedModifierBuilder_ == null) {
attachedInstancedModifier_ = null;
onChanged();
} else {
attachedInstancedModifier_ = null;
attachedInstancedModifierBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder getAttachedInstancedModifierBuilder() {
onChanged();
return getAttachedInstancedModifierFieldBuilder().getBuilder();
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder getAttachedInstancedModifierOrBuilder() {
if (attachedInstancedModifierBuilder_ != null) {
return attachedInstancedModifierBuilder_.getMessageOrBuilder();
} else {
return attachedInstancedModifier_ == null ?
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance() : attachedInstancedModifier_;
}
}
/**
* <code>.AbilityAttachedModifier attached_instanced_modifier = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder>
getAttachedInstancedModifierFieldBuilder() {
if (attachedInstancedModifierBuilder_ == null) {
attachedInstancedModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder>(
getAttachedInstancedModifier(),
getParentForChildren(),
isClean());
attachedInstancedModifier_ = null;
}
return attachedInstancedModifierBuilder_;
}
private int applyEntityId_ ;
/**
* <code>uint32 apply_entity_id = 9;</code>
* @return The applyEntityId.
*/
@java.lang.Override
public int getApplyEntityId() {
return applyEntityId_;
}
/**
* <code>uint32 apply_entity_id = 9;</code>
* @param value The applyEntityId to set.
* @return This builder for chaining.
*/
public Builder setApplyEntityId(int value) {
applyEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 apply_entity_id = 9;</code>
* @return This builder for chaining.
*/
public Builder clearApplyEntityId() {
applyEntityId_ = 0;
onChanged();
return this;
}
private boolean isAttachedParentAbility_ ;
/**
* <code>bool is_attached_parent_ability = 10;</code>
* @return The isAttachedParentAbility.
*/
@java.lang.Override
public boolean getIsAttachedParentAbility() {
return isAttachedParentAbility_;
}
/**
* <code>bool is_attached_parent_ability = 10;</code>
* @param value The isAttachedParentAbility to set.
* @return This builder for chaining.
*/
public Builder setIsAttachedParentAbility(boolean value) {
isAttachedParentAbility_ = value;
onChanged();
return this;
}
/**
* <code>bool is_attached_parent_ability = 10;</code>
* @return This builder for chaining.
*/
public Builder clearIsAttachedParentAbility() {
isAttachedParentAbility_ = false;
onChanged();
return this;
}
private emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability modifierDurability_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder> modifierDurabilityBuilder_;
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return Whether the modifierDurability field is set.
*/
public boolean hasModifierDurability() {
return modifierDurabilityBuilder_ != null || modifierDurability_ != null;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
* @return The modifierDurability.
*/
public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability getModifierDurability() {
if (modifierDurabilityBuilder_ == null) {
return modifierDurability_ == null ? emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_;
} else {
return modifierDurabilityBuilder_.getMessage();
}
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public Builder setModifierDurability(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability value) {
if (modifierDurabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modifierDurability_ = value;
onChanged();
} else {
modifierDurabilityBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public Builder setModifierDurability(
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder builderForValue) {
if (modifierDurabilityBuilder_ == null) {
modifierDurability_ = builderForValue.build();
onChanged();
} else {
modifierDurabilityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public Builder mergeModifierDurability(emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability value) {
if (modifierDurabilityBuilder_ == null) {
if (modifierDurability_ != null) {
modifierDurability_ =
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.newBuilder(modifierDurability_).mergeFrom(value).buildPartial();
} else {
modifierDurability_ = value;
}
onChanged();
} else {
modifierDurabilityBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public Builder clearModifierDurability() {
if (modifierDurabilityBuilder_ == null) {
modifierDurability_ = null;
onChanged();
} else {
modifierDurability_ = null;
modifierDurabilityBuilder_ = null;
}
return this;
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder getModifierDurabilityBuilder() {
onChanged();
return getModifierDurabilityFieldBuilder().getBuilder();
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
public emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder getModifierDurabilityOrBuilder() {
if (modifierDurabilityBuilder_ != null) {
return modifierDurabilityBuilder_.getMessageOrBuilder();
} else {
return modifierDurability_ == null ?
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.getDefaultInstance() : modifierDurability_;
}
}
/**
* <code>.ModifierDurability modifier_durability = 11;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder>
getModifierDurabilityFieldBuilder() {
if (modifierDurabilityBuilder_ == null) {
modifierDurabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurability.Builder, emu.grasscutter.net.proto.ModifierDurabilityOuterClass.ModifierDurabilityOrBuilder>(
getModifierDurability(),
getParentForChildren(),
isClean());
modifierDurability_ = null;
}
return modifierDurabilityBuilder_;
}
private int sbuffUid_ ;
/**
* <code>uint32 sbuff_uid = 12;</code>
* @return The sbuffUid.
*/
@java.lang.Override
public int getSbuffUid() {
return sbuffUid_;
}
/**
* <code>uint32 sbuff_uid = 12;</code>
* @param value The sbuffUid to set.
* @return This builder for chaining.
*/
public Builder setSbuffUid(int value) {
sbuffUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 sbuff_uid = 12;</code>
* @return This builder for chaining.
*/
public Builder clearSbuffUid() {
sbuffUid_ = 0;
onChanged();
return this;
}
private boolean isServerbuffModifier_ ;
/**
* <code>bool is_serverbuff_modifier = 13;</code>
* @return The isServerbuffModifier.
*/
@java.lang.Override
public boolean getIsServerbuffModifier() {
return isServerbuffModifier_;
}
/**
* <code>bool is_serverbuff_modifier = 13;</code>
* @param value The isServerbuffModifier to set.
* @return This builder for chaining.
*/
public Builder setIsServerbuffModifier(boolean value) {
isServerbuffModifier_ = value;
onChanged();
return this;
}
/**
* <code>bool is_serverbuff_modifier = 13;</code>
* @return This builder for chaining.
*/
public Builder clearIsServerbuffModifier() {
isServerbuffModifier_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityAppliedModifier)
}
// @@protoc_insertion_point(class_scope:AbilityAppliedModifier)
private static final emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier();
}
public static emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityAppliedModifier>
PARSER = new com.google.protobuf.AbstractParser<AbilityAppliedModifier>() {
@java.lang.Override
public AbilityAppliedModifier parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityAppliedModifier(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityAppliedModifier> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityAppliedModifier> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAppliedModifierOuterClass.AbilityAppliedModifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityAppliedModifier_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityAppliedModifier_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\034AbilityAppliedModifier.proto\032\035AbilityA" +
"ttachedModifier.proto\032\023AbilityString.pro" +
"to\032\030ModifierDurability.proto\"\351\003\n\026Ability" +
"AppliedModifier\022\031\n\021modifier_local_id\030\001 \001" +
"(\005\022 \n\030parent_ability_entity_id\030\002 \001(\r\022+\n\023" +
"parent_ability_name\030\003 \001(\0132\016.AbilityStrin" +
"g\022/\n\027parent_ability_override\030\004 \001(\0132\016.Abi" +
"lityString\022\034\n\024instanced_ability_id\030\005 \001(\r" +
"\022\035\n\025instanced_modifier_id\030\006 \001(\r\022\026\n\016exist" +
"_duration\030\007 \001(\002\022=\n\033attached_instanced_mo" +
"difier\030\010 \001(\0132\030.AbilityAttachedModifier\022\027" +
"\n\017apply_entity_id\030\t \001(\r\022\"\n\032is_attached_p" +
"arent_ability\030\n \001(\010\0220\n\023modifier_durabili" +
"ty\030\013 \001(\0132\023.ModifierDurability\022\021\n\tsbuff_u" +
"id\030\014 \001(\r\022\036\n\026is_serverbuff_modifier\030\r \001(\010" +
"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.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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityAttachedModifier.proto
package emu.grasscutter.net.proto;
public final class AbilityAttachedModifierOuterClass {
private AbilityAttachedModifierOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityAttachedModifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityAttachedModifier)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_invalid = 1;</code>
* @return The isInvalid.
*/
boolean getIsInvalid();
/**
* <code>uint32 owner_entity_id = 2;</code>
* @return The ownerEntityId.
*/
int getOwnerEntityId();
/**
* <code>uint32 instanced_modifier_id = 3;</code>
* @return The instancedModifierId.
*/
int getInstancedModifierId();
/**
* <code>bool is_serverbuff_modifier = 4;</code>
* @return The isServerbuffModifier.
*/
boolean getIsServerbuffModifier();
/**
* <code>int32 attach_name_hash = 5;</code>
* @return The attachNameHash.
*/
int getAttachNameHash();
}
/**
* Protobuf type {@code AbilityAttachedModifier}
*/
public static final class AbilityAttachedModifier extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityAttachedModifier)
AbilityAttachedModifierOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityAttachedModifier.newBuilder() to construct.
private AbilityAttachedModifier(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityAttachedModifier() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityAttachedModifier();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityAttachedModifier(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
isInvalid_ = input.readBool();
break;
}
case 16: {
ownerEntityId_ = input.readUInt32();
break;
}
case 24: {
instancedModifierId_ = input.readUInt32();
break;
}
case 32: {
isServerbuffModifier_ = input.readBool();
break;
}
case 40: {
attachNameHash_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.class, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder.class);
}
public static final int IS_INVALID_FIELD_NUMBER = 1;
private boolean isInvalid_;
/**
* <code>bool is_invalid = 1;</code>
* @return The isInvalid.
*/
@java.lang.Override
public boolean getIsInvalid() {
return isInvalid_;
}
public static final int OWNER_ENTITY_ID_FIELD_NUMBER = 2;
private int ownerEntityId_;
/**
* <code>uint32 owner_entity_id = 2;</code>
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
public static final int INSTANCED_MODIFIER_ID_FIELD_NUMBER = 3;
private int instancedModifierId_;
/**
* <code>uint32 instanced_modifier_id = 3;</code>
* @return The instancedModifierId.
*/
@java.lang.Override
public int getInstancedModifierId() {
return instancedModifierId_;
}
public static final int IS_SERVERBUFF_MODIFIER_FIELD_NUMBER = 4;
private boolean isServerbuffModifier_;
/**
* <code>bool is_serverbuff_modifier = 4;</code>
* @return The isServerbuffModifier.
*/
@java.lang.Override
public boolean getIsServerbuffModifier() {
return isServerbuffModifier_;
}
public static final int ATTACH_NAME_HASH_FIELD_NUMBER = 5;
private int attachNameHash_;
/**
* <code>int32 attach_name_hash = 5;</code>
* @return The attachNameHash.
*/
@java.lang.Override
public int getAttachNameHash() {
return attachNameHash_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (isInvalid_ != false) {
output.writeBool(1, isInvalid_);
}
if (ownerEntityId_ != 0) {
output.writeUInt32(2, ownerEntityId_);
}
if (instancedModifierId_ != 0) {
output.writeUInt32(3, instancedModifierId_);
}
if (isServerbuffModifier_ != false) {
output.writeBool(4, isServerbuffModifier_);
}
if (attachNameHash_ != 0) {
output.writeInt32(5, attachNameHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isInvalid_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isInvalid_);
}
if (ownerEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, ownerEntityId_);
}
if (instancedModifierId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, instancedModifierId_);
}
if (isServerbuffModifier_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isServerbuffModifier_);
}
if (attachNameHash_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, attachNameHash_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier other = (emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) obj;
if (getIsInvalid()
!= other.getIsInvalid()) return false;
if (getOwnerEntityId()
!= other.getOwnerEntityId()) return false;
if (getInstancedModifierId()
!= other.getInstancedModifierId()) return false;
if (getIsServerbuffModifier()
!= other.getIsServerbuffModifier()) return false;
if (getAttachNameHash()
!= other.getAttachNameHash()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + IS_INVALID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsInvalid());
hash = (37 * hash) + OWNER_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getOwnerEntityId();
hash = (37 * hash) + INSTANCED_MODIFIER_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstancedModifierId();
hash = (37 * hash) + IS_SERVERBUFF_MODIFIER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsServerbuffModifier());
hash = (37 * hash) + ATTACH_NAME_HASH_FIELD_NUMBER;
hash = (53 * hash) + getAttachNameHash();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityAttachedModifier}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityAttachedModifier)
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifierOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.class, emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isInvalid_ = false;
ownerEntityId_ = 0;
instancedModifierId_ = 0;
isServerbuffModifier_ = false;
attachNameHash_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.internal_static_AbilityAttachedModifier_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier build() {
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier buildPartial() {
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier result = new emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier(this);
result.isInvalid_ = isInvalid_;
result.ownerEntityId_ = ownerEntityId_;
result.instancedModifierId_ = instancedModifierId_;
result.isServerbuffModifier_ = isServerbuffModifier_;
result.attachNameHash_ = attachNameHash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) {
return mergeFrom((emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier other) {
if (other == emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier.getDefaultInstance()) return this;
if (other.getIsInvalid() != false) {
setIsInvalid(other.getIsInvalid());
}
if (other.getOwnerEntityId() != 0) {
setOwnerEntityId(other.getOwnerEntityId());
}
if (other.getInstancedModifierId() != 0) {
setInstancedModifierId(other.getInstancedModifierId());
}
if (other.getIsServerbuffModifier() != false) {
setIsServerbuffModifier(other.getIsServerbuffModifier());
}
if (other.getAttachNameHash() != 0) {
setAttachNameHash(other.getAttachNameHash());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean isInvalid_ ;
/**
* <code>bool is_invalid = 1;</code>
* @return The isInvalid.
*/
@java.lang.Override
public boolean getIsInvalid() {
return isInvalid_;
}
/**
* <code>bool is_invalid = 1;</code>
* @param value The isInvalid to set.
* @return This builder for chaining.
*/
public Builder setIsInvalid(boolean value) {
isInvalid_ = value;
onChanged();
return this;
}
/**
* <code>bool is_invalid = 1;</code>
* @return This builder for chaining.
*/
public Builder clearIsInvalid() {
isInvalid_ = false;
onChanged();
return this;
}
private int ownerEntityId_ ;
/**
* <code>uint32 owner_entity_id = 2;</code>
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
/**
* <code>uint32 owner_entity_id = 2;</code>
* @param value The ownerEntityId to set.
* @return This builder for chaining.
*/
public Builder setOwnerEntityId(int value) {
ownerEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 owner_entity_id = 2;</code>
* @return This builder for chaining.
*/
public Builder clearOwnerEntityId() {
ownerEntityId_ = 0;
onChanged();
return this;
}
private int instancedModifierId_ ;
/**
* <code>uint32 instanced_modifier_id = 3;</code>
* @return The instancedModifierId.
*/
@java.lang.Override
public int getInstancedModifierId() {
return instancedModifierId_;
}
/**
* <code>uint32 instanced_modifier_id = 3;</code>
* @param value The instancedModifierId to set.
* @return This builder for chaining.
*/
public Builder setInstancedModifierId(int value) {
instancedModifierId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 instanced_modifier_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearInstancedModifierId() {
instancedModifierId_ = 0;
onChanged();
return this;
}
private boolean isServerbuffModifier_ ;
/**
* <code>bool is_serverbuff_modifier = 4;</code>
* @return The isServerbuffModifier.
*/
@java.lang.Override
public boolean getIsServerbuffModifier() {
return isServerbuffModifier_;
}
/**
* <code>bool is_serverbuff_modifier = 4;</code>
* @param value The isServerbuffModifier to set.
* @return This builder for chaining.
*/
public Builder setIsServerbuffModifier(boolean value) {
isServerbuffModifier_ = value;
onChanged();
return this;
}
/**
* <code>bool is_serverbuff_modifier = 4;</code>
* @return This builder for chaining.
*/
public Builder clearIsServerbuffModifier() {
isServerbuffModifier_ = false;
onChanged();
return this;
}
private int attachNameHash_ ;
/**
* <code>int32 attach_name_hash = 5;</code>
* @return The attachNameHash.
*/
@java.lang.Override
public int getAttachNameHash() {
return attachNameHash_;
}
/**
* <code>int32 attach_name_hash = 5;</code>
* @param value The attachNameHash to set.
* @return This builder for chaining.
*/
public Builder setAttachNameHash(int value) {
attachNameHash_ = value;
onChanged();
return this;
}
/**
* <code>int32 attach_name_hash = 5;</code>
* @return This builder for chaining.
*/
public Builder clearAttachNameHash() {
attachNameHash_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityAttachedModifier)
}
// @@protoc_insertion_point(class_scope:AbilityAttachedModifier)
private static final emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier();
}
public static emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityAttachedModifier>
PARSER = new com.google.protobuf.AbstractParser<AbilityAttachedModifier>() {
@java.lang.Override
public AbilityAttachedModifier parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityAttachedModifier(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityAttachedModifier> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityAttachedModifier> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityAttachedModifierOuterClass.AbilityAttachedModifier getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityAttachedModifier_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityAttachedModifier_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035AbilityAttachedModifier.proto\"\237\001\n\027Abil" +
"ityAttachedModifier\022\022\n\nis_invalid\030\001 \001(\010\022" +
"\027\n\017owner_entity_id\030\002 \001(\r\022\035\n\025instanced_mo" +
"difier_id\030\003 \001(\r\022\036\n\026is_serverbuff_modifie" +
"r\030\004 \001(\010\022\030\n\020attach_name_hash\030\005 \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_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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityChangeNotify.proto
package emu.grasscutter.net.proto;
public final class AbilityChangeNotifyOuterClass {
private AbilityChangeNotifyOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityChangeNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityChangeNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
int getEntityId();
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return Whether the abilityControlBlock field is set.
*/
boolean hasAbilityControlBlock();
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return The abilityControlBlock.
*/
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock();
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder();
}
/**
* <pre>
* CmdId: 1131
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* 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 122: {
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 ENTITY_ID_FIELD_NUMBER = 1;
private int entityId_;
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
public static final int ABILITY_CONTROL_BLOCK_FIELD_NUMBER = 15;
private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_;
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return Whether the abilityControlBlock field is set.
*/
@java.lang.Override
public boolean hasAbilityControlBlock() {
return abilityControlBlock_ != null;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return The abilityControlBlock.
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() {
return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() {
return getAbilityControlBlock();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (entityId_ != 0) {
output.writeUInt32(1, entityId_);
}
if (abilityControlBlock_ != null) {
output.writeMessage(15, 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(15, 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) + ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntityId();
if (hasAbilityControlBlock()) {
hash = (37 * hash) + ABILITY_CONTROL_BLOCK_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;
}
/**
* <pre>
* CmdId: 1131
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code AbilityChangeNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityChangeNotify)
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.class, emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
entityId_ = 0;
if (abilityControlBlockBuilder_ == null) {
abilityControlBlock_ = null;
} else {
abilityControlBlock_ = null;
abilityControlBlockBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.internal_static_AbilityChangeNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify build() {
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify buildPartial() {
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify result = new emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify(this);
result.entityId_ = entityId_;
if (abilityControlBlockBuilder_ == null) {
result.abilityControlBlock_ = abilityControlBlock_;
} else {
result.abilityControlBlock_ = abilityControlBlockBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) {
return mergeFrom((emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify other) {
if (other == emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify.getDefaultInstance()) return this;
if (other.getEntityId() != 0) {
setEntityId(other.getEntityId());
}
if (other.hasAbilityControlBlock()) {
mergeAbilityControlBlock(other.getAbilityControlBlock());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int entityId_ ;
/**
* <code>uint32 entity_id = 1;</code>
* @return The entityId.
*/
@java.lang.Override
public int getEntityId() {
return entityId_;
}
/**
* <code>uint32 entity_id = 1;</code>
* @param value The entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityId(int value) {
entityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 entity_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearEntityId() {
entityId_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock abilityControlBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder> abilityControlBlockBuilder_;
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return Whether the abilityControlBlock field is set.
*/
public boolean hasAbilityControlBlock() {
return abilityControlBlockBuilder_ != null || abilityControlBlock_ != null;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
* @return The abilityControlBlock.
*/
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getAbilityControlBlock() {
if (abilityControlBlockBuilder_ == null) {
return abilityControlBlock_ == null ? emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_;
} else {
return abilityControlBlockBuilder_.getMessage();
}
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public Builder setAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) {
if (abilityControlBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
abilityControlBlock_ = value;
onChanged();
} else {
abilityControlBlockBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public Builder setAbilityControlBlock(
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder builderForValue) {
if (abilityControlBlockBuilder_ == null) {
abilityControlBlock_ = builderForValue.build();
onChanged();
} else {
abilityControlBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public Builder mergeAbilityControlBlock(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock value) {
if (abilityControlBlockBuilder_ == null) {
if (abilityControlBlock_ != null) {
abilityControlBlock_ =
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder(abilityControlBlock_).mergeFrom(value).buildPartial();
} else {
abilityControlBlock_ = value;
}
onChanged();
} else {
abilityControlBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public Builder clearAbilityControlBlock() {
if (abilityControlBlockBuilder_ == null) {
abilityControlBlock_ = null;
onChanged();
} else {
abilityControlBlock_ = null;
abilityControlBlockBuilder_ = null;
}
return this;
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder getAbilityControlBlockBuilder() {
onChanged();
return getAbilityControlBlockFieldBuilder().getBuilder();
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder getAbilityControlBlockOrBuilder() {
if (abilityControlBlockBuilder_ != null) {
return abilityControlBlockBuilder_.getMessageOrBuilder();
} else {
return abilityControlBlock_ == null ?
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance() : abilityControlBlock_;
}
}
/**
* <code>.AbilityControlBlock ability_control_block = 15;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder>
getAbilityControlBlockFieldBuilder() {
if (abilityControlBlockBuilder_ == null) {
abilityControlBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder>(
getAbilityControlBlock(),
getParentForChildren(),
isClean());
abilityControlBlock_ = null;
}
return abilityControlBlockBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityChangeNotify)
}
// @@protoc_insertion_point(class_scope:AbilityChangeNotify)
private static final emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify();
}
public static emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityChangeNotify>
PARSER = new com.google.protobuf.AbstractParser<AbilityChangeNotify>() {
@java.lang.Override
public AbilityChangeNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityChangeNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityChangeNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityChangeNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityChangeNotifyOuterClass.AbilityChangeNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityChangeNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityChangeNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031AbilityChangeNotify.proto\032\031AbilityCont" +
"rolBlock.proto\"]\n\023AbilityChangeNotify\022\021\n" +
"\tentity_id\030\001 \001(\r\0223\n\025ability_control_bloc" +
"k\030\017 \001(\0132\024.AbilityControlBlockB\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.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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityControlBlock.proto
package emu.grasscutter.net.proto;
public final class AbilityControlBlockOuterClass {
private AbilityControlBlockOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityControlBlockOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityControlBlock)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo>
getAbilityEmbryoListList();
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index);
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
int getAbilityEmbryoListCount();
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>
getAbilityEmbryoListOrBuilderList();
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder(
int index);
}
/**
* Protobuf type {@code AbilityControlBlock}
*/
public static final class AbilityControlBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityControlBlock)
AbilityControlBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityControlBlock.newBuilder() to construct.
private AbilityControlBlock(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityControlBlock() {
abilityEmbryoList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityControlBlock();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityControlBlock(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
abilityEmbryoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo>();
mutable_bitField0_ |= 0x00000001;
}
abilityEmbryoList_.add(
input.readMessage(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
abilityEmbryoList_ = java.util.Collections.unmodifiableList(abilityEmbryoList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.class, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder.class);
}
public static final int ABILITY_EMBRYO_LIST_FIELD_NUMBER = 1;
private java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> abilityEmbryoList_;
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> getAbilityEmbryoListList() {
return abilityEmbryoList_;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>
getAbilityEmbryoListOrBuilderList() {
return abilityEmbryoList_;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
@java.lang.Override
public int getAbilityEmbryoListCount() {
return abilityEmbryoList_.size();
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) {
return abilityEmbryoList_.get(index);
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder(
int index) {
return abilityEmbryoList_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < abilityEmbryoList_.size(); i++) {
output.writeMessage(1, abilityEmbryoList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < abilityEmbryoList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, abilityEmbryoList_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock other = (emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) obj;
if (!getAbilityEmbryoListList()
.equals(other.getAbilityEmbryoListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAbilityEmbryoListCount() > 0) {
hash = (37 * hash) + ABILITY_EMBRYO_LIST_FIELD_NUMBER;
hash = (53 * hash) + getAbilityEmbryoListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityControlBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityControlBlock)
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.class, emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAbilityEmbryoListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (abilityEmbryoListBuilder_ == null) {
abilityEmbryoList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
abilityEmbryoListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.internal_static_AbilityControlBlock_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock build() {
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock buildPartial() {
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock result = new emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock(this);
int from_bitField0_ = bitField0_;
if (abilityEmbryoListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
abilityEmbryoList_ = java.util.Collections.unmodifiableList(abilityEmbryoList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.abilityEmbryoList_ = abilityEmbryoList_;
} else {
result.abilityEmbryoList_ = abilityEmbryoListBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) {
return mergeFrom((emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock other) {
if (other == emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock.getDefaultInstance()) return this;
if (abilityEmbryoListBuilder_ == null) {
if (!other.abilityEmbryoList_.isEmpty()) {
if (abilityEmbryoList_.isEmpty()) {
abilityEmbryoList_ = other.abilityEmbryoList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.addAll(other.abilityEmbryoList_);
}
onChanged();
}
} else {
if (!other.abilityEmbryoList_.isEmpty()) {
if (abilityEmbryoListBuilder_.isEmpty()) {
abilityEmbryoListBuilder_.dispose();
abilityEmbryoListBuilder_ = null;
abilityEmbryoList_ = other.abilityEmbryoList_;
bitField0_ = (bitField0_ & ~0x00000001);
abilityEmbryoListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAbilityEmbryoListFieldBuilder() : null;
} else {
abilityEmbryoListBuilder_.addAllMessages(other.abilityEmbryoList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> abilityEmbryoList_ =
java.util.Collections.emptyList();
private void ensureAbilityEmbryoListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
abilityEmbryoList_ = new java.util.ArrayList<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo>(abilityEmbryoList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder> abilityEmbryoListBuilder_;
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> getAbilityEmbryoListList() {
if (abilityEmbryoListBuilder_ == null) {
return java.util.Collections.unmodifiableList(abilityEmbryoList_);
} else {
return abilityEmbryoListBuilder_.getMessageList();
}
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public int getAbilityEmbryoListCount() {
if (abilityEmbryoListBuilder_ == null) {
return abilityEmbryoList_.size();
} else {
return abilityEmbryoListBuilder_.getCount();
}
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getAbilityEmbryoList(int index) {
if (abilityEmbryoListBuilder_ == null) {
return abilityEmbryoList_.get(index);
} else {
return abilityEmbryoListBuilder_.getMessage(index);
}
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder setAbilityEmbryoList(
int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) {
if (abilityEmbryoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.set(index, value);
onChanged();
} else {
abilityEmbryoListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder setAbilityEmbryoList(
int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) {
if (abilityEmbryoListBuilder_ == null) {
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.set(index, builderForValue.build());
onChanged();
} else {
abilityEmbryoListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder addAbilityEmbryoList(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) {
if (abilityEmbryoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.add(value);
onChanged();
} else {
abilityEmbryoListBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder addAbilityEmbryoList(
int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo value) {
if (abilityEmbryoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.add(index, value);
onChanged();
} else {
abilityEmbryoListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder addAbilityEmbryoList(
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) {
if (abilityEmbryoListBuilder_ == null) {
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.add(builderForValue.build());
onChanged();
} else {
abilityEmbryoListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder addAbilityEmbryoList(
int index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder builderForValue) {
if (abilityEmbryoListBuilder_ == null) {
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.add(index, builderForValue.build());
onChanged();
} else {
abilityEmbryoListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder addAllAbilityEmbryoList(
java.lang.Iterable<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo> values) {
if (abilityEmbryoListBuilder_ == null) {
ensureAbilityEmbryoListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, abilityEmbryoList_);
onChanged();
} else {
abilityEmbryoListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder clearAbilityEmbryoList() {
if (abilityEmbryoListBuilder_ == null) {
abilityEmbryoList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
abilityEmbryoListBuilder_.clear();
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public Builder removeAbilityEmbryoList(int index) {
if (abilityEmbryoListBuilder_ == null) {
ensureAbilityEmbryoListIsMutable();
abilityEmbryoList_.remove(index);
onChanged();
} else {
abilityEmbryoListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder getAbilityEmbryoListBuilder(
int index) {
return getAbilityEmbryoListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder getAbilityEmbryoListOrBuilder(
int index) {
if (abilityEmbryoListBuilder_ == null) {
return abilityEmbryoList_.get(index); } else {
return abilityEmbryoListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>
getAbilityEmbryoListOrBuilderList() {
if (abilityEmbryoListBuilder_ != null) {
return abilityEmbryoListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(abilityEmbryoList_);
}
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder() {
return getAbilityEmbryoListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance());
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder addAbilityEmbryoListBuilder(
int index) {
return getAbilityEmbryoListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance());
}
/**
* <code>repeated .AbilityEmbryo ability_embryo_list = 1;</code>
*/
public java.util.List<emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder>
getAbilityEmbryoListBuilderList() {
return getAbilityEmbryoListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>
getAbilityEmbryoListFieldBuilder() {
if (abilityEmbryoListBuilder_ == null) {
abilityEmbryoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder>(
abilityEmbryoList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
abilityEmbryoList_ = null;
}
return abilityEmbryoListBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityControlBlock)
}
// @@protoc_insertion_point(class_scope:AbilityControlBlock)
private static final emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock();
}
public static emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityControlBlock>
PARSER = new com.google.protobuf.AbstractParser<AbilityControlBlock>() {
@java.lang.Override
public AbilityControlBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityControlBlock(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityControlBlock> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityControlBlock> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityControlBlockOuterClass.AbilityControlBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityControlBlock_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityControlBlock_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031AbilityControlBlock.proto\032\023AbilityEmbr" +
"yo.proto\"B\n\023AbilityControlBlock\022+\n\023abili" +
"ty_embryo_list\030\001 \003(\0132\016.AbilityEmbryoB\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.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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityEmbryo.proto
package emu.grasscutter.net.proto;
public final class AbilityEmbryoOuterClass {
private AbilityEmbryoOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityEmbryoOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityEmbryo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 ability_id = 1;</code>
* @return The abilityId.
*/
int getAbilityId();
/**
* <code>fixed32 ability_name_hash = 2;</code>
* @return The abilityNameHash.
*/
int getAbilityNameHash();
/**
* <code>fixed32 ability_override_name_hash = 3;</code>
* @return The abilityOverrideNameHash.
*/
int getAbilityOverrideNameHash();
}
/**
* Protobuf type {@code AbilityEmbryo}
*/
public static final class AbilityEmbryo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityEmbryo)
AbilityEmbryoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityEmbryo.newBuilder() to construct.
private AbilityEmbryo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityEmbryo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityEmbryo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityEmbryo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
abilityId_ = input.readUInt32();
break;
}
case 21: {
abilityNameHash_ = input.readFixed32();
break;
}
case 29: {
abilityOverrideNameHash_ = input.readFixed32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.class, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder.class);
}
public static final int ABILITY_ID_FIELD_NUMBER = 1;
private int abilityId_;
/**
* <code>uint32 ability_id = 1;</code>
* @return The abilityId.
*/
@java.lang.Override
public int getAbilityId() {
return abilityId_;
}
public static final int ABILITY_NAME_HASH_FIELD_NUMBER = 2;
private int abilityNameHash_;
/**
* <code>fixed32 ability_name_hash = 2;</code>
* @return The abilityNameHash.
*/
@java.lang.Override
public int getAbilityNameHash() {
return abilityNameHash_;
}
public static final int ABILITY_OVERRIDE_NAME_HASH_FIELD_NUMBER = 3;
private int abilityOverrideNameHash_;
/**
* <code>fixed32 ability_override_name_hash = 3;</code>
* @return The abilityOverrideNameHash.
*/
@java.lang.Override
public int getAbilityOverrideNameHash() {
return abilityOverrideNameHash_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (abilityId_ != 0) {
output.writeUInt32(1, abilityId_);
}
if (abilityNameHash_ != 0) {
output.writeFixed32(2, abilityNameHash_);
}
if (abilityOverrideNameHash_ != 0) {
output.writeFixed32(3, abilityOverrideNameHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (abilityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, abilityId_);
}
if (abilityNameHash_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(2, abilityNameHash_);
}
if (abilityOverrideNameHash_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, abilityOverrideNameHash_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo other = (emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) obj;
if (getAbilityId()
!= other.getAbilityId()) return false;
if (getAbilityNameHash()
!= other.getAbilityNameHash()) return false;
if (getAbilityOverrideNameHash()
!= other.getAbilityOverrideNameHash()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getAbilityId();
hash = (37 * hash) + ABILITY_NAME_HASH_FIELD_NUMBER;
hash = (53 * hash) + getAbilityNameHash();
hash = (37 * hash) + ABILITY_OVERRIDE_NAME_HASH_FIELD_NUMBER;
hash = (53 * hash) + getAbilityOverrideNameHash();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityEmbryo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityEmbryo)
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.class, emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
abilityId_ = 0;
abilityNameHash_ = 0;
abilityOverrideNameHash_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.internal_static_AbilityEmbryo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo build() {
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo buildPartial() {
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo result = new emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo(this);
result.abilityId_ = abilityId_;
result.abilityNameHash_ = abilityNameHash_;
result.abilityOverrideNameHash_ = abilityOverrideNameHash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) {
return mergeFrom((emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo other) {
if (other == emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo.getDefaultInstance()) return this;
if (other.getAbilityId() != 0) {
setAbilityId(other.getAbilityId());
}
if (other.getAbilityNameHash() != 0) {
setAbilityNameHash(other.getAbilityNameHash());
}
if (other.getAbilityOverrideNameHash() != 0) {
setAbilityOverrideNameHash(other.getAbilityOverrideNameHash());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int abilityId_ ;
/**
* <code>uint32 ability_id = 1;</code>
* @return The abilityId.
*/
@java.lang.Override
public int getAbilityId() {
return abilityId_;
}
/**
* <code>uint32 ability_id = 1;</code>
* @param value The abilityId to set.
* @return This builder for chaining.
*/
public Builder setAbilityId(int value) {
abilityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 ability_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearAbilityId() {
abilityId_ = 0;
onChanged();
return this;
}
private int abilityNameHash_ ;
/**
* <code>fixed32 ability_name_hash = 2;</code>
* @return The abilityNameHash.
*/
@java.lang.Override
public int getAbilityNameHash() {
return abilityNameHash_;
}
/**
* <code>fixed32 ability_name_hash = 2;</code>
* @param value The abilityNameHash to set.
* @return This builder for chaining.
*/
public Builder setAbilityNameHash(int value) {
abilityNameHash_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 ability_name_hash = 2;</code>
* @return This builder for chaining.
*/
public Builder clearAbilityNameHash() {
abilityNameHash_ = 0;
onChanged();
return this;
}
private int abilityOverrideNameHash_ ;
/**
* <code>fixed32 ability_override_name_hash = 3;</code>
* @return The abilityOverrideNameHash.
*/
@java.lang.Override
public int getAbilityOverrideNameHash() {
return abilityOverrideNameHash_;
}
/**
* <code>fixed32 ability_override_name_hash = 3;</code>
* @param value The abilityOverrideNameHash to set.
* @return This builder for chaining.
*/
public Builder setAbilityOverrideNameHash(int value) {
abilityOverrideNameHash_ = value;
onChanged();
return this;
}
/**
* <code>fixed32 ability_override_name_hash = 3;</code>
* @return This builder for chaining.
*/
public Builder clearAbilityOverrideNameHash() {
abilityOverrideNameHash_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityEmbryo)
}
// @@protoc_insertion_point(class_scope:AbilityEmbryo)
private static final emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo();
}
public static emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityEmbryo>
PARSER = new com.google.protobuf.AbstractParser<AbilityEmbryo>() {
@java.lang.Override
public AbilityEmbryo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityEmbryo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityEmbryo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityEmbryo> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityEmbryoOuterClass.AbilityEmbryo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityEmbryo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityEmbryo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023AbilityEmbryo.proto\"b\n\rAbilityEmbryo\022\022" +
"\n\nability_id\030\001 \001(\r\022\031\n\021ability_name_hash\030" +
"\002 \001(\007\022\"\n\032ability_override_name_hash\030\003 \001(" +
"\007B\033\n\031emu.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)
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: AbilityGadgetInfo.proto
package emu.grasscutter.net.proto;
public final class AbilityGadgetInfoOuterClass {
private AbilityGadgetInfoOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AbilityGadgetInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:AbilityGadgetInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
int getCampId();
/**
* <code>uint32 camp_target_type = 2;</code>
* @return The campTargetType.
*/
int getCampTargetType();
/**
* <code>uint32 target_entity_id = 3;</code>
* @return The targetEntityId.
*/
int getTargetEntityId();
}
/**
* Protobuf type {@code AbilityGadgetInfo}
*/
public static final class AbilityGadgetInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AbilityGadgetInfo)
AbilityGadgetInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbilityGadgetInfo.newBuilder() to construct.
private AbilityGadgetInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private AbilityGadgetInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AbilityGadgetInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbilityGadgetInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
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: {
campTargetType_ = input.readUInt32();
break;
}
case 24: {
targetEntityId_ = 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.AbilityGadgetInfoOuterClass.internal_static_AbilityGadgetInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.internal_static_AbilityGadgetInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.class, emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.Builder.class);
}
public static final int CAMP_ID_FIELD_NUMBER = 1;
private int campId_;
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
public static final int CAMP_TARGET_TYPE_FIELD_NUMBER = 2;
private int campTargetType_;
/**
* <code>uint32 camp_target_type = 2;</code>
* @return The campTargetType.
*/
@java.lang.Override
public int getCampTargetType() {
return campTargetType_;
}
public static final int TARGET_ENTITY_ID_FIELD_NUMBER = 3;
private int targetEntityId_;
/**
* <code>uint32 target_entity_id = 3;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (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 (campTargetType_ != 0) {
output.writeUInt32(2, campTargetType_);
}
if (targetEntityId_ != 0) {
output.writeUInt32(3, targetEntityId_);
}
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 (campTargetType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, campTargetType_);
}
if (targetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, targetEntityId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo other = (emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo) obj;
if (getCampId()
!= other.getCampId()) return false;
if (getCampTargetType()
!= other.getCampTargetType()) return false;
if (getTargetEntityId()
!= other.getTargetEntityId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CAMP_ID_FIELD_NUMBER;
hash = (53 * hash) + getCampId();
hash = (37 * hash) + CAMP_TARGET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getCampTargetType();
hash = (37 * hash) + TARGET_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetEntityId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code AbilityGadgetInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:AbilityGadgetInfo)
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.internal_static_AbilityGadgetInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.internal_static_AbilityGadgetInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.class, emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.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;
campTargetType_ = 0;
targetEntityId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.internal_static_AbilityGadgetInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo build() {
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo buildPartial() {
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo result = new emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo(this);
result.campId_ = campId_;
result.campTargetType_ = campTargetType_;
result.targetEntityId_ = targetEntityId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo) {
return mergeFrom((emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo other) {
if (other == emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo.getDefaultInstance()) return this;
if (other.getCampId() != 0) {
setCampId(other.getCampId());
}
if (other.getCampTargetType() != 0) {
setCampTargetType(other.getCampTargetType());
}
if (other.getTargetEntityId() != 0) {
setTargetEntityId(other.getTargetEntityId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int campId_ ;
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
/**
* <code>uint32 camp_id = 1;</code>
* @param value The campId to set.
* @return This builder for chaining.
*/
public Builder setCampId(int value) {
campId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 camp_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearCampId() {
campId_ = 0;
onChanged();
return this;
}
private int campTargetType_ ;
/**
* <code>uint32 camp_target_type = 2;</code>
* @return The campTargetType.
*/
@java.lang.Override
public int getCampTargetType() {
return campTargetType_;
}
/**
* <code>uint32 camp_target_type = 2;</code>
* @param value The campTargetType to set.
* @return This builder for chaining.
*/
public Builder setCampTargetType(int value) {
campTargetType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 camp_target_type = 2;</code>
* @return This builder for chaining.
*/
public Builder clearCampTargetType() {
campTargetType_ = 0;
onChanged();
return this;
}
private int targetEntityId_ ;
/**
* <code>uint32 target_entity_id = 3;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
/**
* <code>uint32 target_entity_id = 3;</code>
* @param value The targetEntityId to set.
* @return This builder for chaining.
*/
public Builder setTargetEntityId(int value) {
targetEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 target_entity_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearTargetEntityId() {
targetEntityId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AbilityGadgetInfo)
}
// @@protoc_insertion_point(class_scope:AbilityGadgetInfo)
private static final emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo();
}
public static emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<AbilityGadgetInfo>
PARSER = new com.google.protobuf.AbstractParser<AbilityGadgetInfo>() {
@java.lang.Override
public AbilityGadgetInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbilityGadgetInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<AbilityGadgetInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<AbilityGadgetInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.AbilityGadgetInfoOuterClass.AbilityGadgetInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AbilityGadgetInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AbilityGadgetInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027AbilityGadgetInfo.proto\"X\n\021AbilityGadg" +
"etInfo\022\017\n\007camp_id\030\001 \001(\r\022\030\n\020camp_target_t" +
"ype\030\002 \001(\r\022\030\n\020target_entity_id\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_AbilityGadgetInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_AbilityGadgetInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AbilityGadgetInfo_descriptor,
new java.lang.String[] { "CampId", "CampTargetType", "TargetEntityId", });
}
// @@protoc_insertion_point(outer_class_scope)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment