Compare commits

..

36 Commits

Author SHA1 Message Date
51c5709a79 제작아이템 조회 API 2025-09-16 16:42:56 +09:00
d16ee97d98 랭크 관련 추가
itemRequest itemId 추가
2025-09-15 16:11:14 +09:00
287dca3534 mq 추가 2025-09-15 16:10:37 +09:00
728b1abebc 로그 일자 시간 추가
메타데이터 api 추가
사용이력 조회 조건 수정
s3 비즈니스로그 수정
유저 조회 수정
2025-09-15 16:10:15 +09:00
60f84112c6 월드이벤트, 랭킹 스케줄 entity 추가 2025-09-15 16:08:17 +09:00
6f3263f36a 메타데이터 호출 추가 2025-09-15 16:04:12 +09:00
77c7870201 worldEvent 추가
event > rewardEvent로 변경
2025-09-15 16:03:34 +09:00
3b76682616 비즈니스로그 조회 수정 및 쿼리 조정 2025-09-15 16:01:46 +09:00
5a3a5eaf41 로그 액션, 도메인 추가 2025-09-15 15:59:50 +09:00
950a6a6817 로그조회 쿼리 조정 2025-09-15 15:59:36 +09:00
d74c1b67e3 dynamodb 랭커, 랭킹 스케줄, 월드이벤트 추가 2025-09-15 15:58:32 +09:00
a5f21f6000 아이템 백과사전 객체 수정 2025-09-04 14:33:13 +09:00
5c7782de7a 아이템 백과사전 export 처리 2025-09-04 14:19:25 +09:00
4d7d4bb266 백과사전 api 생성
아이템 백과사전 조회 API 생성
메타데이터 로드 추가
2025-09-04 10:15:24 +09:00
779085b2f1 jenkins 코드 변경 2025-09-04 10:13:19 +09:00
8c71af93f3 전투이벤트 이벤트 아이디 처리 수정 2025-08-27 18:40:23 +09:00
fea7a7f750 파일정리 2025-08-27 18:39:36 +09:00
2e54329ee2 인게임메시지 스케줄 버그 수정 2025-08-27 18:39:18 +09:00
d75c259350 jenkins 패치 분리 2025-08-27 18:38:59 +09:00
492394d3a0 랜드경매 예약종료일 제거 2025-08-09 09:47:58 +09:00
11c681e1ad logTime 타입처리 수정 2025-08-06 18:51:08 +09:00
78f84bd7b8 로그 방식 변경 2025-08-06 14:39:05 +09:00
78b10e4f3a 히스토리 마이그레이션 2025-08-05 18:21:53 +09:00
b01c355492 스케줄 aop 동작안함으로 구조 변경 2025-08-05 18:21:35 +09:00
b0a99ca55f 비즈니스 로그 기준 히스토리 조정
assets DW 추가
경제지표 보유 API
게임로그 snapshot
s3 비즈니스 로그 추가
칼리움 dashboard api
2025-08-04 17:38:30 +09:00
a834c7a004 비즈니스 로그 구조 생성
서비스별 비즈니스 로그 처리
코드 정리
2025-07-29 16:14:18 +09:00
ddc72dd78d 퀘스트 테스트 강제 완료 요청
req_id 관리 생성
2025-07-18 15:17:47 +09:00
05bbee4b25 게임로그 유저생성 로그 조회, 엑셀
게임로그 유저로그인 로그 조회, 엑셀
2025-07-17 14:37:24 +09:00
d439481822 mongodb 인덱스 지정
잔존율 조회
2025-07-16 15:56:29 +09:00
e4b2b47a02 dynamodb 마이홈, 친구목록 구성
예전버전 dynamodb 정리
2025-07-14 13:39:55 +09:00
f2f532c985 칼리움 에러 조회 수정 2025-07-13 11:50:26 +09:00
e5430526ae item dw batch 추가
게임로그 아이템 조회 API
게임로그 재화(아이템) 조회 API
엑셀 export 예외 필드 추가
2025-07-13 11:49:59 +09:00
8d640b082f item dw batch 추가
게임로그 아이템 조회 API
게임로그 재화(아이템) 조회 API
엑셀 export 예외 필드 추가
2025-07-13 11:49:27 +09:00
671839bbea dynamodb 퀘스트, 캐릭터 domain 형식으로 변경 2025-07-13 11:47:31 +09:00
8c4cdbf659 전투 진행시간 수정 2025-07-01 17:04:13 +09:00
57970d0f44 배너 API 및 처리 2025-07-01 15:46:37 +09:00
363 changed files with 44846 additions and 7442 deletions

View File

@@ -18,7 +18,7 @@ pipeline {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh 'chmod +x gradlew' //gradle 권한 설정
sh './gradlew clean build -x test -Pprofile=dev' //빌드 test는 하지않는다 sh '/var/lib/jenkins/workspace/Trunk-Admintool-Dev-BackEnd/gradlew clean build -x test -Pprofile=dev' //빌드 test는 하지않는다
} }
} }
} }

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Product-Admintool-Live-BackEnd-Full/gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
} }
} }
} }

76
Jenkinsfile.live.metadata Normal file
View File

@@ -0,0 +1,76 @@
pipeline {
agent any
environment {
META_FOLDER = 'metadata/**'
REMOTE_META_FOLDER = 'admintool'
}
stages {
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('SSH Tunneling Stop') {
steps {
script {
sh '/home/admintool/ssh-tunneling-live.sh stop; /home/admintool/ssh-tunneling-live.sh status'
}
}
}
}
}

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Product-Admintool-Live-BackEnd/gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=live' //빌드 test는 하지않는다
} }
} }
} }

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Stable-Admintool-QA-BackEnd-Full/gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
} }
} }
} }

99
Jenkinsfile.qa.metadata Normal file
View File

@@ -0,0 +1,99 @@
pipeline {
agent any
environment {
META_FOLDER = 'metadata/**'
REMOTE_META_FOLDER = 'admintool'
DOCKER_NAME = 'admintool-back-qa'
}
stages {
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('Docker Container Restart'){
steps{
// aws command
sshPublisher(
publishers: [
sshPublisherDesc(
configName: 'qa-backend',
transfers: [
sshTransfer(
execCommand: """
docker restart ${DOCKER_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'
}
}
}
}
}

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Stable-Admintool-QA-BackEnd/gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=qa' //빌드 test는 하지않는다
} }
} }
} }

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Product-Admintool-Stage-Backend-Full/gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
} }
} }
} }

View File

@@ -0,0 +1,99 @@
pipeline {
agent any
environment {
META_FOLDER = 'metadata/**'
REMOTE_META_FOLDER = 'admintool'
DOCKER_NAME = 'admintool-back-stage'
}
stages {
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('Docker Container Restart'){
steps{
// aws command
sshPublisher(
publishers: [
sshPublisherDesc(
configName: 'stage-backend',
transfers: [
sshTransfer(
execCommand: """
docker restart ${DOCKER_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'
}
}
}
}
}

View File

@@ -17,8 +17,7 @@ pipeline {
stage('Gradle Build') { stage('Gradle Build') {
steps { steps {
script { script {
sh 'chmod +x gradlew' //gradle 권한 설정 sh '/var/lib/jenkins/workspace/Product-Admintool-Stage-Backend/gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
sh './gradlew clean build -x test -Pprofile=stage' //빌드 test는 하지않는다
} }
} }
} }

View File

@@ -12,7 +12,6 @@ import com.caliverse.admin.domain.response.IndicatorsResponse.NRU;
import com.caliverse.admin.domain.response.IndicatorsResponse.PU; import com.caliverse.admin.domain.response.IndicatorsResponse.PU;
import com.caliverse.admin.domain.response.IndicatorsResponse.Playtime; import com.caliverse.admin.domain.response.IndicatorsResponse.Playtime;
import com.caliverse.admin.domain.response.IndicatorsResponse.Retention; 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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
@@ -37,13 +36,10 @@ public class IndicatorsResult {
//Retention //Retention
@JsonProperty("retention") @JsonProperty("retention")
private List<Retention> retentionList; private List<Retention> retentionList;
//Segment
@JsonProperty("start_dt") @JsonProperty("start_dt")
private String startDt; private String startDt;
@JsonProperty("end_dt") @JsonProperty("end_dt")
private String endDt; private String endDt;
@JsonProperty("segment")
private List<Segment> segmentList;
//플레이타임 //플레이타임
@JsonProperty("playtime") @JsonProperty("playtime")
private List<Playtime> playtimeList; private List<Playtime> playtimeList;

View File

@@ -0,0 +1,131 @@
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.*;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class IndicatorsAssetsLoadService extends IndicatorsLogLoadServiceBase {
public IndicatorsAssetsLoadService(
@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, "logDay");
GroupOperation groupOperation = Aggregation.group("logDay")
.sum("gold").as("gold")
.sum("sapphire").as("sapphire")
.sum("calium").as("calium")
.sum("ruby").as("ruby")
.sum("item_11570001").as("item_11570001")
.sum("item_11570002").as("item_11570002")
.sum("item_13080002").as("item_13080002")
.sum("item_13080004").as("item_13080004")
.sum("item_13080005").as("item_13080005")
.sum("item_13080006").as("item_13080006")
.sum("item_13080007").as("item_13080007")
.sum("item_13080008").as("item_13080008")
.sum("item_13080009").as("item_13080009")
.count().as("userCount");
ProjectionOperation projection = Aggregation.project()
.andExclude("_id")
.and("_id").as(AdminConstants.MONGO_DB_KEY_LOGDAY)
.and("gold").as("gold")
.and("sapphire").as("sapphire")
.and("calium").as("calium")
.and("ruby").as("ruby")
.and("item_11570001").as("item_11570001") //강화잉크
.and("item_11570002").as("item_11570002") //연성잉크
.and("item_13080002").as("item_13080002") //퀘스트 메달
.and("item_13080004").as("item_13080004") //보급품 메달
.and("item_13080005").as("item_13080005") //제작 메달
.and("item_13080006").as("item_13080006") //315 포드
.and("item_13080007").as("item_13080007") //316 포드
.and("item_13080008").as("item_13080008") //317 포드
.and("item_13080009").as("item_13080009") //318 포드
.and("userCount").as("userCount");
List<AggregationOperation> operations = List.of(
Aggregation.match(criteria),
groupOperation,
projection,
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
);
Aggregation aggregation = Aggregation.newAggregation(operations);
return mongoTemplate.aggregate(
aggregation.withOptions(AggregationOptions.builder().allowDiskUse(true).build())
, AdminConstants.MONGO_DB_COLLECTION_ASSETS
, clazz
).getMappedResults();
}
public <T extends IndicatorsLog> List<T> getAssetsLogData(String startTime, String endTime, Class<T> clazz) {
Criteria criteria = makeCriteria(startTime, endTime, "logDay");
GroupOperation groupOperation = Aggregation.group("logDay")
.sum("gold").as("gold")
.sum("sapphire").as("sapphire")
.sum("calium").as("calium")
.sum("ruby").as("ruby")
.sum("item_11570001").as("item_11570001")
.sum("item_11570002").as("item_11570002")
.sum("item_13080002").as("item_13080002")
.sum("item_13080004").as("item_13080004")
.sum("item_13080005").as("item_13080005")
.sum("item_13080006").as("item_13080006")
.sum("item_13080007").as("item_13080007")
.sum("item_13080008").as("item_13080008")
.sum("item_13080009").as("item_13080009")
.count().as("userCount");
ProjectionOperation projection = Aggregation.project()
.andExclude("_id")
.and("logDay").as(AdminConstants.MONGO_DB_KEY_LOGDAY)
.and("gold").as("gold")
.and("sapphire").as("sapphire")
.and("calium").as("calium")
.and("ruby").as("ruby")
.and("item_11570001").as("item_11570001")
.and("item_11570002").as("item_11570002")
.and("item_13080002").as("item_13080002")
.and("item_13080004").as("item_13080004")
.and("item_13080005").as("item_13080005")
.and("item_13080006").as("item_13080006")
.and("item_13080007").as("item_13080007")
.and("item_13080008").as("item_13080008")
.and("item_13080009").as("item_13080009")
.and("userCount").as("userCount");
List<AggregationOperation> operations = List.of(
Aggregation.match(criteria),
groupOperation,
projection,
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
);
Aggregation aggregation = Aggregation.newAggregation(operations);
return mongoTemplate.aggregate(
aggregation.withOptions(AggregationOptions.builder().allowDiskUse(true).build())
, AdminConstants.MONGO_DB_COLLECTION_ASSETS
, clazz
).getMappedResults();
}
}

View File

@@ -0,0 +1,90 @@
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.bson.Document;
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.*;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class IndicatorsCurrencyLoadService extends IndicatorsLogLoadServiceBase {
public IndicatorsCurrencyLoadService(
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
) {
super(mongoTemplate);
}
@Override
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
return getCurrencyLogData(startTime, endTime, "Acquire", clazz);
}
public <T extends IndicatorsLog> List<T> getCurrencyLogData(String startTime, String endTime, String deltaType, Class<T> clazz) {
Criteria criteria = makeCriteria(startTime, endTime, "logDay");
UnwindOperation unwindOperation = Aggregation.unwind("currencies");
MatchOperation matchOp = Aggregation.match(
Criteria.where("currencies.amountDeltaType").is(deltaType)
);
AggregationOperation groupOp = context -> new Document("$group",
new Document("_id", new Document("logDay", "$logDay")
.append("currencyType", "$currencies.currencyType")
.append("action", "$currencies.action")
)
.append("actionAmount", new Document("$sum", "$currencies.deltaAmount"))
);
AggregationOperation groupOp2 = context -> new Document("$group",
new Document("_id", new Document("logDay", "$_id.logDay")
.append("currencyType", "$_id.currencyType")
)
.append("totalDeltaAmount", new Document("$sum", "$actionAmount"))
.append("actions", new Document("$push",
new Document("k", "$_id.action").append("v", "$actionAmount")
))
);
AddFieldsOperation addFieldsOp = Aggregation.addFields()
.addField("actionSummary")
.withValue(ArrayOperators.ArrayToObject.arrayToObject("$actions"))
.build();
AggregationOperation projectOp = context -> new Document("$project", new Document()
.append("_id", 0)
.append("logDay", "$_id.logDay")
.append("currencyType", "$_id.currencyType")
.append("totalDeltaAmount", 1)
.append("actionSummary", 1)
);
List<AggregationOperation> operations = List.of(
Aggregation.match(criteria),
unwindOperation,
matchOp,
groupOp,
groupOp2,
addFieldsOp,
projectOp,
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
);
Aggregation aggregation = Aggregation.newAggregation(operations);
return mongoTemplate.aggregate(
aggregation.withOptions(AggregationOptions.builder().allowDiskUse(true).build())
, AdminConstants.MONGO_DB_COLLECTION_CURRENCY
, clazz
).getMappedResults();
}
}

View File

@@ -0,0 +1,95 @@
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.bson.Document;
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.*;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class IndicatorsItemLoadService extends IndicatorsLogLoadServiceBase {
public IndicatorsItemLoadService(
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
) {
super(mongoTemplate);
}
@Override
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
return getItemsLogData(startTime, endTime, "Acquire", clazz);
}
public <T extends IndicatorsLog> List<T> getItemsLogData(String startTime, String endTime, String deltaType, Class<T> clazz) {
Criteria criteria = makeCriteria(startTime, endTime, "logDay");
UnwindOperation unwindOperation = Aggregation.unwind("itemDetails");
UnwindOperation unwindOperation2 = Aggregation.unwind("itemDetails.items");
MatchOperation matchOp = Aggregation.match(
Criteria.where("itemDetails.items.countDeltaType").is(deltaType)
);
AggregationOperation groupOp = context -> new Document("$group",
new Document("_id", new Document("logDay", "$logDay")
.append("itemMID", "$itemDetails.items.itemMID")
.append("action", "$itemDetails.items.action")
)
.append("actionCount", new Document("$sum", "$itemDetails.items.deltaCount"))
.append("itemName", new Document("$first", "$itemDetails.items.itemName"))
);
AggregationOperation groupOp2 = context -> new Document("$group",
new Document("_id", new Document("logDay", "$_id.logDay")
.append("itemMID", "$_id.itemMID")
)
.append("totalDeltaCount", new Document("$sum", "$actionCount"))
.append("itemName", new Document("$first", "$itemName"))
.append("actions", new Document("$push",
new Document("k", "$_id.action").append("v", "$actionCount")
))
);
AddFieldsOperation addFieldsOp = Aggregation.addFields()
.addField("actionSummary")
.withValue(ArrayOperators.ArrayToObject.arrayToObject("$actions"))
.build();
AggregationOperation projectOp = context -> new Document("$project", new Document()
.append("_id", 0)
.append("logDay", "$_id.logDay")
.append("itemId", "$_id.itemMID")
.append("itemName", 1)
.append("totalDeltaCount", 1)
.append("actionSummary", 1)
);
List<AggregationOperation> operations = List.of(
Aggregation.match(criteria),
unwindOperation,
unwindOperation2,
matchOp,
groupOp,
groupOp2,
addFieldsOp,
projectOp,
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
);
Aggregation aggregation = Aggregation.newAggregation(operations);
return mongoTemplate.aggregate(
aggregation.withOptions(AggregationOptions.builder().allowDiskUse(true).build())
, AdminConstants.MONGO_DB_COLLECTION_ITEM
, clazz
).getMappedResults();
}
}

View File

@@ -0,0 +1,178 @@
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.bson.Document;
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.*;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class IndicatorsRetentionLoadService extends IndicatorsLogLoadServiceBase {
public IndicatorsRetentionLoadService(
@Qualifier("mongoIndicatorTemplate") MongoTemplate mongoTemplate
) {
super(mongoTemplate);
}
@Override
public <T extends IndicatorsLog> List<T> getIndicatorsLogData(String startTime, String endTime, Class<T> clazz) {
LookupOperation lookupOperation = LookupOperation.newLookup()
.from("userCreate")
.localField("userGuid")
.foreignField("userGuid")
.as("userInfo");
UnwindOperation unwindOperation = Aggregation.unwind("userInfo");
Criteria criteria = makeCriteria(startTime, endTime, "userInfo.logDay");
AddFieldsOperation addFieldsOp = Aggregation.addFields()
.addField("createDate")
.withValue(DateOperators.dateFromString("$userInfo.logDay"))
.addField("loginDate")
.withValue(DateOperators.dateFromString("$logDay"))
.build();
AggregationOperation addFieldsOp2 = context -> new Document("$addFields",
new Document("daysSinceCreate",
new Document("$dateDiff", new Document()
.append("startDate", "$createDate")
.append("endDate", "$loginDate")
.append("unit", "day")
)
)
);
MatchOperation matchOp = Aggregation.match(
Criteria.where("daysSinceCreate").gte(1).lte(30)
);
AggregationOperation groupOp = context -> new Document("$group",
new Document("_id", new Document("cohortDate", "$userInfo.logDay")
.append("userGuid", "$userGuid"))
.append("loginDays", new Document("$addToSet", "$daysSinceCreate"))
);
AggregationOperation groupOp2 = context -> new Document("$group",
new Document("_id", "$_id.cohortDate")
.append("totalUsers", new Document("$sum", 1))
.append("d1_retained", new Document("$sum",
new Document("$cond", List.of(
new Document("$in", List.of(1, "$loginDays")),
1,
0
))
))
.append("d7_retention_users", new Document("$sum",
new Document("$cond", List.of(
new Document("$gt", List.of(
new Document("$size", new Document("$filter", new Document()
.append("input", "$loginDays")
.append("cond", new Document("$and", List.of(
new Document("$gte", List.of("$$this", 1)),
new Document("$lte", List.of("$$this", 7)))
))
)),
0
)),
1,
0
))
))
.append("d30_retention_users", new Document("$sum",
new Document("$cond", List.of(
new Document("$gt", List.of(
new Document("$size", new Document("$filter", new Document()
.append("input", "$loginDays")
.append("cond", new Document("$and", List.of(
new Document("$gte", List.of("$$this", 1)),
new Document("$lte", List.of("$$this", 30)))
))
)),
0
)),
1,
0
))
))
);
AggregationOperation lookupOp = context -> new Document("$lookup",
new Document("from", "userCreate")
.append("let", new Document("cohortDate", "$_id"))
.append("pipeline", List.of(
new Document("$match", new Document("$expr",
new Document("$eq", List.of("$logDay", "$$cohortDate"))
)),
new Document("$count", "totalCreated")
))
.append("as", "cohortInfo")
);
UnwindOperation unwindOp = Aggregation.unwind("cohortInfo", true);
AggregationOperation projectOp = context -> new Document("$project", new Document()
.append("_id", 0)
.append("logDay", "$_id")
.append("totalCreate", new Document("$ifNull", List.of("$cohortInfo.totalCreated", 0)))
.append("totalActiveUsers", "$totalUsers")
.append("d1_users", 1)
.append("d7_users", 1)
.append("d30_users", 1)
.append("d1_rate", new Document("$cond", List.of(
new Document("$gt", List.of("$cohortInfo.totalCreated", 0)),
new Document("$multiply", List.of(
new Document("$divide", List.of("$d1_retained", "$cohortInfo.totalCreated")),
100
)),
0
)))
.append("d7_rate", new Document("$cond", List.of(
new Document("$gt", List.of("$cohortInfo.totalCreated", 0)),
new Document("$multiply", List.of(
new Document("$divide", List.of("$d7_retention_users", "$cohortInfo.totalCreated")),
100
)),
0
)))
.append("d30_rate", new Document("$cond", List.of(
new Document("$gt", List.of("$cohortInfo.totalCreated", 0)),
new Document("$multiply", List.of(
new Document("$divide", List.of("$d30_retention_users", "$cohortInfo.totalCreated")),
100
)),
0
)))
);
List<AggregationOperation> operations = List.of(
lookupOperation,
unwindOperation,
Aggregation.match(criteria),
addFieldsOp,
addFieldsOp2,
matchOp,
groupOp,
groupOp2,
lookupOp,
unwindOp,
projectOp,
Aggregation.sort(Sort.Direction.ASC, AdminConstants.MONGO_DB_KEY_LOGDAY)
);
Aggregation aggregation = Aggregation.newAggregation(operations);
return mongoTemplate.aggregate(
aggregation.withOptions(AggregationOptions.builder().allowDiskUse(true).build())
, AdminConstants.MONGO_DB_COLLECTION_LOGIN
, clazz
).getMappedResults();
}
}

View File

@@ -22,7 +22,7 @@ public abstract class IndicatorsLogLoadServiceBase implements IndicatorsLogLoadS
return new Criteria() return new Criteria()
.andOperator( .andOperator(
Criteria.where(dateFieldName).gte(startDate), Criteria.where(dateFieldName).gte(startDate),
Criteria.where(dateFieldName).lt(endDate) Criteria.where(dateFieldName).lte(endDate)
); );
} }

View File

@@ -0,0 +1,28 @@
package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
@Getter
@Setter
public class AssetsIndicatorInfo implements IndicatorsLog {
@Indexed
private String logDay;
private Double gold;
private Double sapphire;
private Double calium;
private Double ruby;
private Integer item_11570001;
private Integer item_11570002;
private Integer item_13080002;
private Integer item_13080004;
private Integer item_13080005;
private Integer item_13080006;
private Integer item_13080007;
private Integer item_13080008;
private Integer item_13080009;
private Integer userCount;
}

View File

@@ -0,0 +1,19 @@
package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import java.util.Map;
@Getter
@Setter
public class CurrencyIndicatorInfo implements IndicatorsLog {
@Indexed
private String logDay;
private Double totalDeltaAmount;
private Map<String, Double> actionSummary;
private String currencyType;
}

View File

@@ -0,0 +1,64 @@
package com.caliverse.admin.Indicators.entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
@Getter
@Setter
@Document(collection = "currency")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}")
})
public class CurrencyItemLogInfo extends LogInfoBase{
private String id;
@Indexed
private String logDay;
private String accountId;
@Indexed
private String userGuid;
private String userNickname;
private String tranId;
private String action;
private String logTime;
private String currencyType;
private String amountDeltaType;
private Double deltaAmount;
private Double currencyAmount;
private String itemIDs;
public CurrencyItemLogInfo(String id,
String logDay,
String accountId,
String userGuid,
String userNickname,
String tranId,
String action,
String logTime,
String currencyType,
String amountDeltaType,
Double deltaAmount,
Double currencyAmount,
String itemIDs
) {
super(StatisticsType.CURRENCY);
this.id = id;
this.logDay = logDay;
this.accountId = accountId;
this.userGuid = userGuid;
this.userNickname = userNickname;
this.tranId = tranId;
this.action = action;
this.logTime = logTime;
this.currencyType = currencyType;
this.amountDeltaType = amountDeltaType;
this.deltaAmount = deltaAmount;
this.currencyAmount = currencyAmount;
this.itemIDs = itemIDs;
}
}

View File

@@ -3,6 +3,9 @@ package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.logs.Indicatordomain.CurrencyMongoLog; import com.caliverse.admin.logs.Indicatordomain.CurrencyMongoLog;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List; import java.util.List;
@@ -11,9 +14,14 @@ import java.util.Map;
@Getter @Getter
@Setter @Setter
@Document(collection = "currency") @Document(collection = "currency")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}")
})
public class CurrencyLogInfo extends LogInfoBase{ public class CurrencyLogInfo extends LogInfoBase{
@Indexed
private String logDay; private String logDay;
private String accountId; private String accountId;
@Indexed
private String userGuid; private String userGuid;
private String userNickname; private String userNickname;
private Double sapphireAcquired; private Double sapphireAcquired;

View File

@@ -0,0 +1,62 @@
package com.caliverse.admin.Indicators.entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;
@Getter
@Setter
@Document(collection = "item")
public class ItemDetailLogInfo extends LogInfoBase{
private String id;
private String logDay;
private String logTime;
private String accountId;
private String userGuid;
private String userNickname;
private String tranId;
private String action;
private Integer itemId;
private String itemName;
private String itemTypeLarge;
private String itemTypeSmall;
private String countDeltaType;
private Integer deltaCount;
private Integer stackCount;
public ItemDetailLogInfo(String id,
String logDay,
String accountId,
String userGuid,
String userNickname,
String tranId,
String action,
String logTime,
Integer itemId,
String itemName,
String itemTypeLarge,
String itemTypeSmall,
String countDeltaType,
Integer deltaCount,
Integer stackCount
) {
super(StatisticsType.ITEM);
this.id = id;
this.logDay = logDay;
this.accountId = accountId;
this.userGuid = userGuid;
this.userNickname = userNickname;
this.tranId = tranId;
this.action = action;
this.logTime = logTime;
this.itemId = itemId;
this.itemName = itemName;
this.itemTypeLarge = itemTypeLarge;
this.itemTypeSmall = itemTypeSmall;
this.countDeltaType = countDeltaType;
this.deltaCount = deltaCount;
this.stackCount = stackCount;
}
}

View File

@@ -0,0 +1,20 @@
package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import java.util.Map;
@Getter
@Setter
public class ItemIndicatorInfo implements IndicatorsLog {
@Indexed
private String logDay;
private Long totalDeltaCount;
private Map<String, Double> actionSummary;
private String itemId;
private String itemName;
}

View File

@@ -0,0 +1,49 @@
package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.logs.Indicatordomain.ItemMongoLog;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Getter
@Setter
@Document(collection = "item")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}")
})
public class ItemLogInfo extends LogInfoBase{
@Indexed
private String logDay;
private String accountId;
@Indexed
private String userGuid;
private String userNickname;
private Integer totalItems;
private List<ItemMongoLog.ItemDetail> itemDetails;
private List<ItemMongoLog.ItemTypeLargeStat> itemTypeLargeStats;
public ItemLogInfo(String logDay,
String accountId,
String userGuid,
String userNickname,
Integer totalItems,
List<ItemMongoLog.ItemDetail> itemDetails,
List<ItemMongoLog.ItemTypeLargeStat> itemTypeLargeStats
) {
super(StatisticsType.ITEM);
this.logDay = logDay;
this.accountId = accountId;
this.userGuid = userGuid;
this.userNickname = userNickname;
this.totalItems = totalItems;
this.itemDetails = itemDetails;
this.itemTypeLargeStats = itemTypeLargeStats;
}
}

View File

@@ -0,0 +1,42 @@
package com.caliverse.admin.Indicators.entity;
import com.caliverse.admin.Indicators.Indicatordomain.IndicatorsLog;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class RetentionInfo implements IndicatorsLog {
private String logDay;
private Integer totalCreate;
private Integer totalActiveUsers;
private Integer d1_users;
private Integer d7_users;
private Integer d30_users;
private Integer d1_rate;
private Integer d7_rate;
private Integer d30_rate;
public RetentionInfo(String logDay,
Integer totalCreate,
Integer totalActiveUsers,
Integer d1_users,
Integer d7_users,
Integer d30_users,
Integer d1_rate,
Integer d7_rate,
Integer d30_rate
) {
this.logDay = logDay;
this.totalCreate = totalCreate;
this.totalActiveUsers = totalActiveUsers;
this.d1_users = d1_users;
this.d7_users = d7_users;
this.d30_users = d30_users;
this.d1_rate = d1_rate;
this.d7_rate = d7_rate;
this.d30_rate = d30_rate;
}
}

View File

@@ -0,0 +1,83 @@
package com.caliverse.admin.Indicators.entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDateTime;
@Getter
@Setter
@Document(collection = "assets")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}", background = true),
@CompoundIndex(name = "logDay_idx", def = "{'logDay': 1}", background = true)
})
public class SnapshotLogInfo extends LogInfoBase{
@Indexed
private String logDay;
private String accountId;
@Indexed
private String userGuid;
private String userNickname;
private Double gold;
private Double sapphire;
private Double calium;
private Double ruby;
private Integer item_11570001;
private Integer item_11570002;
private Integer item_13080002;
private Integer item_13080004;
private Integer item_13080005;
private Integer item_13080006;
private Integer item_13080007;
private Integer item_13080008;
private Integer item_13080009;
private LocalDateTime lastLogoutTime;
public SnapshotLogInfo(String logDay,
String accountId,
String userGuid,
String userNickname,
Double gold,
Double sapphire,
Double calium,
Double ruby,
Integer item_11570001,
Integer item_11570002,
Integer item_13080002,
Integer item_13080004,
Integer item_13080005,
Integer item_13080006,
Integer item_13080007,
Integer item_13080008,
Integer item_13080009,
LocalDateTime lastLogoutTime
) {
super(StatisticsType.SNAPSHOT);
this.logDay = logDay;
this.accountId = accountId;
this.userGuid = userGuid;
this.userNickname = userNickname;
this.gold = gold;
this.sapphire = sapphire;
this.calium = calium;
this.ruby = ruby;
this.item_11570001 = item_11570001;
this.item_11570002 = item_11570002;
this.item_13080002 = item_13080002;
this.item_13080004 = item_13080004;
this.item_13080005 = item_13080005;
this.item_13080006 = item_13080006;
this.item_13080007 = item_13080007;
this.item_13080008 = item_13080008;
this.item_13080009 = item_13080009;
this.lastLogoutTime = lastLogoutTime;
}
}

View File

