init
This commit is contained in:
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
.idea/*
|
||||
.gradle/*
|
||||
bin/*
|
||||
build/*
|
||||
logs/*
|
||||
/gradle/wrapper/gradle-wrapper.jar
|
||||
/gradle/wrapper/gradle-wrapper.properties
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM openjdk:17
|
||||
|
||||
#인수 설정
|
||||
ARG JAR_FILE=build/libs/CaliverseAdminAPI.jar
|
||||
|
||||
#환경 변수
|
||||
#ENV ENVIRONMENT=${ENVIRONMENT}
|
||||
#
|
||||
#RUN if [ "$ENVIRONMENT" = "stage" ] ; then \
|
||||
# JAR_FILE=build/libs/CaliverseAdminAPI-stage.jar ; \
|
||||
# elif [ "$ENVIRONMENT" = "live" ] ; then \
|
||||
# JAR_FILE=build/libs/CaliverseAdminAPI-live.jar ; \
|
||||
# else \
|
||||
# JAR_FILE=build/libs/CaliverseAdminAPI.jar ; \
|
||||
# fi
|
||||
|
||||
COPY ${JAR_FILE} admintool.jar
|
||||
#메모리 최소 2기가 최대 4기가
|
||||
ENV JAVA_OPTS="-Xms2g -Xmx4g"
|
||||
ENTRYPOINT ["java","-jar","/admintool.jar"]
|
||||
8
Dockerfile.dev
Normal file
8
Dockerfile.dev
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM openjdk:17-jdk-slim
|
||||
|
||||
ARG JAR_FILE=build/libs/CaliverseAdminAPI-dev.jar
|
||||
|
||||
COPY ${JAR_FILE} admintool.jar
|
||||
#메모리 최소 2기가 최대 4기가
|
||||
ENV JAVA_OPTS="-Xms2g -Xmx4g"
|
||||
ENTRYPOINT ["java","-Dspring.profiles.active=dev","-jar","/admintool.jar"]
|
||||
8
Dockerfile.live
Normal file
8
Dockerfile.live
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM openjdk:17
|
||||
|
||||
ARG JAR_FILE=build/libs/CaliverseAdminAPI-live.jar
|
||||
|
||||
COPY ${JAR_FILE} admintool.jar
|
||||
#메모리 최소 2기가 최대 4기가
|
||||
ENV JAVA_OPTS="-Xms2g -Xmx4g"
|
||||
ENTRYPOINT ["java","-Dspring.profiles.active=live","-jar","/admintool.jar"]
|
||||
8
Dockerfile.qa
Normal file
8
Dockerfile.qa
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM openjdk:17
|
||||
|
||||
ARG JAR_FILE=build/libs/CaliverseAdminAPI-qa.jar
|
||||
|
||||
COPY ${JAR_FILE} admintool.jar
|
||||
#메모리 최소 2기가 최대 4기가
|
||||
ENV JAVA_OPTS="-Xms2g -Xmx4g"
|
||||
ENTRYPOINT ["java","-Dspring.profiles.active=qa","-jar","/admintool.jar"]
|
||||
8
Dockerfile.stage
Normal file
8
Dockerfile.stage
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM openjdk:17
|
||||
|
||||
ARG JAR_FILE=build/libs/CaliverseAdminAPI-stage.jar
|
||||
|
||||
COPY ${JAR_FILE} admintool.jar
|
||||
#메모리 최소 2기가 최대 4기가
|
||||
ENV JAVA_OPTS="-Xms2g -Xmx4g"
|
||||
ENTRYPOINT ["java","-Dspring.profiles.active=stage","-jar","/admintool.jar"]
|
||||
100
Jenkinsfile
vendored
Normal file
100
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back.tar'
|
||||
DOCKER_NAME = 'admintool-back'
|
||||
DOCKER_PORT = '23450'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=stage' //추후
|
||||
// sh './gradlew clean build -x test' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling') {
|
||||
steps {
|
||||
script {
|
||||
sh 'sudo lsof -ti @127.30.148.164:2211 | xargs -r sudo kill -9; sudo ssh -f -N -L 127.30.148.164:2211:172.30.148.164:2211 ubuntu@52.32.111.3 -p 2211 -i /home/admintool/USWest2-KeyPair.pem -o StrictHostKeyChecking=no'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
// aws .tar transfer
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
83
Jenkinsfile.dev
Normal file
83
Jenkinsfile.dev
Normal file
@@ -0,0 +1,83 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-dev'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_dev.tar'
|
||||
DOCKER_NAME = 'admintool-back-dev'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.dev'
|
||||
TMPDIR = '/tmp/jenkins'
|
||||
BUILD_DIR = '/home/admintool/admintool-back'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=dev' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('MetaData Checkout'){
|
||||
steps{
|
||||
checkout([$class: 'SubversionSCM',
|
||||
additionalCredentials: [],
|
||||
excludedCommitMessages: '',
|
||||
excludedRegions: '',
|
||||
excludedRevprop: '',
|
||||
excludedUsers: '',
|
||||
filterChangelog: false,
|
||||
ignoreDirPropChanges: false,
|
||||
includedRegions: '',
|
||||
locations: [
|
||||
[
|
||||
cancelProcessOnExternalsFail: true,
|
||||
credentialsId: 'jenkins-build',
|
||||
depthOption: 'infinity',
|
||||
ignoreExternalsOption: true,
|
||||
local: 'metadata',
|
||||
remote: 'svn://10.20.20.9/trunk/Caliverse/DataAssets/MS2/JSON@HEAD'
|
||||
]
|
||||
],
|
||||
quietOperation: true,
|
||||
workspaceUpdater: [$class: 'UpdateUpdater']
|
||||
])
|
||||
}
|
||||
}
|
||||
stage('MeataData Transfer'){
|
||||
steps{
|
||||
dir(env.TMPDIR){
|
||||
sh "rsync -av --exclude='.svn' ${WORKSPACE}/metadata/* /home/admintool/admintool-back/metadata/"
|
||||
sh 'rm -rf ${WORKSPACE}/metadata'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build & Deploy') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG || true'
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker stop ${DOCKER_NAME} || true'
|
||||
sh 'docker rm ${DOCKER_NAME} || true'
|
||||
sh 'docker run -d \
|
||||
-p $DOCKER_PORT:$DOCKER_PORT \
|
||||
--name $DOCKER_NAME \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v /home/admintool/admintool-back/metadata:/metadata:ro,cached \
|
||||
-v /home/admintool/admintool-back/log:/logs \
|
||||
-v /home/admintool/admintool-back/upload:/upload \
|
||||
$DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Run Complete'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
165
Jenkinsfile.live
Normal file
165
Jenkinsfile.live
Normal file
@@ -0,0 +1,165 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-live'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_live.tar'
|
||||
DOCKER_NAME = 'admintool-back-live'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.live'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('MetaData Checkout'){
|
||||
steps{
|
||||
checkout([$class: 'SubversionSCM',
|
||||
additionalCredentials: [],
|
||||
excludedCommitMessages: '',
|
||||
excludedRegions: '',
|
||||
excludedRevprop: '',
|
||||
excludedUsers: '',
|
||||
filterChangelog: false,
|
||||
ignoreDirPropChanges: false,
|
||||
includedRegions: '',
|
||||
locations: [
|
||||
[
|
||||
cancelProcessOnExternalsFail: true,
|
||||
credentialsId: 'jenkins-build',
|
||||
depthOption: 'infinity',
|
||||
ignoreExternalsOption: true,
|
||||
local: 'metadata',
|
||||
remote: 'svn://10.20.20.9/branches/Product/DataAssets/MS2/JSON@HEAD'
|
||||
]
|
||||
],
|
||||
quietOperation: true,
|
||||
workspaceUpdater: [$class: 'UpdateUpdater']
|
||||
])
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/.svn'
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/QuestScript'
|
||||
sh '/home/admintool/ssh-tunneling-live.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer MeataData'){
|
||||
steps{
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'live-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${META_FOLDER}",
|
||||
remoteDirectory: "${REMOTE_META_FOLDER}",
|
||||
execCommand: """
|
||||
echo 'metadata Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
// aws .tar transfer
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'live-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'live-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata'
|
||||
echo 'metadata Directory Remove'
|
||||
sh '/home/admintool/ssh-tunneling-live.sh stop; /home/admintool/ssh-tunneling-live.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
112
Jenkinsfile.live.simple
Normal file
112
Jenkinsfile.live.simple
Normal file
@@ -0,0 +1,112 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-live'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_live.tar'
|
||||
DOCKER_NAME = 'admintool-back-live'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.live'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-live.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
// aws .tar transfer
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'live-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'live-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-live.sh stop; /home/admintool/ssh-tunneling-live.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
164
Jenkinsfile.qa
Normal file
164
Jenkinsfile.qa
Normal file
@@ -0,0 +1,164 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-qa'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_qa.tar'
|
||||
DOCKER_NAME = 'admintool-back-qa'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.qa'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('MetaData Checkout'){
|
||||
steps{
|
||||
checkout([$class: 'SubversionSCM',
|
||||
additionalCredentials: [],
|
||||
excludedCommitMessages: '',
|
||||
excludedRegions: '',
|
||||
excludedRevprop: '',
|
||||
excludedUsers: '',
|
||||
filterChangelog: false,
|
||||
ignoreDirPropChanges: false,
|
||||
includedRegions: '',
|
||||
locations: [
|
||||
[
|
||||
cancelProcessOnExternalsFail: true,
|
||||
credentialsId: 'jenkins-build',
|
||||
depthOption: 'infinity',
|
||||
ignoreExternalsOption: true,
|
||||
local: 'metadata',
|
||||
remote: 'svn://10.20.20.9/branches/Stable/DataAssets/MS2/JSON@HEAD'
|
||||
]
|
||||
],
|
||||
quietOperation: true,
|
||||
workspaceUpdater: [$class: 'UpdateUpdater']
|
||||
])
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/.svn'
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/QuestScript'
|
||||
sh '/home/admintool/ssh-tunneling-qa.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer MeataData'){
|
||||
steps{
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'qa-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${META_FOLDER}",
|
||||
remoteDirectory: "${REMOTE_META_FOLDER}",
|
||||
execCommand: """
|
||||
echo 'metadata Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'qa-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'qa-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata'
|
||||
echo 'metadata Directory Remove'
|
||||
sh '/home/admintool/ssh-tunneling-qa.sh stop; /home/admintool/ssh-tunneling-qa.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
111
Jenkinsfile.qa.simple
Normal file
111
Jenkinsfile.qa.simple
Normal file
@@ -0,0 +1,111 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-qa'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_qa.tar'
|
||||
DOCKER_NAME = 'admintool-back-qa'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.qa'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-qa.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'qa-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'qa-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-qa.sh stop; /home/admintool/ssh-tunneling-qa.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
165
Jenkinsfile.stage
Normal file
165
Jenkinsfile.stage
Normal file
@@ -0,0 +1,165 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-stage'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_stage.tar'
|
||||
DOCKER_NAME = 'admintool-back-stage'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.stage'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('MetaData Checkout'){
|
||||
steps{
|
||||
checkout([$class: 'SubversionSCM',
|
||||
additionalCredentials: [],
|
||||
excludedCommitMessages: '',
|
||||
excludedRegions: '',
|
||||
excludedRevprop: '',
|
||||
excludedUsers: '',
|
||||
filterChangelog: false,
|
||||
ignoreDirPropChanges: false,
|
||||
includedRegions: '',
|
||||
locations: [
|
||||
[
|
||||
cancelProcessOnExternalsFail: true,
|
||||
credentialsId: 'jenkins-build',
|
||||
depthOption: 'infinity',
|
||||
ignoreExternalsOption: true,
|
||||
local: 'metadata',
|
||||
remote: 'svn://10.20.20.9/branches/Product/DataAssets/MS2/JSON@HEAD'
|
||||
]
|
||||
],
|
||||
quietOperation: true,
|
||||
workspaceUpdater: [$class: 'UpdateUpdater']
|
||||
])
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/.svn'
|
||||
sh 'rm -rf ${WORKSPACE}/metadata/QuestScript'
|
||||
sh '/home/admintool/ssh-tunneling-stage.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer MeataData'){
|
||||
steps{
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${META_FOLDER}",
|
||||
remoteDirectory: "${REMOTE_META_FOLDER}",
|
||||
execCommand: """
|
||||
echo 'metadata Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
// aws .tar transfer
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh 'rm -rf ${WORKSPACE}/metadata'
|
||||
echo 'metadata Directory Remove'
|
||||
sh '/home/admintool/ssh-tunneling-stage.sh stop; /home/admintool/ssh-tunneling-stage.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
112
Jenkinsfile.stage.simple
Normal file
112
Jenkinsfile.stage.simple
Normal file
@@ -0,0 +1,112 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
DOCKER_IMAGE = 'caliverse/admintool-back-stage'
|
||||
DOCKER_TAG = '1.0.0'
|
||||
DOCKER_TAG_PRE = '1.0.0'
|
||||
FILE_NAME = 'admintool_back_stage.tar'
|
||||
DOCKER_NAME = 'admintool-back-stage'
|
||||
DOCKER_PORT = '23450'
|
||||
DOCKERFILE_NAME = 'Dockerfile.stage'
|
||||
META_FOLDER = 'metadata/*'
|
||||
REMOTE_META_FOLDER = 'admintool'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Gradle Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'chmod +x gradlew' //gradle 권한 설정
|
||||
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Docker Image Build') {
|
||||
steps {
|
||||
script {
|
||||
sh 'docker rmi $DOCKER_IMAGE:$DOCKER_TAG_PRE || true' //이전 이미지 삭제
|
||||
sh 'rm $FILE_NAME || true' //이전 .tar 파일 삭제
|
||||
sh 'docker build -f $DOCKERFILE_NAME -t $DOCKER_IMAGE:$DOCKER_TAG .'
|
||||
echo 'Docker Image Create'
|
||||
sh 'docker save -o $FILE_NAME $DOCKER_IMAGE:$DOCKER_TAG'
|
||||
echo 'Docker Image > .tar File Create'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Start') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-stage.sh start'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Transfer Docker Image') {
|
||||
steps {
|
||||
// aws .tar transfer
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
sourceFiles: "${FILE_NAME}",
|
||||
remoteDirectory: '',
|
||||
execCommand: """
|
||||
echo '.tar Transfer Complete'
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Deploy to Remote'){
|
||||
steps{
|
||||
// aws command
|
||||
sshPublisher(
|
||||
publishers: [
|
||||
sshPublisherDesc(
|
||||
configName: 'stage-backend',
|
||||
transfers: [
|
||||
sshTransfer(
|
||||
execCommand: """
|
||||
docker stop ${DOCKER_NAME} || true &&
|
||||
docker rm ${DOCKER_NAME} || true &&
|
||||
docker rmi ${DOCKER_IMAGE}:${DOCKER_TAG_PRE} || true &&
|
||||
docker load -i ${FILE_NAME} &&
|
||||
docker run -d \
|
||||
-p ${DOCKER_PORT}:${DOCKER_PORT} \
|
||||
--name ${DOCKER_NAME} \
|
||||
--restart=always \
|
||||
--log-opt max-size=10m \
|
||||
-e TZ=\${TZ:-Asia/Seoul} \
|
||||
-v ./admintool/log:/logs \
|
||||
-v ./admintool/upload:/upload \
|
||||
-v ./admintool/metadata:/metadata:ro,cached \
|
||||
${DOCKER_IMAGE}:${DOCKER_TAG} &&
|
||||
rm ${FILE_NAME}
|
||||
""",
|
||||
execTimeout: 120000
|
||||
)
|
||||
],
|
||||
usePromotionTimestamp: false,
|
||||
verbose: true
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('SSH Tunneling Stop') {
|
||||
steps {
|
||||
script {
|
||||
sh '/home/admintool/ssh-tunneling-stage.sh stop; /home/admintool/ssh-tunneling-stage.sh status'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
146
build.gradle
Normal file
146
build.gradle
Normal file
@@ -0,0 +1,146 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '3.0.5'
|
||||
id 'io.spring.dependency-management' version '1.1.0'
|
||||
id 'org.sonarqube' version '4.0.0.2929'
|
||||
}
|
||||
|
||||
group = 'com.caliverse.admin'
|
||||
version = '1.0.0'
|
||||
|
||||
/*ava 17 버전과 호환*/
|
||||
java {
|
||||
sourceCompatibility = '17'
|
||||
}
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
extendsFrom annotationProcessor
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.2'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-security'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-aop'
|
||||
|
||||
implementation 'org.apache.httpcomponents.client5:httpclient5:5.4.1'
|
||||
implementation 'org.apache.httpcomponents.core5:httpcore5:5.3.1'
|
||||
|
||||
//Json
|
||||
implementation group: 'org.json', name: 'json', version: '20231013'
|
||||
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
|
||||
|
||||
//aws
|
||||
implementation platform('software.amazon.awssdk:bom:2.20.155')
|
||||
implementation 'software.amazon.awssdk:dynamodb'
|
||||
implementation 'software.amazon.awssdk:dynamodb-enhanced'
|
||||
implementation 'software.amazon.awssdk:s3:2.21.5'
|
||||
implementation 'software.amazon.awssdk:auth'
|
||||
implementation 'software.amazon.awssdk:cloudwatch'
|
||||
|
||||
//메일 서버
|
||||
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
||||
//mongoDB
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
||||
|
||||
//POI
|
||||
implementation 'org.apache.poi:poi:5.2.2'
|
||||
implementation 'org.apache.poi:poi-ooxml:5.2.2'
|
||||
|
||||
//spring batch
|
||||
implementation 'org.springframework.boot:spring-boot-starter-batch'
|
||||
|
||||
// jwt
|
||||
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
|
||||
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
|
||||
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5'
|
||||
//swagger
|
||||
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.1.0'
|
||||
|
||||
// RabbitMQ
|
||||
implementation 'com.rabbitmq:amqp-client:5.21.0'
|
||||
|
||||
// proto
|
||||
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.21.12'
|
||||
implementation group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.25.3'
|
||||
|
||||
//redis
|
||||
implementation 'redis.clients:jedis:4.3.1'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
runtimeOnly 'com.mysql:mysql-connector-j'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
properties {
|
||||
property "sonar.projectKey", "admintool"
|
||||
property "sonar.host.url", "http://localhost:9000"
|
||||
property "sonar.token", "sqp_097d54f557bc6f85200f6340bbf86906a00ac38c"
|
||||
property "sonar.sourceEncoding", "UTF-8"
|
||||
property "sonar.exclusions", "**/build/**, **/src/main/java/com/caliverse/admin/domain/RabbitMq/**, **/logs/**, **/.gradle/**, **/bin/**, **/.idea/**"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
tasks.named('jar'){
|
||||
enabled=false
|
||||
}
|
||||
tasks {
|
||||
processResources {
|
||||
duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
}
|
||||
|
||||
def getDate() {
|
||||
new Date().format('yyyyMMdd')
|
||||
}
|
||||
|
||||
// 빌드 종류별 처리
|
||||
def profiles = project.hasProperty('profile') ? project.property('profile') : 'local'
|
||||
println "Active profile: $profiles"
|
||||
|
||||
tasks.withType(JavaExec) {
|
||||
systemProperty 'spring.profiles.active', profiles
|
||||
}
|
||||
|
||||
bootJar{
|
||||
|
||||
archivesBaseName = 'CaliverseAdminAPI'
|
||||
archiveVersion = '1.0.0'
|
||||
|
||||
// archiveFileName = "CaliverseAdminAPI-${version}-${profile}.jar"
|
||||
archiveFileName = "CaliverseAdminAPI-${profiles}.jar"
|
||||
}
|
||||
sourceSets {
|
||||
/**
|
||||
* 개발환경 : local
|
||||
* 운영환경 : live
|
||||
* 환경 변경하여 빌드시 ext.profile 값 변경
|
||||
*/
|
||||
// def Properties properties = new Properties()
|
||||
// Reader reader = new FileReader(project.rootProject.file('src/main/resources/config/application.yml'))
|
||||
// properties.load(reader)
|
||||
// ext.profile = properties.getProperty('active')
|
||||
println "Active resources set src/main/resources/config/${profiles}"
|
||||
main {
|
||||
java {
|
||||
srcDirs "src/main/java"
|
||||
}
|
||||
resources {
|
||||
srcDirs "src/main/resources/config","src/main/resources/config/${profiles}"
|
||||
}
|
||||
}
|
||||
}
|
||||
245
gradlew
vendored
Normal file
245
gradlew
vendored
Normal file
@@ -0,0 +1,245 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx4096m" "-Xms4096m"'
|
||||
|
||||
# Collect all arguments for the java command;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
# double quotes to make sure that they get re-expanded; and
|
||||
# * put everything else in single quotes, so that it's not re-expanded.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
if ! command -v xargs >/dev/null 2>&1
|
||||
then
|
||||
die "xargs is not available"
|
||||
fi
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
92
gradlew.bat
vendored
Normal file
92
gradlew.bat
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx4096m" "-Xms4096m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
1
settings.gradle
Normal file
1
settings.gradle
Normal file
@@ -0,0 +1 @@
|
||||
rootProject.name = 'CaliverseAdminAPI'
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.caliverse.admin;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
import java.util.TimeZone;
|
||||
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableTransactionManagement
|
||||
public class CaliverseAdminApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
|
||||
SpringApplication.run(CaliverseAdminApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.caliverse.admin.Indicators.Indicatordomain;
|
||||
|
||||
public interface IndicatorsLog {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.caliverse.admin.Indicators.Indicatordomain;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
import com.caliverse.admin.domain.entity.Currencys;
|
||||
import com.caliverse.admin.domain.entity.Distinct;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.DailyGoods;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.Dau;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.MCU;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.NRU;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.PU;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.Playtime;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.Retention;
|
||||
import com.caliverse.admin.domain.response.IndicatorsResponse.Segment;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class IndicatorsResult {
|
||||
|
||||
private String message;
|
||||
|
||||
//이용자 지표
|
||||
private LocalDate date;
|
||||
private Dau dau;
|
||||
private NRU nru;
|
||||
private PU pu;
|
||||
private MCU mcu;
|
||||
@JsonProperty("distinct")
|
||||
private List<Distinct> list;
|
||||
//Retention
|
||||
@JsonProperty("retention")
|
||||
private List<Retention> retentionList;
|
||||
//Segment
|
||||
@JsonProperty("start_dt")
|
||||
private String startDt;
|
||||
@JsonProperty("end_dt")
|
||||
private String endDt;
|
||||
@JsonProperty("segment")
|
||||
private List<Segment> segmentList;
|
||||
//플레이타임
|
||||
@JsonProperty("playtime")
|
||||
private List<Playtime> playtimeList;
|
||||
//재화
|
||||
@JsonProperty("currencys")
|
||||
private List<Currencys> currencysList;
|
||||
@JsonProperty("list")
|
||||
private List<DailyGoods> dailyGoods;
|
||||
|
||||
//@JsonProperty("dau_list")
|
||||
//private List<DailyActiveUser> dailyActiveUserList;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationResults;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
|
||||
@Service
|
||||
public class IndicatorsAuLoadService extends IndicatorsLogLoadServiceBase {
|
||||
|
||||
public IndicatorsAuLoadService( @Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate){
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
|
||||
Criteria criteria = makeCriteria(startTime, endTime);
|
||||
List<AggregationOperation> operations = setDefaultOperation(criteria);
|
||||
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
AggregationResults<T> results = mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_LOG, clazz);
|
||||
|
||||
List<T> mappedResult = results.getMappedResults();
|
||||
return mappedResult;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsCapacityLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsCapacityLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_CAPACITY_READ_TOTAL).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_KEY_CAPACITY_READ_TOTAL)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_CAPACITY_WRITE_TOTAL).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_KEY_CAPACITY_WRITE_TOTAL);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_CAPACITY, clazz)
|
||||
.getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_CAPACITY_READ_TOTAL).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_KEY_CAPACITY_READ_TOTAL)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_CAPACITY_WRITE_TOTAL).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_KEY_CAPACITY_WRITE_TOTAL);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_CAPACITY, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsDauLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsDauLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_DAU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_DAU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_DAU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
List<T> results = mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DAU, clazz)
|
||||
.getMappedResults();
|
||||
|
||||
return results.get(0);
|
||||
|
||||
// return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DAU, clazz)
|
||||
// .getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_DAU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_DAU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_DAU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DAU, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsDglcLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsDglcLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_DGLC, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DGLC, clazz)
|
||||
.getUniqueMappedResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_DGLC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_DGLC).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_DGLC);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DGLC, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsMauLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsMauLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_MAU, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_MAU, clazz)
|
||||
.getUniqueMappedResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_MAU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_MAU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_MAU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_MAU, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsMcuLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsMcuLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_MAX_COUNT_USER, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_MAX_COUNT_USER).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_MCU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
List<T> results = mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_MCU, clazz)
|
||||
.getMappedResults();
|
||||
|
||||
return results.get(0);
|
||||
|
||||
// return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_MCU, clazz)
|
||||
// .getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_MAX_COUNT_USER, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_MAX_COUNT_USER).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_MCU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_MCU, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsMetaverServerLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsMetaverServerLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_SERVER_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_SERVER_COUNT).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_METAVER_SERVER);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
List<T> results = mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_METAVER_SERVER, clazz)
|
||||
.getMappedResults();
|
||||
|
||||
return results.get(0);
|
||||
|
||||
// return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_DAU, clazz)
|
||||
// .getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_SERVER_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_SERVER_COUNT).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_METAVER_SERVER);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_METAVER_SERVER, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsNruLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsNruLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_NRU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_NRU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_NRU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
List<T> results = mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_NRU, clazz)
|
||||
.getMappedResults();
|
||||
|
||||
return results.get(0);
|
||||
|
||||
// return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_NRU, clazz)
|
||||
// .getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_NRU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_NRU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_NRU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_NRU, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsPlayTimeLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsPlayTimeLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_TOTAL_PLAY_TIME_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_PLAYTIME, clazz)
|
||||
.getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_TOTAL_PLAY_TIME_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_TOTAL_PLAY_TIME_COUNT).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_PLAYTIME);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_PLAYTIME, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsUgqCreateLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsUgqCreateLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_UGQ_CREATE_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_UGQ_CREATE_COUNT).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_UGQ_CREATE);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_UGQ_CREATE, clazz)
|
||||
.getUniqueMappedResult(); // 단일 결과만 반환
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_KEY_UGQ_CREATE_COUNT, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_KEY_UGQ_CREATE_COUNT).then(0L))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_UGQ_CREATE);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_UGQ_CREATE, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
import com.caliverse.admin.Indicators.Indicatorsservice.base.IndicatorsLogLoadServiceBase;
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.domain.Sort;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ConditionalOperators;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IndicatorsWauLoadService extends IndicatorsLogLoadServiceBase {
|
||||
public IndicatorsWauLoadService(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
super(mongoTemplate);
|
||||
}
|
||||
|
||||
public <T extends IndicatorsLog> T getDailyIndicatorLog(String date, Class<T> clazz) {
|
||||
Criteria criteria = Criteria.where(AdminConstants.MONGO_DB_KEY_LOGDAY).is(date);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_WAU, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_WAU, clazz)
|
||||
.getUniqueMappedResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
|
||||
Criteria criteria = makeCriteria(startTime, endTime, AdminConstants.MONGO_DB_KEY_LOGDAY);
|
||||
|
||||
ProjectionOperation projection = Aggregation.project()
|
||||
.andInclude(AdminConstants.MONGO_DB_COLLECTION_WAU, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(ConditionalOperators.ifNull("$" + AdminConstants.MONGO_DB_COLLECTION_WAU).then(0))
|
||||
.as(AdminConstants.MONGO_DB_COLLECTION_WAU);
|
||||
|
||||
List<AggregationOperation> operations = List.of(
|
||||
Aggregation.match(criteria),
|
||||
projection,
|
||||
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
);
|
||||
|
||||
Aggregation aggregation = Aggregation.newAggregation(operations);
|
||||
|
||||
return mongoTemplate.aggregate(aggregation, AdminConstants.MONGO_DB_COLLECTION_WAU, clazz).getMappedResults();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.base;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
|
||||
public interface IndicatorsLogLoadService {
|
||||
|
||||
<T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.caliverse.admin.Indicators.Indicatorsservice.base;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.data.mongodb.core.MongoTemplate;
|
||||
import org.springframework.data.mongodb.core.aggregation.Aggregation;
|
||||
import org.springframework.data.mongodb.core.aggregation.AggregationOperation;
|
||||
import org.springframework.data.mongodb.core.aggregation.ProjectionOperation;
|
||||
import org.springframework.data.mongodb.core.query.Criteria;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.caliverse.admin.global.common.constants.AdminConstants;
|
||||
|
||||
|
||||
@Service
|
||||
public abstract class IndicatorsLogLoadServiceBase implements IndicatorsLogLoadService {
|
||||
|
||||
protected final MongoTemplate mongoTemplate;
|
||||
|
||||
public IndicatorsLogLoadServiceBase(
|
||||
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
|
||||
) {
|
||||
this.mongoTemplate = mongoTemplate;
|
||||
}
|
||||
|
||||
protected Criteria makeCriteria(String startDate, String endDate, String dateFieldName) {
|
||||
return new Criteria()
|
||||
.andOperator(
|
||||
Criteria.where(dateFieldName).gte(startDate),
|
||||
Criteria.where(dateFieldName).lt(endDate)
|
||||
);
|
||||
}
|
||||
|
||||
public Criteria makeCriteria(String startDate, String endDate)
|
||||
{
|
||||
return makeCriteria(startDate, endDate, AdminConstants.MONGO_DB_KEY_LOGTIME);
|
||||
}
|
||||
|
||||
// 24.12.13 현재 사용안함
|
||||
private AggregationOperation getDefaultProjectOperationName(){
|
||||
ProjectionOperation projectOperation = Aggregation.project()
|
||||
.and(AdminConstants.MONGO_DB_KEY_LOGDAY).as(AdminConstants.MONGO_DB_KEY_LOGDAY)
|
||||
.and(AdminConstants.INDICATORS_KEY_DAU_BY_LANG).as(AdminConstants.INDICATORS_KEY_DAU_BY_LANG)
|
||||
;
|
||||
return projectOperation;
|
||||
}
|
||||
|
||||
// 24.12.13 현재 사용안함
|
||||
protected List<AggregationOperation> setDefaultOperation(Criteria criteria){
|
||||
|
||||
List<AggregationOperation> operations = new ArrayList<>();
|
||||
|
||||
operations.add(Aggregation.match(criteria));
|
||||
operations.add(getDefaultProjectOperationName());
|
||||
|
||||
return operations;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "au")
|
||||
public class AuPerMinLogInfo extends LogInfoBase {
|
||||
|
||||
@Id
|
||||
private String logMinute;
|
||||
|
||||
private String languageType;
|
||||
private List<String> userGuidList;
|
||||
private int userGuidListCount;
|
||||
|
||||
|
||||
public AuPerMinLogInfo(String logMinute, String languageType, List<String> userGuidList, int userGuidListCount) {
|
||||
super(StatisticsType.AU_PER_MIN);
|
||||
|
||||
this.logMinute = logMinute;
|
||||
this.languageType = languageType;
|
||||
this.userGuidList = userGuidList;
|
||||
this.userGuidListCount = userGuidListCount;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "capacity")
|
||||
public class DBCapacityInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private String namespace;
|
||||
private Long consumeReadTotal;
|
||||
private Long consumeWriteTotal;
|
||||
|
||||
public DBCapacityInfo(String logDay, String namespace, Long consumeReadTotal, Long consumeWriteTotal) {
|
||||
super(StatisticsType.CAPACITY);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.namespace = namespace;
|
||||
this.consumeReadTotal = consumeReadTotal;
|
||||
this.consumeWriteTotal = consumeWriteTotal;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "dau")
|
||||
public class DauLogInfo extends LogInfoBase {
|
||||
|
||||
private Integer dau;
|
||||
private String logDay;
|
||||
|
||||
public DauLogInfo(String logDay, Integer dau) {
|
||||
super(StatisticsType.DAU);
|
||||
this.dau = dau;
|
||||
this.logDay = logDay;
|
||||
|
||||
//this.dauByLang = dauByLang;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "dglc")
|
||||
public class DglcLogInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private Integer dglc;
|
||||
|
||||
public DglcLogInfo(String logDay, Integer dglc) {
|
||||
super(StatisticsType.DGLC);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.dglc = dglc;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class LogInfoBase implements IndicatorsLog{
|
||||
|
||||
private StatisticsType statisticsType;
|
||||
|
||||
public LogInfoBase(StatisticsType statisticsType) {
|
||||
this.statisticsType = statisticsType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "mau")
|
||||
public class MauLogInfo extends LogInfoBase {
|
||||
|
||||
private Integer mau;
|
||||
private String logDay;
|
||||
|
||||
public MauLogInfo(String logDay, Integer mau) {
|
||||
super(StatisticsType.MAU);
|
||||
|
||||
this.mau = mau;
|
||||
this.logDay = logDay;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "mcu")
|
||||
public class McuLogInfo extends LogInfoBase {
|
||||
|
||||
private String logDay;
|
||||
private Integer maxCountUser;
|
||||
|
||||
public McuLogInfo(String logDay, Integer maxCountUser) {
|
||||
super(StatisticsType.MCU);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.maxCountUser = maxCountUser;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "metaverseserver")
|
||||
public class MetaverseServerInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private Integer serverCount;
|
||||
|
||||
public MetaverseServerInfo(String logDay, Integer serverCount) {
|
||||
super(StatisticsType.SERVER_INFO);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.serverCount = serverCount;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "money")
|
||||
public class MoneyLogInfo extends LogInfoBase {
|
||||
|
||||
private String logDay;
|
||||
private String guid;
|
||||
private String nickname;
|
||||
private Double gold;
|
||||
private Double sapphire;
|
||||
private Double calium;
|
||||
private Double ruby;
|
||||
|
||||
public MoneyLogInfo(String logDay, String guid, String nickname, Double gold, Double sapphire, Double calium, Double ruby) {
|
||||
super(StatisticsType.MONEY);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.guid = guid;
|
||||
this.nickname = nickname;
|
||||
this.gold = gold;
|
||||
this.sapphire = sapphire;
|
||||
this.calium = calium;
|
||||
this.ruby = ruby;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "nru")
|
||||
public class NruLogInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private Integer nru;
|
||||
|
||||
public NruLogInfo(String logDay, Integer nru) {
|
||||
super(StatisticsType.NRU);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.nru = nru;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "playtime")
|
||||
public class PlayTimeLogInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private Long totalPlayTimeCount;
|
||||
|
||||
public PlayTimeLogInfo(String logDay, Long totalPlayTimeCount) {
|
||||
super(StatisticsType.PLAY_TIME);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.totalPlayTimeCount = totalPlayTimeCount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
public enum StatisticsType {
|
||||
|
||||
AU_PER_MIN,
|
||||
//AU_PER_HOUR,
|
||||
DAU,
|
||||
WAU,
|
||||
MAU,
|
||||
MCU,
|
||||
NRU,
|
||||
PLAY_TIME,
|
||||
DGLC,
|
||||
CAPACITY,
|
||||
UGQ_CREATE,
|
||||
SERVER_INFO,
|
||||
MONEY
|
||||
;
|
||||
|
||||
public static StatisticsType getStatisticsType(String type) {
|
||||
for (StatisticsType statisticsType : StatisticsType.values()) {
|
||||
if (statisticsType.name().equals(type)) {
|
||||
return statisticsType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "ugqcreate")
|
||||
public class UgqCreateLogInfo extends LogInfoBase{
|
||||
private String logDay;
|
||||
private Integer ugqCrateCount;
|
||||
|
||||
public UgqCreateLogInfo(String logDay, Integer ugqCrateCount) {
|
||||
super(StatisticsType.UGQ_CREATE);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.ugqCrateCount = ugqCrateCount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.caliverse.admin.Indicators.entity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Document(collection = "wau")
|
||||
public class WauLogInfo extends LogInfoBase {
|
||||
|
||||
private Integer wau;
|
||||
private String logDay;
|
||||
|
||||
public WauLogInfo(String logDay, Integer wau) {
|
||||
super(StatisticsType.WAU);
|
||||
|
||||
this.logDay = logDay;
|
||||
this.wau = wau;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.AuPerMinLogInfo;
|
||||
|
||||
public interface IndicatorAuPerMinRepository extends MongoRepository<AuPerMinLogInfo, String> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.DBCapacityInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorDBCapacityRepository extends MongoRepository<DBCapacityInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.DauLogInfo;
|
||||
import org.springframework.data.mongodb.repository.Query;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IndicatorDauRepository extends MongoRepository<DauLogInfo, String> {
|
||||
List<DauLogInfo> findByLogDay(String logDay);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.DglcLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorDglcRepository extends MongoRepository<DglcLogInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.DauLogInfo;
|
||||
import com.caliverse.admin.Indicators.entity.MauLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorMauRepository extends MongoRepository<MauLogInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.McuLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IndicatorMcuRepository extends MongoRepository<McuLogInfo, String> {
|
||||
List<McuLogInfo> findByLogDay(String logDay);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.MetaverseServerInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorMetaverServerRepository extends MongoRepository<MetaverseServerInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.MoneyLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorMoneyRepository extends MongoRepository<MoneyLogInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.NruLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IndicatorNruRepository extends MongoRepository<NruLogInfo, String> {
|
||||
List<NruLogInfo> findByLogDay(String logDay);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.PlayTimeLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorPlayTimRepository extends MongoRepository<PlayTimeLogInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.UgqCreateLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorUgqCreateRepository extends MongoRepository<UgqCreateLogInfo, String> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
import com.caliverse.admin.Indicators.entity.DauLogInfo;
|
||||
import com.caliverse.admin.Indicators.entity.WauLogInfo;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface IndicatorWauRepository extends MongoRepository<WauLogInfo, String> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.caliverse.admin.Indicators.indicatorrepository;
|
||||
|
||||
|
||||
|
||||
public interface MongoIndicatorRepository{
|
||||
}
|
||||
// public interface MongoStatRepository<T extends LogInfoBase> extends MongoRepository<T, String> {
|
||||
|
||||
// }
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.caliverse.admin.domain.RabbitMq;
|
||||
|
||||
import com.caliverse.admin.domain.RabbitMq.message.LogoutReasonType;
|
||||
import com.caliverse.admin.domain.RabbitMq.message.MailItem;
|
||||
import com.caliverse.admin.domain.RabbitMq.message.OperationSystemMessage;
|
||||
import com.caliverse.admin.domain.RabbitMq.message.ServerMessage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class MessageHandlerService {
|
||||
|
||||
private final RabbitMqService rabbitMqService;
|
||||
|
||||
public MessageHandlerService(RabbitMqService rabbitMqService) {
|
||||
this.rabbitMqService = rabbitMqService;
|
||||
}
|
||||
|
||||
public void sendUserKickMessage(String userGuid, String serverName){
|
||||
var user_kick_builder = ServerMessage.MOS2GS_NTF_USER_KICK.newBuilder();
|
||||
user_kick_builder.setUserGuid(userGuid);
|
||||
user_kick_builder.setKickReasonMsg("");
|
||||
user_kick_builder.setLogoutReasonType(LogoutReasonType.LogoutReasonType_None);
|
||||
|
||||
rabbitMqService.SendMessage(user_kick_builder.build(), serverName);
|
||||
}
|
||||
|
||||
public void sendNoticeMessage(List<String> serverList, String type, List<OperationSystemMessage> msgList, List<OperationSystemMessage> senderList){
|
||||
try {
|
||||
var noticeBuilder = ServerMessage.MOS2GS_NTF_NOTICE_CHAT.newBuilder();
|
||||
noticeBuilder.addNoticeType(type);
|
||||
// noticeBuilder.setNoticeType(0, type);
|
||||
// int msgIdx = 0;
|
||||
for (OperationSystemMessage msg : msgList) {
|
||||
noticeBuilder.addChatMessage(msg);
|
||||
// noticeBuilder.setChatMessage(msgIdx, msg);
|
||||
// msgIdx++;
|
||||
}
|
||||
for (OperationSystemMessage sender : senderList) {
|
||||
noticeBuilder.addSender(sender);
|
||||
}
|
||||
for (String server : serverList) {
|
||||
rabbitMqService.SendMessage(noticeBuilder.build(), server);
|
||||
}
|
||||
}catch (Exception e){
|
||||
log.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public void sendMailMessage(String serverName, String userGuid, String mailType, List<OperationSystemMessage> titleList, List<OperationSystemMessage> msgList
|
||||
, List<MailItem> itemList, List<OperationSystemMessage> senderList){
|
||||
var mail_builder = ServerMessage.MOS2GS_NTF_MAIL_SEND.newBuilder();
|
||||
mail_builder.setUserGuid(userGuid);
|
||||
mail_builder.setMailType(mailType);
|
||||
|
||||
for(OperationSystemMessage title : titleList){
|
||||
mail_builder.addTitle(title);
|
||||
}
|
||||
for(OperationSystemMessage msg : msgList){
|
||||
mail_builder.addMsg(msg);
|
||||
}
|
||||
for(MailItem item : itemList){
|
||||
mail_builder.addItemList(item);
|
||||
}
|
||||
for(OperationSystemMessage sender : senderList){
|
||||
mail_builder.addSender(sender);
|
||||
}
|
||||
rabbitMqService.SendMessage(mail_builder.build(), serverName);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.caliverse.admin.domain.RabbitMq;
|
||||
|
||||
import com.caliverse.admin.domain.RabbitMq.message.ServerMessage;
|
||||
import com.caliverse.admin.global.common.code.CommonCode;
|
||||
import com.caliverse.admin.global.common.code.ErrorCode;
|
||||
import com.caliverse.admin.global.common.exception.RestApiException;
|
||||
import com.google.protobuf.InvalidProtocolBufferException;
|
||||
import com.google.protobuf.Timestamp;
|
||||
import com.google.protobuf.util.JsonFormat;
|
||||
import com.rabbitmq.client.Channel;
|
||||
import com.rabbitmq.client.Connection;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.catalina.Server;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.time.Instant;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class RabbitMqService {
|
||||
|
||||
private final Connection m_rabbitMq;
|
||||
|
||||
public RabbitMqService(Connection rabbitMqConnection) {
|
||||
this.m_rabbitMq = rabbitMqConnection;
|
||||
}
|
||||
|
||||
// Send ServerMessage to GameServer
|
||||
|
||||
public void SendMessage(com.google.protobuf.GeneratedMessageV3 message, String destServer) {
|
||||
try {
|
||||
Channel channel = m_rabbitMq.createChannel();
|
||||
var server_message_builder = ServerMessage.newBuilder();
|
||||
server_message_builder.setMessageTime(getCurrentTimestamp());
|
||||
server_message_builder.setMessageSender("AdminTool");
|
||||
|
||||
for(var descriptor : ServerMessage.getDescriptor().getOneofs().get(0).getFields())
|
||||
{
|
||||
if(!Objects.equals(descriptor.getMessageType().getName(), message.getDescriptorForType().getName())) continue;
|
||||
server_message_builder.setField(descriptor, message);
|
||||
break;
|
||||
}
|
||||
|
||||
String send = JsonFormat.printer().print(server_message_builder);
|
||||
channel.queueDeclare(destServer, true, false, true, null);
|
||||
channel.basicPublish("", destServer, null, send.getBytes());
|
||||
|
||||
}
|
||||
catch (InvalidProtocolBufferException e) {
|
||||
log.error("InvalidProtocolBufferException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
|
||||
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_INVALID_PROTOCOL_BUFFER_EXCEPTION_ERROR.getMessage());
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.error("IOException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
|
||||
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_IO_EXCEPTION_ERROR.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private Timestamp getCurrentTimestamp()
|
||||
{
|
||||
var current = Instant.now();
|
||||
|
||||
return Timestamp.newBuilder().setSeconds(current.getEpochSecond())
|
||||
.setNanos(current.getNano()).build();
|
||||
}
|
||||
|
||||
// Consumer 등록 : 현재는 운영툴 Backend 가 ServerMessage 를 받을 필요가 없다.
|
||||
/*public void startConsumer() throws IOException, TimeoutException
|
||||
{
|
||||
if(!m_rabbitMq.isOpen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
try(Channel channel = m_rabbitMq.createChannel())
|
||||
{
|
||||
channel.queueDeclare(m_server_name, true, false, true, null);
|
||||
channel.basicConsume(m_server_name, true, deliveryCallback, consumerTag -> { });
|
||||
}
|
||||
}
|
||||
|
||||
private final DeliverCallback deliveryCallback = (consumerTag, delivery) ->
|
||||
{
|
||||
String message = new String(delivery.getBody());
|
||||
logger.info("Received message: {}", message);
|
||||
};*/
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.caliverse.admin.domain.RabbitMq;
|
||||
|
||||
import com.caliverse.admin.domain.RabbitMq.message.*;
|
||||
import com.caliverse.admin.domain.entity.BlackList;
|
||||
import com.caliverse.admin.domain.entity.SANCTIONS;
|
||||
import com.caliverse.admin.domain.entity.SANCTIONSTYPE;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
public class RabbitMqUtils {
|
||||
// public static UserBlockReasonType getUserBlockSanctionName(SANCTIONS sanction){
|
||||
// switch (sanction){
|
||||
// case ACCOUNT_IMPERSONATION:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Account_Impersonation;
|
||||
// case BAD_BEHAVIOR:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Bad_Behavior;
|
||||
// case CASH_TRANSACTION:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Cash_Transaction;
|
||||
// case ADMIN_IMPERSONATION:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Asmin_Impersonation;
|
||||
// case BUG_ABUSE:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Bug_Abuse;
|
||||
// case GAME_INTERFERENCE:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Game_Interference;
|
||||
// case ILLEGAL_PROGRAM:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Illegal_Program;
|
||||
// case INAPPROPRIATE_NAME:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Inappropriate_Name;
|
||||
// case PERSONAL_INFO_LEAK:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Personal_Info_Leak;
|
||||
// case SERVICE_INTERFERENCE:
|
||||
// return UserBlockReasonType.UserBlockReasonType_Service_Interference;
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// public static UserBlockPolicyType getUserBlockPolicyName(SANCTIONSTYPE sanctionstype){
|
||||
// switch (sanctionstype){
|
||||
// case ACCESS_RESTRICTIONS:
|
||||
// return UserBlockPolicyType.UserBlockPolicyType_Access_Restrictions;
|
||||
// case CHATTING_RESTRICTIONS:
|
||||
// return UserBlockPolicyType.UserBlockPolicyType_Chatting_Restrictions;
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
|
||||
public static AuthAdminLevelType getUserAdminLevelType(String type){
|
||||
switch (type){
|
||||
case "0":
|
||||
return AuthAdminLevelType.AuthAdminLevelType_None;
|
||||
case "1":
|
||||
return AuthAdminLevelType.AuthAdminLevelType_GmNormal;
|
||||
case "2":
|
||||
return AuthAdminLevelType.AuthAdminLevelType_GmSuper;
|
||||
case "3":
|
||||
return AuthAdminLevelType.AuthAdminLevelType_Developer;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,735 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20>ɷ<EFBFBD>ġ <20><><EFBFBD><EFBFBD> : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AbilityInfo}
|
||||
*/
|
||||
public final class AbilityInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:AbilityInfo)
|
||||
AbilityInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use AbilityInfo.newBuilder() to construct.
|
||||
private AbilityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private AbilityInfo() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new AbilityInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.class, com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int VALUES_FIELD_NUMBER = 1;
|
||||
private static final class ValuesDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.Integer, java.lang.Integer> defaultEntry =
|
||||
com.google.protobuf.MapEntry
|
||||
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
|
||||
com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_ValuesEntry_descriptor,
|
||||
com.google.protobuf.WireFormat.FieldType.INT32,
|
||||
0,
|
||||
com.google.protobuf.WireFormat.FieldType.INT32,
|
||||
0);
|
||||
}
|
||||
@SuppressWarnings("serial")
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.Integer, java.lang.Integer> values_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
|
||||
internalGetValues() {
|
||||
if (values_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return values_;
|
||||
}
|
||||
public int getValuesCount() {
|
||||
return internalGetValues().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean containsValues(
|
||||
int key) {
|
||||
|
||||
return internalGetValues().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, java.lang.Integer> getValues() {
|
||||
return getValuesMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.Map<java.lang.Integer, java.lang.Integer> getValuesMap() {
|
||||
return internalGetValues().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValuesOrDefault(
|
||||
int key,
|
||||
int defaultValue) {
|
||||
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer> map =
|
||||
internalGetValues().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValuesOrThrow(
|
||||
int key) {
|
||||
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer> map =
|
||||
internalGetValues().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeIntegerMapTo(
|
||||
output,
|
||||
internalGetValues(),
|
||||
ValuesDefaultEntryHolder.defaultEntry,
|
||||
1);
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
|
||||
: internalGetValues().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
|
||||
values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||
.setKey(entry.getKey())
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, values__);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.AbilityInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfo other = (com.caliverse.admin.domain.RabbitMq.message.AbilityInfo) obj;
|
||||
|
||||
if (!internalGetValues().equals(
|
||||
other.internalGetValues())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (!internalGetValues().getMap().isEmpty()) {
|
||||
hash = (37 * hash) + VALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetValues().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.AbilityInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new 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>
|
||||
* <20>ɷ<EFBFBD>ġ <20><><EFBFBD><EFBFBD> : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AbilityInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:AbilityInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetMutableValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.class, com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
internalGetMutableValues().clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AbilityInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AbilityInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AbilityInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AbilityInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AbilityInfo result = new com.caliverse.admin.domain.RabbitMq.message.AbilityInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.AbilityInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.values_ = internalGetValues();
|
||||
result.values_.makeImmutable();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.AbilityInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.AbilityInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.AbilityInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.AbilityInfo.getDefaultInstance()) return this;
|
||||
internalGetMutableValues().mergeFrom(
|
||||
other.internalGetValues());
|
||||
bitField0_ |= 0x00000001;
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
|
||||
values__ = input.readMessage(
|
||||
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||
internalGetMutableValues().getMutableMap().put(
|
||||
values__.getKey(), values__.getValue());
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 10
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.Integer, java.lang.Integer> values_;
|
||||
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
|
||||
internalGetValues() {
|
||||
if (values_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return values_;
|
||||
}
|
||||
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
|
||||
internalGetMutableValues() {
|
||||
if (values_ == null) {
|
||||
values_ = com.google.protobuf.MapField.newMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
if (!values_.isMutable()) {
|
||||
values_ = values_.copy();
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return values_;
|
||||
}
|
||||
public int getValuesCount() {
|
||||
return internalGetValues().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean containsValues(
|
||||
int key) {
|
||||
|
||||
return internalGetValues().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, java.lang.Integer> getValues() {
|
||||
return getValuesMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.Map<java.lang.Integer, java.lang.Integer> getValuesMap() {
|
||||
return internalGetValues().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValuesOrDefault(
|
||||
int key,
|
||||
int defaultValue) {
|
||||
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer> map =
|
||||
internalGetValues().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValuesOrThrow(
|
||||
int key) {
|
||||
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer> map =
|
||||
internalGetValues().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
public Builder clearValues() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.clear();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
public Builder removeValues(
|
||||
int key) {
|
||||
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.remove(key);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Use alternate mutation accessors instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.Integer, java.lang.Integer>
|
||||
getMutableValues() {
|
||||
bitField0_ |= 0x00000001;
|
||||
return internalGetMutableValues().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
public Builder putValues(
|
||||
int key,
|
||||
int value) {
|
||||
|
||||
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.put(key, value);
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
public Builder putAllValues(
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.putAll(values);
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:AbilityInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:AbilityInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.AbilityInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.AbilityInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AbilityInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<AbilityInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<AbilityInfo>() {
|
||||
@java.lang.Override
|
||||
public AbilityInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<AbilityInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<AbilityInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AbilityInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AbilityInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AbilityInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
int getValuesCount();
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
boolean containsValues(
|
||||
int key);
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer>
|
||||
getValues();
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.Integer, java.lang.Integer>
|
||||
getValuesMap();
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
int getValuesOrDefault(
|
||||
int key,
|
||||
int defaultValue);
|
||||
/**
|
||||
* <pre>
|
||||
* <AttributeType, <20>ɷ<EFBFBD>ġ>
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<int32, int32> values = 1;</code>
|
||||
*/
|
||||
int getValuesOrThrow(
|
||||
int key);
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Account <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AccountCreationType}
|
||||
*/
|
||||
public enum AccountCreationType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AccountCreationType_None = 0;</code>
|
||||
*/
|
||||
AccountCreationType_None(0),
|
||||
/**
|
||||
* <code>AccountCreationType_Normal = 1;</code>
|
||||
*/
|
||||
AccountCreationType_Normal(1),
|
||||
/**
|
||||
* <code>AccountCreationType_Test = 2;</code>
|
||||
*/
|
||||
AccountCreationType_Test(2),
|
||||
/**
|
||||
* <code>AccountCreationType_Bot = 3;</code>
|
||||
*/
|
||||
AccountCreationType_Bot(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AccountCreationType_None = 0;</code>
|
||||
*/
|
||||
public static final int AccountCreationType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>AccountCreationType_Normal = 1;</code>
|
||||
*/
|
||||
public static final int AccountCreationType_Normal_VALUE = 1;
|
||||
/**
|
||||
* <code>AccountCreationType_Test = 2;</code>
|
||||
*/
|
||||
public static final int AccountCreationType_Test_VALUE = 2;
|
||||
/**
|
||||
* <code>AccountCreationType_Bot = 3;</code>
|
||||
*/
|
||||
public static final int AccountCreationType_Bot_VALUE = 3;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AccountCreationType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AccountCreationType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AccountCreationType_None;
|
||||
case 1: return AccountCreationType_Normal;
|
||||
case 2: return AccountCreationType_Test;
|
||||
case 3: return AccountCreationType_Bot;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AccountCreationType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AccountCreationType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AccountCreationType>() {
|
||||
public AccountCreationType findValueByNumber(int number) {
|
||||
return AccountCreationType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(10);
|
||||
}
|
||||
|
||||
private static final AccountCreationType[] VALUES = values();
|
||||
|
||||
public static AccountCreationType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AccountCreationType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AccountCreationType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,278 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AccountSactionType}
|
||||
*/
|
||||
public enum AccountSactionType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AccountSactionType_None = 0;</code>
|
||||
*/
|
||||
AccountSactionType_None(0),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD>ų<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_BadBhavior = 1;</code>
|
||||
*/
|
||||
AccountSactionType_BadBhavior(1),
|
||||
/**
|
||||
* <pre>
|
||||
* <20>Ұ<EFBFBD><D2B0><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_InvapproprivateName = 2;</code>
|
||||
*/
|
||||
AccountSactionType_InvapproprivateName(2),
|
||||
/**
|
||||
* <pre>
|
||||
* ij<><C4B3> Ʈ<><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_CashTransaction = 3;</code>
|
||||
*/
|
||||
AccountSactionType_CashTransaction(3),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_GameInterference = 4;</code>
|
||||
*/
|
||||
AccountSactionType_GameInterference(4),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_ServiceInterference = 5;</code>
|
||||
*/
|
||||
AccountSactionType_ServiceInterference(5),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_AccountImpersonation = 6;</code>
|
||||
*/
|
||||
AccountSactionType_AccountImpersonation(6),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>¡
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_BugAbuse = 7;</code>
|
||||
*/
|
||||
AccountSactionType_BugAbuse(7),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD>α<CEB1> <20>ҹ<EFBFBD><D2B9><EFBFBD><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_IllegalProgram = 8;</code>
|
||||
*/
|
||||
AccountSactionType_IllegalProgram(8),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_PersonalInfo_Leak = 9;</code>
|
||||
*/
|
||||
AccountSactionType_PersonalInfo_Leak(9),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><EFBFBD><EEBFB5> <20><>Ī
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_AdminImpersonation = 10;</code>
|
||||
*/
|
||||
AccountSactionType_AdminImpersonation(10),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AccountSactionType_None = 0;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_None_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD>ų<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_BadBhavior = 1;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_BadBhavior_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
* <20>Ұ<EFBFBD><D2B0><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_InvapproprivateName = 2;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_InvapproprivateName_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
* ij<><C4B3> Ʈ<><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_CashTransaction = 3;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_CashTransaction_VALUE = 3;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_GameInterference = 4;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_GameInterference_VALUE = 4;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_ServiceInterference = 5;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_ServiceInterference_VALUE = 5;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_AccountImpersonation = 6;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_AccountImpersonation_VALUE = 6;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>¡
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_BugAbuse = 7;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_BugAbuse_VALUE = 7;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD>α<CEB1> <20>ҹ<EFBFBD><D2B9><EFBFBD><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_IllegalProgram = 8;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_IllegalProgram_VALUE = 8;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_PersonalInfo_Leak = 9;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_PersonalInfo_Leak_VALUE = 9;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><EFBFBD><EEBFB5> <20><>Ī
|
||||
* </pre>
|
||||
*
|
||||
* <code>AccountSactionType_AdminImpersonation = 10;</code>
|
||||
*/
|
||||
public static final int AccountSactionType_AdminImpersonation_VALUE = 10;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AccountSactionType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AccountSactionType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AccountSactionType_None;
|
||||
case 1: return AccountSactionType_BadBhavior;
|
||||
case 2: return AccountSactionType_InvapproprivateName;
|
||||
case 3: return AccountSactionType_CashTransaction;
|
||||
case 4: return AccountSactionType_GameInterference;
|
||||
case 5: return AccountSactionType_ServiceInterference;
|
||||
case 6: return AccountSactionType_AccountImpersonation;
|
||||
case 7: return AccountSactionType_BugAbuse;
|
||||
case 8: return AccountSactionType_IllegalProgram;
|
||||
case 9: return AccountSactionType_PersonalInfo_Leak;
|
||||
case 10: return AccountSactionType_AdminImpersonation;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AccountSactionType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AccountSactionType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AccountSactionType>() {
|
||||
public AccountSactionType findValueByNumber(int number) {
|
||||
return AccountSactionType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(19);
|
||||
}
|
||||
|
||||
private static final AccountSactionType[] VALUES = values();
|
||||
|
||||
public static AccountSactionType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AccountSactionType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AccountSactionType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AccountType}
|
||||
*/
|
||||
public enum AccountType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AccountType_None = 0;</code>
|
||||
*/
|
||||
AccountType_None(0),
|
||||
/**
|
||||
* <code>AccountType_Google = 1;</code>
|
||||
*/
|
||||
AccountType_Google(1),
|
||||
/**
|
||||
* <code>AccountType_Apple = 2;</code>
|
||||
*/
|
||||
AccountType_Apple(2),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AccountType_None = 0;</code>
|
||||
*/
|
||||
public static final int AccountType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>AccountType_Google = 1;</code>
|
||||
*/
|
||||
public static final int AccountType_Google_VALUE = 1;
|
||||
/**
|
||||
* <code>AccountType_Apple = 2;</code>
|
||||
*/
|
||||
public static final int AccountType_Apple_VALUE = 2;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AccountType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AccountType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AccountType_None;
|
||||
case 1: return AccountType_Google;
|
||||
case 2: return AccountType_Apple;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AccountType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AccountType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AccountType>() {
|
||||
public AccountType findValueByNumber(int number) {
|
||||
return AccountType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(1);
|
||||
}
|
||||
|
||||
private static final AccountType[] VALUES = values();
|
||||
|
||||
public static AccountType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AccountType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AccountType)
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,101 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AllUgqInfosOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AllUgqInfos)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>repeated .QuestInfo quests = 1;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.QuestInfo>
|
||||
getQuestsList();
|
||||
/**
|
||||
* <code>repeated .QuestInfo quests = 1;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.QuestInfo getQuests(int index);
|
||||
/**
|
||||
* <code>repeated .QuestInfo quests = 1;</code>
|
||||
*/
|
||||
int getQuestsCount();
|
||||
/**
|
||||
* <code>repeated .QuestInfo quests = 1;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.QuestInfoOrBuilder>
|
||||
getQuestsOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .QuestInfo quests = 1;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.QuestInfoOrBuilder getQuestsOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>repeated .QuestMetaInfo questMetaInfos = 2;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.QuestMetaInfo>
|
||||
getQuestMetaInfosList();
|
||||
/**
|
||||
* <code>repeated .QuestMetaInfo questMetaInfos = 2;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.QuestMetaInfo getQuestMetaInfos(int index);
|
||||
/**
|
||||
* <code>repeated .QuestMetaInfo questMetaInfos = 2;</code>
|
||||
*/
|
||||
int getQuestMetaInfosCount();
|
||||
/**
|
||||
* <code>repeated .QuestMetaInfo questMetaInfos = 2;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.QuestMetaInfoOrBuilder>
|
||||
getQuestMetaInfosOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .QuestMetaInfo questMetaInfos = 2;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.QuestMetaInfoOrBuilder getQuestMetaInfosOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
*<2A><>ȭ <20><><EFBFBD><EFBFBD>, Ÿ<><C5B8>Ʋ <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .UgqGameQuestDataForClient ugqGameQuestDataForClients = 3;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataForClient>
|
||||
getUgqGameQuestDataForClientsList();
|
||||
/**
|
||||
* <pre>
|
||||
*<2A><>ȭ <20><><EFBFBD><EFBFBD>, Ÿ<><C5B8>Ʋ <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .UgqGameQuestDataForClient ugqGameQuestDataForClients = 3;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataForClient getUgqGameQuestDataForClients(int index);
|
||||
/**
|
||||
* <pre>
|
||||
*<2A><>ȭ <20><><EFBFBD><EFBFBD>, Ÿ<><C5B8>Ʋ <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .UgqGameQuestDataForClient ugqGameQuestDataForClients = 3;</code>
|
||||
*/
|
||||
int getUgqGameQuestDataForClientsCount();
|
||||
/**
|
||||
* <pre>
|
||||
*<2A><>ȭ <20><><EFBFBD><EFBFBD>, Ÿ<><C5B8>Ʋ <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .UgqGameQuestDataForClient ugqGameQuestDataForClients = 3;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataForClientOrBuilder>
|
||||
getUgqGameQuestDataForClientsOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
*<2A><>ȭ <20><><EFBFBD><EFBFBD>, Ÿ<><C5B8>Ʋ <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .UgqGameQuestDataForClient ugqGameQuestDataForClients = 3;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataForClientOrBuilder getUgqGameQuestDataForClientsOrBuilder(
|
||||
int index);
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><>ȭ <20><><EFBFBD><EFBFBD> : <20><>ȭ<EFBFBD><C8AD> <20><>ȭ
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AmountDeltaType}
|
||||
*/
|
||||
public enum AmountDeltaType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AmountDeltaType_None = 0;</code>
|
||||
*/
|
||||
AmountDeltaType_None(0),
|
||||
/**
|
||||
* <pre>
|
||||
* ȹ<><C8B9> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Acquire = 1;</code>
|
||||
*/
|
||||
AmountDeltaType_Acquire(1),
|
||||
/**
|
||||
* <pre>
|
||||
* <20>Ҹ<EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Consume = 2;</code>
|
||||
*/
|
||||
AmountDeltaType_Consume(2),
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:ȹ<><C8B9>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:<3A>Ҹ<EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Merge = 3;</code>
|
||||
*/
|
||||
AmountDeltaType_Merge(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AmountDeltaType_None = 0;</code>
|
||||
*/
|
||||
public static final int AmountDeltaType_None_VALUE = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* ȹ<><C8B9> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Acquire = 1;</code>
|
||||
*/
|
||||
public static final int AmountDeltaType_Acquire_VALUE = 1;
|
||||
/**
|
||||
* <pre>
|
||||
* <20>Ҹ<EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Consume = 2;</code>
|
||||
*/
|
||||
public static final int AmountDeltaType_Consume_VALUE = 2;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:ȹ<><C8B9>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:<3A>Ҹ<EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>AmountDeltaType_Merge = 3;</code>
|
||||
*/
|
||||
public static final int AmountDeltaType_Merge_VALUE = 3;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AmountDeltaType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AmountDeltaType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AmountDeltaType_None;
|
||||
case 1: return AmountDeltaType_Acquire;
|
||||
case 2: return AmountDeltaType_Consume;
|
||||
case 3: return AmountDeltaType_Merge;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AmountDeltaType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AmountDeltaType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AmountDeltaType>() {
|
||||
public AmountDeltaType findValueByNumber(int number) {
|
||||
return AmountDeltaType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(22);
|
||||
}
|
||||
|
||||
private static final AmountDeltaType[] VALUES = values();
|
||||
|
||||
public static AmountDeltaType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AmountDeltaType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AmountDeltaType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,789 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AppearanceCustomization}
|
||||
*/
|
||||
public final class AppearanceCustomization extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:AppearanceCustomization)
|
||||
AppearanceCustomizationOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use AppearanceCustomization.newBuilder() to construct.
|
||||
private AppearanceCustomization(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private AppearanceCustomization() {
|
||||
customValues_ = emptyIntList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new AppearanceCustomization();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceCustomization_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceCustomization_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.class, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BASICSTYLE_FIELD_NUMBER = 1;
|
||||
private int basicStyle_ = 0;
|
||||
/**
|
||||
* <code>int32 basicStyle = 1;</code>
|
||||
* @return The basicStyle.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBasicStyle() {
|
||||
return basicStyle_;
|
||||
}
|
||||
|
||||
public static final int BODYSHAPE_FIELD_NUMBER = 2;
|
||||
private int bodyShape_ = 0;
|
||||
/**
|
||||
* <code>int32 bodyShape = 2;</code>
|
||||
* @return The bodyShape.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBodyShape() {
|
||||
return bodyShape_;
|
||||
}
|
||||
|
||||
public static final int HAIRSTYLE_FIELD_NUMBER = 3;
|
||||
private int hairStyle_ = 0;
|
||||
/**
|
||||
* <code>int32 hairStyle = 3;</code>
|
||||
* @return The hairStyle.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getHairStyle() {
|
||||
return hairStyle_;
|
||||
}
|
||||
|
||||
public static final int CUSTOMVALUES_FIELD_NUMBER = 5;
|
||||
@SuppressWarnings("serial")
|
||||
private com.google.protobuf.Internal.IntList customValues_;
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return A list containing the customValues.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<java.lang.Integer>
|
||||
getCustomValuesList() {
|
||||
return customValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return The count of customValues.
|
||||
*/
|
||||
public int getCustomValuesCount() {
|
||||
return customValues_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The customValues at the given index.
|
||||
*/
|
||||
public int getCustomValues(int index) {
|
||||
return customValues_.getInt(index);
|
||||
}
|
||||
private int customValuesMemoizedSerializedSize = -1;
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
getSerializedSize();
|
||||
if (basicStyle_ != 0) {
|
||||
output.writeInt32(1, basicStyle_);
|
||||
}
|
||||
if (bodyShape_ != 0) {
|
||||
output.writeInt32(2, bodyShape_);
|
||||
}
|
||||
if (hairStyle_ != 0) {
|
||||
output.writeInt32(3, hairStyle_);
|
||||
}
|
||||
if (getCustomValuesList().size() > 0) {
|
||||
output.writeUInt32NoTag(42);
|
||||
output.writeUInt32NoTag(customValuesMemoizedSerializedSize);
|
||||
}
|
||||
for (int i = 0; i < customValues_.size(); i++) {
|
||||
output.writeInt32NoTag(customValues_.getInt(i));
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (basicStyle_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, basicStyle_);
|
||||
}
|
||||
if (bodyShape_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(2, bodyShape_);
|
||||
}
|
||||
if (hairStyle_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(3, hairStyle_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < customValues_.size(); i++) {
|
||||
dataSize += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(customValues_.getInt(i));
|
||||
}
|
||||
size += dataSize;
|
||||
if (!getCustomValuesList().isEmpty()) {
|
||||
size += 1;
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32SizeNoTag(dataSize);
|
||||
}
|
||||
customValuesMemoizedSerializedSize = dataSize;
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization other = (com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization) obj;
|
||||
|
||||
if (getBasicStyle()
|
||||
!= other.getBasicStyle()) return false;
|
||||
if (getBodyShape()
|
||||
!= other.getBodyShape()) return false;
|
||||
if (getHairStyle()
|
||||
!= other.getHairStyle()) return false;
|
||||
if (!getCustomValuesList()
|
||||
.equals(other.getCustomValuesList())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + BASICSTYLE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBasicStyle();
|
||||
hash = (37 * hash) + BODYSHAPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBodyShape();
|
||||
hash = (37 * hash) + HAIRSTYLE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getHairStyle();
|
||||
if (getCustomValuesCount() > 0) {
|
||||
hash = (37 * hash) + CUSTOMVALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCustomValuesList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new 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>
|
||||
* <20><><EFBFBD><EFBFBD> Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AppearanceCustomization}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:AppearanceCustomization)
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceCustomization_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceCustomization_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.class, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
basicStyle_ = 0;
|
||||
bodyShape_ = 0;
|
||||
hairStyle_ = 0;
|
||||
customValues_ = emptyIntList();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceCustomization_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization result = new com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization(this);
|
||||
buildPartialRepeatedFields(result);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization result) {
|
||||
if (((bitField0_ & 0x00000008) != 0)) {
|
||||
customValues_.makeImmutable();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
}
|
||||
result.customValues_ = customValues_;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.basicStyle_ = basicStyle_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.bodyShape_ = bodyShape_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000004) != 0)) {
|
||||
result.hairStyle_ = hairStyle_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance()) return this;
|
||||
if (other.getBasicStyle() != 0) {
|
||||
setBasicStyle(other.getBasicStyle());
|
||||
}
|
||||
if (other.getBodyShape() != 0) {
|
||||
setBodyShape(other.getBodyShape());
|
||||
}
|
||||
if (other.getHairStyle() != 0) {
|
||||
setHairStyle(other.getHairStyle());
|
||||
}
|
||||
if (!other.customValues_.isEmpty()) {
|
||||
if (customValues_.isEmpty()) {
|
||||
customValues_ = other.customValues_;
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
} else {
|
||||
ensureCustomValuesIsMutable();
|
||||
customValues_.addAll(other.customValues_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
basicStyle_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 16: {
|
||||
bodyShape_ = input.readInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 16
|
||||
case 24: {
|
||||
hairStyle_ = input.readInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
break;
|
||||
} // case 24
|
||||
case 40: {
|
||||
int v = input.readInt32();
|
||||
ensureCustomValuesIsMutable();
|
||||
customValues_.addInt(v);
|
||||
break;
|
||||
} // case 40
|
||||
case 42: {
|
||||
int length = input.readRawVarint32();
|
||||
int limit = input.pushLimit(length);
|
||||
ensureCustomValuesIsMutable();
|
||||
while (input.getBytesUntilLimit() > 0) {
|
||||
customValues_.addInt(input.readInt32());
|
||||
}
|
||||
input.popLimit(limit);
|
||||
break;
|
||||
} // case 42
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int basicStyle_ ;
|
||||
/**
|
||||
* <code>int32 basicStyle = 1;</code>
|
||||
* @return The basicStyle.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBasicStyle() {
|
||||
return basicStyle_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 basicStyle = 1;</code>
|
||||
* @param value The basicStyle to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBasicStyle(int value) {
|
||||
|
||||
basicStyle_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 basicStyle = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBasicStyle() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
basicStyle_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int bodyShape_ ;
|
||||
/**
|
||||
* <code>int32 bodyShape = 2;</code>
|
||||
* @return The bodyShape.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBodyShape() {
|
||||
return bodyShape_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 bodyShape = 2;</code>
|
||||
* @param value The bodyShape to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBodyShape(int value) {
|
||||
|
||||
bodyShape_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 bodyShape = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBodyShape() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
bodyShape_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int hairStyle_ ;
|
||||
/**
|
||||
* <code>int32 hairStyle = 3;</code>
|
||||
* @return The hairStyle.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getHairStyle() {
|
||||
return hairStyle_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 hairStyle = 3;</code>
|
||||
* @param value The hairStyle to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setHairStyle(int value) {
|
||||
|
||||
hairStyle_ = value;
|
||||
bitField0_ |= 0x00000004;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 hairStyle = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearHairStyle() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
hairStyle_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Internal.IntList customValues_ = emptyIntList();
|
||||
private void ensureCustomValuesIsMutable() {
|
||||
if (!((bitField0_ & 0x00000008) != 0)) {
|
||||
customValues_ = mutableCopy(customValues_);
|
||||
bitField0_ |= 0x00000008;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return A list containing the customValues.
|
||||
*/
|
||||
public java.util.List<java.lang.Integer>
|
||||
getCustomValuesList() {
|
||||
return ((bitField0_ & 0x00000008) != 0) ?
|
||||
java.util.Collections.unmodifiableList(customValues_) : customValues_;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return The count of customValues.
|
||||
*/
|
||||
public int getCustomValuesCount() {
|
||||
return customValues_.size();
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The customValues at the given index.
|
||||
*/
|
||||
public int getCustomValues(int index) {
|
||||
return customValues_.getInt(index);
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param index The index to set the value at.
|
||||
* @param value The customValues to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCustomValues(
|
||||
int index, int value) {
|
||||
|
||||
ensureCustomValuesIsMutable();
|
||||
customValues_.setInt(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param value The customValues to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addCustomValues(int value) {
|
||||
|
||||
ensureCustomValuesIsMutable();
|
||||
customValues_.addInt(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param values The customValues to add.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder addAllCustomValues(
|
||||
java.lang.Iterable<? extends java.lang.Integer> values) {
|
||||
ensureCustomValuesIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, customValues_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCustomValues() {
|
||||
customValues_ = emptyIntList();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:AppearanceCustomization)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:AppearanceCustomization)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<AppearanceCustomization>
|
||||
PARSER = new com.google.protobuf.AbstractParser<AppearanceCustomization>() {
|
||||
@java.lang.Override
|
||||
public AppearanceCustomization parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<AppearanceCustomization> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<AppearanceCustomization> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AppearanceCustomizationOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AppearanceCustomization)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 basicStyle = 1;</code>
|
||||
* @return The basicStyle.
|
||||
*/
|
||||
int getBasicStyle();
|
||||
|
||||
/**
|
||||
* <code>int32 bodyShape = 2;</code>
|
||||
* @return The bodyShape.
|
||||
*/
|
||||
int getBodyShape();
|
||||
|
||||
/**
|
||||
* <code>int32 hairStyle = 3;</code>
|
||||
* @return The hairStyle.
|
||||
*/
|
||||
int getHairStyle();
|
||||
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return A list containing the customValues.
|
||||
*/
|
||||
java.util.List<java.lang.Integer> getCustomValuesList();
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @return The count of customValues.
|
||||
*/
|
||||
int getCustomValuesCount();
|
||||
/**
|
||||
* <code>repeated int32 customValues = 5;</code>
|
||||
* @param index The index of the element to return.
|
||||
* @return The customValues at the given index.
|
||||
*/
|
||||
int getCustomValues(int index);
|
||||
}
|
||||
@@ -0,0 +1,739 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AppearanceProfile}
|
||||
*/
|
||||
public final class AppearanceProfile extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:AppearanceProfile)
|
||||
AppearanceProfileOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use AppearanceProfile.newBuilder() to construct.
|
||||
private AppearanceProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private AppearanceProfile() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new AppearanceProfile();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.class, com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.Builder.class);
|
||||
}
|
||||
|
||||
public static final int VALUES_FIELD_NUMBER = 1;
|
||||
private static final class ValuesDefaultEntryHolder {
|
||||
static final com.google.protobuf.MapEntry<
|
||||
java.lang.String, java.lang.String> defaultEntry =
|
||||
com.google.protobuf.MapEntry
|
||||
.<java.lang.String, java.lang.String>newDefaultInstance(
|
||||
com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_ValuesEntry_descriptor,
|
||||
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||
"",
|
||||
com.google.protobuf.WireFormat.FieldType.STRING,
|
||||
"");
|
||||
}
|
||||
@SuppressWarnings("serial")
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.String, java.lang.String> values_;
|
||||
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||
internalGetValues() {
|
||||
if (values_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return values_;
|
||||
}
|
||||
public int getValuesCount() {
|
||||
return internalGetValues().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean containsValues(
|
||||
java.lang.String key) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
return internalGetValues().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.String, java.lang.String> getValues() {
|
||||
return getValuesMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.Map<java.lang.String, java.lang.String> getValuesMap() {
|
||||
return internalGetValues().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public /* nullable */
|
||||
java.lang.String getValuesOrDefault(
|
||||
java.lang.String key,
|
||||
/* nullable */
|
||||
java.lang.String defaultValue) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
java.util.Map<java.lang.String, java.lang.String> map =
|
||||
internalGetValues().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getValuesOrThrow(
|
||||
java.lang.String key) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
java.util.Map<java.lang.String, java.lang.String> map =
|
||||
internalGetValues().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
com.google.protobuf.GeneratedMessageV3
|
||||
.serializeStringMapTo(
|
||||
output,
|
||||
internalGetValues(),
|
||||
ValuesDefaultEntryHolder.defaultEntry,
|
||||
1);
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
|
||||
: internalGetValues().getMap().entrySet()) {
|
||||
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||
values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType()
|
||||
.setKey(entry.getKey())
|
||||
.setValue(entry.getValue())
|
||||
.build();
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, values__);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile other = (com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile) obj;
|
||||
|
||||
if (!internalGetValues().equals(
|
||||
other.internalGetValues())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (!internalGetValues().getMap().isEmpty()) {
|
||||
hash = (37 * hash) + VALUES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + internalGetValues().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new 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>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <20><>Ŷ<EFBFBD><C5B6>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code AppearanceProfile}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:AppearanceProfile)
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfileOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_descriptor;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@SuppressWarnings({"rawtypes"})
|
||||
protected com.google.protobuf.MapField internalGetMutableMapField(
|
||||
int number) {
|
||||
switch (number) {
|
||||
case 1:
|
||||
return internalGetMutableValues();
|
||||
default:
|
||||
throw new RuntimeException(
|
||||
"Invalid map field number: " + number);
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.class, com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
internalGetMutableValues().clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AppearanceProfile_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile result = new com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.values_ = internalGetValues();
|
||||
result.values_.makeImmutable();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile.getDefaultInstance()) return this;
|
||||
internalGetMutableValues().mergeFrom(
|
||||
other.internalGetValues());
|
||||
bitField0_ |= 0x00000001;
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
|
||||
values__ = input.readMessage(
|
||||
ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
|
||||
internalGetMutableValues().getMutableMap().put(
|
||||
values__.getKey(), values__.getValue());
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 10
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private com.google.protobuf.MapField<
|
||||
java.lang.String, java.lang.String> values_;
|
||||
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||
internalGetValues() {
|
||||
if (values_ == null) {
|
||||
return com.google.protobuf.MapField.emptyMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
return values_;
|
||||
}
|
||||
private com.google.protobuf.MapField<java.lang.String, java.lang.String>
|
||||
internalGetMutableValues() {
|
||||
if (values_ == null) {
|
||||
values_ = com.google.protobuf.MapField.newMapField(
|
||||
ValuesDefaultEntryHolder.defaultEntry);
|
||||
}
|
||||
if (!values_.isMutable()) {
|
||||
values_ = values_.copy();
|
||||
}
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return values_;
|
||||
}
|
||||
public int getValuesCount() {
|
||||
return internalGetValues().getMap().size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean containsValues(
|
||||
java.lang.String key) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
return internalGetValues().getMap().containsKey(key);
|
||||
}
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.String, java.lang.String> getValues() {
|
||||
return getValuesMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.Map<java.lang.String, java.lang.String> getValuesMap() {
|
||||
return internalGetValues().getMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public /* nullable */
|
||||
java.lang.String getValuesOrDefault(
|
||||
java.lang.String key,
|
||||
/* nullable */
|
||||
java.lang.String defaultValue) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
java.util.Map<java.lang.String, java.lang.String> map =
|
||||
internalGetValues().getMap();
|
||||
return map.containsKey(key) ? map.get(key) : defaultValue;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getValuesOrThrow(
|
||||
java.lang.String key) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
java.util.Map<java.lang.String, java.lang.String> map =
|
||||
internalGetValues().getMap();
|
||||
if (!map.containsKey(key)) {
|
||||
throw new java.lang.IllegalArgumentException();
|
||||
}
|
||||
return map.get(key);
|
||||
}
|
||||
public Builder clearValues() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.clear();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
public Builder removeValues(
|
||||
java.lang.String key) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.remove(key);
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* Use alternate mutation accessors instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public java.util.Map<java.lang.String, java.lang.String>
|
||||
getMutableValues() {
|
||||
bitField0_ |= 0x00000001;
|
||||
return internalGetMutableValues().getMutableMap();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
public Builder putValues(
|
||||
java.lang.String key,
|
||||
java.lang.String value) {
|
||||
if (key == null) { throw new NullPointerException("map key"); }
|
||||
if (value == null) { throw new NullPointerException("map value"); }
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.put(key, value);
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
public Builder putAllValues(
|
||||
java.util.Map<java.lang.String, java.lang.String> values) {
|
||||
internalGetMutableValues().getMutableMap()
|
||||
.putAll(values);
|
||||
bitField0_ |= 0x00000001;
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:AppearanceProfile)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:AppearanceProfile)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<AppearanceProfile>
|
||||
PARSER = new com.google.protobuf.AbstractParser<AppearanceProfile>() {
|
||||
@java.lang.Override
|
||||
public AppearanceProfile parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<AppearanceProfile> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<AppearanceProfile> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceProfile getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AppearanceProfileOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AppearanceProfile)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
int getValuesCount();
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
boolean containsValues(
|
||||
java.lang.String key);
|
||||
/**
|
||||
* Use {@link #getValuesMap()} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
java.util.Map<java.lang.String, java.lang.String>
|
||||
getValues();
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
java.util.Map<java.lang.String, java.lang.String>
|
||||
getValuesMap();
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
/* nullable */
|
||||
java.lang.String getValuesOrDefault(
|
||||
java.lang.String key,
|
||||
/* nullable */
|
||||
java.lang.String defaultValue);
|
||||
/**
|
||||
* <pre>
|
||||
* Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> !!!, Key & Value <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD> !!!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> proto <20><><EFBFBD>Ͽ<EFBFBD> <20>߰<EFBFBD> <20>ʿ<EFBFBD> !!! (Key & Value: Json <20><><EFBFBD><EFBFBD>)
|
||||
* </pre>
|
||||
*
|
||||
* <code>map<string, string> values = 1;</code>
|
||||
*/
|
||||
java.lang.String getValuesOrThrow(
|
||||
java.lang.String key);
|
||||
}
|
||||
@@ -0,0 +1,540 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code AttributeInfo}
|
||||
*/
|
||||
public final class AttributeInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:AttributeInfo)
|
||||
AttributeInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use AttributeInfo.newBuilder() to construct.
|
||||
private AttributeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private AttributeInfo() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new AttributeInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AttributeInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AttributeInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.class, com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ATTRIBUTEID_FIELD_NUMBER = 1;
|
||||
private int attributeid_ = 0;
|
||||
/**
|
||||
* <code>int32 attributeid = 1;</code>
|
||||
* @return The attributeid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getAttributeid() {
|
||||
return attributeid_;
|
||||
}
|
||||
|
||||
public static final int VALUE_FIELD_NUMBER = 2;
|
||||
private int value_ = 0;
|
||||
/**
|
||||
* <code>int32 value = 2;</code>
|
||||
* @return The value.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValue() {
|
||||
return value_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (attributeid_ != 0) {
|
||||
output.writeInt32(1, attributeid_);
|
||||
}
|
||||
if (value_ != 0) {
|
||||
output.writeInt32(2, value_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (attributeid_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, attributeid_);
|
||||
}
|
||||
if (value_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(2, value_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.AttributeInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfo other = (com.caliverse.admin.domain.RabbitMq.message.AttributeInfo) obj;
|
||||
|
||||
if (getAttributeid()
|
||||
!= other.getAttributeid()) return false;
|
||||
if (getValue()
|
||||
!= other.getValue()) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ATTRIBUTEID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getAttributeid();
|
||||
hash = (37 * hash) + VALUE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getValue();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.AttributeInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code AttributeInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:AttributeInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AttributeInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AttributeInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.class, com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
attributeid_ = 0;
|
||||
value_ = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AttributeInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AttributeInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AttributeInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AttributeInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AttributeInfo result = new com.caliverse.admin.domain.RabbitMq.message.AttributeInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.AttributeInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.attributeid_ = attributeid_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.value_ = value_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.AttributeInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.AttributeInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.AttributeInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.AttributeInfo.getDefaultInstance()) return this;
|
||||
if (other.getAttributeid() != 0) {
|
||||
setAttributeid(other.getAttributeid());
|
||||
}
|
||||
if (other.getValue() != 0) {
|
||||
setValue(other.getValue());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
attributeid_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 16: {
|
||||
value_ = input.readInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 16
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int attributeid_ ;
|
||||
/**
|
||||
* <code>int32 attributeid = 1;</code>
|
||||
* @return The attributeid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getAttributeid() {
|
||||
return attributeid_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 attributeid = 1;</code>
|
||||
* @param value The attributeid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setAttributeid(int value) {
|
||||
|
||||
attributeid_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 attributeid = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAttributeid() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
attributeid_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int value_ ;
|
||||
/**
|
||||
* <code>int32 value = 2;</code>
|
||||
* @return The value.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getValue() {
|
||||
return value_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 value = 2;</code>
|
||||
* @param value The value to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setValue(int value) {
|
||||
|
||||
value_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 value = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearValue() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
value_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:AttributeInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:AttributeInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.AttributeInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.AttributeInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AttributeInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<AttributeInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<AttributeInfo>() {
|
||||
@java.lang.Override
|
||||
public AttributeInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<AttributeInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<AttributeInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AttributeInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AttributeInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AttributeInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 attributeid = 1;</code>
|
||||
* @return The attributeid.
|
||||
*/
|
||||
int getAttributeid();
|
||||
|
||||
/**
|
||||
* <code>int32 value = 2;</code>
|
||||
* @return The value.
|
||||
*/
|
||||
int getValue();
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Attribute <20><><EFBFBD><EFBFBD> : AttributeDefinitionData.xlsx <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AttributeType}
|
||||
*/
|
||||
public enum AttributeType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AttributeType_None = 0;</code>
|
||||
*/
|
||||
AttributeType_None(0),
|
||||
/**
|
||||
* <code>AttributeType_Rapidity = 1;</code>
|
||||
*/
|
||||
AttributeType_Rapidity(1),
|
||||
/**
|
||||
* <code>AttributeType_Elasticity = 2;</code>
|
||||
*/
|
||||
AttributeType_Elasticity(2),
|
||||
/**
|
||||
* <code>AttributeType_Acceleration = 3;</code>
|
||||
*/
|
||||
AttributeType_Acceleration(3),
|
||||
/**
|
||||
* <code>AttributeType_Endurance = 4;</code>
|
||||
*/
|
||||
AttributeType_Endurance(4),
|
||||
/**
|
||||
* <code>AttributeType_Intelligence = 5;</code>
|
||||
*/
|
||||
AttributeType_Intelligence(5),
|
||||
/**
|
||||
* <code>AttributeType_Wits = 6;</code>
|
||||
*/
|
||||
AttributeType_Wits(6),
|
||||
/**
|
||||
* <code>AttributeType_Charisma = 7;</code>
|
||||
*/
|
||||
AttributeType_Charisma(7),
|
||||
/**
|
||||
* <code>AttributeType_Manipulation = 8;</code>
|
||||
*/
|
||||
AttributeType_Manipulation(8),
|
||||
/**
|
||||
* <code>AttributeType_Perception = 9;</code>
|
||||
*/
|
||||
AttributeType_Perception(9),
|
||||
/**
|
||||
* <code>AttributeType_Strength = 10;</code>
|
||||
*/
|
||||
AttributeType_Strength(10),
|
||||
/**
|
||||
* <code>AttributeType_Hacking = 11;</code>
|
||||
*/
|
||||
AttributeType_Hacking(11),
|
||||
/**
|
||||
* <code>AttributeType_Gathering = 12;</code>
|
||||
*/
|
||||
AttributeType_Gathering(12),
|
||||
/**
|
||||
* <code>AttributeType_Cooking = 13;</code>
|
||||
*/
|
||||
AttributeType_Cooking(13),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AttributeType_None = 0;</code>
|
||||
*/
|
||||
public static final int AttributeType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>AttributeType_Rapidity = 1;</code>
|
||||
*/
|
||||
public static final int AttributeType_Rapidity_VALUE = 1;
|
||||
/**
|
||||
* <code>AttributeType_Elasticity = 2;</code>
|
||||
*/
|
||||
public static final int AttributeType_Elasticity_VALUE = 2;
|
||||
/**
|
||||
* <code>AttributeType_Acceleration = 3;</code>
|
||||
*/
|
||||
public static final int AttributeType_Acceleration_VALUE = 3;
|
||||
/**
|
||||
* <code>AttributeType_Endurance = 4;</code>
|
||||
*/
|
||||
public static final int AttributeType_Endurance_VALUE = 4;
|
||||
/**
|
||||
* <code>AttributeType_Intelligence = 5;</code>
|
||||
*/
|
||||
public static final int AttributeType_Intelligence_VALUE = 5;
|
||||
/**
|
||||
* <code>AttributeType_Wits = 6;</code>
|
||||
*/
|
||||
public static final int AttributeType_Wits_VALUE = 6;
|
||||
/**
|
||||
* <code>AttributeType_Charisma = 7;</code>
|
||||
*/
|
||||
public static final int AttributeType_Charisma_VALUE = 7;
|
||||
/**
|
||||
* <code>AttributeType_Manipulation = 8;</code>
|
||||
*/
|
||||
public static final int AttributeType_Manipulation_VALUE = 8;
|
||||
/**
|
||||
* <code>AttributeType_Perception = 9;</code>
|
||||
*/
|
||||
public static final int AttributeType_Perception_VALUE = 9;
|
||||
/**
|
||||
* <code>AttributeType_Strength = 10;</code>
|
||||
*/
|
||||
public static final int AttributeType_Strength_VALUE = 10;
|
||||
/**
|
||||
* <code>AttributeType_Hacking = 11;</code>
|
||||
*/
|
||||
public static final int AttributeType_Hacking_VALUE = 11;
|
||||
/**
|
||||
* <code>AttributeType_Gathering = 12;</code>
|
||||
*/
|
||||
public static final int AttributeType_Gathering_VALUE = 12;
|
||||
/**
|
||||
* <code>AttributeType_Cooking = 13;</code>
|
||||
*/
|
||||
public static final int AttributeType_Cooking_VALUE = 13;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AttributeType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AttributeType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AttributeType_None;
|
||||
case 1: return AttributeType_Rapidity;
|
||||
case 2: return AttributeType_Elasticity;
|
||||
case 3: return AttributeType_Acceleration;
|
||||
case 4: return AttributeType_Endurance;
|
||||
case 5: return AttributeType_Intelligence;
|
||||
case 6: return AttributeType_Wits;
|
||||
case 7: return AttributeType_Charisma;
|
||||
case 8: return AttributeType_Manipulation;
|
||||
case 9: return AttributeType_Perception;
|
||||
case 10: return AttributeType_Strength;
|
||||
case 11: return AttributeType_Hacking;
|
||||
case 12: return AttributeType_Gathering;
|
||||
case 13: return AttributeType_Cooking;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AttributeType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AttributeType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AttributeType>() {
|
||||
public AttributeType findValueByNumber(int number) {
|
||||
return AttributeType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.getDescriptor().getEnumTypes().get(5);
|
||||
}
|
||||
|
||||
private static final AttributeType[] VALUES = values();
|
||||
|
||||
public static AttributeType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AttributeType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AttributeType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AuthAdminLevelType}
|
||||
*/
|
||||
public enum AuthAdminLevelType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AuthAdminLevelType_None = 0;</code>
|
||||
*/
|
||||
AuthAdminLevelType_None(0),
|
||||
/**
|
||||
* <code>AuthAdminLevelType_GmNormal = 1;</code>
|
||||
*/
|
||||
AuthAdminLevelType_GmNormal(1),
|
||||
/**
|
||||
* <code>AuthAdminLevelType_GmSuper = 2;</code>
|
||||
*/
|
||||
AuthAdminLevelType_GmSuper(2),
|
||||
/**
|
||||
* <code>AuthAdminLevelType_Developer = 3;</code>
|
||||
*/
|
||||
AuthAdminLevelType_Developer(3),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AuthAdminLevelType_None = 0;</code>
|
||||
*/
|
||||
public static final int AuthAdminLevelType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>AuthAdminLevelType_GmNormal = 1;</code>
|
||||
*/
|
||||
public static final int AuthAdminLevelType_GmNormal_VALUE = 1;
|
||||
/**
|
||||
* <code>AuthAdminLevelType_GmSuper = 2;</code>
|
||||
*/
|
||||
public static final int AuthAdminLevelType_GmSuper_VALUE = 2;
|
||||
/**
|
||||
* <code>AuthAdminLevelType_Developer = 3;</code>
|
||||
*/
|
||||
public static final int AuthAdminLevelType_Developer_VALUE = 3;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AuthAdminLevelType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AuthAdminLevelType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AuthAdminLevelType_None;
|
||||
case 1: return AuthAdminLevelType_GmNormal;
|
||||
case 2: return AuthAdminLevelType_GmSuper;
|
||||
case 3: return AuthAdminLevelType_Developer;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AuthAdminLevelType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AuthAdminLevelType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AuthAdminLevelType>() {
|
||||
public AuthAdminLevelType findValueByNumber(int number) {
|
||||
return AuthAdminLevelType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(13);
|
||||
}
|
||||
|
||||
private static final AuthAdminLevelType[] VALUES = values();
|
||||
|
||||
public static AuthAdminLevelType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AuthAdminLevelType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AuthAdminLevelType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code AutoScaleServerType}
|
||||
*/
|
||||
public enum AutoScaleServerType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>AutoScaleServerType_None = 0;</code>
|
||||
*/
|
||||
AutoScaleServerType_None(0),
|
||||
/**
|
||||
* <code>AutoScaleServerType_Login = 1;</code>
|
||||
*/
|
||||
AutoScaleServerType_Login(1),
|
||||
/**
|
||||
* <code>AutoScaleServerType_Game = 2;</code>
|
||||
*/
|
||||
AutoScaleServerType_Game(2),
|
||||
/**
|
||||
* <code>AutoScaleServerType_Indun = 3;</code>
|
||||
*/
|
||||
AutoScaleServerType_Indun(3),
|
||||
/**
|
||||
* <code>AutoScaleServerType_Chat = 4;</code>
|
||||
*/
|
||||
AutoScaleServerType_Chat(4),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>AutoScaleServerType_None = 0;</code>
|
||||
*/
|
||||
public static final int AutoScaleServerType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>AutoScaleServerType_Login = 1;</code>
|
||||
*/
|
||||
public static final int AutoScaleServerType_Login_VALUE = 1;
|
||||
/**
|
||||
* <code>AutoScaleServerType_Game = 2;</code>
|
||||
*/
|
||||
public static final int AutoScaleServerType_Game_VALUE = 2;
|
||||
/**
|
||||
* <code>AutoScaleServerType_Indun = 3;</code>
|
||||
*/
|
||||
public static final int AutoScaleServerType_Indun_VALUE = 3;
|
||||
/**
|
||||
* <code>AutoScaleServerType_Chat = 4;</code>
|
||||
*/
|
||||
public static final int AutoScaleServerType_Chat_VALUE = 4;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static AutoScaleServerType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static AutoScaleServerType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return AutoScaleServerType_None;
|
||||
case 1: return AutoScaleServerType_Login;
|
||||
case 2: return AutoScaleServerType_Game;
|
||||
case 3: return AutoScaleServerType_Indun;
|
||||
case 4: return AutoScaleServerType_Chat;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<AutoScaleServerType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
AutoScaleServerType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<AutoScaleServerType>() {
|
||||
public AutoScaleServerType findValueByNumber(int number) {
|
||||
return AutoScaleServerType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(5);
|
||||
}
|
||||
|
||||
private static final AutoScaleServerType[] VALUES = values();
|
||||
|
||||
public static AutoScaleServerType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private AutoScaleServerType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:AutoScaleServerType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,753 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code AvatarInfo}
|
||||
*/
|
||||
public final class AvatarInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:AvatarInfo)
|
||||
AvatarInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use AvatarInfo.newBuilder() to construct.
|
||||
private AvatarInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private AvatarInfo() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new AvatarInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AvatarInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AvatarInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.class, com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int AVATAR_ID_FIELD_NUMBER = 1;
|
||||
private int avatarId_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 avatar_id = 1;</code>
|
||||
* @return The avatarId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getAvatarId() {
|
||||
return avatarId_;
|
||||
}
|
||||
|
||||
public static final int APPEARCUSTOMIZE_FIELD_NUMBER = 7;
|
||||
private com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization appearCustomize_;
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return Whether the appearCustomize field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasAppearCustomize() {
|
||||
return appearCustomize_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return The appearCustomize.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getAppearCustomize() {
|
||||
return appearCustomize_ == null ? com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance() : appearCustomize_;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder getAppearCustomizeOrBuilder() {
|
||||
return appearCustomize_ == null ? com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance() : appearCustomize_;
|
||||
}
|
||||
|
||||
public static final int INIT_FIELD_NUMBER = 6;
|
||||
private int init_ = 0;
|
||||
/**
|
||||
* <pre>
|
||||
* 1: Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ȭ<C2A1><C8AD> <20>ʿ<EFBFBD> 0: <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD>.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 Init = 6;</code>
|
||||
* @return The init.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getInit() {
|
||||
return init_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (avatarId_ != 0) {
|
||||
output.writeInt32(1, avatarId_);
|
||||
}
|
||||
if (init_ != 0) {
|
||||
output.writeUInt32(6, init_);
|
||||
}
|
||||
if (appearCustomize_ != null) {
|
||||
output.writeMessage(7, getAppearCustomize());
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (avatarId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, avatarId_);
|
||||
}
|
||||
if (init_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(6, init_);
|
||||
}
|
||||
if (appearCustomize_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(7, getAppearCustomize());
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.AvatarInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfo other = (com.caliverse.admin.domain.RabbitMq.message.AvatarInfo) obj;
|
||||
|
||||
if (getAvatarId()
|
||||
!= other.getAvatarId()) return false;
|
||||
if (hasAppearCustomize() != other.hasAppearCustomize()) return false;
|
||||
if (hasAppearCustomize()) {
|
||||
if (!getAppearCustomize()
|
||||
.equals(other.getAppearCustomize())) return false;
|
||||
}
|
||||
if (getInit()
|
||||
!= other.getInit()) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + AVATAR_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getAvatarId();
|
||||
if (hasAppearCustomize()) {
|
||||
hash = (37 * hash) + APPEARCUSTOMIZE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getAppearCustomize().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + INIT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getInit();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.AvatarInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code AvatarInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:AvatarInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AvatarInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AvatarInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.class, com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
avatarId_ = 0;
|
||||
appearCustomize_ = null;
|
||||
if (appearCustomizeBuilder_ != null) {
|
||||
appearCustomizeBuilder_.dispose();
|
||||
appearCustomizeBuilder_ = null;
|
||||
}
|
||||
init_ = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_AvatarInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AvatarInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AvatarInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AvatarInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.AvatarInfo result = new com.caliverse.admin.domain.RabbitMq.message.AvatarInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.AvatarInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.avatarId_ = avatarId_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.appearCustomize_ = appearCustomizeBuilder_ == null
|
||||
? appearCustomize_
|
||||
: appearCustomizeBuilder_.build();
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000004) != 0)) {
|
||||
result.init_ = init_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.AvatarInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.AvatarInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.AvatarInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.AvatarInfo.getDefaultInstance()) return this;
|
||||
if (other.getAvatarId() != 0) {
|
||||
setAvatarId(other.getAvatarId());
|
||||
}
|
||||
if (other.hasAppearCustomize()) {
|
||||
mergeAppearCustomize(other.getAppearCustomize());
|
||||
}
|
||||
if (other.getInit() != 0) {
|
||||
setInit(other.getInit());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
avatarId_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 48: {
|
||||
init_ = input.readUInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
break;
|
||||
} // case 48
|
||||
case 58: {
|
||||
input.readMessage(
|
||||
getAppearCustomizeFieldBuilder().getBuilder(),
|
||||
extensionRegistry);
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 58
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int avatarId_ ;
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 avatar_id = 1;</code>
|
||||
* @return The avatarId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getAvatarId() {
|
||||
return avatarId_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 avatar_id = 1;</code>
|
||||
* @param value The avatarId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setAvatarId(int value) {
|
||||
|
||||
avatarId_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 avatar_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearAvatarId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
avatarId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization appearCustomize_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder> appearCustomizeBuilder_;
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return Whether the appearCustomize field is set.
|
||||
*/
|
||||
public boolean hasAppearCustomize() {
|
||||
return ((bitField0_ & 0x00000002) != 0);
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return The appearCustomize.
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getAppearCustomize() {
|
||||
if (appearCustomizeBuilder_ == null) {
|
||||
return appearCustomize_ == null ? com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance() : appearCustomize_;
|
||||
} else {
|
||||
return appearCustomizeBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public Builder setAppearCustomize(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization value) {
|
||||
if (appearCustomizeBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
appearCustomize_ = value;
|
||||
} else {
|
||||
appearCustomizeBuilder_.setMessage(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public Builder setAppearCustomize(
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder builderForValue) {
|
||||
if (appearCustomizeBuilder_ == null) {
|
||||
appearCustomize_ = builderForValue.build();
|
||||
} else {
|
||||
appearCustomizeBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public Builder mergeAppearCustomize(com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization value) {
|
||||
if (appearCustomizeBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000002) != 0) &&
|
||||
appearCustomize_ != null &&
|
||||
appearCustomize_ != com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance()) {
|
||||
getAppearCustomizeBuilder().mergeFrom(value);
|
||||
} else {
|
||||
appearCustomize_ = value;
|
||||
}
|
||||
} else {
|
||||
appearCustomizeBuilder_.mergeFrom(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public Builder clearAppearCustomize() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
appearCustomize_ = null;
|
||||
if (appearCustomizeBuilder_ != null) {
|
||||
appearCustomizeBuilder_.dispose();
|
||||
appearCustomizeBuilder_ = null;
|
||||
}
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder getAppearCustomizeBuilder() {
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return getAppearCustomizeFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder getAppearCustomizeOrBuilder() {
|
||||
if (appearCustomizeBuilder_ != null) {
|
||||
return appearCustomizeBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return appearCustomize_ == null ?
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.getDefaultInstance() : appearCustomize_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder>
|
||||
getAppearCustomizeFieldBuilder() {
|
||||
if (appearCustomizeBuilder_ == null) {
|
||||
appearCustomizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization.Builder, com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder>(
|
||||
getAppearCustomize(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
appearCustomize_ = null;
|
||||
}
|
||||
return appearCustomizeBuilder_;
|
||||
}
|
||||
|
||||
private int init_ ;
|
||||
/**
|
||||
* <pre>
|
||||
* 1: Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ȭ<C2A1><C8AD> <20>ʿ<EFBFBD> 0: <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD>.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 Init = 6;</code>
|
||||
* @return The init.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getInit() {
|
||||
return init_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* 1: Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ȭ<C2A1><C8AD> <20>ʿ<EFBFBD> 0: <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD>.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 Init = 6;</code>
|
||||
* @param value The init to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setInit(int value) {
|
||||
|
||||
init_ = value;
|
||||
bitField0_ |= 0x00000004;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* 1: Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ȭ<C2A1><C8AD> <20>ʿ<EFBFBD> 0: <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD>.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 Init = 6;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearInit() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
init_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:AvatarInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:AvatarInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.AvatarInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.AvatarInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.AvatarInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<AvatarInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<AvatarInfo>() {
|
||||
@java.lang.Override
|
||||
public AvatarInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<AvatarInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<AvatarInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.AvatarInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface AvatarInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:AvatarInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* <code>int32 avatar_id = 1;</code>
|
||||
* @return The avatarId.
|
||||
*/
|
||||
int getAvatarId();
|
||||
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return Whether the appearCustomize field is set.
|
||||
*/
|
||||
boolean hasAppearCustomize();
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
* @return The appearCustomize.
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomization getAppearCustomize();
|
||||
/**
|
||||
* <code>.AppearanceCustomization appearCustomize = 7;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.AppearanceCustomizationOrBuilder getAppearCustomizeOrBuilder();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1: Ŀ<><C4BF><EFBFBD><EFBFBD><CDB8><EFBFBD>¡ȭ<C2A1><C8AD> <20>ʿ<EFBFBD> 0: <20>ʿ<EFBFBD><CABF><EFBFBD><EFBFBD><EFBFBD>.
|
||||
* </pre>
|
||||
*
|
||||
* <code>uint32 Init = 6;</code>
|
||||
* @return The init.
|
||||
*/
|
||||
int getInit();
|
||||
}
|
||||
@@ -0,0 +1,927 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code BlockInfo}
|
||||
*/
|
||||
public final class BlockInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:BlockInfo)
|
||||
BlockInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BlockInfo.newBuilder() to construct.
|
||||
private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BlockInfo() {
|
||||
guid_ = "";
|
||||
nickName_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new BlockInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BlockInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BlockInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfo.class, com.caliverse.admin.domain.RabbitMq.message.BlockInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int GUID_FIELD_NUMBER = 1;
|
||||
@SuppressWarnings("serial")
|
||||
private volatile java.lang.Object guid_ = "";
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The guid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getGuid() {
|
||||
java.lang.Object ref = guid_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
guid_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The bytes for guid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getGuidBytes() {
|
||||
java.lang.Object ref = guid_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
guid_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int NICKNAME_FIELD_NUMBER = 2;
|
||||
@SuppressWarnings("serial")
|
||||
private volatile java.lang.Object nickName_ = "";
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The nickName.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getNickName() {
|
||||
java.lang.Object ref = nickName_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
nickName_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The bytes for nickName.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getNickNameBytes() {
|
||||
java.lang.Object ref = nickName_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
nickName_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int ISNEW_FIELD_NUMBER = 3;
|
||||
private int isNew_ = 0;
|
||||
/**
|
||||
* <code>int32 isNew = 3;</code>
|
||||
* @return The isNew.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getIsNew() {
|
||||
return isNew_;
|
||||
}
|
||||
|
||||
public static final int CREATETIME_FIELD_NUMBER = 4;
|
||||
private com.google.protobuf.Timestamp createTime_;
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return Whether the createTime field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasCreateTime() {
|
||||
return createTime_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return The createTime.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Timestamp getCreateTime() {
|
||||
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
|
||||
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guid_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, guid_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickName_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickName_);
|
||||
}
|
||||
if (isNew_ != 0) {
|
||||
output.writeInt32(3, isNew_);
|
||||
}
|
||||
if (createTime_ != null) {
|
||||
output.writeMessage(4, getCreateTime());
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guid_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, guid_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickName_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickName_);
|
||||
}
|
||||
if (isNew_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(3, isNew_);
|
||||
}
|
||||
if (createTime_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(4, getCreateTime());
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.BlockInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfo other = (com.caliverse.admin.domain.RabbitMq.message.BlockInfo) obj;
|
||||
|
||||
if (!getGuid()
|
||||
.equals(other.getGuid())) return false;
|
||||
if (!getNickName()
|
||||
.equals(other.getNickName())) return false;
|
||||
if (getIsNew()
|
||||
!= other.getIsNew()) return false;
|
||||
if (hasCreateTime() != other.hasCreateTime()) return false;
|
||||
if (hasCreateTime()) {
|
||||
if (!getCreateTime()
|
||||
.equals(other.getCreateTime())) return false;
|
||||
}
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + GUID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getGuid().hashCode();
|
||||
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getNickName().hashCode();
|
||||
hash = (37 * hash) + ISNEW_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getIsNew();
|
||||
if (hasCreateTime()) {
|
||||
hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCreateTime().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.BlockInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code BlockInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:BlockInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BlockInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BlockInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfo.class, com.caliverse.admin.domain.RabbitMq.message.BlockInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.BlockInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
guid_ = "";
|
||||
nickName_ = "";
|
||||
isNew_ = 0;
|
||||
createTime_ = null;
|
||||
if (createTimeBuilder_ != null) {
|
||||
createTimeBuilder_.dispose();
|
||||
createTimeBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BlockInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BlockInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.BlockInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BlockInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BlockInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.BlockInfo result = new com.caliverse.admin.domain.RabbitMq.message.BlockInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.BlockInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.guid_ = guid_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.nickName_ = nickName_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000004) != 0)) {
|
||||
result.isNew_ = isNew_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000008) != 0)) {
|
||||
result.createTime_ = createTimeBuilder_ == null
|
||||
? createTime_
|
||||
: createTimeBuilder_.build();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.BlockInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.BlockInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.BlockInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.BlockInfo.getDefaultInstance()) return this;
|
||||
if (!other.getGuid().isEmpty()) {
|
||||
guid_ = other.guid_;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.getNickName().isEmpty()) {
|
||||
nickName_ = other.nickName_;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getIsNew() != 0) {
|
||||
setIsNew(other.getIsNew());
|
||||
}
|
||||
if (other.hasCreateTime()) {
|
||||
mergeCreateTime(other.getCreateTime());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
guid_ = input.readStringRequireUtf8();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 10
|
||||
case 18: {
|
||||
nickName_ = input.readStringRequireUtf8();
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 18
|
||||
case 24: {
|
||||
isNew_ = input.readInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
break;
|
||||
} // case 24
|
||||
case 34: {
|
||||
input.readMessage(
|
||||
getCreateTimeFieldBuilder().getBuilder(),
|
||||
extensionRegistry);
|
||||
bitField0_ |= 0x00000008;
|
||||
break;
|
||||
} // case 34
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.lang.Object guid_ = "";
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The guid.
|
||||
*/
|
||||
public java.lang.String getGuid() {
|
||||
java.lang.Object ref = guid_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
guid_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The bytes for guid.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getGuidBytes() {
|
||||
java.lang.Object ref = guid_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
guid_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @param value The guid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setGuid(
|
||||
java.lang.String value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
guid_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearGuid() {
|
||||
guid_ = getDefaultInstance().getGuid();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @param value The bytes for guid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setGuidBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
checkByteStringIsUtf8(value);
|
||||
guid_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object nickName_ = "";
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The nickName.
|
||||
*/
|
||||
public java.lang.String getNickName() {
|
||||
java.lang.Object ref = nickName_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
nickName_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The bytes for nickName.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getNickNameBytes() {
|
||||
java.lang.Object ref = nickName_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
nickName_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @param value The nickName to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setNickName(
|
||||
java.lang.String value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
nickName_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearNickName() {
|
||||
nickName_ = getDefaultInstance().getNickName();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @param value The bytes for nickName to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setNickNameBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
checkByteStringIsUtf8(value);
|
||||
nickName_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int isNew_ ;
|
||||
/**
|
||||
* <code>int32 isNew = 3;</code>
|
||||
* @return The isNew.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getIsNew() {
|
||||
return isNew_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 isNew = 3;</code>
|
||||
* @param value The isNew to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setIsNew(int value) {
|
||||
|
||||
isNew_ = value;
|
||||
bitField0_ |= 0x00000004;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 isNew = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearIsNew() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
isNew_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Timestamp createTime_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return Whether the createTime field is set.
|
||||
*/
|
||||
public boolean hasCreateTime() {
|
||||
return ((bitField0_ & 0x00000008) != 0);
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return The createTime.
|
||||
*/
|
||||
public com.google.protobuf.Timestamp getCreateTime() {
|
||||
if (createTimeBuilder_ == null) {
|
||||
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
|
||||
} else {
|
||||
return createTimeBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
|
||||
if (createTimeBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
createTime_ = value;
|
||||
} else {
|
||||
createTimeBuilder_.setMessage(value);
|
||||
}
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public Builder setCreateTime(
|
||||
com.google.protobuf.Timestamp.Builder builderForValue) {
|
||||
if (createTimeBuilder_ == null) {
|
||||
createTime_ = builderForValue.build();
|
||||
} else {
|
||||
createTimeBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
|
||||
if (createTimeBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000008) != 0) &&
|
||||
createTime_ != null &&
|
||||
createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
|
||||
getCreateTimeBuilder().mergeFrom(value);
|
||||
} else {
|
||||
createTime_ = value;
|
||||
}
|
||||
} else {
|
||||
createTimeBuilder_.mergeFrom(value);
|
||||
}
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public Builder clearCreateTime() {
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
createTime_ = null;
|
||||
if (createTimeBuilder_ != null) {
|
||||
createTimeBuilder_.dispose();
|
||||
createTimeBuilder_ = null;
|
||||
}
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return getCreateTimeFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
|
||||
if (createTimeBuilder_ != null) {
|
||||
return createTimeBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return createTime_ == null ?
|
||||
com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
|
||||
getCreateTimeFieldBuilder() {
|
||||
if (createTimeBuilder_ == null) {
|
||||
createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
|
||||
getCreateTime(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
createTime_ = null;
|
||||
}
|
||||
return createTimeBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:BlockInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:BlockInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.BlockInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.BlockInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BlockInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BlockInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BlockInfo>() {
|
||||
@java.lang.Override
|
||||
public BlockInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BlockInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BlockInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BlockInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface BlockInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:BlockInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The guid.
|
||||
*/
|
||||
java.lang.String getGuid();
|
||||
/**
|
||||
* <code>string guid = 1;</code>
|
||||
* @return The bytes for guid.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getGuidBytes();
|
||||
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The nickName.
|
||||
*/
|
||||
java.lang.String getNickName();
|
||||
/**
|
||||
* <code>string nickName = 2;</code>
|
||||
* @return The bytes for nickName.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getNickNameBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 isNew = 3;</code>
|
||||
* @return The isNew.
|
||||
*/
|
||||
int getIsNew();
|
||||
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return Whether the createTime field is set.
|
||||
*/
|
||||
boolean hasCreateTime();
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
* @return The createTime.
|
||||
*/
|
||||
com.google.protobuf.Timestamp getCreateTime();
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp createTime = 4;</code>
|
||||
*/
|
||||
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* bool enum
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf enum {@code BoolType}
|
||||
*/
|
||||
public enum BoolType
|
||||
implements com.google.protobuf.ProtocolMessageEnum {
|
||||
/**
|
||||
* <code>BoolType_None = 0;</code>
|
||||
*/
|
||||
BoolType_None(0),
|
||||
/**
|
||||
* <code>BoolType_True = 1;</code>
|
||||
*/
|
||||
BoolType_True(1),
|
||||
/**
|
||||
* <code>BoolType_False = 2;</code>
|
||||
*/
|
||||
BoolType_False(2),
|
||||
UNRECOGNIZED(-1),
|
||||
;
|
||||
|
||||
/**
|
||||
* <code>BoolType_None = 0;</code>
|
||||
*/
|
||||
public static final int BoolType_None_VALUE = 0;
|
||||
/**
|
||||
* <code>BoolType_True = 1;</code>
|
||||
*/
|
||||
public static final int BoolType_True_VALUE = 1;
|
||||
/**
|
||||
* <code>BoolType_False = 2;</code>
|
||||
*/
|
||||
public static final int BoolType_False_VALUE = 2;
|
||||
|
||||
|
||||
public final int getNumber() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"Can't get the number of an unknown enum value.");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
* @deprecated Use {@link #forNumber(int)} instead.
|
||||
*/
|
||||
@java.lang.Deprecated
|
||||
public static BoolType valueOf(int value) {
|
||||
return forNumber(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The numeric wire value of the corresponding enum entry.
|
||||
* @return The enum associated with the given numeric wire value.
|
||||
*/
|
||||
public static BoolType forNumber(int value) {
|
||||
switch (value) {
|
||||
case 0: return BoolType_None;
|
||||
case 1: return BoolType_True;
|
||||
case 2: return BoolType_False;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static com.google.protobuf.Internal.EnumLiteMap<BoolType>
|
||||
internalGetValueMap() {
|
||||
return internalValueMap;
|
||||
}
|
||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
||||
BoolType> internalValueMap =
|
||||
new com.google.protobuf.Internal.EnumLiteMap<BoolType>() {
|
||||
public BoolType findValueByNumber(int number) {
|
||||
return BoolType.forNumber(number);
|
||||
}
|
||||
};
|
||||
|
||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
||||
getValueDescriptor() {
|
||||
if (this == UNRECOGNIZED) {
|
||||
throw new java.lang.IllegalStateException(
|
||||
"Can't get the descriptor of an unrecognized enum value.");
|
||||
}
|
||||
return getDescriptor().getValues().get(ordinal());
|
||||
}
|
||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptorForType() {
|
||||
return getDescriptor();
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.getDescriptor().getEnumTypes().get(0);
|
||||
}
|
||||
|
||||
private static final BoolType[] VALUES = values();
|
||||
|
||||
public static BoolType valueOf(
|
||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
||||
if (desc.getType() != getDescriptor()) {
|
||||
throw new java.lang.IllegalArgumentException(
|
||||
"EnumValueDescriptor is not for this type.");
|
||||
}
|
||||
if (desc.getIndex() == -1) {
|
||||
return UNRECOGNIZED;
|
||||
}
|
||||
return VALUES[desc.getIndex()];
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
private BoolType(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(enum_scope:BoolType)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,655 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code Buff}
|
||||
*/
|
||||
public final class Buff extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:Buff)
|
||||
BuffOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Buff.newBuilder() to construct.
|
||||
private Buff(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private Buff() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Buff();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_Buff_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_Buff_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff.class, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BUFFID_FIELD_NUMBER = 1;
|
||||
private int buffId_ = 0;
|
||||
/**
|
||||
* <code>int32 buffId = 1;</code>
|
||||
* @return The buffId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBuffId() {
|
||||
return buffId_;
|
||||
}
|
||||
|
||||
public static final int BUFFSTARTTIME_FIELD_NUMBER = 2;
|
||||
private com.google.protobuf.Timestamp buffStartTime_;
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return Whether the buffStartTime field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasBuffStartTime() {
|
||||
return buffStartTime_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return The buffStartTime.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Timestamp getBuffStartTime() {
|
||||
return buffStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buffStartTime_;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.TimestampOrBuilder getBuffStartTimeOrBuilder() {
|
||||
return buffStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buffStartTime_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (buffId_ != 0) {
|
||||
output.writeInt32(1, buffId_);
|
||||
}
|
||||
if (buffStartTime_ != null) {
|
||||
output.writeMessage(2, getBuffStartTime());
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (buffId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, buffId_);
|
||||
}
|
||||
if (buffStartTime_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, getBuffStartTime());
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.Buff)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff other = (com.caliverse.admin.domain.RabbitMq.message.Buff) obj;
|
||||
|
||||
if (getBuffId()
|
||||
!= other.getBuffId()) return false;
|
||||
if (hasBuffStartTime() != other.hasBuffStartTime()) return false;
|
||||
if (hasBuffStartTime()) {
|
||||
if (!getBuffStartTime()
|
||||
.equals(other.getBuffStartTime())) return false;
|
||||
}
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + BUFFID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBuffId();
|
||||
if (hasBuffStartTime()) {
|
||||
hash = (37 * hash) + BUFFSTARTTIME_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBuffStartTime().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.Buff prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code Buff}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:Buff)
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_Buff_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_Buff_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff.class, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.Buff.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
buffId_ = 0;
|
||||
buffStartTime_ = null;
|
||||
if (buffStartTimeBuilder_ != null) {
|
||||
buffStartTimeBuilder_.dispose();
|
||||
buffStartTimeBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_Buff_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.Buff.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff result = new com.caliverse.admin.domain.RabbitMq.message.Buff(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.Buff result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.buffId_ = buffId_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.buffStartTime_ = buffStartTimeBuilder_ == null
|
||||
? buffStartTime_
|
||||
: buffStartTimeBuilder_.build();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.Buff) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.Buff)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.Buff other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.Buff.getDefaultInstance()) return this;
|
||||
if (other.getBuffId() != 0) {
|
||||
setBuffId(other.getBuffId());
|
||||
}
|
||||
if (other.hasBuffStartTime()) {
|
||||
mergeBuffStartTime(other.getBuffStartTime());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
buffId_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 18: {
|
||||
input.readMessage(
|
||||
getBuffStartTimeFieldBuilder().getBuilder(),
|
||||
extensionRegistry);
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 18
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int buffId_ ;
|
||||
/**
|
||||
* <code>int32 buffId = 1;</code>
|
||||
* @return The buffId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBuffId() {
|
||||
return buffId_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 buffId = 1;</code>
|
||||
* @param value The buffId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBuffId(int value) {
|
||||
|
||||
buffId_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 buffId = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBuffId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
buffId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.Timestamp buffStartTime_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> buffStartTimeBuilder_;
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return Whether the buffStartTime field is set.
|
||||
*/
|
||||
public boolean hasBuffStartTime() {
|
||||
return ((bitField0_ & 0x00000002) != 0);
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return The buffStartTime.
|
||||
*/
|
||||
public com.google.protobuf.Timestamp getBuffStartTime() {
|
||||
if (buffStartTimeBuilder_ == null) {
|
||||
return buffStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : buffStartTime_;
|
||||
} else {
|
||||
return buffStartTimeBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public Builder setBuffStartTime(com.google.protobuf.Timestamp value) {
|
||||
if (buffStartTimeBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
buffStartTime_ = value;
|
||||
} else {
|
||||
buffStartTimeBuilder_.setMessage(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public Builder setBuffStartTime(
|
||||
com.google.protobuf.Timestamp.Builder builderForValue) {
|
||||
if (buffStartTimeBuilder_ == null) {
|
||||
buffStartTime_ = builderForValue.build();
|
||||
} else {
|
||||
buffStartTimeBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public Builder mergeBuffStartTime(com.google.protobuf.Timestamp value) {
|
||||
if (buffStartTimeBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000002) != 0) &&
|
||||
buffStartTime_ != null &&
|
||||
buffStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
|
||||
getBuffStartTimeBuilder().mergeFrom(value);
|
||||
} else {
|
||||
buffStartTime_ = value;
|
||||
}
|
||||
} else {
|
||||
buffStartTimeBuilder_.mergeFrom(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public Builder clearBuffStartTime() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
buffStartTime_ = null;
|
||||
if (buffStartTimeBuilder_ != null) {
|
||||
buffStartTimeBuilder_.dispose();
|
||||
buffStartTimeBuilder_ = null;
|
||||
}
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.Timestamp.Builder getBuffStartTimeBuilder() {
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return getBuffStartTimeFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.TimestampOrBuilder getBuffStartTimeOrBuilder() {
|
||||
if (buffStartTimeBuilder_ != null) {
|
||||
return buffStartTimeBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return buffStartTime_ == null ?
|
||||
com.google.protobuf.Timestamp.getDefaultInstance() : buffStartTime_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
|
||||
getBuffStartTimeFieldBuilder() {
|
||||
if (buffStartTimeBuilder_ == null) {
|
||||
buffStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
|
||||
getBuffStartTime(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
buffStartTime_ = null;
|
||||
}
|
||||
return buffStartTimeBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:Buff)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:Buff)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.Buff DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.Buff();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.Buff getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<Buff>
|
||||
PARSER = new com.google.protobuf.AbstractParser<Buff>() {
|
||||
@java.lang.Override
|
||||
public Buff parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<Buff> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Buff> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,862 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* map<61><70> Unreal<61><6C><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD> repeated<65><64> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code BuffInfo}
|
||||
*/
|
||||
public final class BuffInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:BuffInfo)
|
||||
BuffInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use BuffInfo.newBuilder() to construct.
|
||||
private BuffInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private BuffInfo() {
|
||||
buff_ = java.util.Collections.emptyList();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new BuffInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BuffInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BuffInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfo.class, com.caliverse.admin.domain.RabbitMq.message.BuffInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int BUFF_FIELD_NUMBER = 1;
|
||||
@SuppressWarnings("serial")
|
||||
private java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff> buff_;
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff> getBuffList() {
|
||||
return buff_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder>
|
||||
getBuffOrBuilderList() {
|
||||
return buff_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getBuffCount() {
|
||||
return buff_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff getBuff(int index) {
|
||||
return buff_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder getBuffOrBuilder(
|
||||
int index) {
|
||||
return buff_.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 < buff_.size(); i++) {
|
||||
output.writeMessage(1, buff_.get(i));
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
for (int i = 0; i < buff_.size(); i++) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, buff_.get(i));
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.BuffInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfo other = (com.caliverse.admin.domain.RabbitMq.message.BuffInfo) obj;
|
||||
|
||||
if (!getBuffList()
|
||||
.equals(other.getBuffList())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (getBuffCount() > 0) {
|
||||
hash = (37 * hash) + BUFF_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBuffList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.BuffInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new 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>
|
||||
* map<61><70> Unreal<61><6C><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DFBB><EFBFBD><EFBFBD><EFBFBD> repeated<65><64> <20><><EFBFBD><EFBFBD>
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code BuffInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:BuffInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BuffInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BuffInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfo.class, com.caliverse.admin.domain.RabbitMq.message.BuffInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.BuffInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
if (buffBuilder_ == null) {
|
||||
buff_ = java.util.Collections.emptyList();
|
||||
} else {
|
||||
buff_ = null;
|
||||
buffBuilder_.clear();
|
||||
}
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_BuffInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.BuffInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffInfo result = new com.caliverse.admin.domain.RabbitMq.message.BuffInfo(this);
|
||||
buildPartialRepeatedFields(result);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.BuffInfo result) {
|
||||
if (buffBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
buff_ = java.util.Collections.unmodifiableList(buff_);
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.buff_ = buff_;
|
||||
} else {
|
||||
result.buff_ = buffBuilder_.build();
|
||||
}
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.BuffInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.BuffInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.BuffInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.BuffInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.BuffInfo.getDefaultInstance()) return this;
|
||||
if (buffBuilder_ == null) {
|
||||
if (!other.buff_.isEmpty()) {
|
||||
if (buff_.isEmpty()) {
|
||||
buff_ = other.buff_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureBuffIsMutable();
|
||||
buff_.addAll(other.buff_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
} else {
|
||||
if (!other.buff_.isEmpty()) {
|
||||
if (buffBuilder_.isEmpty()) {
|
||||
buffBuilder_.dispose();
|
||||
buffBuilder_ = null;
|
||||
buff_ = other.buff_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
buffBuilder_ =
|
||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
||||
getBuffFieldBuilder() : null;
|
||||
} else {
|
||||
buffBuilder_.addAllMessages(other.buff_);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff m =
|
||||
input.readMessage(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff.parser(),
|
||||
extensionRegistry);
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
buff_.add(m);
|
||||
} else {
|
||||
buffBuilder_.addMessage(m);
|
||||
}
|
||||
break;
|
||||
} // case 10
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff> buff_ =
|
||||
java.util.Collections.emptyList();
|
||||
private void ensureBuffIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
buff_ = new java.util.ArrayList<com.caliverse.admin.domain.RabbitMq.message.Buff>(buff_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder, com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder> buffBuilder_;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff> getBuffList() {
|
||||
if (buffBuilder_ == null) {
|
||||
return java.util.Collections.unmodifiableList(buff_);
|
||||
} else {
|
||||
return buffBuilder_.getMessageList();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public int getBuffCount() {
|
||||
if (buffBuilder_ == null) {
|
||||
return buff_.size();
|
||||
} else {
|
||||
return buffBuilder_.getCount();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff getBuff(int index) {
|
||||
if (buffBuilder_ == null) {
|
||||
return buff_.get(index);
|
||||
} else {
|
||||
return buffBuilder_.getMessage(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder setBuff(
|
||||
int index, com.caliverse.admin.domain.RabbitMq.message.Buff value) {
|
||||
if (buffBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureBuffIsMutable();
|
||||
buff_.set(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.setMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder setBuff(
|
||||
int index, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder builderForValue) {
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
buff_.set(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.setMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder addBuff(com.caliverse.admin.domain.RabbitMq.message.Buff value) {
|
||||
if (buffBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureBuffIsMutable();
|
||||
buff_.add(value);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.addMessage(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder addBuff(
|
||||
int index, com.caliverse.admin.domain.RabbitMq.message.Buff value) {
|
||||
if (buffBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureBuffIsMutable();
|
||||
buff_.add(index, value);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.addMessage(index, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder addBuff(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff.Builder builderForValue) {
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
buff_.add(builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.addMessage(builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder addBuff(
|
||||
int index, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder builderForValue) {
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
buff_.add(index, builderForValue.build());
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.addMessage(index, builderForValue.build());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder addAllBuff(
|
||||
java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.Buff> values) {
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, buff_);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.addAllMessages(values);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder clearBuff() {
|
||||
if (buffBuilder_ == null) {
|
||||
buff_ = java.util.Collections.emptyList();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.clear();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public Builder removeBuff(int index) {
|
||||
if (buffBuilder_ == null) {
|
||||
ensureBuffIsMutable();
|
||||
buff_.remove(index);
|
||||
onChanged();
|
||||
} else {
|
||||
buffBuilder_.remove(index);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff.Builder getBuffBuilder(
|
||||
int index) {
|
||||
return getBuffFieldBuilder().getBuilder(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder getBuffOrBuilder(
|
||||
int index) {
|
||||
if (buffBuilder_ == null) {
|
||||
return buff_.get(index); } else {
|
||||
return buffBuilder_.getMessageOrBuilder(index);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder>
|
||||
getBuffOrBuilderList() {
|
||||
if (buffBuilder_ != null) {
|
||||
return buffBuilder_.getMessageOrBuilderList();
|
||||
} else {
|
||||
return java.util.Collections.unmodifiableList(buff_);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff.Builder addBuffBuilder() {
|
||||
return getBuffFieldBuilder().addBuilder(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Buff.Builder addBuffBuilder(
|
||||
int index) {
|
||||
return getBuffFieldBuilder().addBuilder(
|
||||
index, com.caliverse.admin.domain.RabbitMq.message.Buff.getDefaultInstance());
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff.Builder>
|
||||
getBuffBuilderList() {
|
||||
return getBuffFieldBuilder().getBuilderList();
|
||||
}
|
||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder, com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder>
|
||||
getBuffFieldBuilder() {
|
||||
if (buffBuilder_ == null) {
|
||||
buffBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff, com.caliverse.admin.domain.RabbitMq.message.Buff.Builder, com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder>(
|
||||
buff_,
|
||||
((bitField0_ & 0x00000001) != 0),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
buff_ = null;
|
||||
}
|
||||
return buffBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:BuffInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:BuffInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.BuffInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.BuffInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.BuffInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<BuffInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<BuffInfo>() {
|
||||
@java.lang.Override
|
||||
public BuffInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<BuffInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<BuffInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.BuffInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface BuffInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:BuffInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.Buff>
|
||||
getBuffList();
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.Buff getBuff(int index);
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
int getBuffCount();
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder>
|
||||
getBuffOrBuilderList();
|
||||
/**
|
||||
* <pre>
|
||||
*:Buff
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated .Buff buff = 1;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.BuffOrBuilder getBuffOrBuilder(
|
||||
int index);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface BuffOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:Buff)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 buffId = 1;</code>
|
||||
* @return The buffId.
|
||||
*/
|
||||
int getBuffId();
|
||||
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return Whether the buffStartTime field is set.
|
||||
*/
|
||||
boolean hasBuffStartTime();
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
* @return The buffStartTime.
|
||||
*/
|
||||
com.google.protobuf.Timestamp getBuffStartTime();
|
||||
/**
|
||||
* <code>.google.protobuf.Timestamp buffStartTime = 2;</code>
|
||||
*/
|
||||
com.google.protobuf.TimestampOrBuilder getBuffStartTimeOrBuilder();
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,99 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface BuildingInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:BuildingInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 id = 1;</code>
|
||||
* @return The id.
|
||||
*/
|
||||
int getId();
|
||||
|
||||
/**
|
||||
* <code>string owner = 2;</code>
|
||||
* @return The owner.
|
||||
*/
|
||||
java.lang.String getOwner();
|
||||
/**
|
||||
* <code>string owner = 2;</code>
|
||||
* @return The bytes for owner.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getOwnerBytes();
|
||||
|
||||
/**
|
||||
* <code>string name = 3;</code>
|
||||
* @return The name.
|
||||
*/
|
||||
java.lang.String getName();
|
||||
/**
|
||||
* <code>string name = 3;</code>
|
||||
* @return The bytes for name.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getNameBytes();
|
||||
|
||||
/**
|
||||
* <code>string description = 4;</code>
|
||||
* @return The description.
|
||||
*/
|
||||
java.lang.String getDescription();
|
||||
/**
|
||||
* <code>string description = 4;</code>
|
||||
* @return The bytes for description.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getDescriptionBytes();
|
||||
|
||||
/**
|
||||
* <code>repeated .SlotInfo roomList = 5;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.SlotInfo>
|
||||
getRoomListList();
|
||||
/**
|
||||
* <code>repeated .SlotInfo roomList = 5;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.SlotInfo getRoomList(int index);
|
||||
/**
|
||||
* <code>repeated .SlotInfo roomList = 5;</code>
|
||||
*/
|
||||
int getRoomListCount();
|
||||
/**
|
||||
* <code>repeated .SlotInfo roomList = 5;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.SlotInfoOrBuilder>
|
||||
getRoomListOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .SlotInfo roomList = 5;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.SlotInfoOrBuilder getRoomListOrBuilder(
|
||||
int index);
|
||||
|
||||
/**
|
||||
* <code>repeated .PropInfo propList = 6;</code>
|
||||
*/
|
||||
java.util.List<com.caliverse.admin.domain.RabbitMq.message.PropInfo>
|
||||
getPropListList();
|
||||
/**
|
||||
* <code>repeated .PropInfo propList = 6;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.PropInfo getPropList(int index);
|
||||
/**
|
||||
* <code>repeated .PropInfo propList = 6;</code>
|
||||
*/
|
||||
int getPropListCount();
|
||||
/**
|
||||
* <code>repeated .PropInfo propList = 6;</code>
|
||||
*/
|
||||
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.PropInfoOrBuilder>
|
||||
getPropListOrBuilderList();
|
||||
/**
|
||||
* <code>repeated .PropInfo propList = 6;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.PropInfoOrBuilder getPropListOrBuilder(
|
||||
int index);
|
||||
}
|
||||
@@ -0,0 +1,812 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code CartItemInfo}
|
||||
*/
|
||||
public final class CartItemInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:CartItemInfo)
|
||||
CartItemInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use CartItemInfo.newBuilder() to construct.
|
||||
private CartItemInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private CartItemInfo() {
|
||||
itemGuid_ = "";
|
||||
buyType_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CartItemInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CartItemInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CartItemInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.class, com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ITEMGUID_FIELD_NUMBER = 1;
|
||||
@SuppressWarnings("serial")
|
||||
private volatile java.lang.Object itemGuid_ = "";
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The itemGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getItemGuid() {
|
||||
java.lang.Object ref = itemGuid_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
itemGuid_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The bytes for itemGuid.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getItemGuidBytes() {
|
||||
java.lang.Object ref = itemGuid_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
itemGuid_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int ITEMID_FIELD_NUMBER = 2;
|
||||
private int itemId_ = 0;
|
||||
/**
|
||||
* <code>int32 itemId = 2;</code>
|
||||
* @return The itemId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getItemId() {
|
||||
return itemId_;
|
||||
}
|
||||
|
||||
public static final int COUNT_FIELD_NUMBER = 3;
|
||||
private int count_ = 0;
|
||||
/**
|
||||
* <code>int32 count = 3;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getCount() {
|
||||
return count_;
|
||||
}
|
||||
|
||||
public static final int BUYTYPE_FIELD_NUMBER = 4;
|
||||
@SuppressWarnings("serial")
|
||||
private volatile java.lang.Object buyType_ = "";
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The buyType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public java.lang.String getBuyType() {
|
||||
java.lang.Object ref = buyType_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
return (java.lang.String) ref;
|
||||
} else {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
buyType_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The bytes for buyType.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.ByteString
|
||||
getBuyTypeBytes() {
|
||||
java.lang.Object ref = buyType_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
buyType_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemGuid_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, itemGuid_);
|
||||
}
|
||||
if (itemId_ != 0) {
|
||||
output.writeInt32(2, itemId_);
|
||||
}
|
||||
if (count_ != 0) {
|
||||
output.writeInt32(3, count_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buyType_)) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, buyType_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(itemGuid_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, itemGuid_);
|
||||
}
|
||||
if (itemId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(2, itemId_);
|
||||
}
|
||||
if (count_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(3, count_);
|
||||
}
|
||||
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buyType_)) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, buyType_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.CartItemInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfo other = (com.caliverse.admin.domain.RabbitMq.message.CartItemInfo) obj;
|
||||
|
||||
if (!getItemGuid()
|
||||
.equals(other.getItemGuid())) return false;
|
||||
if (getItemId()
|
||||
!= other.getItemId()) return false;
|
||||
if (getCount()
|
||||
!= other.getCount()) return false;
|
||||
if (!getBuyType()
|
||||
.equals(other.getBuyType())) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ITEMGUID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getItemGuid().hashCode();
|
||||
hash = (37 * hash) + ITEMID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getItemId();
|
||||
hash = (37 * hash) + COUNT_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getCount();
|
||||
hash = (37 * hash) + BUYTYPE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBuyType().hashCode();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.CartItemInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code CartItemInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:CartItemInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CartItemInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CartItemInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.class, com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
itemGuid_ = "";
|
||||
itemId_ = 0;
|
||||
count_ = 0;
|
||||
buyType_ = "";
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CartItemInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CartItemInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CartItemInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CartItemInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.CartItemInfo result = new com.caliverse.admin.domain.RabbitMq.message.CartItemInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.CartItemInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.itemGuid_ = itemGuid_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.itemId_ = itemId_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000004) != 0)) {
|
||||
result.count_ = count_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000008) != 0)) {
|
||||
result.buyType_ = buyType_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.CartItemInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.CartItemInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.CartItemInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.CartItemInfo.getDefaultInstance()) return this;
|
||||
if (!other.getItemGuid().isEmpty()) {
|
||||
itemGuid_ = other.itemGuid_;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
}
|
||||
if (other.getItemId() != 0) {
|
||||
setItemId(other.getItemId());
|
||||
}
|
||||
if (other.getCount() != 0) {
|
||||
setCount(other.getCount());
|
||||
}
|
||||
if (!other.getBuyType().isEmpty()) {
|
||||
buyType_ = other.buyType_;
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
itemGuid_ = input.readStringRequireUtf8();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 10
|
||||
case 16: {
|
||||
itemId_ = input.readInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 16
|
||||
case 24: {
|
||||
count_ = input.readInt32();
|
||||
bitField0_ |= 0x00000004;
|
||||
break;
|
||||
} // case 24
|
||||
case 34: {
|
||||
buyType_ = input.readStringRequireUtf8();
|
||||
bitField0_ |= 0x00000008;
|
||||
break;
|
||||
} // case 34
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.lang.Object itemGuid_ = "";
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The itemGuid.
|
||||
*/
|
||||
public java.lang.String getItemGuid() {
|
||||
java.lang.Object ref = itemGuid_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
itemGuid_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The bytes for itemGuid.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getItemGuidBytes() {
|
||||
java.lang.Object ref = itemGuid_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
itemGuid_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @param value The itemGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setItemGuid(
|
||||
java.lang.String value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
itemGuid_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearItemGuid() {
|
||||
itemGuid_ = getDefaultInstance().getItemGuid();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @param value The bytes for itemGuid to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setItemGuidBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
checkByteStringIsUtf8(value);
|
||||
itemGuid_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int itemId_ ;
|
||||
/**
|
||||
* <code>int32 itemId = 2;</code>
|
||||
* @return The itemId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getItemId() {
|
||||
return itemId_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 itemId = 2;</code>
|
||||
* @param value The itemId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setItemId(int value) {
|
||||
|
||||
itemId_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 itemId = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearItemId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
itemId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int count_ ;
|
||||
/**
|
||||
* <code>int32 count = 3;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getCount() {
|
||||
return count_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 count = 3;</code>
|
||||
* @param value The count to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setCount(int value) {
|
||||
|
||||
count_ = value;
|
||||
bitField0_ |= 0x00000004;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 count = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearCount() {
|
||||
bitField0_ = (bitField0_ & ~0x00000004);
|
||||
count_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object buyType_ = "";
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The buyType.
|
||||
*/
|
||||
public java.lang.String getBuyType() {
|
||||
java.lang.Object ref = buyType_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
buyType_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The bytes for buyType.
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getBuyTypeBytes() {
|
||||
java.lang.Object ref = buyType_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
buyType_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @param value The buyType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBuyType(
|
||||
java.lang.String value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
buyType_ = value;
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearBuyType() {
|
||||
buyType_ = getDefaultInstance().getBuyType();
|
||||
bitField0_ = (bitField0_ & ~0x00000008);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @param value The bytes for buyType to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setBuyTypeBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) { throw new NullPointerException(); }
|
||||
checkByteStringIsUtf8(value);
|
||||
buyType_ = value;
|
||||
bitField0_ |= 0x00000008;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:CartItemInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:CartItemInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.CartItemInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.CartItemInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CartItemInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<CartItemInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<CartItemInfo>() {
|
||||
@java.lang.Override
|
||||
public CartItemInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<CartItemInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<CartItemInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CartItemInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface CartItemInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:CartItemInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The itemGuid.
|
||||
*/
|
||||
java.lang.String getItemGuid();
|
||||
/**
|
||||
* <code>string itemGuid = 1;</code>
|
||||
* @return The bytes for itemGuid.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getItemGuidBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 itemId = 2;</code>
|
||||
* @return The itemId.
|
||||
*/
|
||||
int getItemId();
|
||||
|
||||
/**
|
||||
* <code>int32 count = 3;</code>
|
||||
* @return The count.
|
||||
*/
|
||||
int getCount();
|
||||
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The buyType.
|
||||
*/
|
||||
java.lang.String getBuyType();
|
||||
/**
|
||||
* <code>string buyType = 4;</code>
|
||||
* @return The bytes for buyType.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getBuyTypeBytes();
|
||||
}
|
||||
@@ -0,0 +1,540 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code ChannelInfo}
|
||||
*/
|
||||
public final class ChannelInfo extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:ChannelInfo)
|
||||
ChannelInfoOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use ChannelInfo.newBuilder() to construct.
|
||||
private ChannelInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private ChannelInfo() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new ChannelInfo();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ChannelInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ChannelInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.class, com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CHANNEL_FIELD_NUMBER = 1;
|
||||
private int channel_ = 0;
|
||||
/**
|
||||
* <code>int32 channel = 1;</code>
|
||||
* @return The channel.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannel() {
|
||||
return channel_;
|
||||
}
|
||||
|
||||
public static final int TRAFFICLEVEL_FIELD_NUMBER = 2;
|
||||
private int trafficlevel_ = 0;
|
||||
/**
|
||||
* <code>int32 trafficlevel = 2;</code>
|
||||
* @return The trafficlevel.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTrafficlevel() {
|
||||
return trafficlevel_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (channel_ != 0) {
|
||||
output.writeInt32(1, channel_);
|
||||
}
|
||||
if (trafficlevel_ != 0) {
|
||||
output.writeInt32(2, trafficlevel_);
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (channel_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, channel_);
|
||||
}
|
||||
if (trafficlevel_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(2, trafficlevel_);
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.ChannelInfo)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfo other = (com.caliverse.admin.domain.RabbitMq.message.ChannelInfo) obj;
|
||||
|
||||
if (getChannel()
|
||||
!= other.getChannel()) return false;
|
||||
if (getTrafficlevel()
|
||||
!= other.getTrafficlevel()) return false;
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getChannel();
|
||||
hash = (37 * hash) + TRAFFICLEVEL_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getTrafficlevel();
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.ChannelInfo prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code ChannelInfo}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:ChannelInfo)
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfoOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ChannelInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ChannelInfo_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.class, com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
channel_ = 0;
|
||||
trafficlevel_ = 0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_ChannelInfo_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.ChannelInfo getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.ChannelInfo build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfo result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.ChannelInfo buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.ChannelInfo result = new com.caliverse.admin.domain.RabbitMq.message.ChannelInfo(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.ChannelInfo result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.channel_ = channel_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.trafficlevel_ = trafficlevel_;
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.ChannelInfo) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.ChannelInfo)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.ChannelInfo other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.ChannelInfo.getDefaultInstance()) return this;
|
||||
if (other.getChannel() != 0) {
|
||||
setChannel(other.getChannel());
|
||||
}
|
||||
if (other.getTrafficlevel() != 0) {
|
||||
setTrafficlevel(other.getTrafficlevel());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
channel_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 16: {
|
||||
trafficlevel_ = input.readInt32();
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 16
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int channel_ ;
|
||||
/**
|
||||
* <code>int32 channel = 1;</code>
|
||||
* @return The channel.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getChannel() {
|
||||
return channel_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 channel = 1;</code>
|
||||
* @param value The channel to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setChannel(int value) {
|
||||
|
||||
channel_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 channel = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearChannel() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
channel_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int trafficlevel_ ;
|
||||
/**
|
||||
* <code>int32 trafficlevel = 2;</code>
|
||||
* @return The trafficlevel.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getTrafficlevel() {
|
||||
return trafficlevel_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 trafficlevel = 2;</code>
|
||||
* @param value The trafficlevel to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setTrafficlevel(int value) {
|
||||
|
||||
trafficlevel_ = value;
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 trafficlevel = 2;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearTrafficlevel() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
trafficlevel_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:ChannelInfo)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:ChannelInfo)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.ChannelInfo DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.ChannelInfo();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.ChannelInfo getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<ChannelInfo>
|
||||
PARSER = new com.google.protobuf.AbstractParser<ChannelInfo>() {
|
||||
@java.lang.Override
|
||||
public ChannelInfo parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<ChannelInfo> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<ChannelInfo> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.ChannelInfo getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Define_Common.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface ChannelInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:ChannelInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 channel = 1;</code>
|
||||
* @return The channel.
|
||||
*/
|
||||
int getChannel();
|
||||
|
||||
/**
|
||||
* <code>int32 trafficlevel = 2;</code>
|
||||
* @return The trafficlevel.
|
||||
*/
|
||||
int getTrafficlevel();
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface CharInfoOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:CharInfo)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 level = 1;</code>
|
||||
* @return The level.
|
||||
*/
|
||||
int getLevel();
|
||||
|
||||
/**
|
||||
* <code>int64 exp = 2;</code>
|
||||
* @return The exp.
|
||||
*/
|
||||
long getExp();
|
||||
|
||||
/**
|
||||
* <code>double gold = 3;</code>
|
||||
* @return The gold.
|
||||
*/
|
||||
double getGold();
|
||||
|
||||
/**
|
||||
* <code>double sapphire = 4;</code>
|
||||
* @return The sapphire.
|
||||
*/
|
||||
double getSapphire();
|
||||
|
||||
/**
|
||||
* <code>double calium = 5;</code>
|
||||
* @return The calium.
|
||||
*/
|
||||
double getCalium();
|
||||
|
||||
/**
|
||||
* <code>double beam = 6;</code>
|
||||
* @return The beam.
|
||||
*/
|
||||
double getBeam();
|
||||
|
||||
/**
|
||||
* <code>double ruby = 7;</code>
|
||||
* @return The ruby.
|
||||
*/
|
||||
double getRuby();
|
||||
|
||||
/**
|
||||
* <code>string usergroup = 8;</code>
|
||||
* @return The usergroup.
|
||||
*/
|
||||
java.lang.String getUsergroup();
|
||||
/**
|
||||
* <code>string usergroup = 8;</code>
|
||||
* @return The bytes for usergroup.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getUsergroupBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 operator = 9;</code>
|
||||
* @return The operator.
|
||||
*/
|
||||
int getOperator();
|
||||
|
||||
/**
|
||||
* <code>string displayName = 10;</code>
|
||||
* @return The displayName.
|
||||
*/
|
||||
java.lang.String getDisplayName();
|
||||
/**
|
||||
* <code>string displayName = 10;</code>
|
||||
* @return The bytes for displayName.
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getDisplayNameBytes();
|
||||
|
||||
/**
|
||||
* <code>int32 languageInfo = 11;</code>
|
||||
* @return The languageInfo.
|
||||
*/
|
||||
int getLanguageInfo();
|
||||
|
||||
/**
|
||||
* <code>int32 isIntroComplete = 12;</code>
|
||||
* @return The isIntroComplete.
|
||||
*/
|
||||
int getIsIntroComplete();
|
||||
}
|
||||
@@ -0,0 +1,655 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
/**
|
||||
* Protobuf type {@code CharPos}
|
||||
*/
|
||||
public final class CharPos extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:CharPos)
|
||||
CharPosOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use CharPos.newBuilder() to construct.
|
||||
private CharPos(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private CharPos() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new CharPos();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CharPos_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CharPos_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPos.class, com.caliverse.admin.domain.RabbitMq.message.CharPos.Builder.class);
|
||||
}
|
||||
|
||||
public static final int MAP_ID_FIELD_NUMBER = 1;
|
||||
private int mapId_ = 0;
|
||||
/**
|
||||
* <code>int32 map_id = 1;</code>
|
||||
* @return The mapId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getMapId() {
|
||||
return mapId_;
|
||||
}
|
||||
|
||||
public static final int POS_FIELD_NUMBER = 2;
|
||||
private com.caliverse.admin.domain.RabbitMq.message.Pos pos_;
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return Whether the pos field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public boolean hasPos() {
|
||||
return pos_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return The pos.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Pos getPos() {
|
||||
return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder getPosOrBuilder() {
|
||||
return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (mapId_ != 0) {
|
||||
output.writeInt32(1, mapId_);
|
||||
}
|
||||
if (pos_ != null) {
|
||||
output.writeMessage(2, getPos());
|
||||
}
|
||||
getUnknownFields().writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (mapId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(1, mapId_);
|
||||
}
|
||||
if (pos_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(2, getPos());
|
||||
}
|
||||
size += getUnknownFields().getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.CharPos)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPos other = (com.caliverse.admin.domain.RabbitMq.message.CharPos) obj;
|
||||
|
||||
if (getMapId()
|
||||
!= other.getMapId()) return false;
|
||||
if (hasPos() != other.hasPos()) return false;
|
||||
if (hasPos()) {
|
||||
if (!getPos()
|
||||
.equals(other.getPos())) return false;
|
||||
}
|
||||
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int hashCode() {
|
||||
if (memoizedHashCode != 0) {
|
||||
return memoizedHashCode;
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + MAP_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getMapId();
|
||||
if (hasPos()) {
|
||||
hash = (37 * hash) + POS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getPos().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + getUnknownFields().hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
java.nio.ByteBuffer data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
com.google.protobuf.ByteString data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseDelimitedFrom(
|
||||
java.io.InputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos parseFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder newBuilderForType() { return newBuilder(); }
|
||||
public static Builder newBuilder() {
|
||||
return DEFAULT_INSTANCE.toBuilder();
|
||||
}
|
||||
public static Builder newBuilder(com.caliverse.admin.domain.RabbitMq.message.CharPos prototype) {
|
||||
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder toBuilder() {
|
||||
return this == DEFAULT_INSTANCE
|
||||
? new Builder() : new Builder().mergeFrom(this);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected Builder newBuilderForType(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
Builder builder = new Builder(parent);
|
||||
return builder;
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code CharPos}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:CharPos)
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPosOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CharPos_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CharPos_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPos.class, com.caliverse.admin.domain.RabbitMq.message.CharPos.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using com.caliverse.admin.domain.RabbitMq.message.CharPos.newBuilder()
|
||||
private Builder() {
|
||||
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
bitField0_ = 0;
|
||||
mapId_ = 0;
|
||||
pos_ = null;
|
||||
if (posBuilder_ != null) {
|
||||
posBuilder_.dispose();
|
||||
posBuilder_ = null;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_CharPos_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CharPos getDefaultInstanceForType() {
|
||||
return com.caliverse.admin.domain.RabbitMq.message.CharPos.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CharPos build() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPos result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CharPos buildPartial() {
|
||||
com.caliverse.admin.domain.RabbitMq.message.CharPos result = new com.caliverse.admin.domain.RabbitMq.message.CharPos(this);
|
||||
if (bitField0_ != 0) { buildPartial0(result); }
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.CharPos result) {
|
||||
int from_bitField0_ = bitField0_;
|
||||
if (((from_bitField0_ & 0x00000001) != 0)) {
|
||||
result.mapId_ = mapId_;
|
||||
}
|
||||
if (((from_bitField0_ & 0x00000002) != 0)) {
|
||||
result.pos_ = posBuilder_ == null
|
||||
? pos_
|
||||
: posBuilder_.build();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof com.caliverse.admin.domain.RabbitMq.message.CharPos) {
|
||||
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.CharPos)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.CharPos other) {
|
||||
if (other == com.caliverse.admin.domain.RabbitMq.message.CharPos.getDefaultInstance()) return this;
|
||||
if (other.getMapId() != 0) {
|
||||
setMapId(other.getMapId());
|
||||
}
|
||||
if (other.hasPos()) {
|
||||
mergePos(other.getPos());
|
||||
}
|
||||
this.mergeUnknownFields(other.getUnknownFields());
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
if (extensionRegistry == null) {
|
||||
throw new java.lang.NullPointerException();
|
||||
}
|
||||
try {
|
||||
boolean done = false;
|
||||
while (!done) {
|
||||
int tag = input.readTag();
|
||||
switch (tag) {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 8: {
|
||||
mapId_ = input.readInt32();
|
||||
bitField0_ |= 0x00000001;
|
||||
break;
|
||||
} // case 8
|
||||
case 18: {
|
||||
input.readMessage(
|
||||
getPosFieldBuilder().getBuilder(),
|
||||
extensionRegistry);
|
||||
bitField0_ |= 0x00000002;
|
||||
break;
|
||||
} // case 18
|
||||
default: {
|
||||
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
|
||||
done = true; // was an endgroup tag
|
||||
}
|
||||
break;
|
||||
} // default:
|
||||
} // switch (tag)
|
||||
} // while (!done)
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
onChanged();
|
||||
} // finally
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private int mapId_ ;
|
||||
/**
|
||||
* <code>int32 map_id = 1;</code>
|
||||
* @return The mapId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getMapId() {
|
||||
return mapId_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 map_id = 1;</code>
|
||||
* @param value The mapId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setMapId(int value) {
|
||||
|
||||
mapId_ = value;
|
||||
bitField0_ |= 0x00000001;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 map_id = 1;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearMapId() {
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
mapId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.caliverse.admin.domain.RabbitMq.message.Pos pos_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder> posBuilder_;
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return Whether the pos field is set.
|
||||
*/
|
||||
public boolean hasPos() {
|
||||
return ((bitField0_ & 0x00000002) != 0);
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return The pos.
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Pos getPos() {
|
||||
if (posBuilder_ == null) {
|
||||
return pos_ == null ? com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
|
||||
} else {
|
||||
return posBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public Builder setPos(com.caliverse.admin.domain.RabbitMq.message.Pos value) {
|
||||
if (posBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
pos_ = value;
|
||||
} else {
|
||||
posBuilder_.setMessage(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public Builder setPos(
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos.Builder builderForValue) {
|
||||
if (posBuilder_ == null) {
|
||||
pos_ = builderForValue.build();
|
||||
} else {
|
||||
posBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public Builder mergePos(com.caliverse.admin.domain.RabbitMq.message.Pos value) {
|
||||
if (posBuilder_ == null) {
|
||||
if (((bitField0_ & 0x00000002) != 0) &&
|
||||
pos_ != null &&
|
||||
pos_ != com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance()) {
|
||||
getPosBuilder().mergeFrom(value);
|
||||
} else {
|
||||
pos_ = value;
|
||||
}
|
||||
} else {
|
||||
posBuilder_.mergeFrom(value);
|
||||
}
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public Builder clearPos() {
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
pos_ = null;
|
||||
if (posBuilder_ != null) {
|
||||
posBuilder_.dispose();
|
||||
posBuilder_ = null;
|
||||
}
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.Pos.Builder getPosBuilder() {
|
||||
bitField0_ |= 0x00000002;
|
||||
onChanged();
|
||||
return getPosFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
public com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder getPosOrBuilder() {
|
||||
if (posBuilder_ != null) {
|
||||
return posBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return pos_ == null ?
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos.getDefaultInstance() : pos_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder>
|
||||
getPosFieldBuilder() {
|
||||
if (posBuilder_ == null) {
|
||||
posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos, com.caliverse.admin.domain.RabbitMq.message.Pos.Builder, com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder>(
|
||||
getPos(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
pos_ = null;
|
||||
}
|
||||
return posBuilder_;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:CharPos)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:CharPos)
|
||||
private static final com.caliverse.admin.domain.RabbitMq.message.CharPos DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.CharPos();
|
||||
}
|
||||
|
||||
public static com.caliverse.admin.domain.RabbitMq.message.CharPos getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<CharPos>
|
||||
PARSER = new com.google.protobuf.AbstractParser<CharPos>() {
|
||||
@java.lang.Override
|
||||
public CharPos parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
Builder builder = newBuilder();
|
||||
try {
|
||||
builder.mergeFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(e)
|
||||
.setUnfinishedMessage(builder.buildPartial());
|
||||
}
|
||||
return builder.buildPartial();
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<CharPos> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<CharPos> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.caliverse.admin.domain.RabbitMq.message.CharPos getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Game_Define.proto
|
||||
|
||||
package com.caliverse.admin.domain.RabbitMq.message;
|
||||
|
||||
public interface CharPosOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:CharPos)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>int32 map_id = 1;</code>
|
||||
* @return The mapId.
|
||||
*/
|
||||
int getMapId();
|
||||
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return Whether the pos field is set.
|
||||
*/
|
||||
boolean hasPos();
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
* @return The pos.
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.Pos getPos();
|
||||
/**
|
||||
* <code>.Pos pos = 2;</code>
|
||||
*/
|
||||
com.caliverse.admin.domain.RabbitMq.message.PosOrBuilder getPosOrBuilder();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user