@@ -17,7 +17,9 @@ public enum StatisticsType {
MONEY, MONEY,
USER_CREATE, USER_CREATE,
USER_LOGIN, USER_LOGIN,
CURRENCY CURRENCY,
ITEM,
SNAPSHOT
; ;
public static StatisticsType getStatisticsType(String type) { public static StatisticsType getStatisticsType(String type) {

View File

@@ -2,19 +2,29 @@ package com.caliverse.admin.Indicators.entity;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDateTime;
@Getter @Getter
@Setter @Setter
@Document(collection = "userCreate") @Document(collection = "userCreate")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}")
})
public class UserCreateLogInfo extends LogInfoBase{ public class UserCreateLogInfo extends LogInfoBase{
@Indexed
private String logDay; private String logDay;
private String accountId; private String accountId;
@Indexed
private String userGuid; private String userGuid;
private String userNickname; private String userNickname;
private String createdTime; private LocalDateTime createdTime;
public UserCreateLogInfo(String logDay, String accountId, String userGuid, String userNickname, String createdTime) { public UserCreateLogInfo(String logDay, String accountId, String userGuid, String userNickname, LocalDateTime createdTime) {
super(StatisticsType.USER_CREATE); super(StatisticsType.USER_CREATE);
this.logDay = logDay; this.logDay = logDay;

View File

@@ -0,0 +1,48 @@
package com.caliverse.admin.Indicators.entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDateTime;
@Getter
@Setter
public class UserLoginDetailLogInfo extends LogInfoBase{
private String logDay;
private String accountId;
private String userGuid;
private String userNickname;
private String tranId;
private LocalDateTime loginTime;
private LocalDateTime logoutTime;
private String serverType;
private String languageType;
private Double playtime;
public UserLoginDetailLogInfo(String logDay,
String accountId,
String userGuid,
String userNickname,
String tranId,
LocalDateTime loginTime,
LocalDateTime logoutTime,
String serverType,
String languageType,
Double playtime
) {
super(StatisticsType.USER_LOGIN);
this.logDay = logDay;
this.accountId = accountId;
this.userGuid = userGuid;
this.userNickname = userNickname;
this.tranId = tranId;
this.loginTime = loginTime;
this.logoutTime = logoutTime;
this.serverType = serverType;
this.languageType = languageType;
this.playtime = playtime;
}
}

View File

@@ -2,6 +2,9 @@ package com.caliverse.admin.Indicators.entity;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List; import java.util.List;
@@ -10,9 +13,15 @@ import java.util.Map;
@Getter @Getter
@Setter @Setter
@Document(collection = "userLogin") @Document(collection = "userLogin")
@CompoundIndexes({
@CompoundIndex(name = "logDay_userGuid_idx", def = "{'logDay': 1, 'userGuid': 1}")
})
public class UserLoginLogInfo extends LogInfoBase{ public class UserLoginLogInfo extends LogInfoBase{
@Indexed
private String logDay; private String logDay;
private String accountId; private String accountId;
@Indexed
private String userGuid; private String userGuid;
private String userNickname; private String userNickname;
private List<Map<String, Object>> sessions; private List<Map<String, Object>> sessions;

View File

@@ -4,4 +4,5 @@ import com.caliverse.admin.Indicators.entity.CurrencyLogInfo;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
public interface IndicatorCurrencyRepository extends MongoRepository<CurrencyLogInfo, String> { public interface IndicatorCurrencyRepository extends MongoRepository<CurrencyLogInfo, String> {
boolean existsByLogDayAndUserGuid(String logDay, String userGuid);
} }

View File

@@ -0,0 +1,8 @@
package com.caliverse.admin.Indicators.indicatorrepository;
import com.caliverse.admin.Indicators.entity.ItemLogInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface IndicatorItemRepository extends MongoRepository<ItemLogInfo, String> {
boolean existsByLogDayAndUserGuid(String logDay, String userGuid);
}

View File

@@ -0,0 +1,8 @@
package com.caliverse.admin.Indicators.indicatorrepository;
import com.caliverse.admin.Indicators.entity.SnapshotLogInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface IndicatorSnapshotRepository extends MongoRepository<SnapshotLogInfo, String> {
boolean existsByLogDayAndUserGuid(String logDay, String userGuid);
}

View File

@@ -4,4 +4,5 @@ import com.caliverse.admin.Indicators.entity.UserCreateLogInfo;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
public interface IndicatorUserCreateRepository extends MongoRepository<UserCreateLogInfo, String> { public interface IndicatorUserCreateRepository extends MongoRepository<UserCreateLogInfo, String> {
boolean existsByLogDayAndUserGuid(String logDay, String userGuid);
} }

View File

@@ -4,4 +4,5 @@ import com.caliverse.admin.Indicators.entity.UserLoginLogInfo;
import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.data.mongodb.repository.MongoRepository;
public interface IndicatorUserLoginRepository extends MongoRepository<UserLoginLogInfo, String> { public interface IndicatorUserLoginRepository extends MongoRepository<UserLoginLogInfo, String> {
boolean existsByLogDayAndUserGuid(String logDay, String userGuid);
} }

View File

@@ -4,40 +4,83 @@ import com.caliverse.admin.domain.RabbitMq.message.LogoutReasonType;
import com.caliverse.admin.domain.RabbitMq.message.MailItem; import com.caliverse.admin.domain.RabbitMq.message.MailItem;
import com.caliverse.admin.domain.RabbitMq.message.OperationSystemMessage; import com.caliverse.admin.domain.RabbitMq.message.OperationSystemMessage;
import com.caliverse.admin.domain.RabbitMq.message.ServerMessage; import com.caliverse.admin.domain.RabbitMq.message.ServerMessage;
import com.caliverse.admin.domain.entity.log.LogStatus;
import com.caliverse.admin.global.common.constants.CommonConstants;
import com.caliverse.admin.global.common.utils.CommonUtils;
import com.caliverse.admin.mongodb.service.BusinessLogService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture;
@Slf4j @Slf4j
@Service @Service
public class MessageHandlerService { public class MessageHandlerService {
private final RabbitMqService rabbitMqService; private final RabbitMqService rabbitMqService;
private final BusinessLogService businessLogService;
public MessageHandlerService(RabbitMqService rabbitMqService) { public MessageHandlerService(RabbitMqService rabbitMqService, BusinessLogService businessLogService) {
this.rabbitMqService = rabbitMqService; this.rabbitMqService = rabbitMqService;
this.businessLogService = businessLogService;
}
private void logMessage(LogStatus logStatus, String message, String queName, String serverName, Object content){
CompletableFuture<String> logFuture = businessLogService.logMessageQueue(
logStatus,
message,
CommonUtils.getAdmin() == null ? CommonConstants.SYSTEM : CommonUtils.getAdmin().getEmail(),
CommonUtils.getClientIp() == null ? CommonConstants.SYSTEM : CommonUtils.getClientIp(),
queName,
serverName,
content
);
logFuture.whenComplete((result, throwable) -> {
if (throwable != null) {
log.warn("MessageQueue Business log failed for info: {}, error: {}", CommonUtils.objectByString(content), throwable.getMessage());
}
});
} }
public void sendUserKickMessage(String userGuid, String serverName, String reason){ public void sendUserKickMessage(String userGuid, String serverName, String reason){
var user_kick_builder = ServerMessage.MOS2GS_NTF_USER_KICK.newBuilder(); try {
user_kick_builder.setUserGuid(userGuid); var user_kick_builder = ServerMessage.MOS2GS_NTF_USER_KICK.newBuilder();
user_kick_builder.setKickReasonMsg(String.format("backoffice %s", reason)); user_kick_builder.setUserGuid(userGuid);
user_kick_builder.setLogoutReasonType(LogoutReasonType.LogoutReasonType_None); user_kick_builder.setKickReasonMsg(String.format("backoffice %s", reason));
user_kick_builder.setLogoutReasonType(LogoutReasonType.LogoutReasonType_None);
rabbitMqService.SendMessage(user_kick_builder.build(), serverName); rabbitMqService.SendMessage(user_kick_builder.build(), serverName);
log.info("Send User Kick Message to Server: {}, user: {}", serverName, userGuid);
logMessage(
LogStatus.SUCCESS,
"",
"sendUserKickMessage",
serverName,
user_kick_builder.build()
);
}catch(Exception e){
log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("User Kick Fail UserGuid: %s, reason: %s, error: %s", userGuid, reason, e.getMessage()),
"sendUserKickMessage",
serverName,
null
);
}
} }
public void sendNoticeMessage(List<String> serverList, String type, List<OperationSystemMessage> msgList, List<OperationSystemMessage> senderList){ public void sendNoticeMessage(List<String> serverList, String type, List<OperationSystemMessage> msgList, List<OperationSystemMessage> senderList){
try { try {
var noticeBuilder = ServerMessage.MOS2GS_NTF_NOTICE_CHAT.newBuilder(); var noticeBuilder = ServerMessage.MOS2GS_NTF_NOTICE_CHAT.newBuilder();
noticeBuilder.addNoticeType(type); noticeBuilder.addNoticeType(type);
// noticeBuilder.setNoticeType(0, type);
// int msgIdx = 0;
for (OperationSystemMessage msg : msgList) { for (OperationSystemMessage msg : msgList) {
noticeBuilder.addChatMessage(msg); noticeBuilder.addChatMessage(msg);
// noticeBuilder.setChatMessage(msgIdx, msg);
// msgIdx++;
} }
for (OperationSystemMessage sender : senderList) { for (OperationSystemMessage sender : senderList) {
noticeBuilder.addSender(sender); noticeBuilder.addSender(sender);
@@ -45,33 +88,154 @@ public class MessageHandlerService {
for (String server : serverList) { for (String server : serverList) {
rabbitMqService.SendMessage(noticeBuilder.build(), server); rabbitMqService.SendMessage(noticeBuilder.build(), server);
} }
log.info("Send Notice Message to Server: {}, type: {}", serverList.toString(), type);
logMessage(
LogStatus.SUCCESS,
"",
"sendNoticeMessage",
serverList.toString(),
noticeBuilder.build()
);
}catch (Exception e){ }catch (Exception e){
log.error(e.getMessage()); log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("Send Notice Fail Type: %s, senderList: %s, msgList: %s, error: %s", type, senderList.toString(), msgList.toString(), e.getMessage()),
"sendNoticeMessage",
serverList.toString(),
null
);
} }
} }
public void sendMailMessage(String serverName, String userGuid, String mailType, List<OperationSystemMessage> titleList, List<OperationSystemMessage> msgList public void sendMailMessage(String serverName, String userGuid, String mailType, List<OperationSystemMessage> titleList, List<OperationSystemMessage> msgList
, List<MailItem> itemList, List<OperationSystemMessage> senderList){ , List<MailItem> itemList, List<OperationSystemMessage> senderList){
var mail_builder = ServerMessage.MOS2GS_NTF_MAIL_SEND.newBuilder(); try {
mail_builder.setUserGuid(userGuid); var mail_builder = ServerMessage.MOS2GS_NTF_MAIL_SEND.newBuilder();
mail_builder.setMailType(mailType); mail_builder.setUserGuid(userGuid);
mail_builder.setMailType(mailType);
for(OperationSystemMessage title : titleList){ for (OperationSystemMessage title : titleList) {
mail_builder.addTitle(title); mail_builder.addTitle(title);
} }
for(OperationSystemMessage msg : msgList){ for (OperationSystemMessage msg : msgList) {
mail_builder.addMsg(msg); mail_builder.addMsg(msg);
} }
for(MailItem item : itemList){ for (MailItem item : itemList) {
mail_builder.addItemList(item); mail_builder.addItemList(item);
} }
for(OperationSystemMessage sender : senderList){ for (OperationSystemMessage sender : senderList) {
mail_builder.addSender(sender); mail_builder.addSender(sender);
} }
rabbitMqService.SendMessage(mail_builder.build(), serverName); rabbitMqService.SendMessage(mail_builder.build(), serverName);
log.info("Send Mail Message to Server: {}, user: {}", serverName, userGuid);
logMessage(
LogStatus.SUCCESS,
"",
"sendMailMessage",
serverName,
mail_builder.build()
);
}catch (Exception e){
log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("Send Mail Fail UserGuid: %s, mailType: %s, senderList: %s, titleList: %s, itemList: %s, error: %s",
userGuid, mailType, senderList.toString(), titleList.toString(), itemList.toString(), e.getMessage()),
"sendMailMessage",
serverName,
null
);
}
} }
public void sendBannerMessage(String serverName){
try {
var banner_builder = ServerMessage.MOS2GS_NTF_UPDATE_BANNER.newBuilder();
rabbitMqService.SendMessage(banner_builder.build(), serverName);
log.info("Send Banner Message to Server: {}", serverName);
logMessage(
LogStatus.SUCCESS,
"",
"sendBannerMessage",
serverName,
banner_builder.build()
);
}catch(Exception e){
log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("Banner Fail error: %s", e.getMessage()),
"sendBannerMessage",
serverName,
null
);
}
}
public void sendQuestTaskCompleteMessage(String serverName, String accountId, int reqId, String questKey, int taskId){
try {
var quest_task_builder = ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETE.newBuilder();
quest_task_builder.setAccountId(accountId);
quest_task_builder.setReqId(reqId);
quest_task_builder.setQuestKey(questKey);
quest_task_builder.setTaskId(taskId);
rabbitMqService.SendMessage(quest_task_builder.build(), serverName);
log.info("Send Quest Task Complete Message to Server: {}, accountId: {}, questKey: {}, taskId: {}", serverName, accountId, questKey, taskId);
logMessage(
LogStatus.SUCCESS,
"",
"sendQuestTaskCompleteMessage",
serverName,
quest_task_builder.build()
);
}catch(Exception e){
log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("Quest Task Complete Fail accountId: %s, questKey: %s, taskId: %s, error: %s", accountId, questKey, taskId, e.getMessage()),
"sendQuestTaskCompleteMessage",
serverName,
null
);
}
}
public void sendRankingScheduleMessage(String serverName){
try {
var ranking_schedule_builder = ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULE.newBuilder();
rabbitMqService.SendMessage(ranking_schedule_builder.build(), serverName);
log.info("Send Ranking Schedule Message to Server: {}", serverName);
logMessage(
LogStatus.SUCCESS,
"",
"sendRankingScheduleMessage",
serverName,
ranking_schedule_builder.build()
);
}catch(Exception e){
log.error(e.getMessage());
logMessage(
LogStatus.FAILURE,
String.format("Ranking Schedule Fail error: %s", e.getMessage()),
"sendRankingScheduleMessage",
serverName,
null
);
}
}
} }

View File

@@ -0,0 +1,113 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code BannerType}
*/
public enum BannerType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>BannerType_None = 0;</code>
*/
BannerType_None(0),
/**
* <code>BannerType_MainMenu = 1;</code>
*/
BannerType_MainMenu(1),
UNRECOGNIZED(-1),
;
/**
* <code>BannerType_None = 0;</code>
*/
public static final int BannerType_None_VALUE = 0;
/**
* <code>BannerType_MainMenu = 1;</code>
*/
public static final int BannerType_MainMenu_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BannerType 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 BannerType forNumber(int value) {
switch (value) {
case 0: return BannerType_None;
case 1: return BannerType_MainMenu;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<BannerType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BannerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<BannerType>() {
public BannerType findValueByNumber(int number) {
return BannerType.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(35);
}
private static final BannerType[] VALUES = values();
public static BannerType 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 BannerType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:BannerType)
}

View File

@@ -14,6 +14,11 @@ public final class DefineCommon {
registerAllExtensions( registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry); (com.google.protobuf.ExtensionRegistryLite) registry);
} }
static final com.google.protobuf.Descriptors.Descriptor
internal_static_ServerUrlWithLanguage_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ServerUrlWithLanguage_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor static final com.google.protobuf.Descriptors.Descriptor
internal_static_ServerUrl_descriptor; internal_static_ServerUrl_descriptor;
static final static final
@@ -104,6 +109,21 @@ public final class DefineCommon {
static final static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MoneyDeltaAmount_fieldAccessorTable; internal_static_MoneyDeltaAmount_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MatchUserInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MatchUserInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MatchStatusInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MatchStatusInfo_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_MatchRegionInfo_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_MatchRegionInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() { getDescriptor() {
@@ -114,275 +134,331 @@ public final class DefineCommon {
static { static {
java.lang.String[] descriptorData = { java.lang.String[] descriptorData = {
"\n\023Define_Common.proto\032\037google/protobuf/t" + "\n\023Define_Common.proto\032\037google/protobuf/t" +
"imestamp.proto\"E\n\tServerUrl\022%\n\rserverUrl" + "imestamp.proto\"K\n\025ServerUrlWithLanguage\022" +
"Type\030\001 \001(\0162\016.ServerUrlType\022\021\n\ttargetUrl\030" + "\037\n\010langType\030\001 \001(\0162\r.LanguageType\022\021\n\ttarg" +
"\013 \001(\t\"4\n\013ChannelInfo\022\017\n\007channel\030\001 \001(\005\022\024\n" + "etUrl\030\002 \001(\t\"j\n\tServerUrl\022%\n\rserverUrlTyp" +
"\014trafficlevel\030\002 \001(\005\"\264\001\n\021ServerConnectInf" + "e\030\001 \001(\0162\016.ServerUrlType\0226\n\026serverUrlWith" +
"o\022\022\n\nserverAddr\030\001 \001(\t\022\022\n\nserverPort\030\002 \001(" + "Languages\030\002 \003(\0132\026.ServerUrlWithLanguage\"" +
"\005\022\013\n\003otp\030\003 \001(\t\022\016\n\006roomId\030\004 \001(\t\022\021\n\003pos\030\005 " + "4\n\013ChannelInfo\022\017\n\007channel\030\001 \001(\005\022\024\n\014traff" +
"\001(\0132\004.Pos\022\024\n\ninstanceId\030\006 \001(\005H\000\022!\n\nmyhom" + "iclevel\030\002 \001(\005\"\264\001\n\021ServerConnectInfo\022\022\n\ns" +
"eInfo\030\007 \001(\0132\013.MyHomeInfoH\000B\016\n\014instanceTy" + "erverAddr\030\001 \001(\t\022\022\n\nserverPort\030\002 \001(\005\022\013\n\003o" +
"pe\"[\n\nMyHomeInfo\022\022\n\nmyhomeGuid\030\001 \001(\t\022\022\n\n" + "tp\030\003 \001(\t\022\016\n\006roomId\030\004 \001(\t\022\021\n\003pos\030\005 \001(\0132\004." +
"myhomeName\030\002 \001(\t\022%\n\rmyhomeUgcInfo\030\003 \001(\0132" + "Pos\022\024\n\ninstanceId\030\006 \001(\005H\000\022!\n\nmyhomeInfo\030" +
"\016.MyhomeUgcInfo\"\257\001\n\rMyhomeUgcInfo\022\020\n\010roo" + "\007 \001(\0132\013.MyHomeInfoH\000B\016\n\014instanceType\"[\n\n" +
"mType\030\001 \001(\005\022\017\n\007version\030\002 \001(\005\022)\n\016framewor" + "MyHomeInfo\022\022\n\nmyhomeGuid\030\001 \001(\t\022\022\n\nmyhome" +
"kInfos\030\003 \003(\0132\021.UgcFrameworkInfo\022#\n\013ancho" + "Name\030\002 \001(\t\022%\n\rmyhomeUgcInfo\030\003 \001(\0132\016.Myho" +
"rInfos\030\004 \003(\0132\016.UgcAnchorInfo\022+\n\020crafterB" + "meUgcInfo\"\257\001\n\rMyhomeUgcInfo\022\020\n\010roomType\030" +
"eaconPos\030\005 \003(\0132\021.CrafterBeaconPos\"\311\001\n\020Ug" + "\001 \001(\005\022\017\n\007version\030\002 \001(\005\022)\n\016frameworkInfos" +
"cFrameworkInfo\022\026\n\016interiorItemId\030\001 \001(\005\022\r" + "\030\003 \003(\0132\021.UgcFrameworkInfo\022#\n\013anchorInfos" +
"\n\005floor\030\002 \001(\005\022\037\n\ncoordinate\030\003 \001(\0132\013.Coor" + "\030\004 \003(\0132\016.UgcAnchorInfo\022+\n\020crafterBeaconP" +
"dinate\022\033\n\010rotation\030\004 \001(\0132\t.Rotation\022\022\n\nm" + "os\030\005 \003(\0132\021.CrafterBeaconPos\"\311\001\n\020UgcFrame" +
"aterialId\030\005 \001(\005\022<\n\031UgcFrameworkMaterialI" + "workInfo\022\026\n\016interiorItemId\030\001 \001(\005\022\r\n\005floo" +
"nfos\030\006 \003(\0132\031.UgcFrameworkMaterialInfo\"\226\001" + "r\030\002 \001(\005\022\037\n\ncoordinate\030\003 \001(\0132\013.Coordinate" +
"\n\030UgcFrameworkMaterialInfo\022\014\n\004type\030\001 \001(\t" + "\022\033\n\010rotation\030\004 \001(\0132\t.Rotation\022\022\n\nmateria" +
"\022\022\n\nmaterialId\030\002 \001(\005\022\034\n\014color_mask_r\030\003 \001" + "lId\030\005 \001(\005\022<\n\031UgcFrameworkMaterialInfos\030\006" +
"(\0132\006.Color\022\034\n\014color_mask_g\030\004 \001(\0132\006.Color" + " \003(\0132\031.UgcFrameworkMaterialInfo\"\226\001\n\030UgcF" +
"\022\034\n\014color_mask_b\030\005 \001(\0132\006.Color\"3\n\005Color\022" + "rameworkMaterialInfo\022\014\n\004type\030\001 \001(\t\022\022\n\nma" +
"\t\n\001r\030\001 \001(\002\022\t\n\001g\030\002 \001(\002\022\t\n\001b\030\003 \001(\002\022\t\n\001a\030\004 " + "terialId\030\002 \001(\005\022\034\n\014color_mask_r\030\003 \001(\0132\006.C" +
"\001(\002\"\232\001\n\rUgcAnchorInfo\022\022\n\nanchorGuid\030\001 \001(" + "olor\022\034\n\014color_mask_g\030\004 \001(\0132\006.Color\022\034\n\014co" +
"\t\022\022\n\nanchorType\030\002 \001(\t\022\017\n\007tableId\030\003 \001(\005\022\022" + "lor_mask_b\030\005 \001(\0132\006.Color\"3\n\005Color\022\t\n\001r\030\001" +
"\n\nentityGuid\030\004 \001(\t\022\037\n\ncoordinate\030\005 \001(\0132\013" + " \001(\002\022\t\n\001g\030\002 \001(\002\022\t\n\001b\030\003 \001(\002\022\t\n\001a\030\004 \001(\002\"\232\001" +
".Coordinate\022\033\n\010rotation\030\006 \001(\0132\t.Rotation" + "\n\rUgcAnchorInfo\022\022\n\nanchorGuid\030\001 \001(\t\022\022\n\na" +
"\"F\n\020CrafterBeaconPos\022\022\n\nanchorGuid\030\001 \001(\t" + "nchorType\030\002 \001(\t\022\017\n\007tableId\030\003 \001(\005\022\022\n\nenti" +
"\022\036\n\020crafterBeaconPos\030\002 \001(\0132\004.Pos\"-\n\nCoor" + "tyGuid\030\004 \001(\t\022\037\n\ncoordinate\030\005 \001(\0132\013.Coord" +
"dinate\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\"" + "inate\022\033\n\010rotation\030\006 \001(\0132\t.Rotation\"F\n\020Cr" +
"4\n\010Rotation\022\r\n\005Pitch\030\001 \001(\002\022\013\n\003Yaw\030\002 \001(\002\022" + "afterBeaconPos\022\022\n\nanchorGuid\030\001 \001(\t\022\036\n\020cr" +
"\014\n\004Roll\030\003 \001(\002\"\177\n\rStringProfile\0228\n\rstring" + "afterBeaconPos\030\002 \001(\0132\004.Pos\"-\n\nCoordinate" +
"Profile\030\001 \003(\0132!.StringProfile.StringProf" + "\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001z\030\003 \001(\002\"4\n\010Rot" +
"ileEntry\0324\n\022StringProfileEntry\022\013\n\003key\030\001 " + "ation\022\r\n\005Pitch\030\001 \001(\002\022\013\n\003Yaw\030\002 \001(\002\022\014\n\004Rol" +
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\020UserLocationIn" + "l\030\003 \001(\002\"\177\n\rStringProfile\0228\n\rstringProfil" +
"fo\022\021\n\tisChannel\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\022\025\n\rcha" + "e\030\001 \003(\0132!.StringProfile.StringProfileEnt" +
"nnelNumber\030\003 \001(\005\"5\n\003Pos\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030" + "ry\0324\n\022StringProfileEntry\022\013\n\003key\030\001 \001(\t\022\r\n" +
"\002 \001(\002\022\t\n\001z\030\003 \001(\002\022\r\n\005angle\030\004 \001(\005\"\027\n\005Money" + "\005value\030\002 \001(\t:\0028\001\"H\n\020UserLocationInfo\022\021\n\t" +
"\022\016\n\006amount\030\001 \001(\001\"G\n\020MoneyDeltaAmount\022#\n\t" + "isChannel\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\022\025\n\rchannelNu" +
"deltaType\030\001 \001(\0162\020.AmountDeltaType\022\016\n\006amo" + "mber\030\003 \001(\005\"5\n\003Pos\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022" +
"unt\030\002 \001(\001*D\n\010BoolType\022\021\n\rBoolType_None\020\000" + "\t\n\001z\030\003 \001(\002\022\r\n\005angle\030\004 \001(\005\"\027\n\005Money\022\016\n\006am" +
"\022\021\n\rBoolType_True\020\001\022\022\n\016BoolType_False\020\002*" + "ount\030\001 \001(\001\"G\n\020MoneyDeltaAmount\022#\n\tdeltaT" +
"R\n\013AccountType\022\024\n\020AccountType_None\020\000\022\026\n\022" + "ype\030\001 \001(\0162\020.AmountDeltaType\022\016\n\006amount\030\002 " +
"AccountType_Google\020\001\022\025\n\021AccountType_Appl" + "\001(\001\"\300\001\n\rMatchUserInfo\022\020\n\010userGuid\030\001 \001(\t\022" +
"e\020\002*y\n\013ServiceType\022\024\n\020ServiceType_None\020\000" + "\022\n\nserverName\030\002 \001(\t\022\022\n\ngameModeId\030\003 \001(\005\022" +
"\022\023\n\017ServiceType_Dev\020\001\022\022\n\016ServiceType_Qa\020" + "\024\n\014matchGroupId\030\004 \001(\t\022\016\n\006region\030\005 \001(\t\022-\n" +
"\002\022\025\n\021ServiceType_Stage\020\003\022\024\n\020ServiceType_" + "\tstartTime\030\006 \001(\0132\032.google.protobuf.Times" +
"Live\020\004*\223\002\n\rServerUrlType\022\026\n\022ServerUrlTyp" + "tamp\022 \n\006status\030\007 \001(\0162\020.MatchStatusType\"s" +
"e_None\020\000\022%\n!ServerUrlType_BillingApiServ" + "\n\017MatchStatusInfo\022 \n\006status\030\001 \001(\0162\020.Matc" +
"erUrl\020\001\022$\n ServerUrlType_ChatAiApiServer" + "hStatusType\022\021\n\tmatchStep\030\002 \001(\005\022\023\n\013waitTi" +
"Url\020\002\022$\n ServerUrlType_MyhomeEditGuideUr" + "meSec\030\003 \001(\005\022\026\n\016waitTimeMaxSec\030\004 \001(\005\"J\n\017M" +
"l\020\003\022&\n\"ServerUrlType_WebLinkUrlSeasonPas" + "atchRegionInfo\022\014\n\004Name\030\001 \001(\t\022\030\n\020TextStri" +
"s\020\004\022)\n%ServerUrlType_CaliumConverterWebG" + "ngMetaId\030\002 \001(\t\022\017\n\007PingUrl\030\003 \001(\t*\373\001\n\010Modu" +
"uide\020\005\022$\n ServerUrlType_S3ResourceImageU" + "leId\022\021\n\rModuleId_None\020\000\022\036\n\032ModuleId_Dyna" +
"rl\020\006*\210\002\n\nServerType\022\023\n\017ServerType_None\020\000" + "moDbConnector\020\001\022\035\n\031ModuleId_MongoDbConne" +
"\022\024\n\020ServerType_Login\020\001\022\026\n\022ServerType_Cha" + "ctor\020\002\022\033\n\027ModuleId_RedisConnector\020\003\022\'\n#M" +
"nnel\020\002\022\024\n\020ServerType_Indun\020\003\022\023\n\017ServerTy" + "oduleId_RedisWithLuaScriptExecutor\020\004\022\036\n\032" +
"pe_Chat\020\004\022\025\n\021ServerType_GmTool\020\005\022\023\n\017Serv" + "ModuleId_RabbitMqConnector\020\005\022\030\n\024ModuleId" +
"erType_Auth\020\006\022\026\n\022ServerType_Manager\020\007\022\025\n" + "_S3Connector\020\006\022\035\n\031ModuleId_ProudNetListe" +
"\021ServerType_UgqApi\020\010\022\027\n\023ServerType_UgqAd" + "ner\020\007*D\n\010BoolType\022\021\n\rBoolType_None\020\000\022\021\n\r" +
"min\020\t\022\030\n\024ServerType_UgqIngame\020\n*\255\001\n\023Auto" + "BoolType_True\020\001\022\022\n\016BoolType_False\020\002*R\n\013A" +
"ScaleServerType\022\034\n\030AutoScaleServerType_N" + "ccountType\022\024\n\020AccountType_None\020\000\022\026\n\022Acco" +
"one\020\000\022\035\n\031AutoScaleServerType_Login\020\001\022\034\n\030" + "untType_Google\020\001\022\025\n\021AccountType_Apple\020\002*" +
"AutoScaleServerType_Game\020\002\022\035\n\031AutoScaleS" + "J\n\017ServiceCategory\022\030\n\024ServiceCategory_No" +
"erverType_Indun\020\003\022\034\n\030AutoScaleServerType" + "ne\020\000\022\035\n\031ServiceCategory_Caliverse\020\001*y\n\013S" +
"_Chat\020\004*_\n\016GameServerType\022\027\n\023GameServerT" + "erviceType\022\024\n\020ServiceType_None\020\000\022\023\n\017Serv" +
"ype_None\020\000\022\032\n\026GameServerType_Channel\020\001\022\030" + "iceType_Dev\020\001\022\022\n\016ServiceType_Qa\020\002\022\025\n\021Ser" +
"\n\024GameServerType_Indun\020\002*\224\001\n\nDeviceType\022" + "viceType_Stage\020\003\022\024\n\020ServiceType_Live\020\004*\305" +
"\023\n\017DeviceType_None\020\000\022\030\n\024DeviceType_Windo" + "\005\n\rServerUrlType\022\026\n\022ServerUrlType_None\020\000" +
"wsPC\020\001\022\025\n\021DeviceType_IPhone\020\005\022\022\n\016DeviceT" + "\022%\n!ServerUrlType_BillingApiServerUrl\020\001\022" +
"ype_Mac\020\006\022\025\n\021DeviceType_Galaxy\020\013\022\025\n\021Devi" + "$\n ServerUrlType_ChatAiApiServerUrl\020\002\022$\n" +
"ceType_Oculus\020\017*S\n\006OsType\022\017\n\013OsType_None" + " ServerUrlType_MyhomeEditGuideUrl\020\003\022&\n\"S" +
"\020\000\022\024\n\020OsType_MsWindows\020\001\022\022\n\016OsType_Andro" + "erverUrlType_WebLinkUrlSeasonPass\020\004\022)\n%S" +
"id\020\002\022\016\n\nOsType_Ios\020\003*\215\001\n\014PlatformType\022\025\n" + "erverUrlType_CaliumConverterWebGuide\020\005\022$" +
"\021PlatformType_None\020\000\022\032\n\026PlatformType_Win" + "\n ServerUrlType_S3ResourceImageUrl\020\006\022 \n\034" +
"dowsPc\020\001\022\027\n\023PlatformType_Google\020\002\022\031\n\025Pla" + "ServerUrlType_RentalGuideURL\020\007\022%\n!Server" +
"tformType_Facebook\020\003\022\026\n\022PlatformType_App" + "UrlType_LandAuctionWebGuide\020\010\022$\n ServerU" +
"le\020\004*\216\001\n\023AccountCreationType\022\034\n\030AccountC" + "rlType_LandManageGuideURL\020\t\022&\n\"ServerUrl" +
"reationType_None\020\000\022\036\n\032AccountCreationTyp" + "Type_Calium_Exchange_Web1\020\n\022&\n\"ServerUrl" +
"e_Normal\020\001\022\034\n\030AccountCreationType_Test\020\002" + "Type_Calium_Exchange_Web2\020\013\022$\n ServerUrl" +
"\022\033\n\027AccountCreationType_Bot\020\003*\205\003\n\014Conten" + "Type_WebLinkURLCurrency\020\014\022\'\n#ServerUrlTy" +
"tsType\022\025\n\021ContentsType_None\020\000\022\027\n\023Content" + "pe_WebLinkURLSeasonPass1\020\r\022\'\n#ServerUrlT" +
"sType_MyHome\020\001\022\032\n\026ContentsType_DressRoom" + "ype_WebLinkURLSeasonPass2\020\016\022\'\n#ServerUrl" +
"\020\002\022\030\n\024ContentsType_Concert\020\003\022\026\n\022Contents" + "Type_WebLinkURLSeasonPass3\020\017\022\'\n#ServerUr" +
"Type_Movie\020\004\022\031\n\025ContentsType_Instance\020\005\022" + "lType_WebLinkURLSeasonPass4\020\020\022\'\n#ServerU" +
"\030\n\024ContentsType_Meeting\020\006\022!\n\035ContentsTyp" + "rlType_WebLinkURLSeasonPass5\020\021*\270\002\n\nServe" +
"e_BeaconCreateRoom\020\007\022\037\n\033ContentsType_Bea" + "rType\022\023\n\017ServerType_None\020\000\022\024\n\020ServerType" +
"conEditRoom\020\010\022 \n\034ContentsType_BeaconDraf" + "_Login\020\001\022\026\n\022ServerType_Channel\020\002\022\024\n\020Serv" +
"tRoom\020\t\022\031\n\025ContentsType_EditRoom\020\n\022$\n Co" + "erType_Indun\020\003\022\023\n\017ServerType_Chat\020\004\022\025\n\021S" +
"ntentsType_BeaconCustomizeRoom\020\013\022\033\n\027Cont" + "erverType_GmTool\020\005\022\023\n\017ServerType_Auth\020\006\022" +
"entsType_BattleRoom\020\014*\264\001\n\010CharRace\022\021\n\rCh" + "\026\n\022ServerType_Manager\020\007\022\025\n\021ServerType_Ug" +
"arRace_None\020\000\022\023\n\017CharRace_Latino\020\001\022\026\n\022Ch" + "qApi\020\010\022\027\n\023ServerType_UgqAdmin\020\t\022\030\n\024Serve" +
"arRace_Caucasian\020\002\022\024\n\020CharRace_African\020\003" + "rType_UgqIngame\020\n\022\030\n\024ServerType_BrokerAp" +
"\022\033\n\027CharRace_Northeastasian\020\004\022\027\n\023CharRac" + "i\020\013\022\024\n\020ServerType_Match\020\014*\255\001\n\023AutoScaleS" +
"e_Southasian\020\005\022\034\n\030CharRace_Pacificisland" + "erverType\022\034\n\030AutoScaleServerType_None\020\000\022" +
"er\020\006*\224\001\n\022AuthAdminLevelType\022\033\n\027AuthAdmin" + "\035\n\031AutoScaleServerType_Login\020\001\022\034\n\030AutoSc" +
"LevelType_None\020\000\022\037\n\033AuthAdminLevelType_G" + "aleServerType_Game\020\002\022\035\n\031AutoScaleServerT" +
"mNormal\020\001\022\036\n\032AuthAdminLevelType_GmSuper\020" + "ype_Indun\020\003\022\034\n\030AutoScaleServerType_Chat\020" +
"\002\022 \n\034AuthAdminLevelType_Developer\020\003*d\n\014L" + "\004*_\n\016GameServerType\022\027\n\023GameServerType_No" +
"anguageType\022\025\n\021LanguageType_None\020\000\022\023\n\017La" + "ne\020\000\022\032\n\026GameServerType_Channel\020\001\022\030\n\024Game" +
"nguageType_ko\020\001\022\023\n\017LanguageType_en\020\002\022\023\n\017" + "ServerType_Indun\020\002*\224\001\n\nDeviceType\022\023\n\017Dev" +
"LanguageType_ja\020\004*S\n\013ProductType\022\024\n\020Prod" + "iceType_None\020\000\022\030\n\024DeviceType_WindowsPC\020\001" +
"uctType_None\020\000\022\030\n\024ProductType_Currency\020\001" + "\022\025\n\021DeviceType_IPhone\020\005\022\022\n\016DeviceType_Ma" +
"\022\024\n\020ProductType_Item\020\002*\201\001\n\017LoginMethodTy" + "c\020\006\022\025\n\021DeviceType_Galaxy\020\013\022\025\n\021DeviceType" +
"pe\022\030\n\024LoginMethodType_None\020\000\022$\n LoginMet" + "_Oculus\020\017*S\n\006OsType\022\017\n\013OsType_None\020\000\022\024\n\020" +
"hodType_ClientStandalone\020\001\022.\n*LoginMetho" + "OsType_MsWindows\020\001\022\022\n\016OsType_Android\020\002\022\016" +
"dType_SsoAccountAuthWithLauncher\020\002*\313\001\n\026L" + "\n\nOsType_Ios\020\003*\215\001\n\014PlatformType\022\025\n\021Platf" +
"oginFailureReasonType\022\037\n\033LoginFailureRea" + "ormType_None\020\000\022\032\n\026PlatformType_WindowsPc" +
"sonType_None\020\000\022.\n*LoginFailureReasonType" + "\020\001\022\027\n\023PlatformType_Google\020\002\022\031\n\025PlatformT" +
"_ProcessingException\020\001\022/\n+LoginFailureRe" + "ype_Facebook\020\003\022\026\n\022PlatformType_Apple\020\004*\216" +
"asonType_AuthenticationFailed\020\002\022/\n+Login" + "\001\n\023AccountCreationType\022\034\n\030AccountCreatio" +
"FailureReasonType_UserValidCheckFailed\020\003" + "nType_None\020\000\022\036\n\032AccountCreationType_Norm" +
"*\270\001\n\020LogoutReasonType\022\031\n\025LogoutReasonTyp" + "al\020\001\022\034\n\030AccountCreationType_Test\020\002\022\033\n\027Ac" +
"e_None\020\000\022\"\n\036LogoutReasonType_ExitToServi" + "countCreationType_Bot\020\003*\300\003\n\014ContentsType" +
"ce\020\001\022 \n\034LogoutReasonType_EnterToGame\020\002\022\035" + "\022\025\n\021ContentsType_None\020\000\022\027\n\023ContentsType_" +
"\n\031LogoutReasonType_GoToGame\020\003\022$\n LogoutR" + "MyHome\020\001\022\032\n\026ContentsType_DressRoom\020\002\022\030\n\024" +
"easonType_DuplicatedLogin\020\004*\307\003\n\022AccountS" + "ContentsType_Concert\020\003\022\026\n\022ContentsType_M" +
"actionType\022\033\n\027AccountSactionType_None\020\000\022" + "ovie\020\004\022\031\n\025ContentsType_Instance\020\005\022\030\n\024Con" +
"!\n\035AccountSactionType_BadBhavior\020\001\022*\n&Ac" + "tentsType_Meeting\020\006\022!\n\035ContentsType_Beac" +
"countSactionType_InvapproprivateName\020\002\022&" + "onCreateRoom\020\007\022\037\n\033ContentsType_BeaconEdi" +
"\n\"AccountSactionType_CashTransaction\020\003\022\'" + "tRoom\020\010\022 \n\034ContentsType_BeaconDraftRoom\020" +
"\n#AccountSactionType_GameInterference\020\004\022" + "\t\022\031\n\025ContentsType_EditRoom\020\n\022$\n Contents" +
"*\n&AccountSactionType_ServiceInterferenc" + "Type_BeaconCustomizeRoom\020\013\022\033\n\027ContentsTy" +
"e\020\005\022+\n\'AccountSactionType_AccountImperso" + "pe_BattleRoom\020\014\022\036\n\032ContentsType_ArcadeRu" +
"nation\020\006\022\037\n\033AccountSactionType_BugAbuse\020" + "nning\020\r\022\031\n\025ContentsType_GameRoom\020\016*\264\001\n\010C" +
"\007\022%\n!AccountSactionType_IllegalProgram\020\010" + "harRace\022\021\n\rCharRace_None\020\000\022\023\n\017CharRace_L" +
"\022(\n$AccountSactionType_PersonalInfo_Leak" + "atino\020\001\022\026\n\022CharRace_Caucasian\020\002\022\024\n\020CharR" +
"\020\t\022)\n%AccountSactionType_AdminImpersonat" + "ace_African\020\003\022\033\n\027CharRace_Northeastasian" +
"ion\020\n*w\n\016ServerMoveType\022\027\n\023ServerMoveTyp" + "\020\004\022\027\n\023CharRace_Southasian\020\005\022\034\n\030CharRace_" +
"e_None\020\000\022\030\n\024ServerMoveType_Force\020\001\022\027\n\023Se" + "Pacificislander\020\006*\224\001\n\022AuthAdminLevelType" +
"rverMoveType_Auto\020\002\022\031\n\025ServerMoveType_Re" + "\022\033\n\027AuthAdminLevelType_None\020\000\022\037\n\033AuthAdm" +
"turn\020\003*\336\001\n\017PlayerStateType\022\030\n\024PlayerStat" + "inLevelType_GmNormal\020\001\022\036\n\032AuthAdminLevel" +
"eType_None\020\000\022\032\n\026PlayerStateType_Online\020\001" + "Type_GmSuper\020\002\022 \n\034AuthAdminLevelType_Dev" +
"\022\031\n\025PlayerStateType_Sleep\020\002\022\037\n\033PlayerSta" + "eloper\020\003*d\n\014LanguageType\022\025\n\021LanguageType" +
"teType_DontDistrub\020\003\022\033\n\027PlayerStateType_" + "_None\020\000\022\023\n\017LanguageType_ko\020\001\022\023\n\017Language" +
"Offline\020\004\022\033\n\027PlayerStateType_Dormant\020\005\022\037" + "Type_en\020\002\022\023\n\017LanguageType_ja\020\004*S\n\013Produc" +
"\n\033PlayerStateType_LeaveMember\020\006*\200\001\n\017Amou" + "tType\022\024\n\020ProductType_None\020\000\022\030\n\024ProductTy" +
"ntDeltaType\022\030\n\024AmountDeltaType_None\020\000\022\033\n" + "pe_Currency\020\001\022\024\n\020ProductType_Item\020\002*\201\001\n\017" +
"\027AmountDeltaType_Acquire\020\001\022\033\n\027AmountDelt" + "LoginMethodType\022\030\n\024LoginMethodType_None\020" +
"aType_Consume\020\002\022\031\n\025AmountDeltaType_Merge" + "\000\022$\n LoginMethodType_ClientStandalone\020\001\022" +
"\020\003*\257\001\n\016CountDeltaType\022\027\n\023CountDeltaType_" + ".\n*LoginMethodType_SsoAccountAuthWithLau" +
"None\020\000\022\026\n\022CountDeltaType_New\020\001\022\031\n\025CountD" + "ncher\020\002*\313\001\n\026LoginFailureReasonType\022\037\n\033Lo" +
"eltaType_Update\020\002\022\032\n\026CountDeltaType_Acqu" + "ginFailureReasonType_None\020\000\022.\n*LoginFail" +
"ire\020\003\022\032\n\026CountDeltaType_Consume\020\004\022\031\n\025Cou" + "ureReasonType_ProcessingException\020\001\022/\n+L" +
"ntDeltaType_Delete\020\005*\236\001\n\014CurrencyType\022\025\n" + "oginFailureReasonType_AuthenticationFail" +
"\021CurrencyType_None\020\000\022\025\n\021CurrencyType_Gol" + "ed\020\002\022/\n+LoginFailureReasonType_UserValid" +
"d\020\001\022\031\n\025CurrencyType_Sapphire\020\002\022\027\n\023Curren" + "CheckFailed\020\003*\270\001\n\020LogoutReasonType\022\031\n\025Lo" +
"cyType_Calium\020\003\022\025\n\021CurrencyType_Beam\020\004\022\025" + "goutReasonType_None\020\000\022\"\n\036LogoutReasonTyp" +
"\n\021CurrencyType_Ruby\020\005*\304\002\n\022ProgramVersion" + "e_ExitToService\020\001\022 \n\034LogoutReasonType_En" +
"Type\022\033\n\027ProgramVersionType_None\020\000\022(\n$Pro" + "terToGame\020\002\022\035\n\031LogoutReasonType_GoToGame" +
"gramVersionType_MetaSchemaVersion\020\001\022&\n\"P" + "\020\003\022$\n LogoutReasonType_DuplicatedLogin\020\004" +
"rogramVersionType_MetaDataVersion\020\002\022&\n\"P" + "*\307\003\n\022AccountSactionType\022\033\n\027AccountSactio" +
"rogramVersionType_DbSchemaVersion\020\003\022$\n P" + "nType_None\020\000\022!\n\035AccountSactionType_BadBh" +
"rogramVersionType_PacketVersion\020\004\022&\n\"Pro" + "avior\020\001\022*\n&AccountSactionType_Invappropr" +
"gramVersionType_ResourceVersion\020\005\022$\n Pro" + "ivateName\020\002\022&\n\"AccountSactionType_CashTr" +
"gramVersionType_ConfigVersion\020\006\022#\n\037Progr" + "ansaction\020\003\022\'\n#AccountSactionType_GameIn" +
"amVersionType_LogicVersion\020\007*\216\004\n\025PartyMe" + "terference\020\004\022*\n&AccountSactionType_Servi" +
"mberActionType\022\036\n\032PartyMemberActionType_" + "ceInterference\020\005\022+\n\'AccountSactionType_A" +
"None\020\000\022 \n\034PartyMemberActionType_Invite\020\001" + "ccountImpersonation\020\006\022\037\n\033AccountSactionT" +
"\022&\n\"PartyMemberActionType_InviteAccept\020\002" + "ype_BugAbuse\020\007\022%\n!AccountSactionType_Ill" +
"\022&\n\"PartyMemberActionType_InviteReject\020\003" + "egalProgram\020\010\022(\n$AccountSactionType_Pers" +
"\022 \n\034PartyMemberActionType_Summon\020\004\022&\n\"Pa" + "onalInfo_Leak\020\t\022)\n%AccountSactionType_Ad" +
"rtyMemberActionType_SummonAccept\020\005\022&\n\"Pa" + "minImpersonation\020\n*w\n\016ServerMoveType\022\027\n\023" +
"rtyMemberActionType_SummonReject\020\006\022,\n(Pa" + "ServerMoveType_None\020\000\022\030\n\024ServerMoveType_" +
"rtyMemberActionType_PartyInstance_Join\020\007" + "Force\020\001\022\027\n\023ServerMoveType_Auto\020\002\022\031\n\025Serv" +
"\022-\n)PartyMemberActionType_PartyInstance_" + "erMoveType_Return\020\003*\336\001\n\017PlayerStateType\022" +
"Leave\020\010\022%\n!PartyMemberActionType_PartyLe" + "\030\n\024PlayerStateType_None\020\000\022\032\n\026PlayerState" +
"ader\020\t\022#\n\037PartyMemberActionType_JoinPart" + "Type_Online\020\001\022\031\n\025PlayerStateType_Sleep\020\002" +
"y\020\n\022$\n PartyMemberActionType_LeaveParty\020" + "\022\037\n\033PlayerStateType_DontDistrub\020\003\022\033\n\027Pla" +
"\013\022\"\n\036PartyMemberActionType_BanParty\020\014*\217\001" + "yerStateType_Offline\020\004\022\033\n\027PlayerStateTyp" +
"\n\023UserBlockPolicyType\022\034\n\030UserBlockPolicy" + "e_Dormant\020\005\022\037\n\033PlayerStateType_LeaveMemb" +
"Type_None\020\000\022+\n\'UserBlockPolicyType_Acces" + "er\020\006*\200\001\n\017AmountDeltaType\022\030\n\024AmountDeltaT" +
"s_Restrictions\020\001\022-\n)UserBlockPolicyType_" + "ype_None\020\000\022\033\n\027AmountDeltaType_Acquire\020\001\022" +
"Chatting_Restrictions\020\002*\334\003\n\023UserBlockRea" + "\033\n\027AmountDeltaType_Consume\020\002\022\031\n\025AmountDe" +
"sonType\022\034\n\030UserBlockReasonType_None\020\000\022$\n" + "ltaType_Merge\020\003*\257\001\n\016CountDeltaType\022\027\n\023Co" +
" UserBlockReasonType_Bad_Behavior\020\001\022*\n&U" + "untDeltaType_None\020\000\022\026\n\022CountDeltaType_Ne" +
"serBlockReasonType_Inappropriate_Name\020\002\022" + "w\020\001\022\031\n\025CountDeltaType_Update\020\002\022\032\n\026CountD" +
"(\n$UserBlockReasonType_Cash_Transaction\020" + "eltaType_Acquire\020\003\022\032\n\026CountDeltaType_Con" +
"\003\022)\n%UserBlockReasonType_Game_Interferen" + "sume\020\004\022\031\n\025CountDeltaType_Delete\020\005*\236\001\n\014Cu" +
"ce\020\004\022,\n(UserBlockReasonType_Service_Inte" + "rrencyType\022\025\n\021CurrencyType_None\020\000\022\025\n\021Cur" +
"rference\020\005\022-\n)UserBlockReasonType_Accoun" + "rencyType_Gold\020\001\022\031\n\025CurrencyType_Sapphir" +
"t_Impersonation\020\006\022!\n\035UserBlockReasonType" + "e\020\002\022\027\n\023CurrencyType_Calium\020\003\022\025\n\021Currency" +
"_Bug_Abuse\020\007\022\'\n#UserBlockReasonType_Ille" + "Type_Beam\020\004\022\025\n\021CurrencyType_Ruby\020\005*\304\002\n\022P" +
"gal_Program\020\010\022*\n&UserBlockReasonType_Per" + "rogramVersionType\022\033\n\027ProgramVersionType_" +
"sonal_Info_Leak\020\t\022+\n\'UserBlockReasonType" + "None\020\000\022(\n$ProgramVersionType_MetaSchemaV" +
"_Asmin_Impersonation\020\nB/\n+com.caliverse." + "ersion\020\001\022&\n\"ProgramVersionType_MetaDataV" +
"admin.domain.RabbitMq.messageP\001b\006proto3" "ersion\020\002\022&\n\"ProgramVersionType_DbSchemaV" +
"ersion\020\003\022$\n ProgramVersionType_PacketVer" +
"sion\020\004\022&\n\"ProgramVersionType_ResourceVer" +
"sion\020\005\022$\n ProgramVersionType_ConfigVersi" +
"on\020\006\022#\n\037ProgramVersionType_LogicVersion\020" +
"\007*\216\004\n\025PartyMemberActionType\022\036\n\032PartyMemb" +
"erActionType_None\020\000\022 \n\034PartyMemberAction" +
"Type_Invite\020\001\022&\n\"PartyMemberActionType_I" +
"nviteAccept\020\002\022&\n\"PartyMemberActionType_I" +
"nviteReject\020\003\022 \n\034PartyMemberActionType_S" +
"ummon\020\004\022&\n\"PartyMemberActionType_SummonA" +
"ccept\020\005\022&\n\"PartyMemberActionType_SummonR" +
"eject\020\006\022,\n(PartyMemberActionType_PartyIn" +
"stance_Join\020\007\022-\n)PartyMemberActionType_P" +
"artyInstance_Leave\020\010\022%\n!PartyMemberActio" +
"nType_PartyLeader\020\t\022#\n\037PartyMemberAction" +
"Type_JoinParty\020\n\022$\n PartyMemberActionTyp" +
"e_LeaveParty\020\013\022\"\n\036PartyMemberActionType_" +
"BanParty\020\014*\217\001\n\023UserBlockPolicyType\022\034\n\030Us" +
"erBlockPolicyType_None\020\000\022+\n\'UserBlockPol" +
"icyType_Access_Restrictions\020\001\022-\n)UserBlo" +
"ckPolicyType_Chatting_Restrictions\020\002*\334\003\n" +
"\023UserBlockReasonType\022\034\n\030UserBlockReasonT" +
"ype_None\020\000\022$\n UserBlockReasonType_Bad_Be" +
"havior\020\001\022*\n&UserBlockReasonType_Inapprop" +
"riate_Name\020\002\022(\n$UserBlockReasonType_Cash" +
"_Transaction\020\003\022)\n%UserBlockReasonType_Ga" +
"me_Interference\020\004\022,\n(UserBlockReasonType" +
"_Service_Interference\020\005\022-\n)UserBlockReas" +
"onType_Account_Impersonation\020\006\022!\n\035UserBl" +
"ockReasonType_Bug_Abuse\020\007\022\'\n#UserBlockRe" +
"asonType_Illegal_Program\020\010\022*\n&UserBlockR" +
"easonType_Personal_Info_Leak\020\t\022+\n\'UserBl" +
"ockReasonType_Asmin_Impersonation\020\n*\224\001\n\026" +
"EntityAlertTriggerType\022\037\n\033EntityAlertTri" +
"ggerType_None\020\000\0222\n.EntityAlertTriggerTyp" +
"e_ItemExpireWarningBefore\020\001\022%\n!EntityAle" +
"rtTriggerType_ItemExpire\020\002*W\n\025EntityAler" +
"tMethodType\022\036\n\032EntityAlertMethodType_Non" +
"e\020\000\022\036\n\032EntityAlertMethodType_Mail\020\001*\327\001\n\017" +
"MatchStatusType\022\030\n\024MatchStatusType_NONE\020" +
"\000\022\034\n\030MatchStatusType_RESERVED\020\001\022\034\n\030Match" +
"StatusType_PROGRESS\020\002\022\033\n\027MatchStatusType" +
"_SUCCESS\020\003\022\032\n\026MatchStatusType_CANCEL\020\004\022\033" +
"\n\027MatchStatusType_TIMEOUT\020\005\022\030\n\024MatchStat" +
"usType_FAIL\020\006*i\n\017MatchCancelType\022\030\n\024Matc" +
"hCancelType_NONE\020\000\022\032\n\026MatchCancelType_NO" +
"RMAL\020\001\022 \n\034MatchCancelType_DISCONNECTED\020\002" +
"*:\n\nBannerType\022\023\n\017BannerType_None\020\000\022\027\n\023B" +
"annerType_MainMenu\020\001B/\n+com.caliverse.ad" +
"min.domain.RabbitMq.messageP\001b\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] { new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(),
}); });
internal_static_ServerUrl_descriptor = internal_static_ServerUrlWithLanguage_descriptor =
getDescriptor().getMessageTypes().get(0); getDescriptor().getMessageTypes().get(0);
internal_static_ServerUrlWithLanguage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ServerUrlWithLanguage_descriptor,
new java.lang.String[] { "LangType", "TargetUrl", });
internal_static_ServerUrl_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ServerUrl_fieldAccessorTable = new internal_static_ServerUrl_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ServerUrl_descriptor, internal_static_ServerUrl_descriptor,
new java.lang.String[] { "ServerUrlType", "TargetUrl", }); new java.lang.String[] { "ServerUrlType", "ServerUrlWithLanguages", });
internal_static_ChannelInfo_descriptor = internal_static_ChannelInfo_descriptor =
getDescriptor().getMessageTypes().get(1); getDescriptor().getMessageTypes().get(2);
internal_static_ChannelInfo_fieldAccessorTable = new internal_static_ChannelInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ChannelInfo_descriptor, internal_static_ChannelInfo_descriptor,
new java.lang.String[] { "Channel", "Trafficlevel", }); new java.lang.String[] { "Channel", "Trafficlevel", });
internal_static_ServerConnectInfo_descriptor = internal_static_ServerConnectInfo_descriptor =
getDescriptor().getMessageTypes().get(2); getDescriptor().getMessageTypes().get(3);
internal_static_ServerConnectInfo_fieldAccessorTable = new internal_static_ServerConnectInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ServerConnectInfo_descriptor, internal_static_ServerConnectInfo_descriptor,
new java.lang.String[] { "ServerAddr", "ServerPort", "Otp", "RoomId", "Pos", "InstanceId", "MyhomeInfo", "InstanceType", }); new java.lang.String[] { "ServerAddr", "ServerPort", "Otp", "RoomId", "Pos", "InstanceId", "MyhomeInfo", "InstanceType", });
internal_static_MyHomeInfo_descriptor = internal_static_MyHomeInfo_descriptor =
getDescriptor().getMessageTypes().get(3); getDescriptor().getMessageTypes().get(4);
internal_static_MyHomeInfo_fieldAccessorTable = new internal_static_MyHomeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyHomeInfo_descriptor, internal_static_MyHomeInfo_descriptor,
new java.lang.String[] { "MyhomeGuid", "MyhomeName", "MyhomeUgcInfo", }); new java.lang.String[] { "MyhomeGuid", "MyhomeName", "MyhomeUgcInfo", });
internal_static_MyhomeUgcInfo_descriptor = internal_static_MyhomeUgcInfo_descriptor =
getDescriptor().getMessageTypes().get(4); getDescriptor().getMessageTypes().get(5);
internal_static_MyhomeUgcInfo_fieldAccessorTable = new internal_static_MyhomeUgcInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MyhomeUgcInfo_descriptor, internal_static_MyhomeUgcInfo_descriptor,
new java.lang.String[] { "RoomType", "Version", "FrameworkInfos", "AnchorInfos", "CrafterBeaconPos", }); new java.lang.String[] { "RoomType", "Version", "FrameworkInfos", "AnchorInfos", "CrafterBeaconPos", });
internal_static_UgcFrameworkInfo_descriptor = internal_static_UgcFrameworkInfo_descriptor =
getDescriptor().getMessageTypes().get(5); getDescriptor().getMessageTypes().get(6);
internal_static_UgcFrameworkInfo_fieldAccessorTable = new internal_static_UgcFrameworkInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UgcFrameworkInfo_descriptor, internal_static_UgcFrameworkInfo_descriptor,
new java.lang.String[] { "InteriorItemId", "Floor", "Coordinate", "Rotation", "MaterialId", "UgcFrameworkMaterialInfos", }); new java.lang.String[] { "InteriorItemId", "Floor", "Coordinate", "Rotation", "MaterialId", "UgcFrameworkMaterialInfos", });
internal_static_UgcFrameworkMaterialInfo_descriptor = internal_static_UgcFrameworkMaterialInfo_descriptor =
getDescriptor().getMessageTypes().get(6); getDescriptor().getMessageTypes().get(7);
internal_static_UgcFrameworkMaterialInfo_fieldAccessorTable = new internal_static_UgcFrameworkMaterialInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UgcFrameworkMaterialInfo_descriptor, internal_static_UgcFrameworkMaterialInfo_descriptor,
new java.lang.String[] { "Type", "MaterialId", "ColorMaskR", "ColorMaskG", "ColorMaskB", }); new java.lang.String[] { "Type", "MaterialId", "ColorMaskR", "ColorMaskG", "ColorMaskB", });
internal_static_Color_descriptor = internal_static_Color_descriptor =
getDescriptor().getMessageTypes().get(7); getDescriptor().getMessageTypes().get(8);
internal_static_Color_fieldAccessorTable = new internal_static_Color_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Color_descriptor, internal_static_Color_descriptor,
new java.lang.String[] { "R", "G", "B", "A", }); new java.lang.String[] { "R", "G", "B", "A", });
internal_static_UgcAnchorInfo_descriptor = internal_static_UgcAnchorInfo_descriptor =
getDescriptor().getMessageTypes().get(8); getDescriptor().getMessageTypes().get(9);
internal_static_UgcAnchorInfo_fieldAccessorTable = new internal_static_UgcAnchorInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UgcAnchorInfo_descriptor, internal_static_UgcAnchorInfo_descriptor,
new java.lang.String[] { "AnchorGuid", "AnchorType", "TableId", "EntityGuid", "Coordinate", "Rotation", }); new java.lang.String[] { "AnchorGuid", "AnchorType", "TableId", "EntityGuid", "Coordinate", "Rotation", });
internal_static_CrafterBeaconPos_descriptor = internal_static_CrafterBeaconPos_descriptor =
getDescriptor().getMessageTypes().get(9); getDescriptor().getMessageTypes().get(10);
internal_static_CrafterBeaconPos_fieldAccessorTable = new internal_static_CrafterBeaconPos_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CrafterBeaconPos_descriptor, internal_static_CrafterBeaconPos_descriptor,
new java.lang.String[] { "AnchorGuid", "CrafterBeaconPos", }); new java.lang.String[] { "AnchorGuid", "CrafterBeaconPos", });
internal_static_Coordinate_descriptor = internal_static_Coordinate_descriptor =
getDescriptor().getMessageTypes().get(10); getDescriptor().getMessageTypes().get(11);
internal_static_Coordinate_fieldAccessorTable = new internal_static_Coordinate_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Coordinate_descriptor, internal_static_Coordinate_descriptor,
new java.lang.String[] { "X", "Y", "Z", }); new java.lang.String[] { "X", "Y", "Z", });
internal_static_Rotation_descriptor = internal_static_Rotation_descriptor =
getDescriptor().getMessageTypes().get(11); getDescriptor().getMessageTypes().get(12);
internal_static_Rotation_fieldAccessorTable = new internal_static_Rotation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Rotation_descriptor, internal_static_Rotation_descriptor,
new java.lang.String[] { "Pitch", "Yaw", "Roll", }); new java.lang.String[] { "Pitch", "Yaw", "Roll", });
internal_static_StringProfile_descriptor = internal_static_StringProfile_descriptor =
getDescriptor().getMessageTypes().get(12); getDescriptor().getMessageTypes().get(13);
internal_static_StringProfile_fieldAccessorTable = new internal_static_StringProfile_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_StringProfile_descriptor, internal_static_StringProfile_descriptor,
@@ -394,29 +470,47 @@ public final class DefineCommon {
internal_static_StringProfile_StringProfileEntry_descriptor, internal_static_StringProfile_StringProfileEntry_descriptor,
new java.lang.String[] { "Key", "Value", }); new java.lang.String[] { "Key", "Value", });
internal_static_UserLocationInfo_descriptor = internal_static_UserLocationInfo_descriptor =
getDescriptor().getMessageTypes().get(13); getDescriptor().getMessageTypes().get(14);
internal_static_UserLocationInfo_fieldAccessorTable = new internal_static_UserLocationInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UserLocationInfo_descriptor, internal_static_UserLocationInfo_descriptor,
new java.lang.String[] { "IsChannel", "Id", "ChannelNumber", }); new java.lang.String[] { "IsChannel", "Id", "ChannelNumber", });
internal_static_Pos_descriptor = internal_static_Pos_descriptor =
getDescriptor().getMessageTypes().get(14); getDescriptor().getMessageTypes().get(15);
internal_static_Pos_fieldAccessorTable = new internal_static_Pos_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Pos_descriptor, internal_static_Pos_descriptor,
new java.lang.String[] { "X", "Y", "Z", "Angle", }); new java.lang.String[] { "X", "Y", "Z", "Angle", });
internal_static_Money_descriptor = internal_static_Money_descriptor =
getDescriptor().getMessageTypes().get(15); getDescriptor().getMessageTypes().get(16);
internal_static_Money_fieldAccessorTable = new internal_static_Money_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Money_descriptor, internal_static_Money_descriptor,
new java.lang.String[] { "Amount", }); new java.lang.String[] { "Amount", });
internal_static_MoneyDeltaAmount_descriptor = internal_static_MoneyDeltaAmount_descriptor =
getDescriptor().getMessageTypes().get(16); getDescriptor().getMessageTypes().get(17);
internal_static_MoneyDeltaAmount_fieldAccessorTable = new internal_static_MoneyDeltaAmount_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MoneyDeltaAmount_descriptor, internal_static_MoneyDeltaAmount_descriptor,
new java.lang.String[] { "DeltaType", "Amount", }); new java.lang.String[] { "DeltaType", "Amount", });
internal_static_MatchUserInfo_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_MatchUserInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MatchUserInfo_descriptor,
new java.lang.String[] { "UserGuid", "ServerName", "GameModeId", "MatchGroupId", "Region", "StartTime", "Status", });
internal_static_MatchStatusInfo_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_MatchStatusInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MatchStatusInfo_descriptor,
new java.lang.String[] { "Status", "MatchStep", "WaitTimeSec", "WaitTimeMaxSec", });
internal_static_MatchRegionInfo_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_MatchRegionInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_MatchRegionInfo_descriptor,
new java.lang.String[] { "Name", "TextStringMetaId", "PingUrl", });
com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor();
} }

View File

@@ -0,0 +1,122 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code GameModeDeadType}
*/
public enum GameModeDeadType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GameModeDeadType_None = 0;</code>
*/
GameModeDeadType_None(0),
/**
* <code>GameModeDeadType_ByOthers = 1;</code>
*/
GameModeDeadType_ByOthers(1),
/**
* <code>GameModeDeadType_Fall = 2;</code>
*/
GameModeDeadType_Fall(2),
UNRECOGNIZED(-1),
;
/**
* <code>GameModeDeadType_None = 0;</code>
*/
public static final int GameModeDeadType_None_VALUE = 0;
/**
* <code>GameModeDeadType_ByOthers = 1;</code>
*/
public static final int GameModeDeadType_ByOthers_VALUE = 1;
/**
* <code>GameModeDeadType_Fall = 2;</code>
*/
public static final int GameModeDeadType_Fall_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 GameModeDeadType 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 GameModeDeadType forNumber(int value) {
switch (value) {
case 0: return GameModeDeadType_None;
case 1: return GameModeDeadType_ByOthers;
case 2: return GameModeDeadType_Fall;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GameModeDeadType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameModeDeadType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GameModeDeadType>() {
public GameModeDeadType findValueByNumber(int number) {
return GameModeDeadType.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(40);
}
private static final GameModeDeadType[] VALUES = values();
public static GameModeDeadType 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 GameModeDeadType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GameModeDeadType)
}

View File

@@ -0,0 +1,113 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code GameModeKickReason}
*/
public enum GameModeKickReason
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GameModeKickReason_None = 0;</code>
*/
GameModeKickReason_None(0),
/**
* <code>GameModeKickReason_LoadingTimeExpired = 1;</code>
*/
GameModeKickReason_LoadingTimeExpired(1),
UNRECOGNIZED(-1),
;
/**
* <code>GameModeKickReason_None = 0;</code>
*/
public static final int GameModeKickReason_None_VALUE = 0;
/**
* <code>GameModeKickReason_LoadingTimeExpired = 1;</code>
*/
public static final int GameModeKickReason_LoadingTimeExpired_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GameModeKickReason 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 GameModeKickReason forNumber(int value) {
switch (value) {
case 0: return GameModeKickReason_None;
case 1: return GameModeKickReason_LoadingTimeExpired;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GameModeKickReason>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameModeKickReason> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GameModeKickReason>() {
public GameModeKickReason findValueByNumber(int number) {
return GameModeKickReason.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(39);
}
private static final GameModeKickReason[] VALUES = values();
public static GameModeKickReason 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 GameModeKickReason(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GameModeKickReason)
}

View File

@@ -0,0 +1,638 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf type {@code GameModeObjectInfo}
*/
public final class GameModeObjectInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GameModeObjectInfo)
GameModeObjectInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GameModeObjectInfo.newBuilder() to construct.
private GameModeObjectInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GameModeObjectInfo() {
anchorGuid_ = "";
isActive_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GameModeObjectInfo();
}
@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_GameModeObjectInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeObjectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.class, com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.Builder.class);
}
public static final int ANCHORGUID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object anchorGuid_ = "";
/**
* <code>string anchorGuid = 1;</code>
* @return The anchorGuid.
*/
@java.lang.Override
public java.lang.String getAnchorGuid() {
java.lang.Object ref = anchorGuid_;
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();
anchorGuid_ = s;
return s;
}
}
/**
* <code>string anchorGuid = 1;</code>
* @return The bytes for anchorGuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnchorGuidBytes() {
java.lang.Object ref = anchorGuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
anchorGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISACTIVE_FIELD_NUMBER = 2;
private int isActive_ = 0;
/**
* <code>.BoolType isActive = 2;</code>
* @return The enum numeric value on the wire for isActive.
*/
@java.lang.Override public int getIsActiveValue() {
return isActive_;
}
/**
* <code>.BoolType isActive = 2;</code>
* @return The isActive.
*/
@java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.BoolType getIsActive() {
com.caliverse.admin.domain.RabbitMq.message.BoolType result = com.caliverse.admin.domain.RabbitMq.message.BoolType.forNumber(isActive_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.BoolType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(anchorGuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, anchorGuid_);
}
if (isActive_ != com.caliverse.admin.domain.RabbitMq.message.BoolType.BoolType_None.getNumber()) {
output.writeEnum(2, isActive_);
}
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(anchorGuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, anchorGuid_);
}
if (isActive_ != com.caliverse.admin.domain.RabbitMq.message.BoolType.BoolType_None.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, isActive_);
}
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.GameModeObjectInfo)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo other = (com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo) obj;
if (!getAnchorGuid()
.equals(other.getAnchorGuid())) return false;
if (isActive_ != other.isActive_) 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) + ANCHORGUID_FIELD_NUMBER;
hash = (53 * hash) + getAnchorGuid().hashCode();
hash = (37 * hash) + ISACTIVE_FIELD_NUMBER;
hash = (53 * hash) + isActive_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo 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.GameModeObjectInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo 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.GameModeObjectInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo 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.GameModeObjectInfo 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.GameModeObjectInfo parseFrom(
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.GameModeObjectInfo 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.GameModeObjectInfo parseDelimitedFrom(
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.GameModeObjectInfo 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.GameModeObjectInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.GameModeObjectInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GameModeObjectInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GameModeObjectInfo)
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeObjectInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeObjectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.class, com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
anchorGuid_ = "";
isActive_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeObjectInfo_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo build() {
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo result = new com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.anchorGuid_ = anchorGuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.isActive_ = isActive_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor 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.GameModeObjectInfo) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo.getDefaultInstance()) return this;
if (!other.getAnchorGuid().isEmpty()) {
anchorGuid_ = other.anchorGuid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.isActive_ != 0) {
setIsActiveValue(other.getIsActiveValue());
}
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: {
anchorGuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
isActive_ = input.readEnum();
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 java.lang.Object anchorGuid_ = "";
/**
* <code>string anchorGuid = 1;</code>
* @return The anchorGuid.
*/
public java.lang.String getAnchorGuid() {
java.lang.Object ref = anchorGuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
anchorGuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string anchorGuid = 1;</code>
* @return The bytes for anchorGuid.
*/
public com.google.protobuf.ByteString
getAnchorGuidBytes() {
java.lang.Object ref = anchorGuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
anchorGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string anchorGuid = 1;</code>
* @param value The anchorGuid to set.
* @return This builder for chaining.
*/
public Builder setAnchorGuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
anchorGuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string anchorGuid = 1;</code>
* @return This builder for chaining.
*/
public Builder clearAnchorGuid() {
anchorGuid_ = getDefaultInstance().getAnchorGuid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string anchorGuid = 1;</code>
* @param value The bytes for anchorGuid to set.
* @return This builder for chaining.
*/
public Builder setAnchorGuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
anchorGuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int isActive_ = 0;
/**
* <code>.BoolType isActive = 2;</code>
* @return The enum numeric value on the wire for isActive.
*/
@java.lang.Override public int getIsActiveValue() {
return isActive_;
}
/**
* <code>.BoolType isActive = 2;</code>
* @param value The enum numeric value on the wire for isActive to set.
* @return This builder for chaining.
*/
public Builder setIsActiveValue(int value) {
isActive_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>.BoolType isActive = 2;</code>
* @return The isActive.
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.BoolType getIsActive() {
com.caliverse.admin.domain.RabbitMq.message.BoolType result = com.caliverse.admin.domain.RabbitMq.message.BoolType.forNumber(isActive_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.BoolType.UNRECOGNIZED : result;
}
/**
* <code>.BoolType isActive = 2;</code>
* @param value The isActive to set.
* @return This builder for chaining.
*/
public Builder setIsActive(com.caliverse.admin.domain.RabbitMq.message.BoolType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
isActive_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.BoolType isActive = 2;</code>
* @return This builder for chaining.
*/
public Builder clearIsActive() {
bitField0_ = (bitField0_ & ~0x00000002);
isActive_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:GameModeObjectInfo)
}
// @@protoc_insertion_point(class_scope:GameModeObjectInfo)
private static final com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo();
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GameModeObjectInfo>
PARSER = new com.google.protobuf.AbstractParser<GameModeObjectInfo>() {
@java.lang.Override
public GameModeObjectInfo 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<GameModeObjectInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GameModeObjectInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeObjectInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -0,0 +1,32 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface GameModeObjectInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:GameModeObjectInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string anchorGuid = 1;</code>
* @return The anchorGuid.
*/
java.lang.String getAnchorGuid();
/**
* <code>string anchorGuid = 1;</code>
* @return The bytes for anchorGuid.
*/
com.google.protobuf.ByteString
getAnchorGuidBytes();
/**
* <code>.BoolType isActive = 2;</code>
* @return The enum numeric value on the wire for isActive.
*/
int getIsActiveValue();
/**
* <code>.BoolType isActive = 2;</code>
* @return The isActive.
*/
com.caliverse.admin.domain.RabbitMq.message.BoolType getIsActive();
}

View File

@@ -0,0 +1,131 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code GameModePlayerState}
*/
public enum GameModePlayerState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GameModePlayerState_None = 0;</code>
*/
GameModePlayerState_None(0),
/**
* <code>GameModePlayerState_Join = 1;</code>
*/
GameModePlayerState_Join(1),
/**
* <code>GameModePlayerState_LoadComplete = 2;</code>
*/
GameModePlayerState_LoadComplete(2),
/**
* <code>GameModePlayerState_Wait = 3;</code>
*/
GameModePlayerState_Wait(3),
UNRECOGNIZED(-1),
;
/**
* <code>GameModePlayerState_None = 0;</code>
*/
public static final int GameModePlayerState_None_VALUE = 0;
/**
* <code>GameModePlayerState_Join = 1;</code>
*/
public static final int GameModePlayerState_Join_VALUE = 1;
/**
* <code>GameModePlayerState_LoadComplete = 2;</code>
*/
public static final int GameModePlayerState_LoadComplete_VALUE = 2;
/**
* <code>GameModePlayerState_Wait = 3;</code>
*/
public static final int GameModePlayerState_Wait_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 GameModePlayerState 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 GameModePlayerState forNumber(int value) {
switch (value) {
case 0: return GameModePlayerState_None;
case 1: return GameModePlayerState_Join;
case 2: return GameModePlayerState_LoadComplete;
case 3: return GameModePlayerState_Wait;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GameModePlayerState>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameModePlayerState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GameModePlayerState>() {
public GameModePlayerState findValueByNumber(int number) {
return GameModePlayerState.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(38);
}
private static final GameModePlayerState[] VALUES = values();
public static GameModePlayerState 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 GameModePlayerState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GameModePlayerState)
}

View File

@@ -0,0 +1,819 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf type {@code GameModeRewardResult}
*/
public final class GameModeRewardResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GameModeRewardResult)
GameModeRewardResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use GameModeRewardResult.newBuilder() to construct.
private GameModeRewardResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GameModeRewardResult() {
userGuid_ = "";
rewardType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GameModeRewardResult();
}
@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_GameModeRewardResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.class, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder.class);
}
public static final int USERGUID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object userGuid_ = "";
/**
* <code>string UserGuid = 1;</code>
* @return The userGuid.
*/
@java.lang.Override
public java.lang.String getUserGuid() {
java.lang.Object ref = userGuid_;
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();
userGuid_ = s;
return s;
}
}
/**
* <code>string UserGuid = 1;</code>
* @return The bytes for userGuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserGuidBytes() {
java.lang.Object ref = userGuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REWARDTYPE_FIELD_NUMBER = 2;
private int rewardType_ = 0;
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The enum numeric value on the wire for rewardType.
*/
@java.lang.Override public int getRewardTypeValue() {
return rewardType_;
}
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The rewardType.
*/
@java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType getRewardType() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType result = com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.forNumber(rewardType_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.UNRECOGNIZED : result;
}
public static final int COMMONRESULT_FIELD_NUMBER = 3;
private com.caliverse.admin.domain.RabbitMq.message.CommonResult commonResult_;
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return Whether the commonResult field is set.
*/
@java.lang.Override
public boolean hasCommonResult() {
return commonResult_ != null;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return The commonResult.
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.CommonResult getCommonResult() {
return commonResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.CommonResult.getDefaultInstance() : commonResult_;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder getCommonResultOrBuilder() {
return commonResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.CommonResult.getDefaultInstance() : commonResult_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (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(userGuid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userGuid_);
}
if (rewardType_ != com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.GameModeRewardType_None.getNumber()) {
output.writeEnum(2, rewardType_);
}
if (commonResult_ != null) {
output.writeMessage(3, getCommonResult());
}
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(userGuid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userGuid_);
}
if (rewardType_ != com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.GameModeRewardType_None.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, rewardType_);
}
if (commonResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCommonResult());
}
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.GameModeRewardResult)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult other = (com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult) obj;
if (!getUserGuid()
.equals(other.getUserGuid())) return false;
if (rewardType_ != other.rewardType_) return false;
if (hasCommonResult() != other.hasCommonResult()) return false;
if (hasCommonResult()) {
if (!getCommonResult()
.equals(other.getCommonResult())) 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) + USERGUID_FIELD_NUMBER;
hash = (53 * hash) + getUserGuid().hashCode();
hash = (37 * hash) + REWARDTYPE_FIELD_NUMBER;
hash = (53 * hash) + rewardType_;
if (hasCommonResult()) {
hash = (37 * hash) + COMMONRESULT_FIELD_NUMBER;
hash = (53 * hash) + getCommonResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult 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.GameModeRewardResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult 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.GameModeRewardResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult 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.GameModeRewardResult 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.GameModeRewardResult parseFrom(
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.GameModeRewardResult 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.GameModeRewardResult parseDelimitedFrom(
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.GameModeRewardResult 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.GameModeRewardResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.GameModeRewardResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GameModeRewardResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GameModeRewardResult)
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.class, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
userGuid_ = "";
rewardType_ = 0;
commonResult_ = null;
if (commonResultBuilder_ != null) {
commonResultBuilder_.dispose();
commonResultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResult_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult build() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult result = new com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.userGuid_ = userGuid_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rewardType_ = rewardType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.commonResult_ = commonResultBuilder_ == null
? commonResult_
: commonResultBuilder_.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.GameModeRewardResult) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance()) return this;
if (!other.getUserGuid().isEmpty()) {
userGuid_ = other.userGuid_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.rewardType_ != 0) {
setRewardTypeValue(other.getRewardTypeValue());
}
if (other.hasCommonResult()) {
mergeCommonResult(other.getCommonResult());
}
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: {
userGuid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
rewardType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getCommonResultFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 userGuid_ = "";
/**
* <code>string UserGuid = 1;</code>
* @return The userGuid.
*/
public java.lang.String getUserGuid() {
java.lang.Object ref = userGuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userGuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string UserGuid = 1;</code>
* @return The bytes for userGuid.
*/
public com.google.protobuf.ByteString
getUserGuidBytes() {
java.lang.Object ref = userGuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userGuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string UserGuid = 1;</code>
* @param value The userGuid to set.
* @return This builder for chaining.
*/
public Builder setUserGuid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userGuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string UserGuid = 1;</code>
* @return This builder for chaining.
*/
public Builder clearUserGuid() {
userGuid_ = getDefaultInstance().getUserGuid();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string UserGuid = 1;</code>
* @param value The bytes for userGuid to set.
* @return This builder for chaining.
*/
public Builder setUserGuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
userGuid_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int rewardType_ = 0;
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The enum numeric value on the wire for rewardType.
*/
@java.lang.Override public int getRewardTypeValue() {
return rewardType_;
}
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @param value The enum numeric value on the wire for rewardType to set.
* @return This builder for chaining.
*/
public Builder setRewardTypeValue(int value) {
rewardType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The rewardType.
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType getRewardType() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType result = com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.forNumber(rewardType_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType.UNRECOGNIZED : result;
}
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @param value The rewardType to set.
* @return This builder for chaining.
*/
public Builder setRewardType(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
rewardType_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return This builder for chaining.
*/
public Builder clearRewardType() {
bitField0_ = (bitField0_ & ~0x00000002);
rewardType_ = 0;
onChanged();
return this;
}
private com.caliverse.admin.domain.RabbitMq.message.CommonResult commonResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.CommonResult, com.caliverse.admin.domain.RabbitMq.message.CommonResult.Builder, com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder> commonResultBuilder_;
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return Whether the commonResult field is set.
*/
public boolean hasCommonResult() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return The commonResult.
*/
public com.caliverse.admin.domain.RabbitMq.message.CommonResult getCommonResult() {
if (commonResultBuilder_ == null) {
return commonResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.CommonResult.getDefaultInstance() : commonResult_;
} else {
return commonResultBuilder_.getMessage();
}
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public Builder setCommonResult(com.caliverse.admin.domain.RabbitMq.message.CommonResult value) {
if (commonResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonResult_ = value;
} else {
commonResultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public Builder setCommonResult(
com.caliverse.admin.domain.RabbitMq.message.CommonResult.Builder builderForValue) {
if (commonResultBuilder_ == null) {
commonResult_ = builderForValue.build();
} else {
commonResultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public Builder mergeCommonResult(com.caliverse.admin.domain.RabbitMq.message.CommonResult value) {
if (commonResultBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
commonResult_ != null &&
commonResult_ != com.caliverse.admin.domain.RabbitMq.message.CommonResult.getDefaultInstance()) {
getCommonResultBuilder().mergeFrom(value);
} else {
commonResult_ = value;
}
} else {
commonResultBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public Builder clearCommonResult() {
bitField0_ = (bitField0_ & ~0x00000004);
commonResult_ = null;
if (commonResultBuilder_ != null) {
commonResultBuilder_.dispose();
commonResultBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.CommonResult.Builder getCommonResultBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCommonResultFieldBuilder().getBuilder();
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder getCommonResultOrBuilder() {
if (commonResultBuilder_ != null) {
return commonResultBuilder_.getMessageOrBuilder();
} else {
return commonResult_ == null ?
com.caliverse.admin.domain.RabbitMq.message.CommonResult.getDefaultInstance() : commonResult_;
}
}
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.CommonResult, com.caliverse.admin.domain.RabbitMq.message.CommonResult.Builder, com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder>
getCommonResultFieldBuilder() {
if (commonResultBuilder_ == null) {
commonResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.CommonResult, com.caliverse.admin.domain.RabbitMq.message.CommonResult.Builder, com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder>(
getCommonResult(),
getParentForChildren(),
isClean());
commonResult_ = null;
}
return commonResultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:GameModeRewardResult)
}
// @@protoc_insertion_point(class_scope:GameModeRewardResult)
private static final com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult();
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GameModeRewardResult>
PARSER = new com.google.protobuf.AbstractParser<GameModeRewardResult>() {
@java.lang.Override
public GameModeRewardResult 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<GameModeRewardResult> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GameModeRewardResult> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -0,0 +1,47 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface GameModeRewardResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:GameModeRewardResult)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string UserGuid = 1;</code>
* @return The userGuid.
*/
java.lang.String getUserGuid();
/**
* <code>string UserGuid = 1;</code>
* @return The bytes for userGuid.
*/
com.google.protobuf.ByteString
getUserGuidBytes();
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The enum numeric value on the wire for rewardType.
*/
int getRewardTypeValue();
/**
* <code>.GameModeRewardType RewardType = 2;</code>
* @return The rewardType.
*/
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardType getRewardType();
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return Whether the commonResult field is set.
*/
boolean hasCommonResult();
/**
* <code>.CommonResult CommonResult = 3;</code>
* @return The commonResult.
*/
com.caliverse.admin.domain.RabbitMq.message.CommonResult getCommonResult();
/**
* <code>.CommonResult CommonResult = 3;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.CommonResultOrBuilder getCommonResultOrBuilder();
}

View File

@@ -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 GameModeRewardResultWithRank}
*/
public final class GameModeRewardResultWithRank extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GameModeRewardResultWithRank)
GameModeRewardResultWithRankOrBuilder {
private static final long serialVersionUID = 0L;
// Use GameModeRewardResultWithRank.newBuilder() to construct.
private GameModeRewardResultWithRank(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GameModeRewardResultWithRank() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GameModeRewardResultWithRank();
}
@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_GameModeRewardResultWithRank_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResultWithRank_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.class, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.Builder.class);
}
public static final int RANK_FIELD_NUMBER = 1;
private int rank_ = 0;
/**
* <code>int32 rank = 1;</code>
* @return The rank.
*/
@java.lang.Override
public int getRank() {
return rank_;
}
public static final int REWARDRESULT_FIELD_NUMBER = 2;
private com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult rewardResult_;
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return Whether the rewardResult field is set.
*/
@java.lang.Override
public boolean hasRewardResult() {
return rewardResult_ != null;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return The rewardResult.
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getRewardResult() {
return rewardResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance() : rewardResult_;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder getRewardResultOrBuilder() {
return rewardResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance() : rewardResult_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (rank_ != 0) {
output.writeInt32(1, rank_);
}
if (rewardResult_ != null) {
output.writeMessage(2, getRewardResult());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rank_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, rank_);
}
if (rewardResult_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRewardResult());
}
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.GameModeRewardResultWithRank)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank other = (com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank) obj;
if (getRank()
!= other.getRank()) return false;
if (hasRewardResult() != other.hasRewardResult()) return false;
if (hasRewardResult()) {
if (!getRewardResult()
.equals(other.getRewardResult())) 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) + RANK_FIELD_NUMBER;
hash = (53 * hash) + getRank();
if (hasRewardResult()) {
hash = (37 * hash) + REWARDRESULT_FIELD_NUMBER;
hash = (53 * hash) + getRewardResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank parseFrom(
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.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank parseDelimitedFrom(
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.GameModeRewardResultWithRank 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.GameModeRewardResultWithRank parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.GameModeRewardResultWithRank prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code GameModeRewardResultWithRank}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GameModeRewardResultWithRank)
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRankOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResultWithRank_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResultWithRank_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.class, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rank_ = 0;
rewardResult_ = null;
if (rewardResultBuilder_ != null) {
rewardResultBuilder_.dispose();
rewardResultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_GameModeRewardResultWithRank_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank build() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank result = new com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rank_ = rank_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rewardResult_ = rewardResultBuilder_ == null
? rewardResult_
: rewardResultBuilder_.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.GameModeRewardResultWithRank) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank.getDefaultInstance()) return this;
if (other.getRank() != 0) {
setRank(other.getRank());
}
if (other.hasRewardResult()) {
mergeRewardResult(other.getRewardResult());
}
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: {
rank_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getRewardResultFieldBuilder().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 rank_ ;
/**
* <code>int32 rank = 1;</code>
* @return The rank.
*/
@java.lang.Override
public int getRank() {
return rank_;
}
/**
* <code>int32 rank = 1;</code>
* @param value The rank to set.
* @return This builder for chaining.
*/
public Builder setRank(int value) {
rank_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int32 rank = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRank() {
bitField0_ = (bitField0_ & ~0x00000001);
rank_ = 0;
onChanged();
return this;
}
private com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult rewardResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder> rewardResultBuilder_;
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return Whether the rewardResult field is set.
*/
public boolean hasRewardResult() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return The rewardResult.
*/
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getRewardResult() {
if (rewardResultBuilder_ == null) {
return rewardResult_ == null ? com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance() : rewardResult_;
} else {
return rewardResultBuilder_.getMessage();
}
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public Builder setRewardResult(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult value) {
if (rewardResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewardResult_ = value;
} else {
rewardResultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public Builder setRewardResult(
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder builderForValue) {
if (rewardResultBuilder_ == null) {
rewardResult_ = builderForValue.build();
} else {
rewardResultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public Builder mergeRewardResult(com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult value) {
if (rewardResultBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
rewardResult_ != null &&
rewardResult_ != com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance()) {
getRewardResultBuilder().mergeFrom(value);
} else {
rewardResult_ = value;
}
} else {
rewardResultBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public Builder clearRewardResult() {
bitField0_ = (bitField0_ & ~0x00000002);
rewardResult_ = null;
if (rewardResultBuilder_ != null) {
rewardResultBuilder_.dispose();
rewardResultBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder getRewardResultBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRewardResultFieldBuilder().getBuilder();
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder getRewardResultOrBuilder() {
if (rewardResultBuilder_ != null) {
return rewardResultBuilder_.getMessageOrBuilder();
} else {
return rewardResult_ == null ?
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.getDefaultInstance() : rewardResult_;
}
}
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder>
getRewardResultFieldBuilder() {
if (rewardResultBuilder_ == null) {
rewardResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult.Builder, com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder>(
getRewardResult(),
getParentForChildren(),
isClean());
rewardResult_ = null;
}
return rewardResultBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:GameModeRewardResultWithRank)
}
// @@protoc_insertion_point(class_scope:GameModeRewardResultWithRank)
private static final com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank();
}
public static com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GameModeRewardResultWithRank>
PARSER = new com.google.protobuf.AbstractParser<GameModeRewardResultWithRank>() {
@java.lang.Override
public GameModeRewardResultWithRank 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<GameModeRewardResultWithRank> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GameModeRewardResultWithRank> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultWithRank getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -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 GameModeRewardResultWithRankOrBuilder extends
// @@protoc_insertion_point(interface_extends:GameModeRewardResultWithRank)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 rank = 1;</code>
* @return The rank.
*/
int getRank();
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return Whether the rewardResult field is set.
*/
boolean hasRewardResult();
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
* @return The rewardResult.
*/
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResult getRewardResult();
/**
* <code>.GameModeRewardResult rewardResult = 2;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.GameModeRewardResultOrBuilder getRewardResultOrBuilder();
}

View File

@@ -0,0 +1,149 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code GameModeRewardType}
*/
public enum GameModeRewardType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GameModeRewardType_None = 0;</code>
*/
GameModeRewardType_None(0),
/**
* <code>GameModeRewardType_GetPickUpPod = 1;</code>
*/
GameModeRewardType_GetPickUpPod(1),
/**
* <code>GameModeRewardType_ObtainedByOwningForTime = 2;</code>
*/
GameModeRewardType_ObtainedByOwningForTime(2),
/**
* <code>GameModeRewardType_FinishRankReward = 3;</code>
*/
GameModeRewardType_FinishRankReward(3),
/**
* <code>GameModeRewardType_MinRespawnBonusReward = 4;</code>
*/
GameModeRewardType_MinRespawnBonusReward(4),
/**
* <code>GameModeRewardType_UnfinishRankReward = 5;</code>
*/
GameModeRewardType_UnfinishRankReward(5),
UNRECOGNIZED(-1),
;
/**
* <code>GameModeRewardType_None = 0;</code>
*/
public static final int GameModeRewardType_None_VALUE = 0;
/**
* <code>GameModeRewardType_GetPickUpPod = 1;</code>
*/
public static final int GameModeRewardType_GetPickUpPod_VALUE = 1;
/**
* <code>GameModeRewardType_ObtainedByOwningForTime = 2;</code>
*/
public static final int GameModeRewardType_ObtainedByOwningForTime_VALUE = 2;
/**
* <code>GameModeRewardType_FinishRankReward = 3;</code>
*/
public static final int GameModeRewardType_FinishRankReward_VALUE = 3;
/**
* <code>GameModeRewardType_MinRespawnBonusReward = 4;</code>
*/
public static final int GameModeRewardType_MinRespawnBonusReward_VALUE = 4;
/**
* <code>GameModeRewardType_UnfinishRankReward = 5;</code>
*/
public static final int GameModeRewardType_UnfinishRankReward_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GameModeRewardType 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 GameModeRewardType forNumber(int value) {
switch (value) {
case 0: return GameModeRewardType_None;
case 1: return GameModeRewardType_GetPickUpPod;
case 2: return GameModeRewardType_ObtainedByOwningForTime;
case 3: return GameModeRewardType_FinishRankReward;
case 4: return GameModeRewardType_MinRespawnBonusReward;
case 5: return GameModeRewardType_UnfinishRankReward;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GameModeRewardType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameModeRewardType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GameModeRewardType>() {
public GameModeRewardType findValueByNumber(int number) {
return GameModeRewardType.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(41);
}
private static final GameModeRewardType[] VALUES = values();
public static GameModeRewardType 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 GameModeRewardType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GameModeRewardType)
}

View File

@@ -0,0 +1,220 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code GameModeState}
*/
public enum GameModeState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>GameModeState_None = 0;</code>
*/
GameModeState_None(0),
/**
* <code>GameModeState_Loading = 1;</code>
*/
GameModeState_Loading(1),
/**
* <code>GameModeState_Created = 2;</code>
*/
GameModeState_Created(2),
/**
* <code>GameModeState_Destroyed = 3;</code>
*/
GameModeState_Destroyed(3),
/**
* <code>GameModeState_Wait = 11;</code>
*/
GameModeState_Wait(11),
/**
* <code>GameModeState_Ready = 12;</code>
*/
GameModeState_Ready(12),
/**
* <code>GameModeState_Play = 13;</code>
*/
GameModeState_Play(13),
/**
* <code>GameModeState_Result = 14;</code>
*/
GameModeState_Result(14),
/**
* <code>GameModeState_RewardSummary = 15;</code>
*/
GameModeState_RewardSummary(15),
/**
* <code>GameModeState_End = 16;</code>
*/
GameModeState_End(16),
/**
* <pre>
*TPS FFA <20><><EFBFBD><EFBFBD> FFA<46><41><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* </pre>
*
* <code>GameModeState_Rounding = 31;</code>
*/
GameModeState_Rounding(31),
/**
* <code>GameModeState_RoundWait = 32;</code>
*/
GameModeState_RoundWait(32),
/**
* <code>GameModeState_RoundEndAll = 33;</code>
*/
GameModeState_RoundEndAll(33),
UNRECOGNIZED(-1),
;
/**
* <code>GameModeState_None = 0;</code>
*/
public static final int GameModeState_None_VALUE = 0;
/**
* <code>GameModeState_Loading = 1;</code>
*/
public static final int GameModeState_Loading_VALUE = 1;
/**
* <code>GameModeState_Created = 2;</code>
*/
public static final int GameModeState_Created_VALUE = 2;
/**
* <code>GameModeState_Destroyed = 3;</code>
*/
public static final int GameModeState_Destroyed_VALUE = 3;
/**
* <code>GameModeState_Wait = 11;</code>
*/
public static final int GameModeState_Wait_VALUE = 11;
/**
* <code>GameModeState_Ready = 12;</code>
*/
public static final int GameModeState_Ready_VALUE = 12;
/**
* <code>GameModeState_Play = 13;</code>
*/
public static final int GameModeState_Play_VALUE = 13;
/**
* <code>GameModeState_Result = 14;</code>
*/
public static final int GameModeState_Result_VALUE = 14;
/**
* <code>GameModeState_RewardSummary = 15;</code>
*/
public static final int GameModeState_RewardSummary_VALUE = 15;
/**
* <code>GameModeState_End = 16;</code>
*/
public static final int GameModeState_End_VALUE = 16;
/**
* <pre>
*TPS FFA <20><><EFBFBD><EFBFBD> FFA<46><41><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* </pre>
*
* <code>GameModeState_Rounding = 31;</code>
*/
public static final int GameModeState_Rounding_VALUE = 31;
/**
* <code>GameModeState_RoundWait = 32;</code>
*/
public static final int GameModeState_RoundWait_VALUE = 32;
/**
* <code>GameModeState_RoundEndAll = 33;</code>
*/
public static final int GameModeState_RoundEndAll_VALUE = 33;
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 GameModeState 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 GameModeState forNumber(int value) {
switch (value) {
case 0: return GameModeState_None;
case 1: return GameModeState_Loading;
case 2: return GameModeState_Created;
case 3: return GameModeState_Destroyed;
case 11: return GameModeState_Wait;
case 12: return GameModeState_Ready;
case 13: return GameModeState_Play;
case 14: return GameModeState_Result;
case 15: return GameModeState_RewardSummary;
case 16: return GameModeState_End;
case 31: return GameModeState_Rounding;
case 32: return GameModeState_RoundWait;
case 33: return GameModeState_RoundEndAll;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<GameModeState>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GameModeState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<GameModeState>() {
public GameModeState findValueByNumber(int number) {
return GameModeState.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(37);
}
private static final GameModeState[] VALUES = values();
public static GameModeState 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 GameModeState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GameModeState)
}

View File

@@ -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>
* 매칭 취소 타입
* </pre>
*
* Protobuf enum {@code MatchCancelType}
*/
public enum MatchCancelType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>MatchCancelType_NONE = 0;</code>
*/
MatchCancelType_NONE(0),
/**
* <code>MatchCancelType_NORMAL = 1;</code>
*/
MatchCancelType_NORMAL(1),
/**
* <code>MatchCancelType_DISCONNECTED = 2;</code>
*/
MatchCancelType_DISCONNECTED(2),
UNRECOGNIZED(-1),
;
/**
* <code>MatchCancelType_NONE = 0;</code>
*/
public static final int MatchCancelType_NONE_VALUE = 0;
/**
* <code>MatchCancelType_NORMAL = 1;</code>
*/
public static final int MatchCancelType_NORMAL_VALUE = 1;
/**
* <code>MatchCancelType_DISCONNECTED = 2;</code>
*/
public static final int MatchCancelType_DISCONNECTED_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 MatchCancelType 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 MatchCancelType forNumber(int value) {
switch (value) {
case 0: return MatchCancelType_NONE;
case 1: return MatchCancelType_NORMAL;
case 2: return MatchCancelType_DISCONNECTED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<MatchCancelType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MatchCancelType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<MatchCancelType>() {
public MatchCancelType findValueByNumber(int number) {
return MatchCancelType.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(34);
}
private static final MatchCancelType[] VALUES = values();
public static MatchCancelType 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 MatchCancelType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:MatchCancelType)
}

View File

@@ -0,0 +1,149 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code MatchGameStateType}
*/
public enum MatchGameStateType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>MatchGameStateType_None = 0;</code>
*/
MatchGameStateType_None(0),
/**
* <code>MatchGameStateType_Idle = 1;</code>
*/
MatchGameStateType_Idle(1),
/**
* <code>MatchGameStateType_Ready = 2;</code>
*/
MatchGameStateType_Ready(2),
/**
* <code>MatchGameStateType_Start = 3;</code>
*/
MatchGameStateType_Start(3),
/**
* <code>MatchGameStateType_Finish = 4;</code>
*/
MatchGameStateType_Finish(4),
/**
* <code>MatchGameStateType_Destroy = 5;</code>
*/
MatchGameStateType_Destroy(5),
UNRECOGNIZED(-1),
;
/**
* <code>MatchGameStateType_None = 0;</code>
*/
public static final int MatchGameStateType_None_VALUE = 0;
/**
* <code>MatchGameStateType_Idle = 1;</code>
*/
public static final int MatchGameStateType_Idle_VALUE = 1;
/**
* <code>MatchGameStateType_Ready = 2;</code>
*/
public static final int MatchGameStateType_Ready_VALUE = 2;
/**
* <code>MatchGameStateType_Start = 3;</code>
*/
public static final int MatchGameStateType_Start_VALUE = 3;
/**
* <code>MatchGameStateType_Finish = 4;</code>
*/
public static final int MatchGameStateType_Finish_VALUE = 4;
/**
* <code>MatchGameStateType_Destroy = 5;</code>
*/
public static final int MatchGameStateType_Destroy_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MatchGameStateType 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 MatchGameStateType forNumber(int value) {
switch (value) {
case 0: return MatchGameStateType_None;
case 1: return MatchGameStateType_Idle;
case 2: return MatchGameStateType_Ready;
case 3: return MatchGameStateType_Start;
case 4: return MatchGameStateType_Finish;
case 5: return MatchGameStateType_Destroy;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<MatchGameStateType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MatchGameStateType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<MatchGameStateType>() {
public MatchGameStateType findValueByNumber(int number) {
return MatchGameStateType.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(42);
}
private static final MatchGameStateType[] VALUES = values();
public static MatchGameStateType 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 MatchGameStateType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:MatchGameStateType)
}

View File

@@ -0,0 +1,824 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* <pre>
* 리전 핑 체크를 정보
* </pre>
*
* Protobuf type {@code MatchRegionInfo}
*/
public final class MatchRegionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MatchRegionInfo)
MatchRegionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MatchRegionInfo.newBuilder() to construct.
private MatchRegionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private MatchRegionInfo() {
name_ = "";
textStringMetaId_ = "";
pingUrl_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MatchRegionInfo();
}
@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_MatchRegionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchRegionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
* <code>string Name = 1;</code>
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* <code>string Name = 1;</code>
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEXTSTRINGMETAID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object textStringMetaId_ = "";
/**
* <code>string TextStringMetaId = 2;</code>
* @return The textStringMetaId.
*/
@java.lang.Override
public java.lang.String getTextStringMetaId() {
java.lang.Object ref = textStringMetaId_;
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();
textStringMetaId_ = s;
return s;
}
}
/**
* <code>string TextStringMetaId = 2;</code>
* @return The bytes for textStringMetaId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextStringMetaIdBytes() {
java.lang.Object ref = textStringMetaId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textStringMetaId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PINGURL_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object pingUrl_ = "";
/**
* <code>string PingUrl = 3;</code>
* @return The pingUrl.
*/
@java.lang.Override
public java.lang.String getPingUrl() {
java.lang.Object ref = pingUrl_;
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();
pingUrl_ = s;
return s;
}
}
/**
* <code>string PingUrl = 3;</code>
* @return The bytes for pingUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPingUrlBytes() {
java.lang.Object ref = pingUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pingUrl_ = 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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textStringMetaId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, textStringMetaId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pingUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pingUrl_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textStringMetaId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, textStringMetaId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pingUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pingUrl_);
}
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.MatchRegionInfo)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo other = (com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getTextStringMetaId()
.equals(other.getTextStringMetaId())) return false;
if (!getPingUrl()
.equals(other.getPingUrl())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TEXTSTRINGMETAID_FIELD_NUMBER;
hash = (53 * hash) + getTextStringMetaId().hashCode();
hash = (37 * hash) + PINGURL_FIELD_NUMBER;
hash = (53 * hash) + getPingUrl().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo 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.MatchRegionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo 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.MatchRegionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo 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.MatchRegionInfo 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.MatchRegionInfo parseFrom(
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.MatchRegionInfo 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.MatchRegionInfo parseDelimitedFrom(
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.MatchRegionInfo 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.MatchRegionInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.MatchRegionInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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>
* 리전 핑 체크를 정보
* </pre>
*
* Protobuf type {@code MatchRegionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:MatchRegionInfo)
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchRegionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchRegionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
textStringMetaId_ = "";
pingUrl_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchRegionInfo_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo build() {
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo result = new com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.textStringMetaId_ = textStringMetaId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.pingUrl_ = pingUrl_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor 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.MatchRegionInfo) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getTextStringMetaId().isEmpty()) {
textStringMetaId_ = other.textStringMetaId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPingUrl().isEmpty()) {
pingUrl_ = other.pingUrl_;
bitField0_ |= 0x00000004;
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: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
textStringMetaId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
pingUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
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 name_ = "";
/**
* <code>string Name = 1;</code>
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string Name = 1;</code>
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string Name = 1;</code>
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string Name = 1;</code>
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string Name = 1;</code>
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object textStringMetaId_ = "";
/**
* <code>string TextStringMetaId = 2;</code>
* @return The textStringMetaId.
*/
public java.lang.String getTextStringMetaId() {
java.lang.Object ref = textStringMetaId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
textStringMetaId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string TextStringMetaId = 2;</code>
* @return The bytes for textStringMetaId.
*/
public com.google.protobuf.ByteString
getTextStringMetaIdBytes() {
java.lang.Object ref = textStringMetaId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textStringMetaId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string TextStringMetaId = 2;</code>
* @param value The textStringMetaId to set.
* @return This builder for chaining.
*/
public Builder setTextStringMetaId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
textStringMetaId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>string TextStringMetaId = 2;</code>
* @return This builder for chaining.
*/
public Builder clearTextStringMetaId() {
textStringMetaId_ = getDefaultInstance().getTextStringMetaId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>string TextStringMetaId = 2;</code>
* @param value The bytes for textStringMetaId to set.
* @return This builder for chaining.
*/
public Builder setTextStringMetaIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
textStringMetaId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object pingUrl_ = "";
/**
* <code>string PingUrl = 3;</code>
* @return The pingUrl.
*/
public java.lang.String getPingUrl() {
java.lang.Object ref = pingUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pingUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string PingUrl = 3;</code>
* @return The bytes for pingUrl.
*/
public com.google.protobuf.ByteString
getPingUrlBytes() {
java.lang.Object ref = pingUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pingUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string PingUrl = 3;</code>
* @param value The pingUrl to set.
* @return This builder for chaining.
*/
public Builder setPingUrl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
pingUrl_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>string PingUrl = 3;</code>
* @return This builder for chaining.
*/
public Builder clearPingUrl() {
pingUrl_ = getDefaultInstance().getPingUrl();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* <code>string PingUrl = 3;</code>
* @param value The bytes for pingUrl to set.
* @return This builder for chaining.
*/
public Builder setPingUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
pingUrl_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:MatchRegionInfo)
}
// @@protoc_insertion_point(class_scope:MatchRegionInfo)
private static final com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo();
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<MatchRegionInfo>
PARSER = new com.google.protobuf.AbstractParser<MatchRegionInfo>() {
@java.lang.Override
public MatchRegionInfo 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<MatchRegionInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MatchRegionInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRegionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -0,0 +1,45 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface MatchRegionInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:MatchRegionInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string Name = 1;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string Name = 1;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>string TextStringMetaId = 2;</code>
* @return The textStringMetaId.
*/
java.lang.String getTextStringMetaId();
/**
* <code>string TextStringMetaId = 2;</code>
* @return The bytes for textStringMetaId.
*/
com.google.protobuf.ByteString
getTextStringMetaIdBytes();
/**
* <code>string PingUrl = 3;</code>
* @return The pingUrl.
*/
java.lang.String getPingUrl();
/**
* <code>string PingUrl = 3;</code>
* @return The bytes for pingUrl.
*/
com.google.protobuf.ByteString
getPingUrlBytes();
}

View File

@@ -0,0 +1,898 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf type {@code MatchRoomInfo}
*/
public final class MatchRoomInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MatchRoomInfo)
MatchRoomInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MatchRoomInfo.newBuilder() to construct.
private MatchRoomInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private MatchRoomInfo() {
roomId_ = "";
teams_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MatchRoomInfo();
}
@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_MatchRoomInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchRoomInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.Builder.class);
}
public static final int ROOMID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object roomId_ = "";
/**
* <code>string RoomId = 1;</code>
* @return The roomId.
*/
@java.lang.Override
public java.lang.String getRoomId() {
java.lang.Object ref = roomId_;
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();
roomId_ = s;
return s;
}
}
/**
* <code>string RoomId = 1;</code>
* @return The bytes for roomId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoomIdBytes() {
java.lang.Object ref = roomId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roomId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEAMS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> teams_;
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
@java.lang.Override
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> getTeamsList() {
return teams_;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
@java.lang.Override
public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>
getTeamsOrBuilderList() {
return teams_;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
@java.lang.Override
public int getTeamsCount() {
return teams_.size();
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getTeams(int index) {
return teams_.get(index);
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder getTeamsOrBuilder(
int index) {
return teams_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roomId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roomId_);
}
for (int i = 0; i < teams_.size(); i++) {
output.writeMessage(2, teams_.get(i));
}
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(roomId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, roomId_);
}
for (int i = 0; i < teams_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, teams_.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.MatchRoomInfo)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo other = (com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo) obj;
if (!getRoomId()
.equals(other.getRoomId())) return false;
if (!getTeamsList()
.equals(other.getTeamsList())) 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) + ROOMID_FIELD_NUMBER;
hash = (53 * hash) + getRoomId().hashCode();
if (getTeamsCount() > 0) {
hash = (37 * hash) + TEAMS_FIELD_NUMBER;
hash = (53 * hash) + getTeamsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo 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.MatchRoomInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo 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.MatchRoomInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo 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.MatchRoomInfo 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.MatchRoomInfo parseFrom(
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.MatchRoomInfo 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.MatchRoomInfo parseDelimitedFrom(
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.MatchRoomInfo 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.MatchRoomInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.MatchRoomInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code MatchRoomInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:MatchRoomInfo)
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchRoomInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchRoomInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
roomId_ = "";
if (teamsBuilder_ == null) {
teams_ = java.util.Collections.emptyList();
} else {
teams_ = null;
teamsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchRoomInfo_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo build() {
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo result = new com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo result) {
if (teamsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
teams_ = java.util.Collections.unmodifiableList(teams_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.teams_ = teams_;
} else {
result.teams_ = teamsBuilder_.build();
}
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.roomId_ = roomId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor 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.MatchRoomInfo) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.getDefaultInstance()) return this;
if (!other.getRoomId().isEmpty()) {
roomId_ = other.roomId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (teamsBuilder_ == null) {
if (!other.teams_.isEmpty()) {
if (teams_.isEmpty()) {
teams_ = other.teams_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTeamsIsMutable();
teams_.addAll(other.teams_);
}
onChanged();
}
} else {
if (!other.teams_.isEmpty()) {
if (teamsBuilder_.isEmpty()) {
teamsBuilder_.dispose();
teamsBuilder_ = null;
teams_ = other.teams_;
bitField0_ = (bitField0_ & ~0x00000002);
teamsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTeamsFieldBuilder() : null;
} else {
teamsBuilder_.addAllMessages(other.teams_);
}
}
}
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: {
roomId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo m =
input.readMessage(
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.parser(),
extensionRegistry);
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
teams_.add(m);
} else {
teamsBuilder_.addMessage(m);
}
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 java.lang.Object roomId_ = "";
/**
* <code>string RoomId = 1;</code>
* @return The roomId.
*/
public java.lang.String getRoomId() {
java.lang.Object ref = roomId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
roomId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string RoomId = 1;</code>
* @return The bytes for roomId.
*/
public com.google.protobuf.ByteString
getRoomIdBytes() {
java.lang.Object ref = roomId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
roomId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string RoomId = 1;</code>
* @param value The roomId to set.
* @return This builder for chaining.
*/
public Builder setRoomId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
roomId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string RoomId = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRoomId() {
roomId_ = getDefaultInstance().getRoomId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string RoomId = 1;</code>
* @param value The bytes for roomId to set.
* @return This builder for chaining.
*/
public Builder setRoomIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
roomId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> teams_ =
java.util.Collections.emptyList();
private void ensureTeamsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
teams_ = new java.util.ArrayList<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo>(teams_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder> teamsBuilder_;
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> getTeamsList() {
if (teamsBuilder_ == null) {
return java.util.Collections.unmodifiableList(teams_);
} else {
return teamsBuilder_.getMessageList();
}
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public int getTeamsCount() {
if (teamsBuilder_ == null) {
return teams_.size();
} else {
return teamsBuilder_.getCount();
}
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getTeams(int index) {
if (teamsBuilder_ == null) {
return teams_.get(index);
} else {
return teamsBuilder_.getMessage(index);
}
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder setTeams(
int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
if (teamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTeamsIsMutable();
teams_.set(index, value);
onChanged();
} else {
teamsBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder setTeams(
int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
teams_.set(index, builderForValue.build());
onChanged();
} else {
teamsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder addTeams(com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
if (teamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTeamsIsMutable();
teams_.add(value);
onChanged();
} else {
teamsBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder addTeams(
int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
if (teamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTeamsIsMutable();
teams_.add(index, value);
onChanged();
} else {
teamsBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder addTeams(
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
teams_.add(builderForValue.build());
onChanged();
} else {
teamsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder addTeams(
int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
teams_.add(index, builderForValue.build());
onChanged();
} else {
teamsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder addAllTeams(
java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> values) {
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, teams_);
onChanged();
} else {
teamsBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder clearTeams() {
if (teamsBuilder_ == null) {
teams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
teamsBuilder_.clear();
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public Builder removeTeams(int index) {
if (teamsBuilder_ == null) {
ensureTeamsIsMutable();
teams_.remove(index);
onChanged();
} else {
teamsBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder getTeamsBuilder(
int index) {
return getTeamsFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder getTeamsOrBuilder(
int index) {
if (teamsBuilder_ == null) {
return teams_.get(index); } else {
return teamsBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>
getTeamsOrBuilderList() {
if (teamsBuilder_ != null) {
return teamsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(teams_);
}
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder addTeamsBuilder() {
return getTeamsFieldBuilder().addBuilder(
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance());
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder addTeamsBuilder(
int index) {
return getTeamsFieldBuilder().addBuilder(
index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance());
}
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder>
getTeamsBuilderList() {
return getTeamsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>
getTeamsFieldBuilder() {
if (teamsBuilder_ == null) {
teamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>(
teams_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
teams_ = null;
}
return teamsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:MatchRoomInfo)
}
// @@protoc_insertion_point(class_scope:MatchRoomInfo)
private static final com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo();
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<MatchRoomInfo>
PARSER = new com.google.protobuf.AbstractParser<MatchRoomInfo>() {
@java.lang.Override
public MatchRoomInfo 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<MatchRoomInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MatchRoomInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -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 MatchRoomInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:MatchRoomInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string RoomId = 1;</code>
* @return The roomId.
*/
java.lang.String getRoomId();
/**
* <code>string RoomId = 1;</code>
* @return The bytes for roomId.
*/
com.google.protobuf.ByteString
getRoomIdBytes();
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo>
getTeamsList();
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getTeams(int index);
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
int getTeamsCount();
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>
getTeamsOrBuilderList();
/**
* <code>repeated .MatchTeamInfo Teams = 2;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder getTeamsOrBuilder(
int index);
}

View File

@@ -0,0 +1,777 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* <pre>
* 게엄 매칭 상태 정보
* </pre>
*
* Protobuf type {@code MatchStatusInfo}
*/
public final class MatchStatusInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MatchStatusInfo)
MatchStatusInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MatchStatusInfo.newBuilder() to construct.
private MatchStatusInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private MatchStatusInfo() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MatchStatusInfo();
}
@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_MatchStatusInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchStatusInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_ = 0;
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The status.
*/
@java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.MatchStatusType getStatus() {
com.caliverse.admin.domain.RabbitMq.message.MatchStatusType result = com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.forNumber(status_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.UNRECOGNIZED : result;
}
public static final int MATCHSTEP_FIELD_NUMBER = 2;
private int matchStep_ = 0;
/**
* <pre>
* 매칭 단계
* </pre>
*
* <code>int32 matchStep = 2;</code>
* @return The matchStep.
*/
@java.lang.Override
public int getMatchStep() {
return matchStep_;
}
public static final int WAITTIMESEC_FIELD_NUMBER = 3;
private int waitTimeSec_ = 0;
/**
* <pre>
* 예상 대기시간
* </pre>
*
* <code>int32 waitTimeSec = 3;</code>
* @return The waitTimeSec.
*/
@java.lang.Override
public int getWaitTimeSec() {
return waitTimeSec_;
}
public static final int WAITTIMEMAXSEC_FIELD_NUMBER = 4;
private int waitTimeMaxSec_ = 0;
/**
* <pre>
* 최대 대기시간
* </pre>
*
* <code>int32 waitTimeMaxSec = 4;</code>
* @return The waitTimeMaxSec.
*/
@java.lang.Override
public int getWaitTimeMaxSec() {
return waitTimeMaxSec_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.MatchStatusType_NONE.getNumber()) {
output.writeEnum(1, status_);
}
if (matchStep_ != 0) {
output.writeInt32(2, matchStep_);
}
if (waitTimeSec_ != 0) {
output.writeInt32(3, waitTimeSec_);
}
if (waitTimeMaxSec_ != 0) {
output.writeInt32(4, waitTimeMaxSec_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.MatchStatusType_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (matchStep_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, matchStep_);
}
if (waitTimeSec_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, waitTimeSec_);
}
if (waitTimeMaxSec_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, waitTimeMaxSec_);
}
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.MatchStatusInfo)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo other = (com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo) obj;
if (status_ != other.status_) return false;
if (getMatchStep()
!= other.getMatchStep()) return false;
if (getWaitTimeSec()
!= other.getWaitTimeSec()) return false;
if (getWaitTimeMaxSec()
!= other.getWaitTimeMaxSec()) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + MATCHSTEP_FIELD_NUMBER;
hash = (53 * hash) + getMatchStep();
hash = (37 * hash) + WAITTIMESEC_FIELD_NUMBER;
hash = (53 * hash) + getWaitTimeSec();
hash = (37 * hash) + WAITTIMEMAXSEC_FIELD_NUMBER;
hash = (53 * hash) + getWaitTimeMaxSec();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo 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.MatchStatusInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo 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.MatchStatusInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo 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.MatchStatusInfo 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.MatchStatusInfo parseFrom(
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.MatchStatusInfo 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.MatchStatusInfo parseDelimitedFrom(
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.MatchStatusInfo 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.MatchStatusInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.MatchStatusInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new 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>
* 게엄 매칭 상태 정보
* </pre>
*
* Protobuf type {@code MatchStatusInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:MatchStatusInfo)
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchStatusInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchStatusInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
matchStep_ = 0;
waitTimeSec_ = 0;
waitTimeMaxSec_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_MatchStatusInfo_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo build() {
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo result = new com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.matchStep_ = matchStep_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.waitTimeSec_ = waitTimeSec_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.waitTimeMaxSec_ = waitTimeMaxSec_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor 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.MatchStatusInfo) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getMatchStep() != 0) {
setMatchStep(other.getMatchStep());
}
if (other.getWaitTimeSec() != 0) {
setWaitTimeSec(other.getWaitTimeSec());
}
if (other.getWaitTimeMaxSec() != 0) {
setWaitTimeMaxSec(other.getWaitTimeMaxSec());
}
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: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
matchStep_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
waitTimeSec_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
waitTimeMaxSec_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
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 status_ = 0;
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The status.
*/
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchStatusType getStatus() {
com.caliverse.admin.domain.RabbitMq.message.MatchStatusType result = com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.forNumber(status_);
return result == null ? com.caliverse.admin.domain.RabbitMq.message.MatchStatusType.UNRECOGNIZED : result;
}
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.caliverse.admin.domain.RabbitMq.message.MatchStatusType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private int matchStep_ ;
/**
* <pre>
* 매칭 단계
* </pre>
*
* <code>int32 matchStep = 2;</code>
* @return The matchStep.
*/
@java.lang.Override
public int getMatchStep() {
return matchStep_;
}
/**
* <pre>
* 매칭 단계
* </pre>
*
* <code>int32 matchStep = 2;</code>
* @param value The matchStep to set.
* @return This builder for chaining.
*/
public Builder setMatchStep(int value) {
matchStep_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* 매칭 단계
* </pre>
*
* <code>int32 matchStep = 2;</code>
* @return This builder for chaining.
*/
public Builder clearMatchStep() {
bitField0_ = (bitField0_ & ~0x00000002);
matchStep_ = 0;
onChanged();
return this;
}
private int waitTimeSec_ ;
/**
* <pre>
* 예상 대기시간
* </pre>
*
* <code>int32 waitTimeSec = 3;</code>
* @return The waitTimeSec.
*/
@java.lang.Override
public int getWaitTimeSec() {
return waitTimeSec_;
}
/**
* <pre>
* 예상 대기시간
* </pre>
*
* <code>int32 waitTimeSec = 3;</code>
* @param value The waitTimeSec to set.
* @return This builder for chaining.
*/
public Builder setWaitTimeSec(int value) {
waitTimeSec_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <pre>
* 예상 대기시간
* </pre>
*
* <code>int32 waitTimeSec = 3;</code>
* @return This builder for chaining.
*/
public Builder clearWaitTimeSec() {
bitField0_ = (bitField0_ & ~0x00000004);
waitTimeSec_ = 0;
onChanged();
return this;
}
private int waitTimeMaxSec_ ;
/**
* <pre>
* 최대 대기시간
* </pre>
*
* <code>int32 waitTimeMaxSec = 4;</code>
* @return The waitTimeMaxSec.
*/
@java.lang.Override
public int getWaitTimeMaxSec() {
return waitTimeMaxSec_;
}
/**
* <pre>
* 최대 대기시간
* </pre>
*
* <code>int32 waitTimeMaxSec = 4;</code>
* @param value The waitTimeMaxSec to set.
* @return This builder for chaining.
*/
public Builder setWaitTimeMaxSec(int value) {
waitTimeMaxSec_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* <pre>
* 최대 대기시간
* </pre>
*
* <code>int32 waitTimeMaxSec = 4;</code>
* @return This builder for chaining.
*/
public Builder clearWaitTimeMaxSec() {
bitField0_ = (bitField0_ & ~0x00000008);
waitTimeMaxSec_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:MatchStatusInfo)
}
// @@protoc_insertion_point(class_scope:MatchStatusInfo)
private static final com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo();
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<MatchStatusInfo>
PARSER = new com.google.protobuf.AbstractParser<MatchStatusInfo>() {
@java.lang.Override
public MatchStatusInfo 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<MatchStatusInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MatchStatusInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchStatusInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -0,0 +1,56 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface MatchStatusInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:MatchStatusInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* <pre>
* </pre>
*
* <code>.MatchStatusType status = 1;</code>
* @return The status.
*/
com.caliverse.admin.domain.RabbitMq.message.MatchStatusType getStatus();
/**
* <pre>
* 매칭 단계
* </pre>
*
* <code>int32 matchStep = 2;</code>
* @return The matchStep.
*/
int getMatchStep();
/**
* <pre>
* 예상 대기시간
* </pre>
*
* <code>int32 waitTimeSec = 3;</code>
* @return The waitTimeSec.
*/
int getWaitTimeSec();
/**
* <pre>
* 최대 대기시간
* </pre>
*
* <code>int32 waitTimeMaxSec = 4;</code>
* @return The waitTimeMaxSec.
*/
int getWaitTimeMaxSec();
}

View File

@@ -0,0 +1,210 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* <pre>
* 매칭 상태
* </pre>
*
* Protobuf enum {@code MatchStatusType}
*/
public enum MatchStatusType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>MatchStatusType_NONE = 0;</code>
*/
MatchStatusType_NONE(0),
/**
* <pre>
* 매칭 예약 상태
* </pre>
*
* <code>MatchStatusType_RESERVED = 1;</code>
*/
MatchStatusType_RESERVED(1),
/**
* <pre>
* 매칭 진행 중
* </pre>
*
* <code>MatchStatusType_PROGRESS = 2;</code>
*/
MatchStatusType_PROGRESS(2),
/**
* <pre>
* 매칭 성공
* </pre>
*
* <code>MatchStatusType_SUCCESS = 3;</code>
*/
MatchStatusType_SUCCESS(3),
/**
* <pre>
* 매칭 취소
* </pre>
*
* <code>MatchStatusType_CANCEL = 4;</code>
*/
MatchStatusType_CANCEL(4),
/**
* <pre>
* 매칭 실패 - 대기시간 초과
* </pre>
*
* <code>MatchStatusType_TIMEOUT = 5;</code>
*/
MatchStatusType_TIMEOUT(5),
/**
* <pre>
* 매칭 실패 - 이유 미정
* </pre>
*
* <code>MatchStatusType_FAIL = 6;</code>
*/
MatchStatusType_FAIL(6),
UNRECOGNIZED(-1),
;
/**
* <code>MatchStatusType_NONE = 0;</code>
*/
public static final int MatchStatusType_NONE_VALUE = 0;
/**
* <pre>
* 매칭 예약 상태
* </pre>
*
* <code>MatchStatusType_RESERVED = 1;</code>
*/
public static final int MatchStatusType_RESERVED_VALUE = 1;
/**
* <pre>
* 매칭 진행 중
* </pre>
*
* <code>MatchStatusType_PROGRESS = 2;</code>
*/
public static final int MatchStatusType_PROGRESS_VALUE = 2;
/**
* <pre>
* 매칭 성공
* </pre>
*
* <code>MatchStatusType_SUCCESS = 3;</code>
*/
public static final int MatchStatusType_SUCCESS_VALUE = 3;
/**
* <pre>
* 매칭 취소
* </pre>
*
* <code>MatchStatusType_CANCEL = 4;</code>
*/
public static final int MatchStatusType_CANCEL_VALUE = 4;
/**
* <pre>
* 매칭 실패 - 대기시간 초과
* </pre>
*
* <code>MatchStatusType_TIMEOUT = 5;</code>
*/
public static final int MatchStatusType_TIMEOUT_VALUE = 5;
/**
* <pre>
* 매칭 실패 - 이유 미정
* </pre>
*
* <code>MatchStatusType_FAIL = 6;</code>
*/
public static final int MatchStatusType_FAIL_VALUE = 6;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MatchStatusType 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 MatchStatusType forNumber(int value) {
switch (value) {
case 0: return MatchStatusType_NONE;
case 1: return MatchStatusType_RESERVED;
case 2: return MatchStatusType_PROGRESS;
case 3: return MatchStatusType_SUCCESS;
case 4: return MatchStatusType_CANCEL;
case 5: return MatchStatusType_TIMEOUT;
case 6: return MatchStatusType_FAIL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<MatchStatusType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MatchStatusType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<MatchStatusType>() {
public MatchStatusType findValueByNumber(int number) {
return MatchStatusType.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(33);
}
private static final MatchStatusType[] VALUES = values();
public static MatchStatusType 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 MatchStatusType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:MatchStatusType)
}

View File

@@ -0,0 +1,729 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf type {@code MatchTeamInfo}
*/
public final class MatchTeamInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:MatchTeamInfo)
MatchTeamInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MatchTeamInfo.newBuilder() to construct.
private MatchTeamInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private MatchTeamInfo() {
teamId_ = "";
userGuids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MatchTeamInfo();
}
@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_MatchTeamInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchTeamInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder.class);
}
public static final int TEAMID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object teamId_ = "";
/**
* <code>string TeamId = 1;</code>
* @return The teamId.
*/
@java.lang.Override
public java.lang.String getTeamId() {
java.lang.Object ref = teamId_;
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();
teamId_ = s;
return s;
}
}
/**
* <code>string TeamId = 1;</code>
* @return The bytes for teamId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTeamIdBytes() {
java.lang.Object ref = teamId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
teamId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERGUIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringList userGuids_;
/**
* <code>repeated string UserGuids = 2;</code>
* @return A list containing the userGuids.
*/
public com.google.protobuf.ProtocolStringList
getUserGuidsList() {
return userGuids_;
}
/**
* <code>repeated string UserGuids = 2;</code>
* @return The count of userGuids.
*/
public int getUserGuidsCount() {
return userGuids_.size();
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the element to return.
* @return The userGuids at the given index.
*/
public java.lang.String getUserGuids(int index) {
return userGuids_.get(index);
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the value to return.
* @return The bytes of the userGuids at the given index.
*/
public com.google.protobuf.ByteString
getUserGuidsBytes(int index) {
return userGuids_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(teamId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, teamId_);
}
for (int i = 0; i < userGuids_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userGuids_.getRaw(i));
}
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(teamId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, teamId_);
}
{
int dataSize = 0;
for (int i = 0; i < userGuids_.size(); i++) {
dataSize += computeStringSizeNoTag(userGuids_.getRaw(i));
}
size += dataSize;
size += 1 * getUserGuidsList().size();
}
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.MatchTeamInfo)) {
return super.equals(obj);
}
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo other = (com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo) obj;
if (!getTeamId()
.equals(other.getTeamId())) return false;
if (!getUserGuidsList()
.equals(other.getUserGuidsList())) 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) + TEAMID_FIELD_NUMBER;
hash = (53 * hash) + getTeamId().hashCode();
if (getUserGuidsCount() > 0) {
hash = (37 * hash) + USERGUIDS_FIELD_NUMBER;
hash = (53 * hash) + getUserGuidsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo 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.MatchTeamInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo 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.MatchTeamInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo 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.MatchTeamInfo 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.MatchTeamInfo parseFrom(
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.MatchTeamInfo 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.MatchTeamInfo parseDelimitedFrom(
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.MatchTeamInfo 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.MatchTeamInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.MatchTeamInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code MatchTeamInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:MatchTeamInfo)
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchTeamInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchTeamInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.class, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder.class);
}
// Construct using com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
teamId_ = "";
userGuids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_MatchTeamInfo_descriptor;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getDefaultInstanceForType() {
return com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance();
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo build() {
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo buildPartial() {
com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo result = new com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo result) {
if (((bitField0_ & 0x00000002) != 0)) {
userGuids_ = userGuids_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.userGuids_ = userGuids_;
}
private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.teamId_ = teamId_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor 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.MatchTeamInfo) {
return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo other) {
if (other == com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance()) return this;
if (!other.getTeamId().isEmpty()) {
teamId_ = other.teamId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.userGuids_.isEmpty()) {
if (userGuids_.isEmpty()) {
userGuids_ = other.userGuids_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUserGuidsIsMutable();
userGuids_.addAll(other.userGuids_);
}
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: {
teamId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureUserGuidsIsMutable();
userGuids_.add(s);
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 java.lang.Object teamId_ = "";
/**
* <code>string TeamId = 1;</code>
* @return The teamId.
*/
public java.lang.String getTeamId() {
java.lang.Object ref = teamId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
teamId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string TeamId = 1;</code>
* @return The bytes for teamId.
*/
public com.google.protobuf.ByteString
getTeamIdBytes() {
java.lang.Object ref = teamId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
teamId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string TeamId = 1;</code>
* @param value The teamId to set.
* @return This builder for chaining.
*/
public Builder setTeamId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
teamId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>string TeamId = 1;</code>
* @return This builder for chaining.
*/
public Builder clearTeamId() {
teamId_ = getDefaultInstance().getTeamId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* <code>string TeamId = 1;</code>
* @param value The bytes for teamId to set.
* @return This builder for chaining.
*/
public Builder setTeamIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
teamId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList userGuids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUserGuidsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
userGuids_ = new com.google.protobuf.LazyStringArrayList(userGuids_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated string UserGuids = 2;</code>
* @return A list containing the userGuids.
*/
public com.google.protobuf.ProtocolStringList
getUserGuidsList() {
return userGuids_.getUnmodifiableView();
}
/**
* <code>repeated string UserGuids = 2;</code>
* @return The count of userGuids.
*/
public int getUserGuidsCount() {
return userGuids_.size();
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the element to return.
* @return The userGuids at the given index.
*/
public java.lang.String getUserGuids(int index) {
return userGuids_.get(index);
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the value to return.
* @return The bytes of the userGuids at the given index.
*/
public com.google.protobuf.ByteString
getUserGuidsBytes(int index) {
return userGuids_.getByteString(index);
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index to set the value at.
* @param value The userGuids to set.
* @return This builder for chaining.
*/
public Builder setUserGuids(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserGuidsIsMutable();
userGuids_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param value The userGuids to add.
* @return This builder for chaining.
*/
public Builder addUserGuids(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserGuidsIsMutable();
userGuids_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param values The userGuids to add.
* @return This builder for chaining.
*/
public Builder addAllUserGuids(
java.lang.Iterable<java.lang.String> values) {
ensureUserGuidsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userGuids_);
onChanged();
return this;
}
/**
* <code>repeated string UserGuids = 2;</code>
* @return This builder for chaining.
*/
public Builder clearUserGuids() {
userGuids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <code>repeated string UserGuids = 2;</code>
* @param value The bytes of the userGuids to add.
* @return This builder for chaining.
*/
public Builder addUserGuidsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureUserGuidsIsMutable();
userGuids_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:MatchTeamInfo)
}
// @@protoc_insertion_point(class_scope:MatchTeamInfo)
private static final com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo();
}
public static com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<MatchTeamInfo>
PARSER = new com.google.protobuf.AbstractParser<MatchTeamInfo>() {
@java.lang.Override
public MatchTeamInfo 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<MatchTeamInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MatchTeamInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@@ -0,0 +1,46 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface MatchTeamInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:MatchTeamInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string TeamId = 1;</code>
* @return The teamId.
*/
java.lang.String getTeamId();
/**
* <code>string TeamId = 1;</code>
* @return The bytes for teamId.
*/
com.google.protobuf.ByteString
getTeamIdBytes();
/**
* <code>repeated string UserGuids = 2;</code>
* @return A list containing the userGuids.
*/
java.util.List<java.lang.String>
getUserGuidsList();
/**
* <code>repeated string UserGuids = 2;</code>
* @return The count of userGuids.
*/
int getUserGuidsCount();
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the element to return.
* @return The userGuids at the given index.
*/
java.lang.String getUserGuids(int index);
/**
* <code>repeated string UserGuids = 2;</code>
* @param index The index of the value to return.
* @return The bytes of the userGuids at the given index.
*/
com.google.protobuf.ByteString
getUserGuidsBytes(int index);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,97 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Define_Common.proto
package com.caliverse.admin.domain.RabbitMq.message;
public interface MatchUserInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:MatchUserInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string userGuid = 1;</code>
* @return The userGuid.
*/
java.lang.String getUserGuid();
/**
* <code>string userGuid = 1;</code>
* @return The bytes for userGuid.
*/
com.google.protobuf.ByteString
getUserGuidBytes();
/**
* <code>string serverName = 2;</code>
* @return The serverName.
*/
java.lang.String getServerName();
/**
* <code>string serverName = 2;</code>
* @return The bytes for serverName.
*/
com.google.protobuf.ByteString
getServerNameBytes();
/**
* <code>int32 gameModeId = 3;</code>
* @return The gameModeId.
*/
int getGameModeId();
/**
* <code>string matchGroupId = 4;</code>
* @return The matchGroupId.
*/
java.lang.String getMatchGroupId();
/**
* <code>string matchGroupId = 4;</code>
* @return The bytes for matchGroupId.
*/
com.google.protobuf.ByteString
getMatchGroupIdBytes();
/**
* <code>string region = 5;</code>
* @return The region.
*/
java.lang.String getRegion();
/**
* <code>string region = 5;</code>
* @return The bytes for region.
*/
com.google.protobuf.ByteString
getRegionBytes();
/**
* <code>.google.protobuf.Timestamp startTime = 6;</code>
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
* <code>.google.protobuf.Timestamp startTime = 6;</code>
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
* <code>.google.protobuf.Timestamp startTime = 6;</code>
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
/**
* <pre>
* TODO: Need PartyInfo, MMR
* </pre>
*
* <code>.MatchStatusType status = 7;</code>
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* <pre>
* TODO: Need PartyInfo, MMR
* </pre>
*
* <code>.MatchStatusType status = 7;</code>
* @return The status.
*/
com.caliverse.admin.domain.RabbitMq.message.MatchStatusType getStatus();
}

View File

@@ -0,0 +1,122 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Game_Define.proto
package com.caliverse.admin.domain.RabbitMq.message;
/**
* Protobuf enum {@code ProfitHistoryType}
*/
public enum ProfitHistoryType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ProfitHistoryType_None = 0;</code>
*/
ProfitHistoryType_None(0),
/**
* <code>ProfitHistoryType_Stack = 1;</code>
*/
ProfitHistoryType_Stack(1),
/**
* <code>ProfitHistoryType_Gain = 2;</code>
*/
ProfitHistoryType_Gain(2),
UNRECOGNIZED(-1),
;
/**
* <code>ProfitHistoryType_None = 0;</code>
*/
public static final int ProfitHistoryType_None_VALUE = 0;
/**
* <code>ProfitHistoryType_Stack = 1;</code>
*/
public static final int ProfitHistoryType_Stack_VALUE = 1;
/**
* <code>ProfitHistoryType_Gain = 2;</code>
*/
public static final int ProfitHistoryType_Gain_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 ProfitHistoryType 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 ProfitHistoryType forNumber(int value) {
switch (value) {
case 0: return ProfitHistoryType_None;
case 1: return ProfitHistoryType_Stack;
case 2: return ProfitHistoryType_Gain;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ProfitHistoryType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProfitHistoryType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ProfitHistoryType>() {
public ProfitHistoryType findValueByNumber(int number) {
return ProfitHistoryType.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(27);
}
private static final ProfitHistoryType[] VALUES = values();
public static ProfitHistoryType 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 ProfitHistoryType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ProfitHistoryType)
}

View File

@@ -1219,5 +1219,290 @@ public interface ServerMessageOrBuilder extends
*/ */
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_LAND_AUCTION_RESERVATIONOrBuilder getNtfLandAuctionReservationOrBuilder(); com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_LAND_AUCTION_RESERVATIONOrBuilder getNtfLandAuctionReservationOrBuilder();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_PROFIT_HISTORY ntfAddBuildingProfitHistory = 87;</code>
* @return Whether the ntfAddBuildingProfitHistory field is set.
*/
boolean hasNtfAddBuildingProfitHistory();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_PROFIT_HISTORY ntfAddBuildingProfitHistory = 87;</code>
* @return The ntfAddBuildingProfitHistory.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_ADD_BUILDING_PROFIT_HISTORY getNtfAddBuildingProfitHistory();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_PROFIT_HISTORY ntfAddBuildingProfitHistory = 87;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_ADD_BUILDING_PROFIT_HISTORYOrBuilder getNtfAddBuildingProfitHistoryOrBuilder();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_RENTAL_HISTORY ntfAddBuildingRentalHistory = 88;</code>
* @return Whether the ntfAddBuildingRentalHistory field is set.
*/
boolean hasNtfAddBuildingRentalHistory();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_RENTAL_HISTORY ntfAddBuildingRentalHistory = 88;</code>
* @return The ntfAddBuildingRentalHistory.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_ADD_BUILDING_RENTAL_HISTORY getNtfAddBuildingRentalHistory();
/**
* <code>.ServerMessage.GS2GS_NTF_ADD_BUILDING_RENTAL_HISTORY ntfAddBuildingRentalHistory = 88;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_ADD_BUILDING_RENTAL_HISTORYOrBuilder getNtfAddBuildingRentalHistoryOrBuilder();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_SOLD_RECORD ntfUpdateSoldRecord = 89;</code>
* @return Whether the ntfUpdateSoldRecord field is set.
*/
boolean hasNtfUpdateSoldRecord();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_SOLD_RECORD ntfUpdateSoldRecord = 89;</code>
* @return The ntfUpdateSoldRecord.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_UPDATE_SOLD_RECORD getNtfUpdateSoldRecord();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_SOLD_RECORD ntfUpdateSoldRecord = 89;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_UPDATE_SOLD_RECORDOrBuilder getNtfUpdateSoldRecordOrBuilder();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_BEACON_SHOP_ITEM ntfUpdateBeaconShopItem = 90;</code>
* @return Whether the ntfUpdateBeaconShopItem field is set.
*/
boolean hasNtfUpdateBeaconShopItem();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_BEACON_SHOP_ITEM ntfUpdateBeaconShopItem = 90;</code>
* @return The ntfUpdateBeaconShopItem.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_UPDATE_BEACON_SHOP_ITEM getNtfUpdateBeaconShopItem();
/**
* <code>.ServerMessage.GS2GS_NTF_UPDATE_BEACON_SHOP_ITEM ntfUpdateBeaconShopItem = 90;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2GS_NTF_UPDATE_BEACON_SHOP_ITEMOrBuilder getNtfUpdateBeaconShopItemOrBuilder();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_BANNER ntfUpdateBanner = 91;</code>
* @return Whether the ntfUpdateBanner field is set.
*/
boolean hasNtfUpdateBanner();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_BANNER ntfUpdateBanner = 91;</code>
* @return The ntfUpdateBanner.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_UPDATE_BANNER getNtfUpdateBanner();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_BANNER ntfUpdateBanner = 91;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_UPDATE_BANNEROrBuilder getNtfUpdateBannerOrBuilder();
/**
* <code>.ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETE ntfQuestTaskForceComplete = 92;</code>
* @return Whether the ntfQuestTaskForceComplete field is set.
*/
boolean hasNtfQuestTaskForceComplete();
/**
* <code>.ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETE ntfQuestTaskForceComplete = 92;</code>
* @return The ntfQuestTaskForceComplete.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETE getNtfQuestTaskForceComplete();
/**
* <code>.ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETE ntfQuestTaskForceComplete = 92;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_QUEST_TASK_FORCE_COMPLETEOrBuilder getNtfQuestTaskForceCompleteOrBuilder();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULE ntfUpdateRankingSchedule = 93;</code>
* @return Whether the ntfUpdateRankingSchedule field is set.
*/
boolean hasNtfUpdateRankingSchedule();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULE ntfUpdateRankingSchedule = 93;</code>
* @return The ntfUpdateRankingSchedule.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULE getNtfUpdateRankingSchedule();
/**
* <code>.ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULE ntfUpdateRankingSchedule = 93;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MOS2GS_NTF_UPDATE_RANKING_SCHEDULEOrBuilder getNtfUpdateRankingScheduleOrBuilder();
/**
* <pre>
*========================================================
* Game Matching
* </pre>
*
* <code>.ServerMessage.GS2MS_REQ_MATCH_RESERVE reqMatchReserve = 110001;</code>
* @return Whether the reqMatchReserve field is set.
*/
boolean hasReqMatchReserve();
/**
* <pre>
*========================================================
* Game Matching
* </pre>
*
* <code>.ServerMessage.GS2MS_REQ_MATCH_RESERVE reqMatchReserve = 110001;</code>
* @return The reqMatchReserve.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_RESERVE getReqMatchReserve();
/**
* <pre>
*========================================================
* Game Matching
* </pre>
*
* <code>.ServerMessage.GS2MS_REQ_MATCH_RESERVE reqMatchReserve = 110001;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_RESERVEOrBuilder getReqMatchReserveOrBuilder();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_RESERVE ackMatchReserve = 110002;</code>
* @return Whether the ackMatchReserve field is set.
*/
boolean hasAckMatchReserve();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_RESERVE ackMatchReserve = 110002;</code>
* @return The ackMatchReserve.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_RESERVE getAckMatchReserve();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_RESERVE ackMatchReserve = 110002;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_RESERVEOrBuilder getAckMatchReserveOrBuilder();
/**
* <code>.ServerMessage.GS2MS_REQ_MATCH_CANCEL reqMatchCancel = 110003;</code>
* @return Whether the reqMatchCancel field is set.
*/
boolean hasReqMatchCancel();
/**
* <code>.ServerMessage.GS2MS_REQ_MATCH_CANCEL reqMatchCancel = 110003;</code>
* @return The reqMatchCancel.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_CANCEL getReqMatchCancel();
/**
* <code>.ServerMessage.GS2MS_REQ_MATCH_CANCEL reqMatchCancel = 110003;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_CANCELOrBuilder getReqMatchCancelOrBuilder();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_CANCEL ackMatchCancel = 110004;</code>
* @return Whether the ackMatchCancel field is set.
*/
boolean hasAckMatchCancel();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_CANCEL ackMatchCancel = 110004;</code>
* @return The ackMatchCancel.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_CANCEL getAckMatchCancel();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_CANCEL ackMatchCancel = 110004;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_CANCELOrBuilder getAckMatchCancelOrBuilder();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_STATUS ntfMatchStatus = 110005;</code>
* @return Whether the ntfMatchStatus field is set.
*/
boolean hasNtfMatchStatus();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_STATUS ntfMatchStatus = 110005;</code>
* @return The ntfMatchStatus.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_STATUS getNtfMatchStatus();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_STATUS ntfMatchStatus = 110005;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_STATUSOrBuilder getNtfMatchStatusOrBuilder();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_RESULT ntfMatchResult = 110006;</code>
* @return Whether the ntfMatchResult field is set.
*/
boolean hasNtfMatchResult();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_RESULT ntfMatchResult = 110006;</code>
* @return The ntfMatchResult.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_RESULT getNtfMatchResult();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_RESULT ntfMatchResult = 110006;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_RESULTOrBuilder getNtfMatchResultOrBuilder();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHANGE_GAME_STATE ntfMatchChangeGameState = 110011;</code>
* @return Whether the ntfMatchChangeGameState field is set.
*/
boolean hasNtfMatchChangeGameState();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHANGE_GAME_STATE ntfMatchChangeGameState = 110011;</code>
* @return The ntfMatchChangeGameState.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_CHANGE_GAME_STATE getNtfMatchChangeGameState();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHANGE_GAME_STATE ntfMatchChangeGameState = 110011;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_CHANGE_GAME_STATEOrBuilder getNtfMatchChangeGameStateOrBuilder();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_QUIT ntfMatchGameQuit = 110012;</code>
* @return Whether the ntfMatchGameQuit field is set.
*/
boolean hasNtfMatchGameQuit();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_QUIT ntfMatchGameQuit = 110012;</code>
* @return The ntfMatchGameQuit.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_GAME_QUIT getNtfMatchGameQuit();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_QUIT ntfMatchGameQuit = 110012;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_GAME_QUITOrBuilder getNtfMatchGameQuitOrBuilder();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_JOIN ntfMatchGameJoin = 110013;</code>
* @return Whether the ntfMatchGameJoin field is set.
*/
boolean hasNtfMatchGameJoin();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_JOIN ntfMatchGameJoin = 110013;</code>
* @return The ntfMatchGameJoin.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_GAME_JOIN getNtfMatchGameJoin();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_GAME_JOIN ntfMatchGameJoin = 110013;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_GAME_JOINOrBuilder getNtfMatchGameJoinOrBuilder();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_GAME_JOIN_RESERVE ntfMatchGameJoinReserve = 110014;</code>
* @return Whether the ntfMatchGameJoinReserve field is set.
*/
boolean hasNtfMatchGameJoinReserve();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_GAME_JOIN_RESERVE ntfMatchGameJoinReserve = 110014;</code>
* @return The ntfMatchGameJoinReserve.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_GAME_JOIN_RESERVE getNtfMatchGameJoinReserve();
/**
* <code>.ServerMessage.MS2GS_NTF_MATCH_GAME_JOIN_RESERVE ntfMatchGameJoinReserve = 110014;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_NTF_MATCH_GAME_JOIN_RESERVEOrBuilder getNtfMatchGameJoinReserveOrBuilder();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHEAT_CMD ntfMatchCheatCmd = 110019;</code>
* @return Whether the ntfMatchCheatCmd field is set.
*/
boolean hasNtfMatchCheatCmd();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHEAT_CMD ntfMatchCheatCmd = 110019;</code>
* @return The ntfMatchCheatCmd.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_CHEAT_CMD getNtfMatchCheatCmd();
/**
* <code>.ServerMessage.GS2MS_NTF_MATCH_CHEAT_CMD ntfMatchCheatCmd = 110019;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_NTF_MATCH_CHEAT_CMDOrBuilder getNtfMatchCheatCmdOrBuilder();
public com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MsgCase getMsgCase(); public com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MsgCase getMsgCase();
} }

View File

@@ -1,17 +0,0 @@
package com.caliverse.admin.domain.adminlog;
import com.caliverse.admin.domain.entity.HISTORYTYPEDETAIL;
public class AdminItemDeleteLog extends AdminLogBase {
public AdminItemDeleteLog(String userGuid, String itemGuid, String itemCount){
super(HISTORYTYPEDETAIL.USER_ITEM_DELETE);
var jsonObject = getJsonContentObject();
jsonObject.put("userGuid", userGuid);
jsonObject.put("itemGuid", itemGuid);
jsonObject.put("itemCount", itemCount);
}
}

View File

@@ -1,76 +0,0 @@
package com.caliverse.admin.domain.adminlog;
import com.caliverse.admin.domain.dao.admin.HistoryMapper;
import com.caliverse.admin.domain.entity.HISTORYTYPEDETAIL;
import com.caliverse.admin.global.common.utils.CommonUtils;
import com.caliverse.admin.global.component.AdminApplicationContextProvider;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.json.JSONObject;
import org.springframework.context.ApplicationContext;
import java.util.HashMap;
import java.util.Map;
@Slf4j
public abstract class AdminLogBase implements IAdminLog{
private final HistoryMapper historyMapper;
private static ApplicationContext context;
private final HISTORYTYPEDETAIL historyType;
protected Map<String, Object> map;
@Getter
protected JSONObject jsonContentObject = new JSONObject();
public AdminLogBase(HISTORYTYPEDETAIL historyType) {
this.historyMapper = AdminApplicationContextProvider.getContext().getBean(HistoryMapper.class);
this.historyType = historyType;
jsonContentObject = new JSONObject();
this.map = new HashMap<>();
makeDefaultMap();
}
//protected abstract void saveAdminLog();
private void makeDefaultMap(){
Long adminId = 0L;
String adminName = "";
String adminMail = "";
HISTORYTYPEDETAIL type = HISTORYTYPEDETAIL.NONE;
try {
adminId = CommonUtils.getAdmin().getId();
adminName = CommonUtils.getAdmin().getName();
adminMail = CommonUtils.getAdmin().getEmail();
}
catch (Exception e){
log.error("makeDefaultMap getAdmin() null error message : {}", e.getMessage());
}
this.map.put("adminId", adminId);
this.map.put("name", adminName);
this.map.put("mail", adminMail);
this.map.put("type", historyType);
}
@Override
public void saveLogToDB(){
this.map.put("content", jsonContentObject.toString());
historyMapper.saveLog(map);
}
}

View File

@@ -1,13 +0,0 @@
package com.caliverse.admin.domain.adminlog;
import com.caliverse.admin.domain.entity.HISTORYTYPEDETAIL;
public class AdminLoginPermitLog extends AdminLogBase {
public AdminLoginPermitLog() {
super(HISTORYTYPEDETAIL.LOGIN_PERMITTED);
}
}

View File

@@ -1,16 +0,0 @@
package com.caliverse.admin.domain.adminlog;
import com.caliverse.admin.domain.entity.HISTORYTYPEDETAIL;
public class AdminPasswordInitLog extends AdminLogBase {
public AdminPasswordInitLog(String name, String email) {
super(HISTORYTYPEDETAIL.PASSWORD_INIT);
var jsonObject = getJsonContentObject();
jsonObject.put("name", name);
jsonObject.put("email", email);
}
}

View File

@@ -1,8 +0,0 @@
package com.caliverse.admin.domain.adminlog;
import java.util.Map;
public interface IAdminLog {
public void saveLogToDB();
}

View File

@@ -1,38 +0,0 @@
package com.caliverse.admin.domain.api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.caliverse.admin.domain.service.UserItemService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;
@Tag(name = "비즈니스 로그 조회", description = "비즈니스 로그 조회 메뉴 api 입니다.")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/businesslog")
public class BusinessLogSearchController {
private final UserItemService userItemService;
@GetMapping("/useritemlist")
public String getUserItemList(@RequestParam Map<String, String> requestParams){
userItemService.getUserItemHistory(requestParams);
return null;
//return ResponseEntity.ok().body( userItemService.getUserItemList(requestParams));
}
}

View File

@@ -0,0 +1,73 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.response.DictionaryResponse;
import com.caliverse.admin.domain.service.MetaDataService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "메타데이터", description = "백과사전 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/dictionary")
public class DictionaryController {
private final MetaDataService metaDataService;
@GetMapping("/brand/list")
public ResponseEntity<DictionaryResponse> brandList(){
return ResponseEntity.ok().body( metaDataService.getBrandList());
}
@GetMapping("/ranking/list")
public ResponseEntity<DictionaryResponse> rankingList(){
return ResponseEntity.ok().body( metaDataService.getRankingList());
}
@GetMapping("/battle-config/list")
public ResponseEntity<DictionaryResponse> battleConfigList(){
return ResponseEntity.ok().body( metaDataService.getBattleConfigList());
}
@GetMapping("/battle-reward/list")
public ResponseEntity<DictionaryResponse> battleRewardList(){
return ResponseEntity.ok().body( metaDataService.getBattleRewardList());
}
@GetMapping("/game-mode/list")
public ResponseEntity<DictionaryResponse> gameModeList(){
return ResponseEntity.ok().body( metaDataService.getGameModeList());
}
@GetMapping("/event-action/list")
public ResponseEntity<DictionaryResponse> eventActionList(){
return ResponseEntity.ok().body( metaDataService.getEventActionList());
}
@GetMapping("/item/list")
public ResponseEntity<DictionaryResponse> itemList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( metaDataService.getItemDictList(requestParams));
}
@GetMapping("/item/excel-export")
public void itemExcelExport(HttpServletResponse response,
@RequestParam Map<String, String> requestParams){
metaDataService.itemExcelExport(response, requestParams);
}
@GetMapping("/craft/list")
public ResponseEntity<DictionaryResponse> craftList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( metaDataService.getCraftingDictList(requestParams));
}
@GetMapping("/craft/excel-export")
public void craftExcelExport(HttpServletResponse response,
@RequestParam Map<String, String> requestParams){
metaDataService.craftExcelExport(response, requestParams);
}
}

View File

@@ -1,57 +0,0 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.EventRequest;
import com.caliverse.admin.domain.response.EventResponse;
import com.caliverse.admin.domain.service.EventService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "이벤트", description = "이벤트 조회 및 발송 관리 메뉴 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/event")
public class EventController {
private final EventService eventService;
// 리스트 조회
@GetMapping("/list")
public ResponseEntity<EventResponse> getList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body(eventService.getList(requestParam));
}
// 상세 조회
@GetMapping("/detail/{id}")
public ResponseEntity<EventResponse> getDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body(eventService.getDetail(id));
}
@PostMapping
public ResponseEntity<EventResponse> postEvent(
@RequestBody EventRequest eventRequest){
return ResponseEntity.ok().body(eventService.postEvent(eventRequest));
}
@PutMapping("/{id}")
public ResponseEntity<EventResponse> updateEvent(
@PathVariable("id")Long id, @RequestBody EventRequest eventRequest){
return ResponseEntity.ok().body(eventService.updateEvent(id, eventRequest));
}
@DeleteMapping("/delete")
public ResponseEntity<EventResponse> deleteEvent(
@RequestBody EventRequest eventRequest){
return ResponseEntity.ok().body(eventService.deleteEvent(eventRequest));
}
@PostMapping("/item")
public ResponseEntity<EventResponse> getItem(
@RequestBody Map<String, String> item) {
return ResponseEntity.ok().body(eventService.getMetaItem(item.get("item")));
}
}

View File

@@ -0,0 +1,77 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.BattleEventRequest;
import com.caliverse.admin.domain.response.BattleEventResponse;
import com.caliverse.admin.domain.service.BattleEventService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "게임", description = "게임 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/game")
public class GameController {
private final BattleEventService battleEventService;
@GetMapping("/setting/list")
public ResponseEntity<BattleEventResponse> getGameSettingList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body( battleEventService.getBattleEventList(requestParam));
}
@GetMapping("/setting/detail/{id}")
public ResponseEntity<BattleEventResponse> getGameSettingDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body( battleEventService.getBattleEventDetail(id));
}
@PostMapping("/setting")
public ResponseEntity<BattleEventResponse> postGameSetting(
@RequestBody BattleEventRequest battleEventRequest){
return ResponseEntity.ok().body(battleEventService.postBattleEvent(battleEventRequest));
}
@PutMapping("/setting/{id}")
public ResponseEntity<BattleEventResponse> updateGameSetting(
@PathVariable("id")Long id, @RequestBody BattleEventRequest battleEventRequest){
return ResponseEntity.ok().body(battleEventService.updateBattleEvent(id, battleEventRequest));
}
@GetMapping("/match/list")
public ResponseEntity<BattleEventResponse> getGameMatchList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body( battleEventService.getBattleEventList(requestParam));
}
@GetMapping("/match/detail/{id}")
public ResponseEntity<BattleEventResponse> getGameMatchDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body( battleEventService.getBattleEventDetail(id));
}
@PostMapping("/match")
public ResponseEntity<BattleEventResponse> postGameMatch(
@RequestBody BattleEventRequest battleEventRequest){
return ResponseEntity.ok().body(battleEventService.postBattleEvent(battleEventRequest));
}
@PutMapping("/match/{id}")
public ResponseEntity<BattleEventResponse> updateGameMatch(
@PathVariable("id")Long id, @RequestBody BattleEventRequest battleEventRequest){
return ResponseEntity.ok().body(battleEventService.updateBattleEvent(id, battleEventRequest));
}
@DeleteMapping("/match/delete")
public ResponseEntity<BattleEventResponse> deleteGameMatch(
@RequestBody BattleEventRequest battleEventRequest){
return ResponseEntity.ok().body(battleEventService.deleteBattleEvent(battleEventRequest));
}
}

View File

@@ -49,65 +49,33 @@ public class IndicatorsController {
@RequestParam Map<String, String> requestParams,HttpServletResponse res){ @RequestParam Map<String, String> requestParams,HttpServletResponse res){
indicatorsService.retentionExcelDown(requestParams,res); indicatorsService.retentionExcelDown(requestParams,res);
} }
//Segment
@GetMapping("/segment/list") @GetMapping("/currency/list")
public ResponseEntity<IndicatorsResponse> segmentList( public ResponseEntity<IndicatorsResponse> currencyList(
@RequestParam Map<String, String> requestParams){ @RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.segmentList(requestParams)); return ResponseEntity.ok().body( indicatorsService.currencyList(requestParams));
}
@GetMapping("/segment/excel-down")
public void segmentExcelDown(
@RequestParam Map<String, String> requestParams,HttpServletResponse res){
indicatorsService.segmentExcelDown(requestParams, res);
}
//Playtime
@GetMapping("/playtime/list")
public ResponseEntity<IndicatorsResponse> playTimeList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.playTimeList(requestParams));
}
@GetMapping("/playtime/excel-down")
public void playTimeExcelDown(
@RequestParam Map<String, String> requestParams,HttpServletResponse res){
indicatorsService.playTimeExcelDown(requestParams, res);
} }
// 재화 지표
@GetMapping("/currency/use")
public ResponseEntity<IndicatorsResponse> acquire(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getCurrencyUse(requestParams));
}
@GetMapping("/currency/excel-down")
public void currencyExcelDown(
@RequestParam Map<String, String> requestParams, HttpServletResponse res){
indicatorsService.currencyExcelDown(requestParams, res);
}
// VBP 지표
@GetMapping("/currency/vbp")
public ResponseEntity<IndicatorsResponse> vbp(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getVBPList(requestParams));
}
// Item 지표 // Item 지표
@GetMapping("/currency/item") @GetMapping("/item/list")
public ResponseEntity<IndicatorsResponse> item( public ResponseEntity<IndicatorsResponse> item(
@RequestParam Map<String, String> requestParams){ @RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getItemList(requestParams)); return ResponseEntity.ok().body( indicatorsService.getItemList(requestParams));
} }
// 보유 지표
@GetMapping("/assets/list")
public ResponseEntity<IndicatorsResponse> assets(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getAssetsList(requestParams));
}
// 인스턴스 지표 // 인스턴스 지표
@GetMapping("/currency/instance") @GetMapping("/currency/instance")
public ResponseEntity<IndicatorsResponse> instance( public ResponseEntity<IndicatorsResponse> instance(
@RequestParam Map<String, String> requestParams){ @RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getInstanceList(requestParams)); return ResponseEntity.ok().body( indicatorsService.getInstanceList(requestParams));
} }
// 의상/타투 지표
@GetMapping("/currency/clothes")
public ResponseEntity<IndicatorsResponse> clothes(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( indicatorsService.getClothesList(requestParams));
}
// DAU 지표 // DAU 지표
@GetMapping("/dau/list") @GetMapping("/dau/list")
@@ -122,7 +90,10 @@ public class IndicatorsController {
indicatorsService.dauExcelDown(requestParams, res); indicatorsService.dauExcelDown(requestParams, res);
} }
@GetMapping("/dashboard/calium/converter")
public ResponseEntity<IndicatorsResponse> dashboardCaliumConverter(){
return ResponseEntity.ok().body( indicatorsService.getCaliumConverter());
}
/* /*
// DAU 지표 // DAU 지표
@GetMapping("/daily-medal/list") @GetMapping("/daily-medal/list")

View File

@@ -1,8 +1,6 @@
package com.caliverse.admin.domain.api; package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.EventRequest;
import com.caliverse.admin.domain.request.LandRequest; import com.caliverse.admin.domain.request.LandRequest;
import com.caliverse.admin.domain.response.EventResponse;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;

View File

@@ -60,4 +60,64 @@ public class LogController {
@RequestBody LogGameRequest logGameRequest){ @RequestBody LogGameRequest logGameRequest){
logService.currencyExcelExport(response, logGameRequest); logService.currencyExcelExport(response, logGameRequest);
} }
@GetMapping("/item/detail/list")
public ResponseEntity<LogResponse> itemDetailList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( logService.getItemDetailLogList(requestParams));
}
@PostMapping("/item/detail/excel-export")
public void itemDetailExcelExport(HttpServletResponse response,
@RequestBody LogGameRequest logGameRequest){
logService.itemDetailExcelExport(response, logGameRequest);
}
@GetMapping("/currency-item/list")
public ResponseEntity<LogResponse> currencyItemList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( logService.getCurrencyItemLogList(requestParams));
}
@PostMapping("/currency-item/excel-export")
public void currencyItemExcelExport(HttpServletResponse response,
@RequestBody LogGameRequest logGameRequest){
logService.currencyItemExcelExport(response, logGameRequest);
}
@GetMapping("/user/create/list")
public ResponseEntity<LogResponse> userCreateList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( logService.getUserCreateLogList(requestParams));
}
@PostMapping("/user/create/excel-export")
public void userCreateExcelExport(HttpServletResponse response,
@RequestBody LogGameRequest logGameRequest){
logService.userCreateExcelExport(response, logGameRequest);
}
@GetMapping("/user/login/list")
public ResponseEntity<LogResponse> userLoginList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( logService.getUserLoginDetailLogList(requestParams));
}
@PostMapping("/user/login/excel-export")
public void userLoginExcelExport(HttpServletResponse response,
@RequestBody LogGameRequest logGameRequest){
logService.userLoginExcelExport(response, logGameRequest);
}
@GetMapping("/user/snapshot/list")
public ResponseEntity<LogResponse> snapshotList(
@RequestParam Map<String, String> requestParams){
return ResponseEntity.ok().body( logService.getSnapshotLogList(requestParams));
}
@PostMapping("/user/snapshot/excel-export")
public void userSnapshotExcelExport(HttpServletResponse response,
@RequestBody LogGameRequest logGameRequest){
logService.SnapshotExcelExport(response, logGameRequest);
}
} }

View File

@@ -70,8 +70,8 @@ public class MenuController {
} }
@DeleteMapping("/banner/delete") @DeleteMapping("/banner/delete")
public ResponseEntity<MenuResponse> deleteMenuBanner( public ResponseEntity<MenuResponse> deleteMenuBanner(
@RequestBody MenuRequest menuRequest){ @RequestParam Long id){
return ResponseEntity.ok().body(menuService.deleteMail(menuRequest)); return ResponseEntity.ok().body(menuService.deleteBanner(id));
} }
} }

View File

@@ -0,0 +1,52 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.RankRequest;
import com.caliverse.admin.domain.response.RankResponse;
import com.caliverse.admin.domain.service.RankService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "랭킹", description = "랭킹 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/rank")
public class RankController {
private final RankService rankService;
@GetMapping("/schedule/list")
public ResponseEntity<RankResponse> getRankingScheduleList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body( rankService.getList(requestParam));
}
@GetMapping("/schedule/detail/{id}")
public ResponseEntity<RankResponse> getRankingScheduleDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body( rankService.getDetail(id));
}
@PostMapping("/schedule")
public ResponseEntity<RankResponse> postRankingSchedule(
@RequestBody RankRequest rankRequest){
return ResponseEntity.ok().body(rankService.postRankingSchedule(rankRequest));
}
@PutMapping("/schedule/{id}")
public ResponseEntity<RankResponse> updateRankingSchedule(
@PathVariable("id")Long id, @RequestBody RankRequest rankRequest){
return ResponseEntity.ok().body(rankService.updateRankingSchedule(id, rankRequest));
}
@DeleteMapping("/schedule/delete")
public ResponseEntity<RankResponse> deleteRankingSchedule(
@RequestParam Long id){
return ResponseEntity.ok().body(rankService.deleteRankingSchedule(id));
}
}

View File

@@ -0,0 +1,57 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.RewardEventRequest;
import com.caliverse.admin.domain.response.RewardEventResponse;
import com.caliverse.admin.domain.service.RewardEventService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "보상 이벤트", description = "보상 이벤트 조회 및 발송 관리 메뉴 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/event")
public class RewardEventController {
private final RewardEventService rewardEventService;
// 리스트 조회
@GetMapping("/list")
public ResponseEntity<RewardEventResponse> getList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body(rewardEventService.getList(requestParam));
}
// 상세 조회
@GetMapping("/detail/{id}")
public ResponseEntity<RewardEventResponse> getDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body(rewardEventService.getDetail(id));
}
@PostMapping
public ResponseEntity<RewardEventResponse> postEvent(
@RequestBody RewardEventRequest rewardEventRequest){
return ResponseEntity.ok().body(rewardEventService.postEvent(rewardEventRequest));
}
@PutMapping("/{id}")
public ResponseEntity<RewardEventResponse> updateEvent(
@PathVariable("id")Long id, @RequestBody RewardEventRequest rewardEventRequest){
return ResponseEntity.ok().body(rewardEventService.updateEvent(id, rewardEventRequest));
}
@DeleteMapping("/delete")
public ResponseEntity<RewardEventResponse> deleteEvent(
@RequestBody RewardEventRequest rewardEventRequest){
return ResponseEntity.ok().body(rewardEventService.deleteEvent(rewardEventRequest));
}
@PostMapping("/item")
public ResponseEntity<RewardEventResponse> getItem(
@RequestBody Map<String, String> item) {
return ResponseEntity.ok().body(rewardEventService.getMetaItem(item.get("item")));
}
}

View File

@@ -49,9 +49,4 @@ public class UserReportController {
@RequestBody UserReportRequest userReportRequest){ @RequestBody UserReportRequest userReportRequest){
return ResponseEntity.ok().body( userReportService.reportReply(userReportRequest)); return ResponseEntity.ok().body( userReportService.reportReply(userReportRequest));
} }
@PostMapping("/dummy")
public void dummy(
@RequestBody Map<String, String> map){
userReportService.dummy(map);
}
} }

View File

@@ -113,9 +113,9 @@ public class UsersController {
return ResponseEntity.ok().body( usersService.getQuest(guid)); return ResponseEntity.ok().body( usersService.getQuest(guid));
} }
/*@GetMapping("/claim") @PostMapping("/quest/task")
public ResponseEntity<UsersResponse> getClaim( public ResponseEntity<UsersResponse> questTaskComplete(
@RequestParam("guid") String guid){ @RequestBody UsersRequest requestBody){
return ResponseEntity.ok().body( usersService.getClaim(guid)); return ResponseEntity.ok().body( usersService.CompleteQuestTask(requestBody));
}*/ }
} }

View File

@@ -0,0 +1,52 @@
package com.caliverse.admin.domain.api;
import com.caliverse.admin.domain.request.WorldEventRequest;
import com.caliverse.admin.domain.response.WorldEventResponse;
import com.caliverse.admin.domain.service.WorldEventService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
@Tag(name = "월드이벤트", description = "월드이벤트 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/world-event")
public class WorldEventController {
private final WorldEventService worldEventService;
@GetMapping("/list")
public ResponseEntity<WorldEventResponse> getWorldEventList(
@RequestParam Map<String, String> requestParam){
return ResponseEntity.ok().body( worldEventService.getList(requestParam));
}
@GetMapping("/detail/{id}")
public ResponseEntity<WorldEventResponse> getWorldEventDetail(
@PathVariable("id") Long id){
return ResponseEntity.ok().body( worldEventService.getDetail(id));
}
@PostMapping
public ResponseEntity<WorldEventResponse> postWorldEvent(
@RequestBody WorldEventRequest worldEventRequest){
return ResponseEntity.ok().body(worldEventService.postWorldEvent(worldEventRequest));
}
@PutMapping("/{id}")
public ResponseEntity<WorldEventResponse> updateWorldEvent(
@PathVariable("id")Long id, @RequestBody WorldEventRequest worldEventRequest){
return ResponseEntity.ok().body(worldEventService.updateWorldEvent(id, worldEventRequest));
}
@DeleteMapping("/delete")
public ResponseEntity<WorldEventResponse> deleteWorldEvent(
@RequestParam Long id){
return ResponseEntity.ok().body(worldEventService.deleteWorldEvent(id));
}
}

View File

@@ -1,18 +0,0 @@
package com.caliverse.admin.domain.batch;
import org.springframework.batch.item.ItemProcessor;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class CustomProcessor implements ItemProcessor<String, String> {
@Override
public String process(String data) throws Exception {
log.info("Processing data: " + data);
//data = data.toUpperCase();
return data;
}
}

View File

@@ -1,26 +0,0 @@
package com.caliverse.admin.domain.batch;
import org.springframework.batch.item.ItemReader;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class CustomReader implements ItemReader<String> {
private String[] tokens = { "Hello World!", "Hello Spring!", "Hello Batch!" };
private int index = 0;
@Override
public String read() throws Exception {
if (index >= tokens.length) {
return null;
}
String data = index + " " + tokens[index];
index++;
log.info("reading data: {}", data);
return data;
}
}

View File

@@ -1,18 +0,0 @@
package com.caliverse.admin.domain.batch;
import org.springframework.batch.item.Chunk;
import org.springframework.batch.item.ItemWriter;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class CustomWriter implements ItemWriter<String> {
@Override
public void write(Chunk<? extends String> chunk) throws Exception {
for (String data : chunk) {
log.info("Writing item: " + data.toString());
}
}
}

View File

@@ -1,64 +0,0 @@
package com.caliverse.admin.domain.batch;
// import org.springframework.batch.core.Job;
// import org.springframework.batch.core.JobExecutionException;
// import org.springframework.batch.core.JobParameters;
// import org.springframework.batch.core.JobParametersBuilder;
// import org.springframework.batch.core.Step;
// import org.springframework.batch.core.job.builder.JobBuilder;
// import org.springframework.batch.core.launch.JobLauncher;
// import org.springframework.batch.core.repository.JobRepository;
// import org.springframework.batch.core.step.builder.StepBuilder;
// import org.springframework.batch.core.step.tasklet.Tasklet;
// import org.springframework.batch.repeat.RepeatStatus;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.transaction.PlatformTransactionManager;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
//@Configuration
//@RequiredArgsConstructor
@Slf4j
@Getter
public class TestJob {
// private final JobLauncher jobLauncher;
// private final PlatformTransactionManager transactionManager;
// @Bean
// public Job testSimpleJob(PlatformTransactionManager transactionManager, JobRepository jobRepository) {
// return new JobBuilder("testSimpleJob", jobRepository)
// .start(testSimpleStep(transactionManager, jobRepository))
// .build();
// }
// @Bean
// public Step testSimpleStep(PlatformTransactionManager transactionManager, JobRepository jobRepository) {
// return new StepBuilder("testSimpleStep", jobRepository)
// .tasklet(testTasklet(), transactionManager)
// .build();
// }
// public Tasklet testTasklet() {
// return (contribution, chunkContext) -> {
// log.info("test job runned");
// return RepeatStatus.FINISHED;
// };
// }
// public void runJob() {
// try {
// JobParameters jobParameters = new JobParametersBuilder()
// .addLong("run.id", System.currentTimeMillis())
// .toJobParameters();
// jobLauncher.run(testSimpleJob(transactionManager, null), jobParameters);
// } catch (JobExecutionException e) {
// log.error("Failed to execute job", e);
// }
// }
}

View File

@@ -8,6 +8,7 @@ import com.caliverse.admin.domain.entity.STATUS;
public interface AdminMapper { public interface AdminMapper {
Optional<Admin> findByEmail(String email); Optional<Admin> findByEmail(String email);
Optional<Admin> findById(Long id);
boolean existsByEmail(String email); boolean existsByEmail(String email);
@@ -18,7 +19,6 @@ public interface AdminMapper {
void initPwd(String password,Long id, Long updateBy); void initPwd(String password,Long id, Long updateBy);
void updatePwd(String password, Long updateBy, STATUS status); void updatePwd(String password, Long updateBy, STATUS status);
void saveHistoryPwd(String password,Long adminId);
//운영자 리스트 조회 //운영자 리스트 조회
List<Admin> getAdminList(Map<String, String> requestMap); List<Admin> getAdminList(Map<String, String> requestMap);

View File

@@ -21,7 +21,7 @@ public interface GroupMapper {
int findGroupName(String groupNm); int findGroupName(String groupNm);
int getAllCnt(); int getAllCnt();
// 권한 등록 // 권한 등록
void postAdminGroup(GroupRequest groupRequest); void postGroup(GroupRequest groupRequest);
//group_auth 테이블 삭제 by groupId //group_auth 테이블 삭제 by groupId
void deleteGroupAuth(String groupId); void deleteGroupAuth(String groupId);

View File

@@ -1,22 +0,0 @@
package com.caliverse.admin.domain.dao.admin;
import com.caliverse.admin.domain.entity.Log;
import java.util.List;
import java.util.Map;
public interface HistoryMapper {
// 사용 이력 리스트 조회
List<Log> getHistoryList(Map map);
//전체 데이터 count
int getAllCnt(Map map);
int getTotal();
String getLogJson(String id);
void saveLog(Map map);
//임시로 Meta Data를 넣기 위한 Mepper
void truncateMetaTable();
void insertMetaData(Map map);
}

View File

@@ -1,11 +1,8 @@
package com.caliverse.admin.domain.dao.admin; package com.caliverse.admin.domain.dao.admin;
import com.caliverse.admin.domain.entity.Event;
import com.caliverse.admin.domain.entity.LandAuction; import com.caliverse.admin.domain.entity.LandAuction;
import com.caliverse.admin.domain.entity.LandOwnerChange; import com.caliverse.admin.domain.entity.LandOwnerChange;
import com.caliverse.admin.domain.entity.Message;
import com.caliverse.admin.domain.request.LandRequest; import com.caliverse.admin.domain.request.LandRequest;
import org.apache.ibatis.annotations.Select;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@@ -24,8 +21,6 @@ public interface LandMapper {
LandOwnerChange getLandOwnerChangeDetail(Long id); LandOwnerChange getLandOwnerChangeDetail(Long id);
List<LandOwnerChange> getLandOwnerChangeInfo(int landId); List<LandOwnerChange> getLandOwnerChangeInfo(int landId);
List<Message> getMessage(Long id);
int getMaxLandSeq(Integer landId); int getMaxLandSeq(Integer landId);
int getPossibleLand(Integer landId); int getPossibleLand(Integer landId);
int getPossibleLandOwnerChanges(Integer landId); int getPossibleLandOwnerChanges(Integer landId);
@@ -33,11 +28,9 @@ public interface LandMapper {
int postLandAuction(LandRequest landRequest); int postLandAuction(LandRequest landRequest);
int postLandOwnerChange(LandRequest landRequest); int postLandOwnerChange(LandRequest landRequest);
void insertMessage(Map map);
int updateLandAuction(LandRequest landRequest); int updateLandAuction(LandRequest landRequest);
int updateLandOwnerChange(LandRequest landRequest); int updateLandOwnerChange(LandRequest landRequest);
int deleteMessage(Map map);
int initLandAuction(Long id); int initLandAuction(Long id);
int initLandOwnedChanges(Long id); int initLandOwnedChanges(Long id);

View File

@@ -13,14 +13,12 @@ public interface MenuMapper {
int getTotal(); int getTotal();
MenuBanner getBannerDetail(Long id); MenuBanner getBannerDetail(Long id);
List<Message> getMessage(Long id); List<Message> getMessage(Long id);
List<MenuBanner> getScheduleBannerList();
int getMaxOrderId(); int getMaxOrderId();
void insertBanner(MenuRequest mailRequest); void insertBanner(MenuRequest mailRequest);
void insertMessage(Map map); void insertMessage(Map map);
int updateBanner(MenuRequest mailRequest); int updateBanner(MenuRequest mailRequest);
int updateBannerStatus(Map map);
int deleteMessage(Map map); int deleteMessage(Map map);
void deleteBanner(Map map); void deleteBanner(Map map);

View File

@@ -0,0 +1,21 @@
package com.caliverse.admin.domain.dao.admin;
import com.caliverse.admin.domain.entity.RankingSchedule;
import com.caliverse.admin.domain.request.RankRequest;
import java.util.List;
import java.util.Map;
public interface RankMapper {
List<RankingSchedule> getRankingScheduleList(Map map);
int getTotal();
RankingSchedule getRankingScheduleDetail(Long id);
int postRankingSchedule(RankRequest rankRequest);
int updateRankingSchedule(RankRequest rankRequest);
int deleteRankingSchedule(Map map);
int checkOverlap(RankRequest rankRequest);
}

View File

@@ -0,0 +1,20 @@
package com.caliverse.admin.domain.dao.admin;
import org.apache.ibatis.annotations.*;
import java.util.List;
import java.util.Map;
public interface ReqIdMapper {
@Select("SELECT COALESCE(MAX(req_id), 0) + 1 FROM req_id_manager WHERE req_type = #{reqType}")
Integer getNextReqId(@Param("reqType") String reqType);
@Insert("INSERT INTO req_id_manager (req_type, req_id, description, create_by) VALUES (#{reqType}, #{reqId}, #{desc}, #{createBy})")
void insertReqIdHistory(@Param("reqType") String reqType, @Param("reqId") Integer reqId, @Param("desc") String desc, @Param("createBy") String createBy);
@Select("SELECT * FROM req_id_manager WHERE req_type = #{reqType} " +
"ORDER BY created_at DESC LIMIT #{limit}")
List<Map<String, Object>> getReqIdHistory(@Param("reqType") String reqType,
@Param("limit") int limit);
}

View File

@@ -1,30 +1,29 @@
package com.caliverse.admin.domain.dao.admin; package com.caliverse.admin.domain.dao.admin;
import com.caliverse.admin.domain.entity.Item; import com.caliverse.admin.domain.entity.Item;
import com.caliverse.admin.domain.entity.Event; import com.caliverse.admin.domain.entity.RewardEvent;
import com.caliverse.admin.domain.entity.Mail;
import com.caliverse.admin.domain.entity.Message; import com.caliverse.admin.domain.entity.Message;
import com.caliverse.admin.domain.request.EventRequest; import com.caliverse.admin.domain.request.RewardEventRequest;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface EventMapper { public interface RewardEventMapper {
List<Event> getEventList(Map map); List<RewardEvent> getEventList(Map map);
int getAllCnt(Map map); int getAllCnt(Map map);
int getTotal(); int getTotal();
Event getEventDetail(Long id); RewardEvent getEventDetail(Long id);
List<Message> getMessage(Long id); List<Message> getMessage(Long id);
List<Item> getItem(Long id); List<Item> getItem(Long id);
int postEvent(EventRequest mailRequest); int postEvent(RewardEventRequest mailRequest);
void insertMessage(Map map); void insertMessage(Map map);
void insertItem(Map map); void insertItem(Map map);
int updateEvent(EventRequest mailRequest); int updateEvent(RewardEventRequest mailRequest);
int deleteMessage(Map map); int deleteMessage(Map map);
@@ -35,5 +34,5 @@ public interface EventMapper {
int updateStatusEvent(Map map); int updateStatusEvent(Map map);
int updateAddFlag(Long id); int updateAddFlag(Long id);
List<Event> getScheduleEventList(); List<RewardEvent> getScheduleEventList();
} }

View File

@@ -0,0 +1,21 @@
package com.caliverse.admin.domain.dao.admin;
import com.caliverse.admin.domain.entity.WorldEvent;
import com.caliverse.admin.domain.request.WorldEventRequest;
import java.util.List;
import java.util.Map;
public interface WorldEventMapper {
List<WorldEvent> getWorldEventList(Map map);
int getTotal();
WorldEvent getWorldEventDetail(Long id);
int postWorldEvent(WorldEventRequest worldEventRequest);
int updateWorldEvent(WorldEventRequest worldEventRequest);
int deleteWorldEvent(Map map);
int checkOverlap(WorldEventRequest worldEventRequest);
}

View File

@@ -1,30 +0,0 @@
package com.caliverse.admin.domain.datacomponent;
import com.caliverse.admin.domain.service.DynamoDBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@EnableCaching
public class DynamoDBDataHandler {
@Autowired
private DynamoDBService dynamoDBService;
/**
* nickname에 대한 guid 정보 캐싱
* @param nickname
* @return guid
*/
@Cacheable(value = "nickNameByGuidData", key = "#p0", unless = "#result == null")
public String getNicknameByGuidData(String nickname) {
return "";
}
}

View File

@@ -5,6 +5,8 @@ import java.util.*;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.caliverse.admin.domain.entity.metaEnum.EJoinInProgressType;
import com.caliverse.admin.domain.entity.metaEnum.ETeamAssignmentType;
import com.caliverse.admin.domain.entity.metadata.*; import com.caliverse.admin.domain.entity.metadata.*;
import com.caliverse.admin.global.common.exception.MetaDataException; import com.caliverse.admin.global.common.exception.MetaDataException;
import jakarta.annotation.PostConstruct; import jakarta.annotation.PostConstruct;
@@ -14,6 +16,9 @@ import org.springframework.stereotype.Component;
import com.caliverse.admin.domain.entity.EMetaData; import com.caliverse.admin.domain.entity.EMetaData;
import static com.caliverse.admin.global.common.utils.DataHelper.parseDateTime;
import static com.caliverse.admin.global.common.utils.DataHelper.parseFloat;
@Component @Component
@Slf4j @Slf4j
public class MetaDataFileLoader { public class MetaDataFileLoader {
@@ -31,6 +36,17 @@ public class MetaDataFileLoader {
private final Map<Integer, MetaBattleConfigData> battleConfigs; private final Map<Integer, MetaBattleConfigData> battleConfigs;
private final Map<Integer, MetaBattleRewardData> battleRewards; private final Map<Integer, MetaBattleRewardData> battleRewards;
private final Map<String, MetaSystemMailData> systemMails; private final Map<String, MetaSystemMailData> systemMails;
private final Map<Integer, MetaGameModeMatchData> gameModeMatches;
private final List<MetaBuffData> buffs;
private final List<MetaGachaData> gachas;
private final List<MetaItemSetData> itemSets;
private final List<MetaAttributeRandomGroupData> attributeRandomGroups;
private final List<MetaWebLinkData> webLinks;
private final List<MetaBrandData> brands;
private final List<MetaCraftingData> craftings;
private final List<MetaCurrencyData> currencies;
private final List<MetaRankingData> rankings;
private final List<MetaEventActionScoreData> eventActionScoreDatas;
public MetaDataFileLoader(JsonFileReader jsonFileReader) { public MetaDataFileLoader(JsonFileReader jsonFileReader) {
this.jsonFileReader = jsonFileReader; this.jsonFileReader = jsonFileReader;
@@ -47,6 +63,17 @@ public class MetaDataFileLoader {
this.battleRewards = new ConcurrentHashMap<>(); this.battleRewards = new ConcurrentHashMap<>();
this.systemMails = new ConcurrentHashMap<>(); this.systemMails = new ConcurrentHashMap<>();
this.gameFFAConfigs = new ConcurrentHashMap<>(); this.gameFFAConfigs = new ConcurrentHashMap<>();
this.gameModeMatches = new ConcurrentHashMap<>();
this.buffs = new ArrayList<>();
this.gachas = new ArrayList<>();
this.itemSets = new ArrayList<>();
this.attributeRandomGroups = new ArrayList<>();
this.webLinks = new ArrayList<>();
this.brands = new ArrayList<>();
this.craftings = new ArrayList<>();
this.currencies = new ArrayList<>();
this.rankings = new ArrayList<>();
this.eventActionScoreDatas = new ArrayList<>();
} }
@PostConstruct @PostConstruct
@@ -80,6 +107,17 @@ public class MetaDataFileLoader {
loadSystemMail(); loadSystemMail();
loadGameMode(); loadGameMode();
loadGameModeFFAConfig(); loadGameModeFFAConfig();
loadGameModeMatch();
loadBuff();
loadBrand();
loadAttributeRandomGroup();
loadGacha();
loadItemSet();
loadWebLinkLocalize();
loadCrafting();
loadCurrency();
loadRanking();
loadEventActionScore();
}catch(MetaDataException e){ }catch(MetaDataException e){
log.error("Failed to initialize metadata", e); log.error("Failed to initialize metadata", e);
throw e; throw e;
@@ -99,6 +137,10 @@ public class MetaDataFileLoader {
return Optional.ofNullable(items.get(itemId)); return Optional.ofNullable(items.get(itemId));
} }
public List<MetaItemData> getMetaItems() {
return new ArrayList<>(items.values());
}
//의상 타입 가져오기 //의상 타입 가져오기
public Optional<MetaClothTypeData> getMetaClothType(int id) { public Optional<MetaClothTypeData> getMetaClothType(int id) {
if(id == 0) return Optional.empty(); if(id == 0) return Optional.empty();
@@ -145,6 +187,87 @@ public class MetaDataFileLoader {
return Optional.ofNullable(lands.get(id)); return Optional.ofNullable(lands.get(id));
} }
public Optional<MetaGachaData> getMetaGacha(int id) {
if(id == 0){
return Optional.empty();
}
return gachas.stream().filter(data -> data.getId() == id).findFirst();
}
public Optional<MetaItemSetData> getMetaItemSet(int id) {
if(id == 0){
return Optional.empty();
}
return itemSets.stream().filter(data -> data.getId() == id).findFirst();
}
public Optional<MetaCraftingData> getMetaCrafting(int id) {
if(id == 0){
return Optional.empty();
}
return craftings.stream().filter(data -> data.getId() == id).findFirst();
}
public Optional<MetaAttributeRandomGroupData> getMetaAttributeRandomGroup(String groupId) {
if(groupId.isEmpty()){
return Optional.empty();
}
return attributeRandomGroups.stream().filter(data -> data.getGroupId().equals(groupId)).findFirst();
}
public Optional<MetaAttributeRandomGroupData> getMetaAttributeRandomGroup(int id) {
if(id == 0){
return Optional.empty();
}
return attributeRandomGroups.stream().filter(data -> data.getKey() == id).findFirst();
}
public Optional<MetaBuffData> getMetaBuff(int id) {
if(id == 0){
return Optional.empty();
}
return buffs.stream().filter(data -> data.getBuffId() == id).findFirst();
}
public Optional<MetaBrandData> getMetaBrand(int id) {
if(id == 0){
return Optional.empty();
}
return brands.stream().filter(data -> data.getId() == id).findFirst();
}
public Optional<MetaWebLinkData> getMetaWebLinkLocalize(String key) {
if(key.isEmpty()) {
return Optional.empty();
}
return webLinks.stream().filter(data -> data.getKey().equals(key)).findFirst();
}
public Optional<MetaCurrencyData> getMetaCurrency(int id) {
if(id == 0) {
return Optional.empty();
}
return currencies.stream().filter(data -> data.getId() == id).findFirst();
}
public Optional<MetaRankingData> getMetaRanking(int id) {
if(id == 0) {
return Optional.empty();
}
return rankings.stream().filter(data -> data.getId() == id).findFirst();
}
//////////////// 리스트 조회
public List<MetaLandData> getMetaLands() { public List<MetaLandData> getMetaLands() {
return new ArrayList<>(lands.values()); return new ArrayList<>(lands.values());
} }
@@ -157,6 +280,10 @@ public class MetaDataFileLoader {
return new ArrayList<>(gameFFAConfigs.values()); return new ArrayList<>(gameFFAConfigs.values());
} }
public List<MetaGameModeMatchData> getMetaGameModeMatchs() {
return new ArrayList<>(gameModeMatches.values());
}
// 추후 없어질것 // 추후 없어질것
public List<MetaBattleConfigData> getMetaBattleConfigs() { public List<MetaBattleConfigData> getMetaBattleConfigs() {
return new ArrayList<>(battleConfigs.values()); return new ArrayList<>(battleConfigs.values());
@@ -175,8 +302,26 @@ public class MetaDataFileLoader {
return new ArrayList<>(systemMails.values()); return new ArrayList<>(systemMails.values());
} }
public List<MetaBrandData> getMetaBrand() {
return brands;
}
public List<MetaRankingData> getMetaRanking() {
return rankings;
}
public List<MetaEventActionScoreData> getMetaEventActionScore() {
return eventActionScoreDatas.stream()
.collect(Collectors.groupingBy(MetaEventActionScoreData::getGroupId)) // groupId로 그룹화
.values().stream()
.map(group -> group.get(0))
.sorted(Comparator.comparing(MetaEventActionScoreData::getGroupId)) // groupId 기준으로 정렬
.collect(Collectors.toList());
}
public List<MetaCraftingData> getMetaCrafting() {
return craftings;
}
@@ -213,10 +358,89 @@ public class MetaDataFileLoader {
metaList.forEach(meta -> { metaList.forEach(meta -> {
MetaItemData item = new MetaItemData(); MetaItemData item = new MetaItemData();
item.setItemId((Integer)meta.get("item_id"));
item.setName((String)meta.get("name")); // 기본 정보
item.setLargeType((String)meta.get("type_large")); item.setItemId((Integer) meta.get("item_id"));
item.setGender((String)meta.get("gender")); item.setName((String) meta.get("name"));
item.setDesc((String) meta.get("desc"));
item.setGender((String) meta.get("gender"));
// 이미지 정보
item.setImage3dDp((String) meta.get("image_3D_DP"));
item.setImage3dDpOpacity((String) meta.get("image_3D_DP_opacity"));
item.setImage3d((String) meta.get("image_3D"));
item.setImage3dOpacity((String) meta.get("image_3D_opacity"));
item.setImage2d((String) meta.get("image_2D"));
// 출시 정보
item.setReleaseDate(parseDateTime(meta.get("release_date")));
item.setBrand((Integer) meta.get("Brand"));
item.setIsNft((Boolean) meta.get("isNFT"));
// 타입 정보
item.setLargeType((String) meta.get("type_large"));
item.setSmallType((String) meta.get("type_small"));
item.setRegisterId((Integer) meta.get("register_id"));
// 수량 정보
item.setMaxCount((Integer) meta.get("max_count"));
item.setStackMaxCount((Integer) meta.get("stack_max_count"));
// 만료 정보
item.setExpireType((String) meta.get("expire_type"));
item.setExpireFixedTermStart(parseDateTime(meta.get("expire_fixedTerm_start")));
item.setExpireFixedTermEnd(parseDateTime(meta.get("expire_fixedTerm_end")));
item.setExpireTimeSec((Integer) meta.get("expire_time_sec"));
// 거래 정보
item.setIsUserTradable((Boolean) meta.get("is_user_tradable"));
item.setIsSystemTradable((Boolean) meta.get("is_system_tradable"));
item.setSellPriceType((String) meta.get("sell_price_type"));
item.setSellId((Integer) meta.get("sell_id"));
item.setSellPrice((Integer) meta.get("sell_price"));
// UI 관련
item.setOrder((Integer) meta.get("order"));
item.setIsThrowable((Boolean) meta.get("is_throwable"));
// 액션 정보
item.setActionType((String) meta.get("ActionType"));
item.setActionValue((Integer) meta.get("ActionValue"));
// 디테일 뷰 정보
item.setDetailOffset(parseFloat(meta.get("DetailOffset")));
item.setDetailScale(parseFloat(meta.get("DetailScale")));
item.setGuidePopup((Integer) meta.get("GuidePopup"));
item.setDetailRoll(parseFloat(meta.get("DetailRoll")));
item.setDetailPitch(parseFloat(meta.get("DetailPitch")));
item.setDetailCameraRight(parseFloat(meta.get("DetailCameraRight")));
item.setDetailCameraHeight(parseFloat(meta.get("DetailCameraHeight")));
item.setDetailCameraAngle(parseFloat(meta.get("DetailCameraAngle")));
// 속성 정보
item.setRarity((String) meta.get("Rarity"));
item.setDefaultAttribute((String) meta.get("DefaultAttribute"));
item.setAttributeRandomGroupId((String) meta.get("AttributeRandomGroupID"));
item.setItemSetId((Integer) meta.get("ItemSetID"));
item.setGachaGroupId((Integer) meta.get("GachaGroupId"));
// 구매 정보
item.setBuyPriceType((String) meta.get("Buy_Price_Type"));
item.setBuyId((Integer) meta.get("Buy_id"));
item.setBuyPrice((Integer) meta.get("Buy_price"));
item.setBuffId((Integer) meta.get("buff_id"));
item.setProductLink((String) meta.get("ProductLink"));
item.setIsCartNBuy((Boolean) meta.get("is_CartNBuy"));
item.setBuyDiscountRate((Integer) meta.get("Buy_Discount_Rate"));
// 기타
item.setPropSmallType((String) meta.get("PropSmallType"));
item.setUgqAction((String) meta.get("UGQAction"));
item.setLinkedLand((Integer) meta.get("LinkedLand"));
item.setIsUiOnly((Boolean) meta.get("IsUiOnly"));
item.setBeaconShopGoldFee((Integer) meta.get("BeaconShopGoldFee"));
item.setIsBeaconShop((Boolean) meta.get("is_BeaconShop"));
items.put(item.getItemId(), item); items.put(item.getItemId(), item);
}); });
@@ -387,6 +611,34 @@ public class MetaDataFileLoader {
log.info("loadGameMode {} Load Complete", EMetaData.GAME_MODE_DATA.getFileName()); log.info("loadGameMode {} Load Complete", EMetaData.GAME_MODE_DATA.getFileName());
} }
// 게임 모드 매칭 데이터 로드
public void loadGameModeMatch(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.GAME_MODE_MATCH_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Game Mode Match data is empty or file not found: {}", EMetaData.GAME_MODE_MATCH_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaGameModeMatchData item = new MetaGameModeMatchData();
item.setId((Integer)meta.get("GameModeMatchID"));
item.setDesc((String)meta.get("GameModeMatchDescription"));
item.setMmrCheck((Boolean)meta.get("MmrCheck"));
item.setPartyMatchPlayerCountAbleArray((List<Integer>) meta.get("PartyMatchPlayerCountAbleArray"));
item.setMatchWaitTimeSec((Integer)meta.get("MatchWaitTimeSec"));
item.setGameModeMmrID((Integer)meta.get("GameModeMmrID"));
item.setMatchRetryCount((Integer)meta.get("MatchRetryCount"));
item.setMmrExpansionPhase((Integer)meta.get("MmrExpansionPhase"));
item.setTeamAssignment(ETeamAssignmentType.valueOf((String)meta.get("TeamAssignment")));
item.setJoinInProgress(EJoinInProgressType.valueOf((String)meta.get("JoinInProgress")));
item.setJoinInMaxTimeSec((Integer)meta.get("JoinInMaxTimeSec"));
item.setEntranceClosingTime((Integer)meta.get("EntranceClosingTime"));
gameModeMatches.put((Integer)meta.get("GameModeMatchID"), item);
});
log.info("loadGameModeMatch {} Load Complete", EMetaData.GAME_MODE_DATA.getFileName());
}
// 게임 TPS_FFA 설정 데이터 로드 // 게임 TPS_FFA 설정 데이터 로드
public void loadGameModeFFAConfig(){ public void loadGameModeFFAConfig(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.GAME_MODE_FFA_DATA.getFileName()); List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.GAME_MODE_FFA_DATA.getFileName());
@@ -501,4 +753,382 @@ public class MetaDataFileLoader {
log.info("loadSystemMail {} Load Complete", EMetaData.SYSTEM_MAIL_DATA.getFileName()); log.info("loadSystemMail {} Load Complete", EMetaData.SYSTEM_MAIL_DATA.getFileName());
} }
// 웹링크 데이터 로드
public void loadWebLinkLocalize(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.WEB_LINK_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Web Link Localize data is empty or file not found: {}", EMetaData.WEB_LINK_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaWebLinkData item = new MetaWebLinkData();
item.setKey((String) meta.get("Key"));
item.setKo((String) meta.get("Ko"));
item.setEn((String) meta.get("En"));
item.setJa((String) meta.get("Ja"));
webLinks.add(item);
});
log.info("loadWebLinkLocalize {} Load Complete", EMetaData.WEB_LINK_DATA.getFileName());
}
// 브랜드 데이터 로드
public void loadBrand(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.BRAND_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Brand data is empty or file not found: {}", EMetaData.BRAND_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaBrandData item = new MetaBrandData();
item.setId((Integer) meta.get("ID"));
item.setBrandName((String) meta.get("BrandName"));
item.setLogoLeft((String) meta.get("LogoLeft"));
item.setLogoCenter((String) meta.get("LogoCenter"));
item.setLogoRight((String) meta.get("LogoRight"));
item.setLogoText((String) meta.get("LogoText"));
brands.add(item);
});
log.info("loadBrand {} Load Complete", EMetaData.BRAND_DATA.getFileName());
}
// 버프 데이터 로드
public void loadBuff(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.BUFF_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Buff data is empty or file not found: {}", EMetaData.BUFF_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaBuffData item = new MetaBuffData();
item.setBuffId((Integer) meta.get("buff_id"));
item.setBuffName((String) meta.get("buff_name"));
item.setBuffDescription((String) meta.get("buff_description"));
item.setBuffCategory((String) meta.get("buff_category"));
item.setBuffChannel((Integer) meta.get("buff_channel"));
item.setBuffPriority((Integer) meta.get("buff_priority"));
item.setActionBuffId((Integer) meta.get("action_buff_id"));
@SuppressWarnings("unchecked")
List<Map<String, Object>> traitsData = (List<Map<String, Object>>) meta.get("Traits");
if (traitsData != null) {
List<MetaBuffData.Trait> traits = new ArrayList<>();
traitsData.forEach(traitMap -> {
MetaBuffData.Trait trait = new MetaBuffData.Trait();
trait.setAttribute((String) traitMap.get("Attribute"));
trait.setValue((Integer) traitMap.get("Value"));
trait.setOperation((String) traitMap.get("Operation"));
traits.add(trait);
});
item.setTraits(traits);
}
// 프롭 관련
item.setPropmeshName((String) meta.get("propmesh_name"));
item.setPropmeshNameOpacity((String) meta.get("propmesh_name_opacity"));
item.setUseRequired((Integer) meta.get("use_required"));
// 가이드 관련
item.setInactiveRange((Integer) meta.get("InactiveRange"));
item.setGuideHeight((Integer) meta.get("GuideHeight"));
item.setGuideOffset((Integer) meta.get("GuideOffset"));
Number guideScaleValue = (Number) meta.get("GuideScale");
item.setGuideScale(guideScaleValue.doubleValue());
item.setPropEffect((String) meta.get("prop_effect"));
// 시작/종료 조건
item.setBuffStartCondition((String) meta.get("buff_start_condition"));
item.setBuffStartConditionValue((Integer) meta.get("buff_start_condition_value"));
item.setBuffEndCondition((String) meta.get("buff_end_condition"));
item.setBuffEndConditionValue((Integer) meta.get("buff_end_condition_value"));
item.setDurationTime((Integer) meta.get("duration_time"));
// 실행 관련
item.setBuffEndExecutionType((String) meta.get("buff_end_execution_type"));
item.setBuffEndExecutionValue((Integer) meta.get("buff_end_execution_value"));
// 어태치 관련
item.setAttachEffectBp((String) meta.get("attach_effect_bp"));
item.setAttachAvatarSocket((String) meta.get("attach_avatar_socket"));
item.setToolId((Integer) meta.get("tool_id"));
// 액션/모션 관련
item.setBuffActionName((String) meta.get("buff_action_name"));
item.setBuffMotionSet((String) meta.get("buff_motion_set"));
item.setBuffHandType((String) meta.get("buff_hand_type"));
item.setBuffActivateName((String) meta.get("buff_activate_name"));
item.setBuffDeactivateName((String) meta.get("buff_deactivate_name"));
item.setBuffSwapName((String) meta.get("buff_swap_name"));
// UI 관련
item.setBuffIcon2D((String) meta.get("buff_icon_2D"));
item.setBuffActionCooltime((Integer) meta.get("buff_action_cooltime"));
item.setUsingAimOffset((String) meta.get("using_aim_offset"));
// 플래그들
item.setUserDetachable((Boolean) meta.get("user_detachable"));
item.setNormalRemain((Boolean) meta.get("is_normal_remain"));
item.setConcertRemain((Boolean) meta.get("is_concert_remain"));
item.setMovieRemain((Boolean) meta.get("is_movie_remain"));
item.setMeetingRemain((Boolean) meta.get("is_meeting_remain"));
item.setMyhomeRemain((Boolean) meta.get("is_myhome_remain"));
item.setBeaconRemain((Boolean) meta.get("is_beacon_remain"));
item.setDressroomRemain((Boolean) meta.get("is_dressroom_remain"));
buffs.add(item);
});
log.info("loadBuff {} Load Complete", EMetaData.BUFF_DATA.getFileName());
}
// 속성랜덤그룹 데이터 로드
public void loadAttributeRandomGroup(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.ATTRIBUTE_RANDOM_GROUP_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Attribute Random Group data is empty or file not found: {}", EMetaData.ATTRIBUTE_RANDOM_GROUP_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaAttributeRandomGroupData item = new MetaAttributeRandomGroupData();
item.setKey((Integer) meta.get("Key"));
item.setGroupId((String) meta.get("GroupID"));
item.setAttribute((String) meta.get("Attribute"));
item.setWeight((Integer) meta.get("Weight"));
attributeRandomGroups.add(item);
});
log.info("loadAttributeRandomGroup {} Load Complete", EMetaData.ATTRIBUTE_RANDOM_GROUP_DATA.getFileName());
}
// 아이템세트 데이터 로드
public void loadItemSet(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.ITEM_SET_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Item Set data is empty or file not found: {}", EMetaData.ITEM_SET_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaItemSetData item = new MetaItemSetData();
item.setId((Integer) meta.get("ID"));
item.setName((String) meta.get("Name"));
@SuppressWarnings("unchecked")
List<String> itemsData = (List<String>) meta.get("Items");
item.setItems(itemsData);
@SuppressWarnings("unchecked")
List<Map<String, Object>> setEffectsData = (List<Map<String, Object>>) meta.get("SetEfffects");
if (setEffectsData != null) {
List<MetaItemSetData.SetEffect> setEffects = new ArrayList<>();
setEffectsData.forEach(effectMap -> {
MetaItemSetData.SetEffect setEffect = new MetaItemSetData.SetEffect();
setEffect.setRequirementCount((Integer) effectMap.get("RequirementCount"));
setEffect.setAttributeName((String) effectMap.get("AttributeName"));
setEffect.setAttributeValue((Integer) effectMap.get("AttributeValue"));
setEffects.add(setEffect);
});
item.setSetEffects(setEffects);
}
itemSets.add(item);
});
log.info("loadItemSet {} Load Complete", EMetaData.ITEM_SET_DATA.getFileName());
}
// 랜덤박스 데이터 로드
public void loadGacha(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.GACHA_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Gacha data is empty or file not found: {}", EMetaData.GACHA_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaGachaData item = new MetaGachaData();
item.setId((Integer) meta.get("Id"));
item.setGroupId((Integer) meta.get("GroupId"));
item.setWeight((Integer) meta.get("Weight"));
@SuppressWarnings("unchecked")
Map<String, Object> rewardData = (Map<String, Object>) meta.get("Reward");
if (rewardData != null) {
MetaGachaData.Reward reward = new MetaGachaData.Reward();
@SuppressWarnings("unchecked")
Map<String, Object> currencyData = (Map<String, Object>) rewardData.get("Currency");
if (currencyData != null) {
MetaGachaData.Currency currency = new MetaGachaData.Currency();
currency.setId((Integer) currencyData.get("Id"));
currency.setValue(((Number) currencyData.get("Value")).doubleValue());
reward.setCurrency(currency);
}
item.setReward(reward);
}
gachas.add(item);
});
log.info("loadGacha {} Load Complete", EMetaData.GACHA_DATA.getFileName());
}
// 제작 데이터 로드
public void loadCrafting(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.CRAFTING_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Crafting data is empty or file not found: {}", EMetaData.CRAFTING_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaCraftingData item = new MetaCraftingData();
// 기본 정보
item.setId((Integer) meta.get("Id"));
item.setPropSmallType((String) meta.get("PropSmallType"));
item.setCraftingItemId((Integer) meta.get("Crafting_ItemId"));
item.setCraftingItemValue((Integer) meta.get("Crafting_ItemValue"));
item.setRecipeType((String) meta.get("RecipeType"));
item.setRecipeItemId((Integer) meta.get("Recipe_ItemId"));
// Material 배열 처리
@SuppressWarnings("unchecked")
List<Map<String, Object>> materialData = (List<Map<String, Object>>) meta.get("Material");
if (materialData != null) {
List<MetaCraftingData.Material> materials = new ArrayList<>();
materialData.forEach(materialMap -> {
MetaCraftingData.Material material = new MetaCraftingData.Material();
material.setItemId((Integer) materialMap.get("ItemId"));
material.setItemValue((Integer) materialMap.get("ItemValue"));
materials.add(material);
});
item.setMaterials(materials);
}
@SuppressWarnings("unchecked")
List<Map<String, Object>> attributeData = (List<Map<String, Object>>) meta.get("Attribute");
if (attributeData != null) {
List<MetaCraftingData.Attribute> attributes = new ArrayList<>();
attributeData.forEach(attributeMap -> {
MetaCraftingData.Attribute attribute = new MetaCraftingData.Attribute();
attribute.setAttributeName((String) attributeMap.get("AttributeName"));
attribute.setAttributeValue((Integer) attributeMap.get("AttributeValue"));
attributes.add(attribute);
});
item.setAttributes(attributes);
}
@SuppressWarnings("unchecked")
List<Integer> propData = (List<Integer>) meta.get("Prop");
item.setProps(propData);
// 시간 및 제한 정보
item.setCraftingTime((Integer) meta.get("CraftingTime"));
item.setBeaconReduceTime((Integer) meta.get("Beacon_ReduceTime"));
item.setBeaconBonusItemId((Integer) meta.get("Beacon_BonusItemId"));
item.setMaxCraftLimit((Integer) meta.get("max_craft_limit"));
craftings.add(item);
});
log.info("loadCrafting {} Load Complete", EMetaData.CRAFTING_DATA.getFileName());
}
// 랜덤박스 데이터 로드
public void loadCurrency(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.CURRENCY_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Currency data is empty or file not found: {}", EMetaData.CURRENCY_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaCurrencyData item = new MetaCurrencyData();
item.setId((Integer) meta.get("Id"));
item.setCurrencyType((String) meta.get("CurrencyType"));
item.setName((String) meta.get("Name"));
item.setDescription((String) meta.get("Description"));
item.setMaxCount((Integer) meta.get("MaxCount"));
item.setIconPath((String) meta.get("IconPath"));
item.setItemId((Integer) meta.get("ItemID"));
currencies.add(item);
});
log.info("loadCurrency {} Load Complete", EMetaData.CURRENCY_DATA.getFileName());
}
// 랜덤박스 데이터 로드
public void loadRanking(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.RANKING_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Ranking data is empty or file not found: {}", EMetaData.RANKING_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaRankingData item = new MetaRankingData();
item.setId((Integer) meta.get("RankingId"));
item.setDesc((String) meta.get("desc_"));
item.setRankingType((String) meta.get("RankingType"));
item.setTypeId((Integer) meta.get("TypeId"));
item.setTypeValue((Integer) meta.get("TypeValue"));
item.setEventType((String) meta.get("EventType"));
item.setSortType((String) meta.get("SortType"));
item.setScoreType((String) meta.get("ScoreType"));
item.setScoreModifyType((String) meta.get("ScoreModifyType"));
rankings.add(item);
});
log.info("loadRanking {} Load Complete", EMetaData.RANKING_DATA.getFileName());
}
//이벤트 스코어
public void loadEventActionScore(){
List<Map<String, Object>> metaList = jsonFileReader.readJsonFile(EMetaData.EVENT_ACTION_SCORE_DATA.getFileName());
if(metaList == null || metaList.isEmpty()) {
log.warn("Event Action Score data is empty or file not found: {}", EMetaData.EVENT_ACTION_SCORE_DATA.getFileName());
return;
}
metaList.forEach(meta -> {
MetaEventActionScoreData item = new MetaEventActionScoreData();
item.setId((Integer) meta.get("Index"));
item.setDescription((String) meta.get("desc_"));
item.setGroupId((Integer) meta.get("GroupId"));
item.setEventTarget((String) meta.get("EventTarget"));
item.setEvent((String) meta.get("Event"));
item.setEventCondition1((String) meta.get("EventCondition1"));
item.setEventCondition2((String) meta.get("EventCondition2"));
item.setEventCondition3((String) meta.get("EventCondition3"));
item.setScore((Integer) meta.get("Score"));
item.setScoreModifyType((String) meta.get("ScoreModifyType"));
item.setActive((Boolean) meta.get("Active"));
eventActionScoreDatas.add(item);
});
log.info("loadEventActionScore {} Load Complete", EMetaData.EVENT_ACTION_SCORE_DATA.getFileName());
}
} }

View File

@@ -1,361 +0,0 @@
package com.caliverse.admin.domain.datacomponent;
import com.caliverse.admin.domain.entity.EMetaData;
import com.caliverse.admin.domain.entity.metadata.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Component
@Getter
@Slf4j
public class MetaDataFileLoader_old {
@Value("${caliverse.metadata.path}")
private String metaDataPath;
// private Map<Integer, MetaItemData> items;
// private Map<String, MetaTextStringData> textStrings;
// private Map<Integer, MetaClothTypeData> clothTypes;
// private Map<Integer, MetaToolData> toolItems;
// private Map<Integer, String> banWords;
// private Map<MetaQuestKey, MetaQuestData> quests;
// private Map<Integer, MetaBuildingData> buildings;
// private Map<Integer, MetaLandData> lands;
//
// public MetaTextStringData getName(String text){
// if(textStrings == null) parseMetaString();
// if(text == null) return null;
//
// MetaTextStringData name = textStrings.get(text);
//
// return name;
// }
//
// //아이템 가져오기
// public MetaItemData getMetaItem(int itemId) {
// if(textStrings == null) parseMetaString();
// if(items == null){
// parseMetaItems();
// }
// if(itemId == 0) return null;
//
// MetaItemData itemData = items.get(itemId);
//
// return itemData;
// }
//
// //의상 타입 가져오기
// public MetaClothTypeData getMetaClothType(int id) {
// if(clothTypes == null ){
// parseMetaClothTypes();
// }
// if(id == 0) return null;
//
// return clothTypes.get(id);
// }
//
// //도구 정보 가져오기
// public MetaToolData getMetaToolItem(int id) {
// if(textStrings == null) parseMetaString();
// if(toolItems == null ){
// parseMetaToolItems();
// }
// if(id == 0){
// return null;
// }
//
// return toolItems.get(id);
// }
//
// //퀘스트 정보 가져오기
// public List<MetaQuestData> getMetaQuests(int id) {
// if(textStrings == null) parseMetaString();
// if(quests == null ) parseMetaQuests();
// if(id == 0) return null;
//
// List<MetaQuestData> quest = new ArrayList<>();
// quests.forEach((key,val)->{
// if(key.getQeustId().equals(id)) quest.add(val);
// });
//
// return quest;
// }
//
// //빌딩 정보 가져오기
// public MetaBuildingData getMetaBuildingItem(int id) {
// if(textStrings == null) parseMetaString();
// if(buildings == null ){
// parseMetaBuilding();
// }
// if(id == 0){
// return null;
// }
//
// return buildings.get(id);
// }
//
// //랜드 정보 가져오기
// public MetaLandData getMetaLandItem(int id) {
// if(textStrings == null) parseMetaString();
// if(lands == null ){
// parseMetaLand();
// }
// if(id == 0){
// return null;
// }
//
// return lands.get(id);
// }
//
// // 아이템 정보 데이터 저장
// public void parseMetaItems(){
// items = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.ITEM_DATA.getFileName(), "ItemMetaDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// MetaItemData item = new MetaItemData();
// item.setItemId((Integer)itemInfo.get("item_id"));
// item.setName((String)itemInfo.get("name"));
// item.setLargeType((String)itemInfo.get("type_large"));
// item.setGender((String)itemInfo.get("gender"));
// items.put(item.getItemId(), item);
// }
//
// log.info("parseMetaItems ItemMetaDataList.json Load Complete");
//
// }
//
// // 의상 타입 데이터 저장
// public void parseMetaClothTypes(){
// clothTypes = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.CLOTH_TYPE_DATA.getFileName(), "ClothEquipTypeDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// MetaClothTypeData item = new MetaClothTypeData();
// item.setMetaId((Integer)itemInfo.get("Meta_id"));
// item.setSmallType((String)itemInfo.get("SmallType"));
// item.setEquipSlotType((String)itemInfo.get("EquipSlotType"));
// clothTypes.put(item.getMetaId(), item);
// }
// log.info("parseMetaClothTypes ClothEquipTypeDataList.json Load Complete");
// }
//
// // 도구 정보 데이터 저장
// public void parseMetaToolItems(){
// toolItems = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.TOOL_DATA.getFileName(), "ToolMetaDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// MetaToolData item = new MetaToolData();
// item.setToolId((Integer)itemInfo.get("tool_id"));
// item.setToolName((String)itemInfo.get("tool_name"));
// toolItems.put(item.getToolId(), item);
// }
// log.info("parseMetaToolItems ToolMetaDataList.json Load Complete");
// }
//
// // 금지어 데이터 저장
// public void parseMetaBanWord(){
// banWords = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.BAN_WORD_DATA.getFileName(), "BanWordMetaDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// banWords.put((Integer)itemInfo.get("Id"), (String)itemInfo.get("Ban_Word"));
// }
// log.info("parseMetaBanWord BanWordMetaDataList.json Load Complete");
// }
//
// // String 데이터 저장
// public void parseMetaString(){
// textStrings = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.TEXT_STRING_DATA.getFileName(), "TextStringMetaDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// MetaTextStringData item = new MetaTextStringData();
// item.setKey((String)itemInfo.get("Key"));
// item.setKor((String)itemInfo.get("SourceString"));
// item.setEn((String)itemInfo.get("en"));
// textStrings.put((String)itemInfo.get("Key"), item);
// }
// log.info("parseMetaString TextStringMetaDataList.json Load Complete");
// }
//
// // 퀘스트 데이터 저장
// public void parseMetaQuests(){
// quests = new HashMap<>();
//
// List<Map<String, Object>> itemInfos = loadDataFromJsonFile(EMetaData.QUEST_DATA.getFileName(), "QuestMetaDataList");
//
// for (Map<String, Object> itemInfo : itemInfos) {
// MetaQuestData item = new MetaQuestData();
// Integer questId = (Integer)itemInfo.get("QuestID");
// Integer taskNum = (Integer)itemInfo.get("TaskNum");
// item.setQuestId(questId);
// item.setTaskNum(taskNum);
// item.setTaskName((String)itemInfo.get("TaskName"));
// item.setCounter((Integer) itemInfo.get("SetCounter"));
// quests.put(new MetaQuestKey(questId, taskNum), item);
// }
// log.info("parseMetaQuests QuestMetaDataList.json Load Complete");
// }
//
// // 빌딩 데이터 저장
// public void parseMetaBuilding(){
// buildings = new HashMap<>();
//
// List<Map<String, Object>> buildingInfos = loadDataFromJsonFile(EMetaData.BUILDING_DATA.getFileName(), "BuildingMetaDataList");
//
// for (Map<String, Object> itemInfo : buildingInfos) {
// MetaBuildingData item = new MetaBuildingData();
// item.setBuildingId((Integer)itemInfo.get("BuildingId"));
// item.setBuildingOpen((Boolean)itemInfo.get("BuildingOpen"));
// item.setOwner((String)itemInfo.get("Owner"));
// item.setBuildingName((String)itemInfo.get("BuildingName"));
// item.setBuildingDesc((String)itemInfo.get("BuildingDesc"));
// item.setBuildingSize((String)itemInfo.get("BuildingSize"));
// item.setInstanceSocket((Integer)itemInfo.get("InstanceSocket"));
// item.setInstanceSocketLink((Integer)itemInfo.get("InstanceSocketLink"));
// buildings.put((Integer)itemInfo.get("BuildingId"), item);
// }
// log.info("parseMetaBuilding BuildingMetaDataList.json Load Complete");
// }
//
// // 랜드 데이터 저장
// public void parseMetaLand(){
// lands = new HashMap<>();
//
// List<Map<String, Object>> landInfos = loadDataFromJsonFile(EMetaData.LAND_DATA.getFileName(), "LandMetaDataList");
//
// for (Map<String, Object> itemInfo : landInfos) {
// MetaLandData item = new MetaLandData();
// item.setLandId((Integer)itemInfo.get("LandId"));
// item.setOwner((String)itemInfo.get("Owner"));
// item.setLandName((String)itemInfo.get("LandName"));
// item.setLandDesc((String)itemInfo.get("LandDesc"));
// item.setLandSize((String)itemInfo.get("LandSize"));
// item.setLandType((String)itemInfo.get("LandType"));
// item.setBuildingSocket((Integer)itemInfo.get("BuildingSocket"));
// lands.put((Integer)itemInfo.get("LandId"), item);
// }
// log.info("parseMetaLand LandMetaDataList.json Load Complete");
// }
//
// // resource json 파일 정보 읽어오기(resource)
//// public List<Map<String, Object>> loadDataFromJsonFile(String fileName, String listName) {
//// List<Map<String, Object>> resultMap = new ArrayList<>();
////
//// URL resourceUrl = getClass().getClassLoader().getResource("metadata/" + fileName);
//// log.info("loadDataFromJsonFile path: {}", resourceUrl.getPath());
////
//// try (InputStream inputStream = resourceUrl.openStream()) {
//// if (inputStream != null) {
//// boolean isRequired = EMetaData.getIsRequired(fileName);
//// if (isRequired) {
//// String str = new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);
//// ObjectMapper objectMapper = new ObjectMapper();
//// try {
//// JsonNode rootNode = objectMapper.readTree(str);
////
//// resultMap = objectMapper.readValue(rootNode.get(listName).toString(), new TypeReference<List<Map<String, Object>>>() {});
//// } catch (JsonMappingException e) {
//// log.error("loadDataFromJsonFile JsonMappingException: {}", e.getMessage());
//// } catch (JsonProcessingException e) {
//// log.error("loadDataFromJsonFile JsonProcessingException: {}", e.getMessage());
//// }
//// }
//// } else {
//// log.error("Resource not found: {}", fileName);
//// }
//// } catch (IOException e) {
//// log.error("loadDataFromJsonFile IOException: {}", e.getMessage());
//// }
////
//// return resultMap;
//// }
// // json 파일 정보 읽어오기
// public List<Map<String, Object>> loadDataFromJsonFile(String fileName, String listName) {
// List<Map<String, Object>> resultMap = new ArrayList<>();
//
// File file = new File(metaDataPath, fileName);
// log.info("loadDataFromJsonFile path: {}", file.getPath());
// if (file.isFile()) {
// boolean isRequired = EMetaData.getIsRequired(fileName);
// if (isRequired) {
// String str = readFileAsString(file);
// ObjectMapper objectMapper = new ObjectMapper();
// try {
// JsonNode rootNode = objectMapper.readTree(str);
//
// resultMap = objectMapper.readValue(rootNode.get(listName).toString(), new TypeReference<List<Map<String, Object>>>() {});
// } catch (JsonMappingException e) {
// log.error("loadDataFromJsonFile JsonMappingException: {}", e.getMessage());
// } catch (JsonProcessingException e) {
// log.error("loadDataFromJsonFile JsonProcessingException: {}", e.getMessage());
// }
// finally {
// file = null;
// }
// }
// }
// return resultMap;
// }
//// public List<Map<String, Object>> loadDataFromJsonFile(String fileName, String listName) {
//// List<Map<String, Object>> resultMap = new ArrayList<>();
//// File file = new File(getClass().getClassLoader().getResource("metadata").getPath(), fileName);
////// File file = new File(metaDataPath, fileName);
//// if (file.isFile()) {
//// boolean isRequired = EMetaData.getIsRequired(fileName);
//// if (isRequired) {
////
//// String str = readFileAsString(file);
//// ObjectMapper objectMapper = new ObjectMapper();
//// try {
//// // Parse the JSON object
//// JsonNode rootNode = objectMapper.readTree(str);
////
////// jsonMap = objectMapper.readValue(str, new TypeReference<Map<String, Object>>() {});
//// resultMap = objectMapper.readValue(rootNode.get(listName).toString(), new TypeReference<List<Map<String, Object>>>() {});
//// } catch (JsonMappingException e) {
//// e.printStackTrace();
//// } catch (JsonProcessingException e) {
//// e.printStackTrace();
//// }
//// finally {
//// file = null;
//// }
//// }
//// }
//// return resultMap;
//// }
//
// private String readFileAsString(File file) {
// StringBuilder fileContents = new StringBuilder((int)file.length());
// try (BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"))) {
// String line;
// while((line = br.readLine()) != null) {
// fileContents.append(line);
// }
// } catch (IOException e) {
// log.error("readFileAsString IOException: {}", e.getMessage());
// }
// return fileContents.toString();
// }
}

Some files were not shown because too many files have changed in this diff Show More