Compare commits

...

10 Commits

Author SHA1 Message Date
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
132 changed files with 35764 additions and 2696 deletions

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,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,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

@@ -17,7 +17,8 @@ public enum StatisticsType {
MONEY, MONEY,
USER_CREATE, USER_CREATE,
USER_LOGIN, USER_LOGIN,
CURRENCY CURRENCY,
ITEM
; ;
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

@@ -0,0 +1,7 @@
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> {
}

View File

@@ -72,6 +72,23 @@ public class MessageHandlerService {
} }
public void sendBannerMessage(String serverName){
var banner_builder = ServerMessage.MOS2GS_NTF_UPDATE_BANNER.newBuilder();
rabbitMqService.SendMessage(banner_builder.build(), serverName);
} }
public void sendQuestTaskCompleteMessage(String serverName, String accountId, int reqId, String questKey, int taskId){
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);
}
}

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,305 @@ 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();
/**
* <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_REQ_MATCH_ROOM_INFO reqMatchRoomInfo = 110007;</code>
* @return Whether the reqMatchRoomInfo field is set.
*/
boolean hasReqMatchRoomInfo();
/**
* <code>.ServerMessage.GS2MS_REQ_MATCH_ROOM_INFO reqMatchRoomInfo = 110007;</code>
* @return The reqMatchRoomInfo.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_ROOM_INFO getReqMatchRoomInfo();
/**
* <code>.ServerMessage.GS2MS_REQ_MATCH_ROOM_INFO reqMatchRoomInfo = 110007;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.GS2MS_REQ_MATCH_ROOM_INFOOrBuilder getReqMatchRoomInfoOrBuilder();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_ROOM_INFO ackMatchRoomInfo = 110008;</code>
* @return Whether the ackMatchRoomInfo field is set.
*/
boolean hasAckMatchRoomInfo();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_ROOM_INFO ackMatchRoomInfo = 110008;</code>
* @return The ackMatchRoomInfo.
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_ROOM_INFO getAckMatchRoomInfo();
/**
* <code>.ServerMessage.MS2GS_ACK_MATCH_ROOM_INFO ackMatchRoomInfo = 110008;</code>
*/
com.caliverse.admin.domain.RabbitMq.message.ServerMessage.MS2GS_ACK_MATCH_ROOM_INFOOrBuilder getAckMatchRoomInfoOrBuilder();
/**
* <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

@@ -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

@@ -60,4 +60,52 @@ 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);
}
} }

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

@@ -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

@@ -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,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 +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

@@ -31,8 +31,6 @@ public class BattleEvent {
// 시작 일자 // 시작 일자
@JsonProperty("event_start_dt") @JsonProperty("event_start_dt")
private LocalDateTime eventStartDt; private LocalDateTime eventStartDt;
@JsonProperty("event_end_time")
private LocalDateTime eventEndTime;
// 종료 일자 // 종료 일자
@JsonProperty("event_end_dt") @JsonProperty("event_end_dt")
private LocalDateTime eventEndDt; private LocalDateTime eventEndDt;

View File

@@ -0,0 +1,11 @@
package com.caliverse.admin.domain.entity;
public enum EQuestType {
NONE,
EPIC,
TUTORIAL,
NORMAL,
UGQ
;
}

View File

@@ -0,0 +1,35 @@
package com.caliverse.admin.domain.entity;
import com.caliverse.admin.domain.entity.metaEnum.EJoinInProgressType;
import com.caliverse.admin.domain.entity.metaEnum.ETeamAssignmentType;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Getter @Setter
public class GameModeSetting {
private Integer id;
private String desc;
@JsonProperty("mmr_check")
private boolean mmrCheck;
@JsonProperty("party_match_player_count_able_array")
private List<Integer> partyMatchPlayerCountAbleArray;
@JsonProperty("match_wait_time_sec")
private Integer matchWaitTimeSec;
@JsonProperty("game_mode_mmr_id")
private Integer gameModeMmrID;
@JsonProperty("match_retry_count")
private Integer matchRetryCount;
@JsonProperty("mmr_expansion_phase")
private Integer mmrExpansionPhase;
@JsonProperty("team_assignment")
private ETeamAssignmentType teamAssignment;
@JsonProperty("join_in_progress")
private EJoinInProgressType joinInProgress;
@JsonProperty("join_in_max_time_sec")
private Integer joinInMaxTimeSec;
@JsonProperty("entrance_closing_time")
private Integer entranceClosingTime;
}

View File

@@ -63,6 +63,8 @@ public enum HISTORYTYPEDETAIL {
NICKNAME_UPDATE("닉네임 수정"), NICKNAME_UPDATE("닉네임 수정"),
DATA_INIT_ADD("데이터 초기화 등록"), DATA_INIT_ADD("데이터 초기화 등록"),
SYSTEM_META_MAIL_DELETE("시스템 메타 메일 삭제"), SYSTEM_META_MAIL_DELETE("시스템 메타 메일 삭제"),
QUEST_UPDATE("퀘스트 수정"),
QUEST_DELETE("퀘스트 삭제"),
; ;
private String historyTypeDetail; private String historyTypeDetail;
HISTORYTYPEDETAIL(String type) { HISTORYTYPEDETAIL(String type) {

View File

@@ -0,0 +1,11 @@
package com.caliverse.admin.domain.entity;
public enum STATUSTYPE {
WAIT,
FAIL,
SUCCESS,
RUNNING,
FINISH,
COMPLETE
;
}

View File

@@ -31,8 +31,6 @@ public class BattleEventRequest {
// 시작 일자 // 시작 일자
@JsonProperty("event_start_dt") @JsonProperty("event_start_dt")
private LocalDateTime eventStartDt; private LocalDateTime eventStartDt;
@JsonProperty("event_end_time")
private LocalDateTime eventEndTime;
// 종료 일자 // 종료 일자
@JsonProperty("event_end_dt") @JsonProperty("event_end_dt")
private LocalDateTime eventEndDt; private LocalDateTime eventEndDt;

View File

@@ -2,6 +2,7 @@ package com.caliverse.admin.domain.request;
import com.caliverse.admin.domain.entity.common.SearchUserType; import com.caliverse.admin.domain.entity.common.SearchUserType;
import com.caliverse.admin.dynamodb.entity.EAmountDeltaType; import com.caliverse.admin.dynamodb.entity.EAmountDeltaType;
import com.caliverse.admin.dynamodb.entity.ECountDeltaType;
import com.caliverse.admin.dynamodb.entity.ECurrencyType; import com.caliverse.admin.dynamodb.entity.ECurrencyType;
import com.caliverse.admin.logs.entity.LogAction; import com.caliverse.admin.logs.entity.LogAction;
import com.caliverse.admin.logs.entity.LogDomain; import com.caliverse.admin.logs.entity.LogDomain;
@@ -28,10 +29,19 @@ public class LogGameRequest {
private LogDomain logDomain; private LogDomain logDomain;
@JsonProperty("tran_id") @JsonProperty("tran_id")
private String tranId; private String tranId;
//currency
@JsonProperty("currency_type") @JsonProperty("currency_type")
private ECurrencyType currencyType; private ECurrencyType currencyType;
@JsonProperty("amount_delta_type") @JsonProperty("amount_delta_type")
private EAmountDeltaType amountDeltaType; private EAmountDeltaType amountDeltaType;
//item
@JsonProperty("count_delta_type")
private ECountDeltaType countDeltaType;
@JsonProperty("item_type_large")
private String itemTypeLarge;
@JsonProperty("item_type_small")
private String itemTypeSmall;
@JsonProperty("start_dt") @JsonProperty("start_dt")
private LocalDateTime startDt; private LocalDateTime startDt;
@JsonProperty("end_dt") @JsonProperty("end_dt")

View File

@@ -27,4 +27,13 @@ public class UsersRequest {
private SEARCHTYPE mailType; private SEARCHTYPE mailType;
@JsonProperty("page_key") @JsonProperty("page_key")
private KeyParam pageKey; private KeyParam pageKey;
@JsonProperty("quest_key")
private String questKey;
@JsonProperty("quest_id")
private Integer questId;
private String type;
private String status;
@JsonProperty("task_no")
private Integer taskNo;
} }

View File

@@ -121,9 +121,11 @@ public class IndicatorsResponse {
@Data @Data
@Builder @Builder
public static class Retention{ public static class Retention{
private LocalDate date; private String logDay;
@JsonProperty("d-day") private Integer totalCreated;
private List<Dday> dDay; private Integer d1_rate;
private Integer d7_rate;
private Integer d30_rate;
} }
@Data @Data
@Builder @Builder

View File

@@ -1,6 +1,6 @@
package com.caliverse.admin.domain.response; package com.caliverse.admin.domain.response;
import com.caliverse.admin.Indicators.entity.CurrencyDetailLogInfo; import com.caliverse.admin.Indicators.entity.*;
import com.caliverse.admin.domain.entity.log.GenericLog; import com.caliverse.admin.domain.entity.log.GenericLog;
import com.caliverse.admin.logs.Indicatordomain.GenericMongoLog; import com.caliverse.admin.logs.Indicatordomain.GenericMongoLog;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
@@ -39,6 +39,14 @@ public class LogResponse {
private List<currencyLog> currencyList; private List<currencyLog> currencyList;
@JsonProperty("currency_detail_list") @JsonProperty("currency_detail_list")
private List<CurrencyDetailLogInfo> currencyDetailList; private List<CurrencyDetailLogInfo> currencyDetailList;
@JsonProperty("user_create_list")
private List<UserCreateLogInfo> userCreateList;
@JsonProperty("user_login_list")
private List<UserLoginDetailLogInfo> userLoginList;
@JsonProperty("item_detail_list")
private List<ItemDetailLogInfo> itemDetailList;
@JsonProperty("currency_item_list")
private List<CurrencyItemLogInfo> currencyItemList;
private int total; private int total;
@JsonProperty("total_all") @JsonProperty("total_all")
@@ -72,4 +80,29 @@ public class LogResponse {
private Integer totalCurrencies; private Integer totalCurrencies;
} }
@Data
@Builder
public static class itemLog {
private String logDay;
private String accountId;
private String userGuid;
private String userNickname;
private Double sapphireAcquired;
private Double sapphireConsumed;
private Double sapphireNet;
private Double goldAcquired;
private Double goldConsumed;
private Double goldNet;
private Double caliumAcquired;
private Double caliumConsumed;
private Double caliumNet;
private Double beamAcquired;
private Double beamConsumed;
private Double beamNet;
private Double rubyAcquired;
private Double rubyConsumed;
private Double rubyNet;
private Integer totalCurrencies;
}
} }

View File

@@ -50,7 +50,7 @@ public class UsersResponse {
@JsonProperty("mail_list") @JsonProperty("mail_list")
private List<Mail> mailList; private List<Mail> mailList;
@JsonProperty("myhome_info") @JsonProperty("myhome_info")
private Myhome myhomeInfo; private List<Myhome> myhomeInfo;
@JsonProperty("friend_list") @JsonProperty("friend_list")
private List<Friend> friendList; private List<Friend> friendList;
@JsonProperty("friend_send_list") @JsonProperty("friend_send_list")
@@ -129,19 +129,19 @@ public class UsersResponse {
@JsonProperty("character_id") @JsonProperty("character_id")
private String characterId; private String characterId;
//기본 외형 //기본 외형
private String basicstyle; private Integer basicstyle;
//체형 타입 //체형 타입
private String bodyshape; private Integer bodyshape;
//헤어스타일 //헤어스타일
private String hairstyle; private Integer hairstyle;
//얼굴 커스터마이징 //얼굴 커스터마이징
private int[] facesCustomizing; private List<Integer> facesCustomizing;
} }
@Data @Data
@Builder @Builder
public static class ClothItem { public static class ClothItem {
private String cloth; private Integer cloth;
private String clothName; private String clothName;
@JsonProperty("EquipSlotType") @JsonProperty("EquipSlotType")
private String slotType; private String slotType;
@@ -267,7 +267,7 @@ public class UsersResponse {
@JsonProperty("item_guid") @JsonProperty("item_guid")
private String itemGuid; private String itemGuid;
@JsonProperty("item_id") @JsonProperty("item_id")
private Long itemId; private Integer itemId;
@JsonProperty("item_name") @JsonProperty("item_name")
private String itemName; private String itemName;
private Double count; private Double count;
@@ -289,7 +289,7 @@ public class UsersResponse {
@Builder @Builder
public static class ToolItem{ public static class ToolItem{
@JsonProperty("tool_id") @JsonProperty("tool_id")
private String toolId; private Integer toolId;
@JsonProperty("tool_name") @JsonProperty("tool_name")
private String toolName; private String toolName;
} }
@@ -304,6 +304,8 @@ public class UsersResponse {
@Data @Data
@Builder @Builder
public static class QuestInfo{ public static class QuestInfo{
@JsonProperty("quest_key")
private String questKey;
@JsonProperty("quest_id") @JsonProperty("quest_id")
private Integer questId; private Integer questId;
@JsonProperty("quest_name") @JsonProperty("quest_name")
@@ -319,7 +321,7 @@ public class UsersResponse {
private String type; private String type;
@JsonProperty("current_task_num") @JsonProperty("current_task_num")
private Integer currentTaskNum; private Integer currentTaskNum;
private String status; private Integer status;
private List<Quest> detailQuest; private List<Quest> detailQuest;
} }
@Data @Data

View File

@@ -155,18 +155,12 @@ public class BattleEventService {
} }
// int operation_time = ffACalcEndTime(battleEventRequest); // int operation_time = ffACalcEndTime(battleEventRequest);
LocalTime startTime = battleEventRequest.getEventStartDt().toLocalTime();
LocalTime endTime = battleEventRequest.getEventEndTime().toLocalTime();
long duration = Duration.between(startTime, endTime).getSeconds();
int operation_time = (int) duration;
battleEventRequest.setEventOperationTime(operation_time);
List<BattleEvent> existingList = battleMapper.getCheckBattleEventList(battleEventRequest); List<BattleEvent> existingList = battleMapper.getCheckBattleEventList(battleEventRequest);
boolean isTime = isTimeOverlapping(existingList, battleEventRequest); boolean isTime = isTimeOverlapping(existingList, battleEventRequest);
if(isTime){ if(isTime){
log.warn("battle Schedule duplication start_dt: {}, end_dt: {}, operation_time: {}", battleEventRequest.getEventStartDt(), battleEventRequest.getEventEndDt(), operation_time); log.warn("battle Schedule duplication start_dt: {}, end_dt: {}, operation_time: {}",
battleEventRequest.getEventStartDt(), battleEventRequest.getEventEndDt(), battleEventRequest.getEventOperationTime());
return BattleEventResponse.builder() return BattleEventResponse.builder()
.status(CommonCode.ERROR.getHttpStatus()) .status(CommonCode.ERROR.getHttpStatus())
.result(ErrorCode.ERROR_BATTLE_EVENT_TIME_OVER.toString()) .result(ErrorCode.ERROR_BATTLE_EVENT_TIME_OVER.toString())
@@ -230,8 +224,8 @@ public class BattleEventService {
.build(); .build();
} }
int operation_time = ffACalcEndTime(battleEventRequest); // int operation_time = ffACalcEndTime(battleEventRequest);
battleEventRequest.setEventOperationTime(operation_time); // battleEventRequest.setEventOperationTime(operation_time);
// 일자만 필요해서 UTC시간으로 변경되다보니 한국시간(+9)을 더해서 마지막시간으로 설정 // 일자만 필요해서 UTC시간으로 변경되다보니 한국시간(+9)을 더해서 마지막시간으로 설정
LocalDateTime end_dt_kst = battleEventRequest.getEventEndDt() LocalDateTime end_dt_kst = battleEventRequest.getEventEndDt()
@@ -407,7 +401,7 @@ public class BattleEventService {
LocalDate newStartDate = newStartDt.toLocalDate(); LocalDate newStartDate = newStartDt.toLocalDate();
LocalDate newEndDate = newEndDt.toLocalDate(); LocalDate newEndDate = newEndDt.toLocalDate();
LocalTime newStartTime = newStartDt.toLocalTime(); LocalTime newStartTime = newStartDt.toLocalTime();
LocalTime newEndTime = newStartTime.plusSeconds(battleEventRequest.getEventOperationTime()); LocalTime newEndTime = newStartTime.plusSeconds(battleEventRequest.getEventOperationTime() + CommonConstants.BATTLE_SERVER_WAIT_TIME);
BattleEvent.BATTLE_REPEAT_TYPE newRepeatType = battleEventRequest.getRepeatType(); BattleEvent.BATTLE_REPEAT_TYPE newRepeatType = battleEventRequest.getRepeatType();
return existingList.stream().anyMatch(existingEvent -> { return existingList.stream().anyMatch(existingEvent -> {
@@ -420,7 +414,7 @@ public class BattleEventService {
LocalDate existingStartDate = existingStartDt.toLocalDate(); LocalDate existingStartDate = existingStartDt.toLocalDate();
LocalDate existingEndDate = existingEndDt.toLocalDate(); LocalDate existingEndDate = existingEndDt.toLocalDate();
LocalTime existingStartTime = existingStartDt.toLocalTime(); LocalTime existingStartTime = existingStartDt.toLocalTime();
LocalTime existingEndTime = existingStartTime.plusSeconds(existingEvent.getEventOperationTime()); LocalTime existingEndTime = existingStartTime.plusSeconds(existingEvent.getEventOperationTime() + CommonConstants.BATTLE_SERVER_WAIT_TIME);
BattleEvent.BATTLE_REPEAT_TYPE existingRepeatType = existingEvent.getRepeatType(); BattleEvent.BATTLE_REPEAT_TYPE existingRepeatType = existingEvent.getRepeatType();
// 1. 두 이벤트가 모두 NONE 타입인 경우 // 1. 두 이벤트가 모두 NONE 타입인 경우

View File

@@ -2,6 +2,7 @@ package com.caliverse.admin.domain.service;
import com.caliverse.admin.domain.dao.admin.CaliumMapper; import com.caliverse.admin.domain.dao.admin.CaliumMapper;
import com.caliverse.admin.domain.entity.*; import com.caliverse.admin.domain.entity.*;
import com.caliverse.admin.domain.entity.log.GenericLog;
import com.caliverse.admin.domain.entity.web3.ResponseConfirmData; import com.caliverse.admin.domain.entity.web3.ResponseConfirmData;
import com.caliverse.admin.domain.entity.web3.ResponseErrorCode; import com.caliverse.admin.domain.entity.web3.ResponseErrorCode;
import com.caliverse.admin.domain.entity.web3.ResponseRequestData; import com.caliverse.admin.domain.entity.web3.ResponseRequestData;
@@ -93,7 +94,7 @@ public class CaliumService {
logGenericRequest.setStartDt(LocalDateTime.now().minusDays(1)); logGenericRequest.setStartDt(LocalDateTime.now().minusDays(1));
logGenericRequest.setEndDt(LocalDateTime.now()); logGenericRequest.setEndDt(LocalDateTime.now());
logGenericRequest.setOrderBy("ASC"); logGenericRequest.setOrderBy("ASC");
List<GenericMongoLog> failList = businessLogGenericService.loadBusinessLogData(logGenericRequest, GenericMongoLog.class); List<GenericLog> failList = businessLogGenericService.loadBusinessLogData(logGenericRequest, GenericLog.class);
return CaliumResponse.builder() return CaliumResponse.builder()
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())

View File

@@ -1,22 +0,0 @@
package com.caliverse.admin.domain.service;
import org.springframework.stereotype.Service;
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;
import java.util.HashMap;
import java.util.Map;
@Service
public class DynamoDBAttributeCreateService {
public Map<String, AttributeValue> makeItemAttributeKey(String userGuid, String itemGuid){
Map<String, AttributeValue> itemAttributes = new HashMap<>();
itemAttributes.put("PK", AttributeValue.builder().s("item#" + userGuid).build());
itemAttributes.put("SK", AttributeValue.builder().s(itemGuid).build());
return itemAttributes;
}
}

View File

@@ -1,51 +0,0 @@
package com.caliverse.admin.domain.service;
import com.caliverse.admin.global.common.code.CommonCode;
import com.caliverse.admin.global.common.code.ErrorCode;
import com.caliverse.admin.global.common.exception.RestApiException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
import software.amazon.awssdk.services.dynamodb.model.DeleteItemRequest;
import software.amazon.awssdk.services.dynamodb.model.DeleteItemResponse;
/*
* 추후에 일반화 처리 필요
* */
@Service
public class DynamoDBQueryServiceBase {
@Value("${amazon.dynamodb.metaTable}")
private String metaTable;
private final DynamoDbClient dynamoDbClient;
private final DynamoDBAttributeCreateService dynamoDBAttributeCreateService;
public DynamoDBQueryServiceBase(DynamoDbClient dynamoDbClient
, DynamoDBAttributeCreateService dynamoDBAttributeCreateService
) {
this.dynamoDBAttributeCreateService = dynamoDBAttributeCreateService;
this.dynamoDbClient = dynamoDbClient;
}
public void deleteUserItem(String userGuid, String itemGuid) {
var itemAttributes = dynamoDBAttributeCreateService.makeItemAttributeKey(userGuid, itemGuid);
DeleteItemRequest request = DeleteItemRequest.builder()
.tableName(metaTable)
.key(itemAttributes)
.build();
DeleteItemResponse response = dynamoDbClient.deleteItem(request);
if (!response.sdkHttpResponse().isSuccessful()) {
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_ITEM_DELETE_FAIL.getMessage() );
}
}
}

View File

@@ -1,946 +0,0 @@
package com.caliverse.admin.domain.service;
import com.caliverse.admin.domain.RabbitMq.RabbitMqUtils;
import com.caliverse.admin.domain.RabbitMq.message.AuthAdminLevelType;
import com.caliverse.admin.domain.dao.admin.AdminMapper;
import com.caliverse.admin.domain.datacomponent.MetaDataHandler;
import com.caliverse.admin.domain.entity.metadata.MetaQuestData;
import com.caliverse.admin.domain.entity.*;
import com.caliverse.admin.domain.request.LandRequest;
import com.caliverse.admin.domain.request.UserReportRequest;
import com.caliverse.admin.domain.response.UserReportResponse;
import com.caliverse.admin.domain.response.UsersResponse;
import com.caliverse.admin.dynamodb.service.DynamoDBOperations;
import com.caliverse.admin.dynamodb.domain.atrrib.LandAuctionActivityAttrib;
import com.caliverse.admin.dynamodb.domain.atrrib.LandAuctionHighestBidUserAttrib;
import com.caliverse.admin.dynamodb.domain.atrrib.LandAuctionRegistryAttrib;
import com.caliverse.admin.dynamodb.domain.doc.LandAuctionActivityDoc;
import com.caliverse.admin.dynamodb.domain.doc.LandAuctionHighestBidUserDoc;
import com.caliverse.admin.dynamodb.domain.doc.LandAuctionRegistryDoc;
import com.caliverse.admin.dynamodb.entity.ELandAuctionResult;
import com.caliverse.admin.dynamodb.service.DynamodbUserService;
import com.caliverse.admin.global.common.annotation.DynamoDBTransaction;
import com.caliverse.admin.global.common.code.CommonCode;
import com.caliverse.admin.global.common.code.ErrorCode;
import com.caliverse.admin.global.common.constants.CommonConstants;
import com.caliverse.admin.global.common.constants.DynamoDBConstants;
import com.caliverse.admin.global.common.exception.RestApiException;
import com.caliverse.admin.global.common.utils.CommonUtils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.extern.slf4j.Slf4j;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import software.amazon.awssdk.enhanced.dynamodb.DynamoDbEnhancedClient;
import software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable;
import software.amazon.awssdk.enhanced.dynamodb.Key;
import software.amazon.awssdk.enhanced.dynamodb.TableSchema;
import software.amazon.awssdk.services.dynamodb.DynamoDbClient;
import software.amazon.awssdk.services.dynamodb.model.*;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.BiConsumer;
import java.util.stream.IntStream;
import java.util.stream.Stream;
@Slf4j
@Service
public class DynamoDBService {
@Value("${amazon.dynamodb.metaTable}")
private String metaTable;
private final DynamoDbClient dynamoDbClient;
private final DynamoDbEnhancedClient enhancedClient;
private final DynamoDBOperations DynamoDBOperations;
private final DynamodbUserService dynamodbUserService;
private final AdminMapper adminMapper;
private final MetaDataHandler metaDataHandler;
//private final HistoryService historyService;
private final ObjectMapper mapper = new ObjectMapper();
@Autowired
public DynamoDBService(DynamoDbClient dynamoDbClient,
AdminMapper adminMapper,
HistoryService historyService,
MetaDataHandler metaDataHandler,
DynamoDbEnhancedClient enhancedClient,
DynamoDBOperations DynamoDBOperations,
DynamodbUserService dynamodbUserService) {
this.dynamoDbClient = dynamoDbClient;
this.adminMapper = adminMapper;
this.metaDataHandler = metaDataHandler;
this.enhancedClient = enhancedClient;
this.DynamoDBOperations = DynamoDBOperations;
this.dynamodbUserService = dynamodbUserService;
}
// guid check
// public boolean isGuidChecked(String guid) {
// Map<String, AttributeValue> item = getItem("user_base#"+guid,"empty");
//
// return item.isEmpty();
// }
// public Map<String, Object> getAccountInfo(String guid){
// Map<String, Object> resMap = new HashMap<>();
//
// String key = "PK = :pkValue AND SK = :skValue";
// Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("account_base#"+guid).build()
// ,":skValue", AttributeValue.builder().s("empty").build());
//
// try {
// // 쿼리 실행
// QueryResponse response = executeQuery(key, values);
//
// // 응답에서 원하는 속성을 가져옵니다.
// for (Map<String, AttributeValue> item : response.items()) {
// AttributeValue attrValue = item.get("AccountBaseAttrib");
// if (attrValue != null) {
// // "Attr" 속성의 값을 읽어옵니다.
// String attrJson = attrValue.s();
//
// // JSON 문자열을 파싱하여 Map 또는 다른 객체로 변환합니다.
// ObjectMapper objectMapper = new ObjectMapper();
// Map<String, Object> attrMap = objectMapper.readValue(attrJson, new TypeReference<Map<String, Object>>() {});
//
// resMap.put("userInfo", UsersResponse.UserInfo.builder()
// .aid(CommonUtils.objectToString(attrMap.get("user_guid")))
// .userId(CommonUtils.objectToString(attrMap.get("account_id")))
// .nation(LANGUAGETYPE.values()[CommonUtils.objectToInteger(attrMap.get("language_type"))])
// //
// .membership(CommonUtils.objectToString(null))
// //todo 친구 추천 코드 임시 null 값으로 셋팅 23.09.20
// .friendCode(CommonUtils.objectToString(null))
// .createDt(CommonUtils.objectToString(attrMap.get("created_datetime")))
// .accessDt(CommonUtils.objectToString(attrMap.get("login_datetime")))
// .endDt(CommonUtils.objectToString(attrMap.get("logout_datetime")))
// .walletUrl(CommonUtils.objectToString(attrMap.get("connect_facewallet")))
// .adminLevel(CommonUtils.objectToString(attrMap.get("auth_amdin_level_type")))
// //todo 예비슬롯 임시 null 값으로 셋팅 23.09.20
// .spareSlot(CommonUtils.objectToString(null))
// .build());
// }
// }
// log.info("getAccountInfo UserInfo: {}", resMap);
//
// return resMap;
// } catch (Exception e) {
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }
// }
// 유저조회 - 아바타
public Map<String, Object> getAvatarInfo(String guid){
Map<String, Object> resMap = new HashMap<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("character_base#"+guid).build());
try {
excuteItems(executeQuery(key, values), "CharacterBaseAttrib")
.forEach(attrMap -> {
Map<String, Object> profile = (Map<String, Object>) attrMap.get("appearance_profile");
//Object customValue = attrMap.get("CustomValue");
resMap.put("avatarInfo", UsersResponse.AvatarInfo.builder()
.characterId(CommonUtils.objectToString(attrMap.get("character_guid")))
.basicstyle(CommonUtils.objectToString(profile.get("basic_style")))
.hairstyle(CommonUtils.objectToString(profile.get("hair_style")))
.facesCustomizing(CommonUtils.objectToIntArray(profile.get("custom_values")))
.bodyshape(CommonUtils.objectToString(profile.get("body_shape")))
.build());
});
log.info("getAvatarInfo AvatarInfo: {}", resMap);
return resMap;
} catch (Exception e) {
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
//퀘스트 조회
public List<UsersResponse.QuestInfo> getQuest(String guid){
List<UsersResponse.QuestInfo> res = new ArrayList<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("quest#"+guid).build());
try {
excuteItems(executeQuery(key, values), "QuestAttrib")
.forEach(attrMap -> {
Integer questId = (Integer) attrMap.get("quest_id");
Integer current_task_no = (Integer)attrMap.get("current_task_num");
List<MetaQuestData> metaQuests = metaDataHandler.getMetaQuestData(questId);
// 상세보기 퀘스트 전체 리스트
List<UsersResponse.Quest> detailQuests = metaQuests.stream()
.map(metaData -> UsersResponse.Quest.builder()
.questId(metaData.getQuestId())
.taskNo(metaData.getTaskNum())
.questName(metaDataHandler.getTextStringData(metaData.getTaskName()))
.counter(metaData.getCounter())
.status(current_task_no > metaData.getTaskNum() ? "완료" : "미완료" )
.build())
.toList();
//퀘스트 명칭
String taskName = metaQuests.stream()
.filter(attr -> attr.getTaskNum().equals(current_task_no))
.map(MetaQuestData::getTaskName)
.findFirst().orElse(null);
UsersResponse.QuestInfo questInfo = UsersResponse.QuestInfo.builder()
.questId(questId)
.questName(metaDataHandler.getTextStringData(taskName))
.status(CommonUtils.objectToString(attrMap.get("is_complete")))
.assignTime((String) attrMap.get("quest_assign_time"))
.type((String) attrMap.get("quest_type"))
.startTime((String) attrMap.get("task_start_time"))
.completeTime((String) attrMap.get("quest_complete_time"))
.currentTaskNum((Integer) attrMap.get("current_task_num"))
.detailQuest(detailQuests)
.build();
res.add(questInfo);
});
log.info("getQuest QuestInfo: {}", res);
return res;
} catch (Exception e) {
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
// dynamoDB 쿼리 리턴
public QueryResponse executeQuery(String key, Map<String, AttributeValue> values) {
QueryRequest getItemRequest = QueryRequest.builder()
.tableName(metaTable)
.keyConditionExpression(key)
.expressionAttributeValues(values)
.build();
return dynamoDbClient.query(getItemRequest);
}
public Map<String, AttributeValue> getItem(String partitionKey, String sortKey) {
Map<String, AttributeValue> keyMap = new HashMap<>();
keyMap.put("PK", AttributeValue.builder().s(partitionKey).build());
keyMap.put("SK", AttributeValue.builder().s(sortKey).build());
try{
// GetItem 요청 작성
GetItemRequest getItemRequest = GetItemRequest.builder()
.tableName(metaTable)
.key(keyMap)
.build();
// 아이템 가져오기
GetItemResponse getItemResponse = dynamoDbClient.getItem(getItemRequest);
return getItemResponse.item();
}catch (Exception e){
log.error("getItem Fail: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
public Stream<Map<String, Object>> excuteItems (QueryResponse response, String attrip){
return response.items().stream()
.map(item -> item.get(attrip))
.filter(Objects::nonNull)
.map(AttributeValue::s)
.map(attrJson -> {
ObjectMapper objectMapper = new ObjectMapper();
try {
return objectMapper.readValue(attrJson, new TypeReference<Map<String, Object>>() {});
} catch (JsonProcessingException e) {
throw new RuntimeException("JSON parsing error", e);
}
});
}
//신고 내역 조회
public List<UserReportResponse.Report> getUserReportList(Map<String,String> requestParam) {
List<UserReportResponse.Report> list = new ArrayList<>();
String startTime = CommonUtils.objectToString(requestParam.get("start_dt"));
String endTime = CommonUtils.objectToString(requestParam.get("end_dt"));
String expression = "PK = :pkValue and SK BETWEEN :skStartDt AND :skEndDt";
/*
LocalDateTime startDt =CommonUtils.stringToTime(startTime);
LocalDateTime endDt = CommonUtils.stringToTime(endTime);
int months = CommonUtils.calculateMonths(startDt, endDt);
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
for (int i = 0 ; i < months; i++){
expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":pkValue", AttributeValue.builder().s("userReport#" + startDt.getYear()
+String.format("%02d", startDt.plusMonths(i).getMonthValue())).build());
expressionAttributeValues.put(":skStartDt", AttributeValue.builder().s("report#" + startDt).build());
expressionAttributeValues.put(":skEndDt", AttributeValue.builder().s("report#" + endDt).build());
QueryRequest queryRequest = QueryRequest.builder()
.tableName(metaTable)
.keyConditionExpression(expression)
.expressionAttributeValues(expressionAttributeValues)
.build();
try {
QueryResponse response = dynamoDbClient.query(queryRequest);
// 응답에서 원하는 속성을 가져옵니다.
for (Map<String, AttributeValue> item : response.items()) {
AttributeValue attrValue = item.get("ReportInfo");
if (attrValue != null) {
// "Attr" 속성의 값을 읽어옵니다.
String attrJson = attrValue.s();
// JSON 문자열을 파싱하여 Map 또는 다른 객체로 변환합니다.
ObjectMapper objectMapper = new ObjectMapper();
// JSON 문자열을 Map으로 파싱
Map<String, Object> attrMap = objectMapper.readValue(attrJson, new TypeReference<Map<String, Object>>() {});
//담당자 검색
Map<String, Object> replyInfoMap = null;
if(item.get("ReplyInfo")!= null){
//담당자 검색
String replyInfo = item.get("ReplyInfo").s();
replyInfoMap = objectMapper.readValue(replyInfo, new TypeReference<Map<String, Object>>() {});
};
Map createTime = (Map)attrMap.get("CreateTime");
Map reTime = (Map)attrMap.get("ResolutionTime");
// "Seconds" 값을 Instant으로 변환하고 "Nanos" 값을 더함
Instant createInstant = Instant.ofEpochSecond(
Long.valueOf(CommonUtils.objectToString(createTime.get("Seconds")))
).plusNanos(
Integer.valueOf(CommonUtils.objectToString(createTime.get("Nanos")))
);
Instant reInstant = Instant.ofEpochSecond(
Long.valueOf(CommonUtils.objectToString(reTime.get("Seconds")))
).plusNanos(
Integer.valueOf(CommonUtils.objectToString(reTime.get("Nanos")))
);
UserReportResponse.Report report = UserReportResponse.Report.builder()
.pk(item.get("PK").s())
.sk(item.get("SK").s())
.reporterGuid(attrMap.get("ReporterGuid").toString())
.reporterNickName(attrMap.get("ReporterNickName").toString())
.targetGuid(attrMap.get("TargetGuid").toString())
.targetNickName(attrMap.get("TargetNickName").toString())
.reportType(Arrays.stream(REPORTTYPE.values())
.filter(r->r.getName().equals(attrMap.get("Reason").toString()))
.findFirst().orElse(null))
.title(attrMap.get("Title").toString())
.detail(attrMap.get("Detail").toString())
.state(attrMap.get("State").toString().equals("1")? STATUS.UNRESOLVED:STATUS.RESOLVED)
.createTime(createInstant.atZone(ZoneOffset.UTC).toLocalDateTime())
.resolutionTime(Integer.valueOf(reTime.get("Seconds").toString()) == 0?null:
reInstant.atZone(ZoneOffset.UTC).toLocalDateTime())
.managerEmail(item.get("ReplyInfo")!= null?
CommonUtils.objectToString(replyInfoMap.get("ManagerEmail")):""
)
.build();
list.add(report);
}
}
}catch (JsonProcessingException jpe){
log.error("getUserReportList JsonProcessingException: {}", jpe.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}catch (Exception e){
log.error("getUserReportList: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}*/
return list;
}
//신고내역 상세보기
public UserReportResponse.ResultData getUserReportDetail(Map<String,String> requestParam){
UserReportResponse.ResultData resultData = UserReportResponse.ResultData.builder().build();
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":pkValue", AttributeValue.builder().s(requestParam.get("pk")).build());
expressionAttributeValues.put(":skValue", AttributeValue.builder().s(requestParam.get("sk")).build());
QueryRequest queryRequest = QueryRequest.builder()
.tableName(metaTable)
.keyConditionExpression("PK = :pkValue and SK = :skValue")
.expressionAttributeValues(expressionAttributeValues)
.build();
try{
QueryResponse response = dynamoDbClient.query(queryRequest);
for (Map<String, AttributeValue> item : response.items()) {
AttributeValue ReportInfo = item.get("ReportInfo");
if (ReportInfo != null) {
// "Attr" 속성의 값을 읽어옵니다.
String attrJson = ReportInfo.s();
// JSON 문자열을 파싱하여 Map 또는 다른 객체로 변환합니다.
ObjectMapper objectMapper = new ObjectMapper();
Map<String, Object> attrMap = objectMapper.readValue(attrJson, new TypeReference<Map<String, Object>>() {});
Map createTime = (Map)attrMap.get("CreateTime");
Map reTime = (Map)attrMap.get("ResolutionTime");
// "Seconds" 값을 Instant으로 변환하고 "Nanos" 값을 더함
Instant createInstant = Instant.ofEpochSecond(
Long.valueOf(CommonUtils.objectToString(createTime.get("Seconds")))
).plusNanos(
Integer.valueOf(CommonUtils.objectToString(createTime.get("Nanos")))
);
Instant reInstant = Instant.ofEpochSecond(
Long.valueOf(CommonUtils.objectToString(reTime.get("Seconds")))
).plusNanos(
Integer.valueOf(CommonUtils.objectToString(reTime.get("Nanos")))
);
resultData.setReport(UserReportResponse.Report.builder()
.reporterGuid(attrMap.get("ReporterGuid").toString())
.reporterNickName(attrMap.get("ReporterNickName").toString())
.targetGuid(attrMap.get("TargetGuid").toString())
.targetNickName(attrMap.get("TargetNickName").toString())
.reportType(Arrays.stream(REPORTTYPE.values())
.filter(r -> r.getName().equals(attrMap.get("Reason").toString()))
.findFirst().orElse(null))
.title(attrMap.get("Title").toString())
.detail(attrMap.get("Detail").toString())
.state(attrMap.get("State").toString().equals("1") ? STATUS.UNRESOLVED : STATUS.RESOLVED)
.createTime(createInstant.atZone(ZoneOffset.UTC).toLocalDateTime())
.resolutionTime(Integer.valueOf(reTime.get("Seconds").toString()) == 0 ? null :
reInstant.atZone(ZoneOffset.UTC).toLocalDateTime())
.build());
}
}
return resultData;
}catch (JsonProcessingException jpe){
log.error("getUserReportDetail JsonProcessingException: {}", jpe.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}catch (Exception e){
log.error("getUserReportDetail: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
public UserReportResponse.ResultData getUserReplyDetail(Map<String,String> requestParam){
UserReportResponse.ResultData resultData = UserReportResponse.ResultData.builder().build();
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":pkValue", AttributeValue.builder().s(requestParam.get("pk")).build());
expressionAttributeValues.put(":skValue", AttributeValue.builder().s(requestParam.get("sk")).build());
QueryRequest queryRequest = QueryRequest.builder()
.tableName(metaTable)
.keyConditionExpression("PK = :pkValue and SK = :skValue")
.expressionAttributeValues(expressionAttributeValues)
.build();
try{
QueryResponse response = dynamoDbClient.query(queryRequest);
for (Map<String, AttributeValue> item : response.items()) {
AttributeValue ReplyInfo = item.get("ReplyInfo");
if(ReplyInfo != null){
//담당자 검색
String replyInfo = item.get("ReplyInfo").s();
// JSON 문자열을 파싱하여 Map 또는 다른 객체로 변환합니다.
ObjectMapper objectMapper = new ObjectMapper();
Map<String, Object> replyInfoMap = objectMapper.readValue(replyInfo, new TypeReference<Map<String, Object>>() {});
resultData.setReply(
UserReportResponse.Reply.builder()
.title(replyInfoMap.get("Title").toString())
.detail(replyInfoMap.get("Detail").toString())
.managerEmail(replyInfoMap.get("ManagerEmail").toString())
.managerNickName(replyInfoMap.get("ManagerNickName").toString())
.reporterNickName(replyInfoMap.get("ReporterNickName").toString())
.build()
);
};
}
return resultData;
}catch (JsonProcessingException jpe){
log.error("getUserReplyDetail JsonProcessingException: {}", jpe.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}catch (Exception e){
log.error("getUserReplyDetail: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
//신고 내역 답장
public void reportReply(UserReportRequest userReportRequest){
String replyInfo = String.format("{\"Title\":\"%s\",\"Detail\":\"%s\"" +
",\"ManagerEmail\":\"%s\",\"ManagerNickName\":\"%s\"" +
",\"ReporterNickName\":\"%s\"}"
, userReportRequest.getTitle(), userReportRequest.getDetail()
, CommonUtils.getAdmin().getEmail(), adminMapper.findByEmail(CommonUtils.getAdmin().getEmail()).get().getName()
, userReportRequest.getReporterNickName());
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":newValue", AttributeValue.builder().s(replyInfo).build());
// 업데이트 표현식을 정의
String updateExpression = "SET ReplyInfo = :newValue";
UpdateItemRequest item = UpdateItemRequest.builder()
.tableName(metaTable)
.key(Map.of(
"PK", AttributeValue.builder().s(userReportRequest.getPk()).build(),
"SK", AttributeValue.builder().s(userReportRequest.getSk()).build()))
.updateExpression(updateExpression)
.expressionAttributeValues(expressionAttributeValues)
.returnValues(ReturnValue.ALL_NEW) // 업데이트 후의 값을 반환하려면 지정
.build();
dynamoDbClient.updateItem(item);
}
public void changeReportStatus(UserReportRequest userReportRequest){
try {
// 기존 CharInfo 값 가져오기
Map<String, AttributeValue> item = getItem(userReportRequest.getPk(), userReportRequest.getSk());
String reportInfoJson = item.get("ReportInfo").s();
// ReportInfo JSON 문자열을 파싱
ObjectMapper objectMapper = new ObjectMapper();
JsonNode reportInfoNode = objectMapper.readTree(reportInfoJson);
Instant now = Instant.now();
long seconds = now.getEpochSecond();
int nanos = now.getNano();
// 원하는 속성 변경
((ObjectNode) reportInfoNode).put("State", 2);
((ObjectNode) reportInfoNode.get("ResolutionTime")).put("Seconds", seconds);
((ObjectNode) reportInfoNode.get("ResolutionTime")).put("Nanos", nanos);
// 변경된 ReportInfo JSON 문자열
String updatedInfoJson = reportInfoNode.toString();
// 업데이트할 내용을 정의
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":newValue", AttributeValue.builder().s(updatedInfoJson).build());
// 업데이트 표현식을 정의
String updateExpression = "SET ReportInfo = :newValue";
// 업데이트 요청 생성
UpdateItemRequest updateRequest = UpdateItemRequest.builder()
.tableName(metaTable)
.key(Map.of(
"PK", AttributeValue.builder().s(userReportRequest.getPk()).build(),
"SK", AttributeValue.builder().s(userReportRequest.getSk()).build()))
.updateExpression(updateExpression)
.expressionAttributeValues(expressionAttributeValues)
.returnValues(ReturnValue.ALL_NEW) // 업데이트 후의 값을 반환하려면 지정
.build();
dynamoDbClient.updateItem(updateRequest);
}catch (JsonProcessingException jpe){
log.error("changeReportStatus JsonProcessingException: {}", jpe.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}catch (Exception e){
log.error("changeReportStatus: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
}
public void dummy(Map<String, String> map){
Instant now = Instant.now(); // 현재 시간을 얻습니다.
LocalDateTime createTime = LocalDateTime.parse(map.get("CreateTime"), DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'"));
Instant instant = createTime.atZone(ZoneId.of("UTC")).toInstant(); // 현재 시간을 초로 얻습니다.
String replyInfo = String.format("{\"ReporterGuid\":\"%s\",\"ReporterNickName\":\"%s\"" +
",\"TargetGuid\":\"%s\",\"TargetNickName\":\"%s\"" +
",\"Reason\":\"%s\",\"Title\":\"%s\"" +
",\"Detail\":\"%s\",\"State\":\"%s\"" +
",\"CreateTime\":{\"Seconds\":%s,\"Nanos\":%s}" +
",\"ResolutionTime\":{\"Seconds\":%s,\"Nanos\":%s}}"
, map.get("ReporterGuid"), map.get("ReporterNickName")
, map.get("TargetGuid"), map.get("TargetNickName")
, map.get("Reason"), map.get("Title")
, map.get("Detail"), map.get("State")
, instant.getEpochSecond(), instant.getNano()
, 0, 0);
Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
expressionAttributeValues.put(":newValue", AttributeValue.builder().s(replyInfo).build());
// 업데이트 표현식을 정의
String updateExpression = "SET ReportInfo = :newValue";
UpdateItemRequest item = UpdateItemRequest.builder()
.tableName(metaTable)
.key(Map.of(
"PK", AttributeValue.builder().s(map.get("pk")).build(),
"SK", AttributeValue.builder().s(map.get("sk")).build()))
.updateExpression(updateExpression)
.expressionAttributeValues(expressionAttributeValues)
.returnValues(ReturnValue.ALL_NEW) // 업데이트 후의 값을 반환하려면 지정
.build();
dynamoDbClient.updateItem(item);
}
//아이템 - 의상 조회
public Map<String, Object> getCloth(String guid){
Map<String, Object> resultMap = new HashMap<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("item#"+guid).build());
UsersResponse.ClothInfo.ClothInfoBuilder clothInfo = UsersResponse.ClothInfo.builder();
Map<CLOTHSMALLTYPE, BiConsumer<UsersResponse.ClothInfo.ClothInfoBuilder, UsersResponse.ClothItem>> setterMap = new HashMap<>();
setterMap.put(CLOTHSMALLTYPE.SHIRT, UsersResponse.ClothInfo.ClothInfoBuilder::clothShirt);
setterMap.put(CLOTHSMALLTYPE.DRESS, UsersResponse.ClothInfo.ClothInfoBuilder::clothDress);
setterMap.put(CLOTHSMALLTYPE.OUTER, UsersResponse.ClothInfo.ClothInfoBuilder::clothOuter);
setterMap.put(CLOTHSMALLTYPE.PANTS, UsersResponse.ClothInfo.ClothInfoBuilder::clothPants);
setterMap.put(CLOTHSMALLTYPE.GLOVES, UsersResponse.ClothInfo.ClothInfoBuilder::clothGloves);
setterMap.put(CLOTHSMALLTYPE.RING, UsersResponse.ClothInfo.ClothInfoBuilder::clothRing);
setterMap.put(CLOTHSMALLTYPE.BRACELET, UsersResponse.ClothInfo.ClothInfoBuilder::clothBracelet);
setterMap.put(CLOTHSMALLTYPE.BAG, UsersResponse.ClothInfo.ClothInfoBuilder::clothBag);
setterMap.put(CLOTHSMALLTYPE.BACKPACK, UsersResponse.ClothInfo.ClothInfoBuilder::clothBackpack);
setterMap.put(CLOTHSMALLTYPE.CAP, UsersResponse.ClothInfo.ClothInfoBuilder::clothCap);
setterMap.put(CLOTHSMALLTYPE.MASK, UsersResponse.ClothInfo.ClothInfoBuilder::clothMask);
setterMap.put(CLOTHSMALLTYPE.GLASSES, UsersResponse.ClothInfo.ClothInfoBuilder::clothGlasses);
setterMap.put(CLOTHSMALLTYPE.EARRING, UsersResponse.ClothInfo.ClothInfoBuilder::clothEarring);
setterMap.put(CLOTHSMALLTYPE.NECKLACE, UsersResponse.ClothInfo.ClothInfoBuilder::clothNecklace);
setterMap.put(CLOTHSMALLTYPE.SHOES, UsersResponse.ClothInfo.ClothInfoBuilder::clothShoes);
setterMap.put(CLOTHSMALLTYPE.SOCKS, UsersResponse.ClothInfo.ClothInfoBuilder::clothSocks);
setterMap.put(CLOTHSMALLTYPE.ANKLET, UsersResponse.ClothInfo.ClothInfoBuilder::clothAnklet);
try {
excuteItems(executeQuery(key, values), "ItemAttrib")
.filter(attrMap -> attrMap.containsKey("equiped_inven_type") && (int) attrMap.get("equiped_inven_type") == 1)
.forEach(attrMap -> {
int pos = (int) attrMap.get("equiped_pos");
String smallType = metaDataHandler.getMetaClothSmallTypeData(pos);
int item_id = CommonUtils.objectToInteger(attrMap.get("item_meta_id"));
UsersResponse.ClothItem clothItem = UsersResponse.ClothItem.builder()
.cloth(CommonUtils.objectToString(attrMap.get("item_meta_id")))
.clothName(metaDataHandler.getTextStringData(metaDataHandler.getMetaItemNameData(item_id)))
.slotType(metaDataHandler.getMetaClothSlotTypeData(pos))
.smallType(smallType)
.build();
// ClothItem을 CLOTHSMALLTYPE 위치에 넣어 준다
setterMap.getOrDefault(CLOTHSMALLTYPE.valueOf(smallType), (builder, item) -> {})
.accept(clothInfo, clothItem);
});
resultMap.put("clothInfo", clothInfo.build());
log.info("getCloth Response clothInfo: {}", clothInfo);
}catch (Exception e){
log.error("getCloth: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return resultMap;
}
//아이템 - 도구 조회
public Map<String, Object> getTools(String guid){
Map<String, Object> resultMap = new HashMap<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("item#"+guid).build());
UsersResponse.SlotInfo.SlotInfoBuilder slotInfo = UsersResponse.SlotInfo.builder();
Map<Integer, BiConsumer<UsersResponse.SlotInfo.SlotInfoBuilder, UsersResponse.ToolItem>> setterMap = Map.of(
1, UsersResponse.SlotInfo.SlotInfoBuilder::Slot1,
2, UsersResponse.SlotInfo.SlotInfoBuilder::Slot2,
3, UsersResponse.SlotInfo.SlotInfoBuilder::Slot3,
4, UsersResponse.SlotInfo.SlotInfoBuilder::Slot4
);
try {
excuteItems(executeQuery(key, values), "ItemAttrib")
.filter(attrMap -> attrMap.containsKey("equiped_inven_type") && (int) attrMap.get("equiped_inven_type") == 2)
.forEach(attrMap -> {
int pos = (int) attrMap.get("equiped_pos");
// String smallType = metaDataHandler.getMetaClothSmallTypeData(pos);
int item_id = CommonUtils.objectToInteger(attrMap.get("item_meta_id"));
String item_nm = metaDataHandler.getTextStringData(metaDataHandler.getMetaItemNameData(item_id));
UsersResponse.ToolItem toolItem = UsersResponse.ToolItem.builder()
.toolId(CommonUtils.objectToString(attrMap.get("item_meta_id")))
// .toolName(metaDataHandler.getMetaToolData(CommonUtils.objectToInteger(attrMap.get("item_meta_id"))).getToolName())
.toolName(item_nm)
.build();
// ClothItem을 CLOTHSMALLTYPE 위치에 넣어 준다
setterMap.getOrDefault(pos, (builder, item) -> {})
.accept(slotInfo, toolItem);
});
resultMap.put("toolSlotInfo", slotInfo.build());
log.info("getTools Response toolSlotInfo: {}", slotInfo);
}catch (Exception e){
log.error("getTools: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return resultMap;
}
// 유저 조회 - 우편 삭제
// public String deleteMail(String type, String guid, String mail_guid) {
// Map<String, AttributeValue> itemAttributes = new HashMap<>();
// if(type.equals("SEND")){
// itemAttributes.put("PK", AttributeValue.builder().s("sent_mail#" + guid).build());
// }else{
// itemAttributes.put("PK", AttributeValue.builder().s("recv_mail#" + guid).build());
// }
// itemAttributes.put("SK", AttributeValue.builder().s(mail_guid).build());
// try {
// Map<String, AttributeValue> item = null;
// if(type.equals("SEND")){
// item = getItem("sent_mail#" + guid, mail_guid);
// log.info("deleteMail PK: {}, SK: {}", "sent_mail#" + guid, mail_guid);
// }else{
// item = getItem("recv_mail#" + guid, mail_guid);
// log.info("deleteMail PK: {}, SK: {}", "recv_mail#" + guid, mail_guid);
// }
//
// DeleteItemRequest request = DeleteItemRequest.builder()
// .tableName(metaTable)
// .key(itemAttributes)
// .build();
//
// DeleteItemResponse response = dynamoDbClient.deleteItem(request);
//
// if(response.sdkHttpResponse().isSuccessful())
// return item.toString();
//
// return "";
// }catch (ConditionalCheckFailedException e) {
// log.error("deleteUsersMail Conditional check failed: {}", e.getMessage());
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }catch(Exception e){
// log.error("deleteUsersMail: {}", e.getMessage());
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }
// }
// 유저 조회 - 우편 아이템 삭제
// public JSONObject updateMailItem(String type, String guid, String mail_guid, Long itemId, double count, double newCount) {
// try {
// Map<String, AttributeValue> item = null;
// Map<String, AttributeValue> key = new HashMap<>();
// if(type.equals("SEND")){
// item = getItem("sent_mail#" + guid, mail_guid);
// key = Map.of("PK", AttributeValue.builder().s("sent_mail#" + guid).build(),"SK", AttributeValue.builder().s(mail_guid).build());
// }else{
// item = getItem("recv_mail#" + guid, mail_guid);
// key = Map.of("PK", AttributeValue.builder().s("recv_mail#" + guid).build(),"SK", AttributeValue.builder().s(mail_guid).build());
// }
//
// String InfoJson = item.get("MailAttrib").s();
//
// ObjectMapper objectMapper = new ObjectMapper();
// JsonNode infoNode = objectMapper.readTree(InfoJson);
// log.info("updateMailItem Before updatedInfoJson: {}", infoNode.toString());
//
// ArrayNode itemListNode = (ArrayNode) infoNode.get("item_list");
//
// // Java 17 스타일의 IntStream을 사용하여 itemId를 찾고 처리
// OptionalInt indexOpt = IntStream.range(0, itemListNode.size())
// .filter(i -> itemListNode.get(i).get("ItemId").asInt() == itemId)
// .findFirst();
//
// if (indexOpt.isEmpty()) {
// log.error("updateMailItem mail item not found");
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }
//
// int index = indexOpt.getAsInt();
// JsonNode itemNode = itemListNode.get(index);
//
// if (count > newCount) {
// // count 수정
// ((ObjectNode) itemNode).put("Count", count - newCount);
// } else {
// // item 삭제
// itemListNode.remove(index);
// }
//
// String updatedInfoJson = infoNode.toString();
// log.info("updateMailItem Tobe updatedInfoJson: {}", updatedInfoJson);
//
// Map<String, AttributeValue> expressionAttributeValues = new HashMap<>();
// expressionAttributeValues.put(":newAttrib", AttributeValue.builder().s(updatedInfoJson).build());
//
// String updateExpression = "SET MailAttrib = :newAttrib";
//
// UpdateItemRequest updateRequest = UpdateItemRequest.builder()
// .tableName(metaTable)
// .key(key)
// .updateExpression(updateExpression)
// .expressionAttributeValues(expressionAttributeValues)
// .returnValues(ReturnValue.ALL_NEW) // 업데이트 후의 값을 반환하려면 지정
// .build();
//
//
// dynamoDbClient.updateItem(updateRequest);
//
// JSONObject jsonObject = new JSONObject();
// jsonObject.put("data(before)", InfoJson);
// jsonObject.put("data(after)", updatedInfoJson);
// return jsonObject;
// }catch (ConditionalCheckFailedException e) {
// log.error("deleteUsersMail Conditional check failed: {}", e.getMessage());
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }catch(Exception e){
// log.error("deleteUsersMail: {}", e.getMessage());
// throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
// }
// }
// 아이템 - 타투 죄회
public List<UsersResponse.Tattoo> getTattoo(String guid){Map<String, Object> resultMap = new HashMap<>();
List<UsersResponse.Tattoo> resTatto = new ArrayList<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("item#"+guid).build());
try {
excuteItems(executeQuery(key, values), "ItemAttrib")
.filter(attrMap -> attrMap.containsKey("equiped_inven_type") && (int) attrMap.get("equiped_inven_type") == 3)
.forEach(attrMap -> {
int pos = CommonUtils.objectToInteger(attrMap.get("equiped_pos"));
if(pos == 0) return;
UsersResponse.Tattoo tattoo = new UsersResponse.Tattoo();
Long item_id = CommonUtils.objectToLong(attrMap.get("item_meta_id"));
tattoo.setItemId(item_id);
tattoo.setItemGuid(CommonUtils.objectToString(attrMap.get("Item_guid")));
tattoo.setLevel(Integer.valueOf(CommonUtils.objectToString(attrMap.get("level"))));
tattoo.setItemName(metaDataHandler.getTextStringData(metaDataHandler.getMetaItemNameData(item_id.intValue())));
tattoo.setSlot(pos);
resTatto.add(tattoo);
});
log.info("getTattoo Response TattoInfo: {}", resTatto);
}catch (Exception e){
log.error("getTattoo: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return resTatto;
}
// 친구 목록
public List<UsersResponse.Friend> getFriendList(String guid){
List<UsersResponse.Friend> resList = new ArrayList<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("friend#"+guid).build());
AtomicInteger idx = new AtomicInteger(1);
try {
excuteItems(executeQuery(key, values), "FriendAttrib")
.forEach(attrMap -> {
UsersResponse.Friend friend = new UsersResponse.Friend();
friend.setRowNum(idx.getAndIncrement());
String friend_guid = CommonUtils.objectToString(attrMap.get("friend_guid"));
friend.setFriendGuid(friend_guid);
friend.setFriendName(dynamodbUserService.getGuidByName(friend_guid));
friend.setReceiveDt(CommonUtils.objectToString(attrMap.get("create_time")));
friend.setLanguage(dynamodbUserService.getUserLanguage(guid));
resList.add(friend);
});
log.info("getFriendList FriendInfo: {}", resList);
}catch (Exception e){
log.error("getFriendList: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return resList;
}
// 유저 차단 목록
public List<UsersResponse.Friend> getUserBlockList(String guid){
List<UsersResponse.Friend> resList = new ArrayList<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("block#"+guid).build());
AtomicInteger idx = new AtomicInteger(1);
try {
QueryResponse response = executeQuery(key, values);
// 응답에서 원하는 속성을 가져옵니다.
for (Map<String, AttributeValue> item : response.items()) {
AttributeValue attrValue = item.get("BlockUserAttrib");
if (attrValue != null) {
String attrJson = attrValue.s();
ObjectMapper objectMapper = new ObjectMapper();
Map<String, Object> attrMap = objectMapper.readValue(attrJson, new TypeReference<Map<String, Object>>() {
});
UsersResponse.Friend friend = new UsersResponse.Friend();
friend.setRowNum(idx.getAndIncrement());
String block_guid = CommonUtils.objectToString(attrMap.get("guid"));
friend.setFriendGuid(block_guid);
friend.setFriendName(dynamodbUserService.getGuidByName(block_guid));
friend.setReceiveDt(CommonUtils.objectToString(item.get("CreatedDateTime").s()));
friend.setLanguage(dynamodbUserService.getUserLanguage(guid));
resList.add(friend);
}
}
log.info("getUserBlockList FriendInfo: {}", resList);
}catch (Exception e){
log.error("getUserBlockList: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return resList;
}
//마이홈
public UsersResponse.Myhome getMyhome(String guid){
UsersResponse.Myhome myhome = new UsersResponse.Myhome();
List<UsersResponse.Item> itemList = new ArrayList<>();
String key = "PK = :pkValue";
Map<String, AttributeValue> values = Map.of(":pkValue", AttributeValue.builder().s("my_home#" + guid).build());
try {
excuteItems(executeQuery(key, values), "MyHomeAttrib")
.forEach(attrMap -> {
String myhome_guid = CommonUtils.objectToString(attrMap.get("myhome_guid"));
myhome.setMyhomeGuid(myhome_guid);
myhome.setMyhomeName(CommonUtils.objectToString(attrMap.get("myhome_name")));
String second_key = "PK = :pkValue";
Map<String, AttributeValue> second_values = Map.of(":pkValue", AttributeValue.builder().s("item#"+myhome_guid).build());
excuteItems(executeQuery(second_key, second_values), "ItemAttrib").forEach(attrMap2 -> {
int item_id = CommonUtils.objectToInteger(attrMap2.get("item_meta_id"));
String item_name = metaDataHandler.getMetaItemNameData(item_id);
UsersResponse.Item item = UsersResponse.Item.builder()
.itemId(item_id)
.itemName(metaDataHandler.getTextStringData(item_name))
.count(CommonUtils.objectToInteger(attrMap2.get("item_stack_count")))
.itemGuid(CommonUtils.objectToString(attrMap2.get("item_guid")))
.build();
itemList.add(item);
});
myhome.setPropList(itemList);
});
log.info("getMyhome myhomedInfo: {}", myhome);
}catch (Exception e){
log.error("getMyhome: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.DYNAMODB_CONNECTION_ERROR.getMessage());
}
return myhome;
}
}

View File

@@ -28,7 +28,6 @@ import java.util.Map;
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
public class EventService { public class EventService {
private final DynamoDBService dynamoDBService;
private final DynamodbService dynamodbService; private final DynamodbService dynamodbService;
private final DynamodbMailService dynamodbMailService; private final DynamodbMailService dynamodbMailService;

View File

@@ -31,7 +31,6 @@ import java.util.zip.ZipOutputStream;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ExcelService { public class ExcelService {
private final ExcelProgressTracker progressTracker; private final ExcelProgressTracker progressTracker;
private final DiagnosisService diagnosisService;
// CSV 구분자 // CSV 구분자
private static final String CSV_DELIMITER = ","; private static final String CSV_DELIMITER = ",";
@@ -47,7 +46,8 @@ public class ExcelService {
"header.Actor.CharacterMetaId", "header.Actor.CharacterMetaId",
"header.Actor.UserLevel", "header.Actor.UserLevel",
"body.Action", "body.Action",
"body.Infos[0].Domain" "body.Infos[0].Domain",
"statisticsType"
); );
// 멀티 스레드 처리를 위한 스레드 풀 // 멀티 스레드 처리를 위한 스레드 풀

View File

@@ -8,6 +8,8 @@ import java.util.stream.Collectors;
import com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice.*; import com.caliverse.admin.Indicators.Indicatorsservice.aggregationservice.*;
import com.caliverse.admin.Indicators.entity.*; import com.caliverse.admin.Indicators.entity.*;
import com.caliverse.admin.domain.response.LogResponse;
import com.caliverse.admin.global.common.utils.DateUtils;
import com.caliverse.admin.logs.logservice.indicators.*; import com.caliverse.admin.logs.logservice.indicators.*;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
@@ -46,6 +48,7 @@ public class IndicatorsService {
private final IndicatorsWauLoadService indicatorsWauLoadService; private final IndicatorsWauLoadService indicatorsWauLoadService;
private final IndicatorsUgqCreateLoadService indicatorsUgqCreateLoadService; private final IndicatorsUgqCreateLoadService indicatorsUgqCreateLoadService;
private final IndicatorsMetaverServerLoadService indicatorsMetaverServerLoadService; private final IndicatorsMetaverServerLoadService indicatorsMetaverServerLoadService;
private final IndicatorsRetentionLoadService indicatorsRetentionLoadService;
private final IndicatorsDauService dauService; private final IndicatorsDauService dauService;
private final IndicatorsNruService indicatorsNruService; private final IndicatorsNruService indicatorsNruService;
@@ -167,27 +170,25 @@ public class IndicatorsService {
} }
// 유저 지표 Retention // 유저 지표 Retention
public IndicatorsResponse retentionList(Map<String, String> requestParams){ public IndicatorsResponse retentionList(Map<String, String> requestParams){
LocalDateTime startDt = DateUtils.stringISOToLocalDateTime(requestParams.get("start_dt"));
LocalDateTime endDt = DateUtils.stringISOToLocalDateTime(requestParams.get("end_dt"));
List<RetentionInfo> retentionLogList = indicatorsRetentionLoadService.getIndicatorsLogData(
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
RetentionInfo.class);
List<IndicatorsResponse.Retention> retentionList = new ArrayList<>(); List<IndicatorsResponse.Retention> retentionList = new ArrayList<>();
String startDt = CommonUtils.objectToString(requestParams.get("start_dt")); for (RetentionInfo info : retentionLogList){
String endDt = CommonUtils.objectToString(requestParams.get("end_dt")); IndicatorsResponse.Retention build = IndicatorsResponse.Retention.builder()
List<LocalDate> dateRange = CommonUtils.dateRange(startDt, endDt); .logDay(info.getLogDay())
int cnt = dateRange.size(); .totalCreated(info.getTotalCreate())
for (LocalDate date : dateRange) { .d1_rate(info.getD1_rate())
List<IndicatorsResponse.Dday> dDayList = new ArrayList<>(); .d7_rate(info.getD7_rate())
for (int i = 0; i < cnt; i++){ .d30_rate(info.getD30_rate())
IndicatorsResponse.Dday dDay = IndicatorsResponse.Dday.builder()
.date("D+" + i)
.dif("0%")
.build(); .build();
dDayList.add(dDay); retentionList.add(build);
}
cnt -- ;
IndicatorsResponse.Retention retention = IndicatorsResponse.Retention.builder()
.date(date)
.dDay(dDayList)
.build();
retentionList.add(retention);
} }
return IndicatorsResponse.builder() return IndicatorsResponse.builder()
.resultData(IndicatorsResponse.ResultData.builder() .resultData(IndicatorsResponse.ResultData.builder()
.retentionList(retentionList) .retentionList(retentionList)
@@ -202,29 +203,29 @@ public class IndicatorsService {
String startDt = CommonUtils.objectToString(requestParams.get("start_dt")); String startDt = CommonUtils.objectToString(requestParams.get("start_dt"));
String endDt = CommonUtils.objectToString(requestParams.get("end_dt")); String endDt = CommonUtils.objectToString(requestParams.get("end_dt"));
List<LocalDate> dateRange = CommonUtils.dateRange(startDt, endDt); List<LocalDate> dateRange = CommonUtils.dateRange(startDt, endDt);
int cnt = dateRange.size(); // int cnt = dateRange.size();
for (LocalDate date : dateRange) { // for (LocalDate date : dateRange) {
List<IndicatorsResponse.Dday> dDayList = new ArrayList<>(); // List<IndicatorsResponse.Dday> dDayList = new ArrayList<>();
for (int i = 0; i < cnt; i++){ // for (int i = 0; i < cnt; i++){
IndicatorsResponse.Dday dDay = IndicatorsResponse.Dday.builder() // IndicatorsResponse.Dday dDay = IndicatorsResponse.Dday.builder()
.date("D+" + i) // .date("D+" + i)
.dif("0%") // .dif("0%")
.build(); // .build();
dDayList.add(dDay); // dDayList.add(dDay);
} // }
cnt -- ; // cnt -- ;
IndicatorsResponse.Retention retention = IndicatorsResponse.Retention.builder() // IndicatorsResponse.Retention retention = IndicatorsResponse.Retention.builder()
.date(date) // .date(date)
.dDay(dDayList) // .dDay(dDayList)
.build(); // .build();
retentionList.add(retention); // retentionList.add(retention);
} // }
// 엑셀 파일 생성 및 다운로드 // // 엑셀 파일 생성 및 다운로드
try { // try {
ExcelUtils.exportToExcelByRentention(retentionList,res); // ExcelUtils.exportToExcelByRentention(retentionList,res);
}catch (IOException exception){ // }catch (IOException exception){
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.getMessage()); // throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.getMessage());
} // }
} }
// 유저 지표 Retention // 유저 지표 Retention

View File

@@ -1,8 +1,6 @@
package com.caliverse.admin.domain.service; package com.caliverse.admin.domain.service;
import com.caliverse.admin.Indicators.entity.CurrencyDetailLogInfo; import com.caliverse.admin.Indicators.entity.*;
import com.caliverse.admin.Indicators.entity.CurrencyLogInfo;
import com.caliverse.admin.Indicators.entity.DauLogInfo;
import com.caliverse.admin.domain.cache.CommonCacheHandler; import com.caliverse.admin.domain.cache.CommonCacheHandler;
import com.caliverse.admin.domain.entity.excel.ExcelBusinessLog; import com.caliverse.admin.domain.entity.excel.ExcelBusinessLog;
import com.caliverse.admin.domain.entity.log.GenericLog; import com.caliverse.admin.domain.entity.log.GenericLog;
@@ -19,6 +17,9 @@ import com.caliverse.admin.global.component.tracker.ExcelProgressTracker;
import com.caliverse.admin.logs.Indicatordomain.GenericMongoLog; import com.caliverse.admin.logs.Indicatordomain.GenericMongoLog;
import com.caliverse.admin.logs.logservice.businesslogservice.BusinessLogGenericService; import com.caliverse.admin.logs.logservice.businesslogservice.BusinessLogGenericService;
import com.caliverse.admin.logs.logservice.indicators.IndicatorsCurrencyService; import com.caliverse.admin.logs.logservice.indicators.IndicatorsCurrencyService;
import com.caliverse.admin.logs.logservice.indicators.IndicatorsItemService;
import com.caliverse.admin.logs.logservice.indicators.IndicatorsUserCreateService;
import com.caliverse.admin.logs.logservice.indicators.IndicatorsUserLoginService;
import com.caliverse.admin.mongodb.dto.MongoPageResult; import com.caliverse.admin.mongodb.dto.MongoPageResult;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@@ -46,6 +47,9 @@ public class LogService {
private final CommonCacheHandler commonCacheHandler; private final CommonCacheHandler commonCacheHandler;
private final ExcelProgressTracker progressTracker; private final ExcelProgressTracker progressTracker;
private final IndicatorsCurrencyService indicatorsCurrencyService; private final IndicatorsCurrencyService indicatorsCurrencyService;
private final IndicatorsItemService indicatorsItemService;
private final IndicatorsUserLoginService indicatorsUserLoginService;
private final IndicatorsUserCreateService indicatorsUserCreateService;
public LogResponse genericLogList(LogGenericRequest logGenericRequest){ public LogResponse genericLogList(LogGenericRequest logGenericRequest){
int page = logGenericRequest.getPageNo(); int page = logGenericRequest.getPageNo();
@@ -526,4 +530,398 @@ public class LogService {
} }
public LogResponse getItemDetailLogList(Map<String, String> requestParams){
String searchType = requestParams.get("search_type");
String searchData = requestParams.get("search_data");
String tranId = requestParams.get("tran_id");
String logAction = requestParams.get("log_action");
String itemLargeType = requestParams.get("item_large_type");
String itemSmallType = requestParams.get("item_small_type");
String countDeltaType = requestParams.get("count_delta_type");
LocalDateTime startDt = DateUtils.stringISOToLocalDateTime(requestParams.get("start_dt"));
LocalDateTime endDt = DateUtils.stringISOToLocalDateTime(requestParams.get("end_dt"));
String orderBy = requestParams.get("orderby");
int pageNo = Integer.parseInt(requestParams.get("page_no"));
int pageSize = Integer.parseInt(requestParams.get("page_size"));
MongoPageResult<ItemDetailLogInfo> result = indicatorsItemService.getItemDetailLogData(
searchType,
searchData,
tranId,
logAction,
itemLargeType,
itemSmallType,
countDeltaType,
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
orderBy,
pageNo,
pageSize,
ItemDetailLogInfo.class
);
List<ItemDetailLogInfo> itemLogList = result.getItems();
int totalCount = result.getTotalCount();
return LogResponse.builder()
.resultData(LogResponse.ResultData.builder()
.itemDetailList(itemLogList)
.total(itemLogList.size())
.totalAll(totalCount)
.pageNo(pageNo)
.build())
.status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult())
.build();
}
public void itemDetailExcelExport(HttpServletResponse response, LogGameRequest logGameRequest){
String taskId = logGameRequest.getTaskId();
LocalDateTime startDt = logGameRequest.getStartDt().plusHours(9);
LocalDateTime endDt = logGameRequest.getEndDt().plusHours(9).plusDays(1);
logGameRequest.setStartDt(startDt);
logGameRequest.setEndDt(endDt);
logGameRequest.setPageNo(null);
logGameRequest.setPageSize(null);
progressTracker.updateProgress(taskId, 5, 100, "엑셀 생성 준비 중...");
MongoPageResult<ItemDetailLogInfo> result = null;
try{
result = indicatorsItemService.getItemDetailLogData(
logGameRequest.getSearchType().toString(),
logGameRequest.getSearchData(),
logGameRequest.getTranId(),
logGameRequest.getLogAction().name(),
logGameRequest.getItemTypeLarge(),
logGameRequest.getItemTypeSmall(),
logGameRequest.getCountDeltaType().name(),
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
logGameRequest.getOrderBy(),
logGameRequest.getPageNo(),
logGameRequest.getPageSize(),
ItemDetailLogInfo.class
);
progressTracker.updateProgress(taskId, 20, 100, "데이터 생성완료");
}catch(UncategorizedMongoDbException e){
if (e.getMessage().contains("Sort exceeded memory limit")) {
log.error("MongoDB Query memory limit error: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
} else if (e.getMessage().contains("time limit")) {
log.error("MongoDB Query operation exceeded time limit: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
}else {
log.error("MongoDB Query error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_MONGODB_QUERY.toString());
}
}catch (Exception e){
log.error("itemDetailExcelExport ExcelExport Data Search Error", e);
}
List<ItemDetailLogInfo> currencyLogList = result.getItems();
progressTracker.updateProgress(taskId, 30, 100, "데이터 파싱 완료...");
try{
excelService.generateExcelToResponse(
response,
currencyLogList,
"게임 아이템 로그 데이터",
"sheet1",
taskId
);
}catch (Exception e){
log.error("itemDetailExcelExport Excel Export Create Error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.toString());
}
}
public LogResponse getCurrencyItemLogList(Map<String, String> requestParams){
String searchType = requestParams.get("search_type");
String searchData = requestParams.get("search_data");
String tranId = requestParams.get("tran_id");
String logAction = requestParams.get("log_action");
String currencyType = requestParams.get("currency_type");
String amountDeltaType = requestParams.get("amount_delta_type");
LocalDateTime startDt = DateUtils.stringISOToLocalDateTime(requestParams.get("start_dt"));
LocalDateTime endDt = DateUtils.stringISOToLocalDateTime(requestParams.get("end_dt"));
String orderBy = requestParams.get("orderby");
int pageNo = Integer.parseInt(requestParams.get("page_no"));
int pageSize = Integer.parseInt(requestParams.get("page_size"));
MongoPageResult<CurrencyItemLogInfo> result = indicatorsCurrencyService.getCurrencyItemLogData(
searchType,
searchData,
tranId,
logAction,
currencyType,
amountDeltaType,
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
orderBy,
pageNo,
pageSize,
CurrencyItemLogInfo.class
);
List<CurrencyItemLogInfo> currencyItemLogList = result.getItems();
int totalCount = result.getTotalCount();
return LogResponse.builder()
.resultData(LogResponse.ResultData.builder()
.currencyItemList(currencyItemLogList)
.total(currencyItemLogList.size())
.totalAll(totalCount)
.pageNo(pageNo)
.build())
.status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult())
.build();
}
public void currencyItemExcelExport(HttpServletResponse response, LogGameRequest logGameRequest){
String taskId = logGameRequest.getTaskId();
LocalDateTime startDt = logGameRequest.getStartDt().plusHours(9);
LocalDateTime endDt = logGameRequest.getEndDt().plusHours(9).plusDays(1);
logGameRequest.setStartDt(startDt);
logGameRequest.setEndDt(endDt);
logGameRequest.setPageNo(null);
logGameRequest.setPageSize(null);
progressTracker.updateProgress(taskId, 5, 100, "엑셀 생성 준비 중...");
MongoPageResult<CurrencyItemLogInfo> result = null;
try{
result = indicatorsCurrencyService.getCurrencyItemLogData(
logGameRequest.getSearchType().toString(),
logGameRequest.getSearchData(),
logGameRequest.getTranId(),
logGameRequest.getLogAction().name(),
logGameRequest.getCurrencyType().name(),
logGameRequest.getAmountDeltaType().name(),
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
logGameRequest.getOrderBy(),
logGameRequest.getPageNo(),
logGameRequest.getPageSize(),
CurrencyItemLogInfo.class
);
progressTracker.updateProgress(taskId, 20, 100, "데이터 생성완료");
}catch(UncategorizedMongoDbException e){
if (e.getMessage().contains("Sort exceeded memory limit")) {
log.error("MongoDB Query memory limit error: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
} else if (e.getMessage().contains("time limit")) {
log.error("MongoDB Query operation exceeded time limit: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
}else {
log.error("MongoDB Query error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_MONGODB_QUERY.toString());
}
}catch (Exception e){
log.error("currencyItemExcelExport ExcelExport Data Search Error", e);
}
List<CurrencyItemLogInfo> currencyLogList = result.getItems();
progressTracker.updateProgress(taskId, 30, 100, "데이터 파싱 완료...");
try{
excelService.generateExcelToResponse(
response,
currencyLogList,
"게임 재화(아이템) 로그 데이터",
"sheet1",
taskId
);
}catch (Exception e){
log.error("currencyItemExcelExport Excel Export Create Error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.toString());
}
}
public LogResponse getUserCreateLogList(Map<String, String> requestParams){
String searchType = requestParams.get("search_type");
String searchData = requestParams.get("search_data");
LocalDateTime startDt = DateUtils.stringISOToLocalDateTime(requestParams.get("start_dt"));
LocalDateTime endDt = DateUtils.stringISOToLocalDateTime(requestParams.get("end_dt"));
String orderBy = requestParams.get("orderby");
int pageNo = Integer.parseInt(requestParams.get("page_no"));
int pageSize = Integer.parseInt(requestParams.get("page_size"));
MongoPageResult<UserCreateLogInfo> result = indicatorsUserCreateService.getUserCreateLogData(
searchType,
searchData,
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
orderBy,
pageNo,
pageSize,
UserCreateLogInfo.class
);
List<UserCreateLogInfo> userCreateLogList = result.getItems();
int totalCount = result.getTotalCount();
return LogResponse.builder()
.resultData(LogResponse.ResultData.builder()
.userCreateList(userCreateLogList)
.total(userCreateLogList.size())
.totalAll(totalCount)
.pageNo(pageNo)
.build())
.status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult())
.build();
}
public void userCreateExcelExport(HttpServletResponse response, LogGameRequest logGameRequest){
String taskId = logGameRequest.getTaskId();
LocalDateTime startDt = logGameRequest.getStartDt().plusHours(9);
LocalDateTime endDt = logGameRequest.getEndDt().plusHours(9).plusDays(1);
logGameRequest.setStartDt(startDt);
logGameRequest.setEndDt(endDt);
logGameRequest.setPageNo(null);
logGameRequest.setPageSize(null);
progressTracker.updateProgress(taskId, 5, 100, "엑셀 생성 준비 중...");
MongoPageResult<UserCreateLogInfo> result = null;
try{
result = indicatorsUserCreateService.getUserCreateLogData(
logGameRequest.getSearchType().toString(),
logGameRequest.getSearchData(),
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
logGameRequest.getOrderBy(),
logGameRequest.getPageNo(),
logGameRequest.getPageSize(),
UserCreateLogInfo.class
);
progressTracker.updateProgress(taskId, 20, 100, "데이터 생성완료");
}catch(UncategorizedMongoDbException e){
if (e.getMessage().contains("Sort exceeded memory limit")) {
log.error("MongoDB Query memory limit error: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
} else if (e.getMessage().contains("time limit")) {
log.error("MongoDB Query operation exceeded time limit: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
}else {
log.error("MongoDB Query error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_MONGODB_QUERY.toString());
}
}catch (Exception e){
log.error("userCreateExcelExport ExcelExport Data Search Error", e);
}
List<UserCreateLogInfo> logList = result.getItems();
progressTracker.updateProgress(taskId, 30, 100, "데이터 파싱 완료...");
try{
excelService.generateExcelToResponse(
response,
logList,
"유저 생성 로그 데이터",
"sheet1",
taskId
);
}catch (Exception e){
log.error("userCreateExcelExport Excel Export Create Error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.toString());
}
}
public LogResponse getUserLoginDetailLogList(Map<String, String> requestParams){
String searchType = requestParams.get("search_type");
String searchData = requestParams.get("search_data");
String tranId = requestParams.get("tran_id");
LocalDateTime startDt = DateUtils.stringISOToLocalDateTime(requestParams.get("start_dt"));
LocalDateTime endDt = DateUtils.stringISOToLocalDateTime(requestParams.get("end_dt"));
String orderBy = requestParams.get("orderby");
int pageNo = Integer.parseInt(requestParams.get("page_no"));
int pageSize = Integer.parseInt(requestParams.get("page_size"));
MongoPageResult<UserLoginDetailLogInfo> result = indicatorsUserLoginService.getLoginDetailLogData(
searchType,
searchData,
tranId,
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
orderBy,
pageNo,
pageSize,
UserLoginDetailLogInfo.class
);
List<UserLoginDetailLogInfo> userLoginLogList = result.getItems();
int totalCount = result.getTotalCount();
return LogResponse.builder()
.resultData(LogResponse.ResultData.builder()
.userLoginList(userLoginLogList)
.total(userLoginLogList.size())
.totalAll(totalCount)
.pageNo(pageNo)
.build())
.status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult())
.build();
}
public void userLoginExcelExport(HttpServletResponse response, LogGameRequest logGameRequest){
String taskId = logGameRequest.getTaskId();
LocalDateTime startDt = logGameRequest.getStartDt().plusHours(9);
LocalDateTime endDt = logGameRequest.getEndDt().plusHours(9).plusDays(1);
logGameRequest.setStartDt(startDt);
logGameRequest.setEndDt(endDt);
logGameRequest.setPageNo(null);
logGameRequest.setPageSize(null);
progressTracker.updateProgress(taskId, 5, 100, "엑셀 생성 준비 중...");
MongoPageResult<UserLoginDetailLogInfo> result = null;
try{
result = indicatorsUserLoginService.getLoginDetailLogData(
logGameRequest.getSearchType().toString(),
logGameRequest.getSearchData(),
logGameRequest.getTranId(),
startDt.toString().substring(0, 10),
endDt.toString().substring(0, 10),
logGameRequest.getOrderBy(),
logGameRequest.getPageNo(),
logGameRequest.getPageSize(),
UserLoginDetailLogInfo.class
);
progressTracker.updateProgress(taskId, 20, 100, "데이터 생성완료");
}catch(UncategorizedMongoDbException e){
if (e.getMessage().contains("Sort exceeded memory limit")) {
log.error("MongoDB Query memory limit error: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
} else if (e.getMessage().contains("time limit")) {
log.error("MongoDB Query operation exceeded time limit: {}", e.getMessage());
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_LOG_MEMORY_LIMIT.toString());
}else {
log.error("MongoDB Query error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_MONGODB_QUERY.toString());
}
}catch (Exception e){
log.error("userLoginExcelExport ExcelExport Data Search Error", e);
}
List<UserLoginDetailLogInfo> logList = result.getItems();
progressTracker.updateProgress(taskId, 30, 100, "데이터 파싱 완료...");
try{
excelService.generateExcelToResponse(
response,
logList,
"유저 로그인 로그 데이터",
"sheet1",
taskId
);
}catch (Exception e){
log.error("userLoginExcelExport Excel Export Create Error", e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.ERROR_EXCEL_DOWN.toString());
}
}
} }

View File

@@ -38,7 +38,6 @@ import java.util.*;
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
public class MailService { public class MailService {
private final DynamoDBService dynamoDBService;
private final WalletUserMapper walletUserMapper; private final WalletUserMapper walletUserMapper;
private final DynamodbUserService dynamodbUserService; private final DynamodbUserService dynamodbUserService;

View File

@@ -1,9 +1,11 @@
package com.caliverse.admin.domain.service; package com.caliverse.admin.domain.service;
import com.caliverse.admin.domain.RabbitMq.MessageHandlerService;
import com.caliverse.admin.domain.dao.admin.MenuMapper; import com.caliverse.admin.domain.dao.admin.MenuMapper;
import com.caliverse.admin.domain.entity.*; import com.caliverse.admin.domain.entity.*;
import com.caliverse.admin.domain.request.MenuRequest; import com.caliverse.admin.domain.request.MenuRequest;
import com.caliverse.admin.domain.response.MenuResponse; import com.caliverse.admin.domain.response.MenuResponse;
import com.caliverse.admin.dynamodb.service.DynamodbMenuService;
import com.caliverse.admin.global.common.code.CommonCode; import com.caliverse.admin.global.common.code.CommonCode;
import com.caliverse.admin.global.common.code.ErrorCode; import com.caliverse.admin.global.common.code.ErrorCode;
import com.caliverse.admin.global.common.code.SuccessCode; import com.caliverse.admin.global.common.code.SuccessCode;
@@ -13,6 +15,7 @@ import com.caliverse.admin.global.common.exception.RestApiException;
import com.caliverse.admin.global.common.utils.CommonUtils; import com.caliverse.admin.global.common.utils.CommonUtils;
import com.caliverse.admin.global.common.utils.FileUtils; import com.caliverse.admin.global.common.utils.FileUtils;
import com.caliverse.admin.mongodb.service.MysqlHistoryLogService; import com.caliverse.admin.mongodb.service.MysqlHistoryLogService;
import com.caliverse.admin.redis.service.RedisUserInfoService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
@@ -47,6 +50,9 @@ public class MenuService {
private final ResourceLoader resourceLoader; private final ResourceLoader resourceLoader;
private final MysqlHistoryLogService mysqlHistoryLogService; private final MysqlHistoryLogService mysqlHistoryLogService;
private final S3Service s3Service; private final S3Service s3Service;
private final DynamodbMenuService dynamodbMenuService;
private final MessageHandlerService messageHandlerService;
private final RedisUserInfoService redisUserInfoService;
public MenuResponse getList(Map requestParam){ public MenuResponse getList(Map requestParam){
@@ -200,6 +206,7 @@ public class MenuService {
} }
MenuBanner banner = menuMapper.getBannerDetail(menuRequest.getId()); MenuBanner banner = menuMapper.getBannerDetail(menuRequest.getId());
banner.setImageList(menuMapper.getMessage(menuRequest.getId()));
mysqlHistoryLogService.insertHistoryLog( mysqlHistoryLogService.insertHistoryLog(
HISTORYTYPEDETAIL.MENU_BANNER_ADD, HISTORYTYPEDETAIL.MENU_BANNER_ADD,
@@ -208,6 +215,11 @@ public class MenuService {
banner banner
); );
dynamodbMenuService.insertBanner(banner);
//운영DB 데이터 추가됐다고 게임서버 알림
notifyGameServers("postBanner", null);
return MenuResponse.builder() return MenuResponse.builder()
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult()) .result(CommonCode.SUCCESS.getResult())
@@ -232,22 +244,22 @@ public class MenuService {
menuMapper.updateBanner(menuRequest); menuMapper.updateBanner(menuRequest);
Map<String, String> map = new HashMap<>(); // Map<String, String> map = new HashMap<>();
map.put("id", String.valueOf(menuRequest.getId())); // map.put("id", String.valueOf(menuRequest.getId()));
menuMapper.deleteMessage(map); // menuMapper.deleteMessage(map);
//
if(menuRequest.getImageList()!= null && !menuRequest.getImageList().isEmpty()){ // if(menuRequest.getImageList()!= null && !menuRequest.getImageList().isEmpty()){
menuRequest.getImageList().forEach(image -> { // menuRequest.getImageList().forEach(image -> {
map.put("title", image.getContent()); // map.put("title", image.getContent());
map.put("language", image.getLanguage()); // map.put("language", image.getLanguage());
if(menuRequest.isLink() && menuRequest.getLinkList() != null && !menuRequest.getLinkList().isEmpty()){ // if(menuRequest.isLink() && menuRequest.getLinkList() != null && !menuRequest.getLinkList().isEmpty()){
String link = menuRequest.getLinkList().stream().filter(data -> data.getLanguage().equals(image.getLanguage())).findFirst().get().getContent(); // String link = menuRequest.getLinkList().stream().filter(data -> data.getLanguage().equals(image.getLanguage())).findFirst().get().getContent();
map.put("content", link); // map.put("content", link);
} // }
menuMapper.insertMessage(map); // menuMapper.insertMessage(map);
}); // });
} // }
log.info("updateBanner Update After Banner: {}", menuRequest); log.info("updateBanner Update After Banner: {}", menuRequest);
MenuBanner after_info = menuMapper.getBannerDetail(banner_id); MenuBanner after_info = menuMapper.getBannerDetail(banner_id);
@@ -261,6 +273,11 @@ public class MenuService {
after_info after_info
); );
dynamodbMenuService.updateBanner(after_info);
//운영DB 데이터 추가됐다고 게임서버 알림
notifyGameServers("updateBanner", null);
return MenuResponse.builder() return MenuResponse.builder()
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult()) .result(CommonCode.SUCCESS.getResult())
@@ -271,32 +288,36 @@ public class MenuService {
} }
@Transactional(transactionManager = "transactionManager") @Transactional(transactionManager = "transactionManager")
public MenuResponse deleteMail(MenuRequest menuRequest){ public MenuResponse deleteBanner(Long id){
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("id",id);
// mailRequest.getList().forEach( MenuBanner banner = menuMapper.getBannerDetail(id);
// item->{ banner.setImageList(menuMapper.getMessage(id));
// map.put("id",item.getId());
// mailMapper.deleteMail(map); if(banner.getStartDt().isBefore(LocalDateTime.now())){
// return MenuResponse.builder()
// // 스케줄에서 제거 .status(CommonCode.ERROR.getHttpStatus())
// scheduleService.closeTask("mail-" + item.getId()); .result(CommonCode.ERROR.getResult())
// log.info("deleteMail Mail: {}", item); .resultData(MenuResponse.ResultData.builder()
// .message(ErrorCode.START_DATE_OVER.getMessage())
// //로그 기록 .build())
// List<Message> message = mailMapper.getMessage(Long.valueOf(item.getId())); .build();
// map.put("adminId", CommonUtils.getAdmin().getId()); }
// map.put("name", CommonUtils.getAdmin().getName());
// map.put("mail", CommonUtils.getAdmin().getEmail()); menuMapper.deleteBanner(map);
// map.put("type", HISTORYTYPE.MAIL_DELETE);
// JSONObject jsonObject = new JSONObject(); mysqlHistoryLogService.deleteHistoryLog(
// if(!message.isEmpty()){ HISTORYTYPEDETAIL.MENU_BANNER_DELETE,
// jsonObject.put("message",message.get(0).getTitle()); MysqlConstants.TABLE_NAME_MENU_BANNER,
// } HISTORYTYPEDETAIL.MENU_BANNER_DELETE.name(),
// map.put("content",jsonObject.toString()); banner
// historyMapper.saveLog(map); );
// }
// ); dynamodbMenuService.deleteBanner(banner.getId().intValue());
//운영DB 데이터 추가됐다고 게임서버 알림
notifyGameServers("deleteBanner", null);
return MenuResponse.builder() return MenuResponse.builder()
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())
@@ -307,19 +328,31 @@ public class MenuService {
.build(); .build();
} }
public List<MenuBanner> getScheduleMailList(){
return menuMapper.getScheduleBannerList();
}
public List<Message> getMessageList(Long id){ public List<Message> getMessageList(Long id){
return menuMapper.getMessage(id); return menuMapper.getMessage(id);
} }
public void updateStatus(Long id, MenuBanner.BANNER_STATUS status){ private void notifyGameServers(String methodName, Runnable rollbackFunction) {
Map<String,Object> map = new HashMap<>(); // 운영DB 데이터 추가됐다고 게임서버 알림
map.put("id", id); List<String> serverList = redisUserInfoService.getAllServerList();
map.put("status", status.toString()); if(serverList.isEmpty()){
menuMapper.updateBannerStatus(map); log.error("{} serverList is empty", methodName);
if (rollbackFunction != null) {
rollbackFunction.run();
}
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.NOT_FOUND_SERVER.getMessage());
} }
try{
serverList.forEach(messageHandlerService::sendBannerMessage);
} catch (Exception e) {
log.error("{} messageHandlerService error: {}", methodName, e.getMessage(), e);
if (rollbackFunction != null) {
rollbackFunction.run();
}
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.MESSAGE_SEND_FAIL.getMessage());
}
}
} }

View File

@@ -0,0 +1,46 @@
package com.caliverse.admin.domain.service;
import com.caliverse.admin.domain.dao.admin.ReqIdMapper;
import com.caliverse.admin.domain.entity.EReqType;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
@Service
@RequiredArgsConstructor
@Slf4j
public class ReqIdService {
private final ReqIdMapper reqIdMapper;
@Transactional(transactionManager = "transactionManager")
public Integer generateNextReqId(EReqType reqType, String createBy, String desc) {
try {
// 다음 REQ_ID 조회
Integer nextReqId = reqIdMapper.getNextReqId(reqType.getValue());
// 이력 저장
reqIdMapper.insertReqIdHistory(reqType.getValue(), nextReqId, desc, createBy);
log.debug("Generated REQ_ID: {} for type: {}", nextReqId, reqType.getValue());
return nextReqId;
} catch (Exception e) {
log.error("Failed to generate REQ_ID for type: {}", reqType.getValue(), e);
throw new RuntimeException("REQ_ID 생성 중 오류가 발생했습니다.", e);
}
}
public List<Map<String, Object>> getRecentReqIdHistory(EReqType reqType, int limit) {
return reqIdMapper.getReqIdHistory(reqType.getValue(), limit);
}
public Integer getCurrentMaxReqId(EReqType reqType) {
Integer maxReqId = reqIdMapper.getNextReqId(reqType.getValue());
return maxReqId != null ? maxReqId - 1 : 0; // 다음 ID에서 1을 빼면 현재 최대값
}
}

View File

@@ -79,7 +79,20 @@ public class S3Service {
} }
public void deleteFile(String fileUrl) { public void deleteFile(String fileUrl) {
String objectKey = fileUrl.substring(fileUrl.indexOf(".com/") + 5); String objectKey;
if (fileUrl.startsWith(cloudFrontUrl)) {
objectKey = fileUrl.substring(cloudFrontUrl.length());
} else {
objectKey = "";
}
if(objectKey.isEmpty()){
log.warn("Deleting S3 Fail: {}", fileUrl);
return;
}
log.info("Deleting S3 object with key: {}", objectKey);
s3Client.deleteObject(builder -> builder s3Client.deleteObject(builder -> builder
.bucket(bucketName) .bucket(bucketName)

View File

@@ -30,14 +30,13 @@ import java.util.stream.Collectors;
public class UserReportService { public class UserReportService {
private static final Logger logger = LoggerFactory.getLogger(UserReportService.class); private static final Logger logger = LoggerFactory.getLogger(UserReportService.class);
private final DynamoDBService dynamoDBService;
public UserReportResponse totalCnt(Map<String,String> requestParam){ public UserReportResponse totalCnt(Map<String,String> requestParam){
int resolved = 0; int resolved = 0;
int unResolved = 0; int unResolved = 0;
List<UserReportResponse.Report> userReportList = new ArrayList<>(); List<UserReportResponse.Report> userReportList = new ArrayList<>();
userReportList = dynamoDBService.getUserReportList(requestParam); // userReportList = dynamoDBService.getUserReportList(requestParam);
Map<Boolean, Long> result = userReportList.stream() Map<Boolean, Long> result = userReportList.stream()
.collect(Collectors.partitioningBy( .collect(Collectors.partitioningBy(
val -> val.getState() == STATUS.RESOLVED, val -> val.getState() == STATUS.RESOLVED,
@@ -62,7 +61,7 @@ public class UserReportService {
} }
public UserReportResponse list(Map<String,String> requestParam){ public UserReportResponse list(Map<String,String> requestParam){
List<UserReportResponse.Report> userReportList = new ArrayList<>(); List<UserReportResponse.Report> userReportList = new ArrayList<>();
userReportList = dynamoDBService.getUserReportList(requestParam); // userReportList = dynamoDBService.getUserReportList(requestParam);
String reportTypeFilter = CommonUtils.objectToString(requestParam.get("report_type")); String reportTypeFilter = CommonUtils.objectToString(requestParam.get("report_type"));
String statusFilter = CommonUtils.objectToString(requestParam.get("status")); String statusFilter = CommonUtils.objectToString(requestParam.get("status"));
@@ -142,10 +141,10 @@ public class UserReportService {
} }
public UserReportResponse reportDetail(Map<String,String> requestParam){ public UserReportResponse reportDetail(Map<String,String> requestParam){
UserReportResponse.ResultData userReportDetail = dynamoDBService.getUserReportDetail(requestParam); // UserReportResponse.ResultData userReportDetail = dynamoDBService.getUserReportDetail(requestParam);
return UserReportResponse.builder() return UserReportResponse.builder()
.resultData(userReportDetail) .resultData(null)
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult()) .result(CommonCode.SUCCESS.getResult())
.build(); .build();
@@ -153,10 +152,10 @@ public class UserReportService {
} }
public UserReportResponse replyDetail(Map<String,String> requestParam){ public UserReportResponse replyDetail(Map<String,String> requestParam){
UserReportResponse.ResultData userReportDetail = dynamoDBService.getUserReplyDetail(requestParam); // UserReportResponse.ResultData userReportDetail = dynamoDBService.getUserReplyDetail(requestParam);
return UserReportResponse.builder() return UserReportResponse.builder()
.resultData(userReportDetail) .resultData(null)
.status(CommonCode.SUCCESS.getHttpStatus()) .status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult()) .result(CommonCode.SUCCESS.getResult())
.build(); .build();
@@ -167,10 +166,10 @@ public class UserReportService {
public UserReportResponse reportReply(UserReportRequest userReportRequest){ public UserReportResponse reportReply(UserReportRequest userReportRequest){
userReportRequest.setManagerEmail(CommonUtils.getAdmin().getEmail()); userReportRequest.setManagerEmail(CommonUtils.getAdmin().getEmail());
dynamoDBService.reportReply(userReportRequest); // dynamoDBService.reportReply(userReportRequest);
//신고 내역 상태 및 해결일자 변경 //신고 내역 상태 및 해결일자 변경
dynamoDBService.changeReportStatus(userReportRequest); // dynamoDBService.changeReportStatus(userReportRequest);
return UserReportResponse.builder() return UserReportResponse.builder()
@@ -182,7 +181,4 @@ public class UserReportService {
.build(); .build();
} }
public void dummy(Map<String, String> map){
dynamoDBService.dummy(map);
}
} }

View File

@@ -7,6 +7,8 @@ import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.caliverse.admin.domain.RabbitMq.MessageHandlerService;
import com.caliverse.admin.domain.entity.EReqType;
import com.caliverse.admin.domain.entity.FriendRequest; import com.caliverse.admin.domain.entity.FriendRequest;
import com.caliverse.admin.domain.entity.SEARCHTYPE; import com.caliverse.admin.domain.entity.SEARCHTYPE;
import com.caliverse.admin.domain.request.MailRequest; import com.caliverse.admin.domain.request.MailRequest;
@@ -16,10 +18,8 @@ import com.caliverse.admin.dynamodb.domain.atrrib.MailJsonAttrib;
import com.caliverse.admin.dynamodb.domain.atrrib.MoneyAttrib; import com.caliverse.admin.dynamodb.domain.atrrib.MoneyAttrib;
import com.caliverse.admin.dynamodb.domain.doc.MailDoc; import com.caliverse.admin.dynamodb.domain.doc.MailDoc;
import com.caliverse.admin.dynamodb.dto.PageResult; import com.caliverse.admin.dynamodb.dto.PageResult;
import com.caliverse.admin.dynamodb.service.DynamodbItemService; import com.caliverse.admin.dynamodb.service.*;
import com.caliverse.admin.dynamodb.service.DynamodbMailService; import com.caliverse.admin.global.common.constants.CommonConstants;
import com.caliverse.admin.dynamodb.service.DynamodbService;
import com.caliverse.admin.dynamodb.service.DynamodbUserService;
import com.caliverse.admin.redis.service.RedisUserInfoService; import com.caliverse.admin.redis.service.RedisUserInfoService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger; import org.slf4j.Logger;
@@ -37,21 +37,25 @@ import com.caliverse.admin.global.common.exception.RestApiException;
import com.caliverse.admin.global.common.utils.CommonUtils; import com.caliverse.admin.global.common.utils.CommonUtils;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
@Slf4j @Slf4j
public class UsersService { public class UsersService {
private static final Logger logger = LoggerFactory.getLogger(UsersService.class);
private final DynamoDBService dynamoDBService;
private final DynamodbService dynamodbService; private final DynamodbService dynamodbService;
private final HistoryService historyService;
private final UserGameSessionService userGameSessionService; private final UserGameSessionService userGameSessionService;
private final RedisUserInfoService redisUserInfoService; private final RedisUserInfoService redisUserInfoService;
private final DynamodbUserService dynamodbUserService; private final DynamodbUserService dynamodbUserService;
private final DynamodbItemService dynamodbItemService; private final DynamodbItemService dynamodbItemService;
private final DynamodbMailService dynamodbMailService; private final DynamodbMailService dynamodbMailService;
private final DynamodbQuestService dynamodbQuestService;
private final DynamodbMyHomeService dynamodbMyHomeService;
private final DynamodbFriendService dynamodbFriendService;
private final MessageHandlerService messageHandlerService;
private final ReqIdService reqIdService;
@Autowired @Autowired
private MetaDataHandler metaDataHandler; private MetaDataHandler metaDataHandler;
@@ -120,7 +124,6 @@ public class UsersService {
String searchType = requestParam.get("search_type").toString(); String searchType = requestParam.get("search_type").toString();
String searchKey = requestParam.get("search_key").toString(); String searchKey = requestParam.get("search_key").toString();
// Map<String,String> res = dynamoDBService.findUsersBykey(searchType, searchKey);
Map<String,String> resultMap = new HashMap<>(); Map<String,String> resultMap = new HashMap<>();
if(searchType.equals(SEARCHTYPE.NAME.name())){ if(searchType.equals(SEARCHTYPE.NAME.name())){
String name_guid = dynamodbUserService.getNameByGuid(searchKey.toLowerCase()); String name_guid = dynamodbUserService.getNameByGuid(searchKey.toLowerCase());
@@ -202,7 +205,7 @@ public class UsersService {
public UsersResponse getAvatarInfo(String guid){ public UsersResponse getAvatarInfo(String guid){
//avatarInfo //avatarInfo
Map<String, Object> charInfo = dynamoDBService.getAvatarInfo(guid); Map<String, Object> charInfo = dynamodbUserService.getAvatarInfo(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -218,7 +221,7 @@ public class UsersService {
//의상 정보 //의상 정보
public UsersResponse getClothInfo(String guid){ public UsersResponse getClothInfo(String guid){
Map<String, Object> charInfo = dynamoDBService.getCloth(guid); Map<String, Object> charInfo = dynamodbItemService.getClothItems(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -234,7 +237,7 @@ public class UsersService {
//도구 정보 //도구 정보
public UsersResponse getToolSlotInfo(String guid){ public UsersResponse getToolSlotInfo(String guid){
Map<String, Object> toolSlot = dynamoDBService.getTools(guid); Map<String, Object> toolSlot = dynamodbItemService.getTools(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -251,7 +254,7 @@ public class UsersService {
//인벤토리 정보 //인벤토리 정보
public UsersResponse getInventoryInfo(String guid){ public UsersResponse getInventoryInfo(String guid){
UsersResponse.InventoryInfo inventoryInfo = dynamodbItemService.getInvenItems(guid); UsersResponse.InventoryInfo inventoryInfo = dynamodbItemService.getInvenItems(guid);
logger.info("getInventoryInfo Inventory Items: {}", inventoryInfo); log.info("getInventoryInfo Inventory Items: {}", inventoryInfo);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -412,8 +415,7 @@ public class UsersService {
//마이홈 정보 //마이홈 정보
public UsersResponse getMyhome(String guid){ public UsersResponse getMyhome(String guid){
List<UsersResponse.Myhome> myhome = dynamodbMyHomeService.getMyHome(guid);
UsersResponse.Myhome myhome = dynamoDBService.getMyhome(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -430,8 +432,8 @@ public class UsersService {
//친구 목록 //친구 목록
public UsersResponse getFriendList(String guid){ public UsersResponse getFriendList(String guid){
List<UsersResponse.Friend> friendList = dynamoDBService.getFriendList(guid); List<UsersResponse.Friend> friendList = dynamodbFriendService.getFriend(guid);
List<UsersResponse.Friend> friendBlockList = dynamoDBService.getUserBlockList(guid); List<UsersResponse.Friend> friendBlockList = dynamodbFriendService.getBlockUser(guid);
List<UsersResponse.Friend> friendSendList = new ArrayList<>(); List<UsersResponse.Friend> friendSendList = new ArrayList<>();
List<UsersResponse.Friend> friendReceiveList = new ArrayList<>(); List<UsersResponse.Friend> friendReceiveList = new ArrayList<>();
@@ -478,7 +480,7 @@ public class UsersService {
//타투 정보 //타투 정보
public UsersResponse getTattoo(String guid){ public UsersResponse getTattoo(String guid){
List<UsersResponse.Tattoo> resTatto = dynamoDBService.getTattoo(guid); List<UsersResponse.Tattoo> resTatto = dynamodbItemService.getTattoo(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -494,8 +496,7 @@ public class UsersService {
//퀘스트 정보 //퀘스트 정보
public UsersResponse getQuest(String guid){ public UsersResponse getQuest(String guid){
List<UsersResponse.QuestInfo> questList = dynamodbQuestService.getQuestItems(guid);
List<UsersResponse.QuestInfo> questList = dynamoDBService.getQuest(guid);
return UsersResponse.builder() return UsersResponse.builder()
.resultData( .resultData(
@@ -509,4 +510,42 @@ public class UsersService {
} }
public UsersResponse CompleteQuestTask(UsersRequest usersRequest){
String serverName = redisUserInfoService.getFirstChannel();
if(serverName.isEmpty()){
log.error("CompleteQuestTask serverList is empty");
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.NOT_FOUND_SERVER.getMessage());
}
String guid = usersRequest.getGuid();
userGameSessionService.kickUserSession(guid, "Force complete quest task");
String accountId = dynamodbUserService.getGuidByAccountId(guid);
try{
messageHandlerService.sendQuestTaskCompleteMessage(
serverName,
accountId,
reqIdService.generateNextReqId(
EReqType.QUEST_TASK,
CommonUtils.getAdmin() == null ? CommonConstants.SYSTEM : CommonUtils.getAdmin().getId().toString(),
"퀘스트 TASK 강제 완료 요청"
),
usersRequest.getQuestKey(),
usersRequest.getTaskNo()
);
} catch (Exception e) {
log.error("CompleteQuestTask messageHandlerService error: {}", e.getMessage(), e);
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.MESSAGE_SEND_FAIL.getMessage());
}
return UsersResponse.builder()
.status(CommonCode.SUCCESS.getHttpStatus())
.result(CommonCode.SUCCESS.getResult())
.resultData(UsersResponse.ResultData.builder()
.message(SuccessCode.UPDATE.name())
.build())
.build();
}
} }

View File

@@ -0,0 +1,40 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.caliverse.admin.dynamodb.entity.ELanguageType;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import java.util.Map;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class BannerAttrib extends DynamoDBAttribBase{
@JsonProperty("banner_id")
private Integer bannerId;
@JsonProperty("banner_type")
private Integer bannerType;
@JsonProperty("start_time")
private String startTime;
@JsonProperty("end_time")
private String endTime;
@JsonProperty("order_id")
private Integer orderId;
@JsonProperty("image_url")
private Map<ELanguageType, String> imageUrl;
@JsonProperty("link_address")
private Map<ELanguageType, String> linkAddress;
}

View File

@@ -0,0 +1,21 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class BlockUserAttrib extends DynamoDBAttribBase {
@JsonProperty("guid")
private String blockGuid;
@JsonProperty("is_new")
private Integer isNew;
}

View File

@@ -0,0 +1,28 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.caliverse.admin.dynamodb.entity.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import java.util.List;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class CharacterBaseAttrib extends DynamoDBAttribBase {
@JsonProperty("character_guid")
private String characterGuid;
@JsonProperty("user_guid")
private String userGuid;
@JsonProperty("state_info")
private StateInfo stateInfo;
@JsonProperty("appearance_profile")
private AppearanceProfile appearanceProfile;
}

View File

@@ -0,0 +1,25 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class FriendAttrib extends DynamoDBAttribBase {
@JsonProperty("friend_guid")
private String friendGuid;
@JsonProperty("folder_name")
private String folderName;
@JsonProperty("is_new")
private Integer isNew;
@JsonProperty("create_time")
private String createTime;
}

View File

@@ -0,0 +1,27 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class MyHomeAttrib extends DynamoDBAttribBase {
@JsonProperty("myhome_guid")
private String myhomeGuid;
@JsonProperty("myhome_meta_id")
private Integer myHomeMetaId;
@JsonProperty("myhome_name")
private String myhomeName;
@JsonProperty("selected_flag")
private Integer selectedFlag;
@JsonProperty("myhome_ugc_info_s3_key")
private String myhomeUgcInfoS3FileName;
}

View File

@@ -0,0 +1,146 @@
package com.caliverse.admin.dynamodb.domain.atrrib;
import com.caliverse.admin.domain.entity.EQuestType;
import com.caliverse.admin.dynamodb.entity.UgqQuestInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import java.util.List;
@Setter
@ToString(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class QuestAttrib{
@JsonProperty("quest_id")
private Integer questId;
@JsonProperty("quest_type")
private EQuestType questType;
@JsonProperty("ugq_quest_info")
private UgqQuestInfo ugqQuestInfo;
@JsonProperty("quest_assign_time")
private String questAssignTime;
@JsonProperty("current_task_num")
private Integer currentTaskNum;
@JsonProperty("task_start_time")
private String taskStartTime;
@JsonProperty("quest_complete_time")
private String questCompleteTime;
@JsonProperty("active_events")
private List<String> activeEvents;
@JsonProperty("has_counter")
private Integer hasCounter;
@JsonProperty("min_counter")
private Integer minCounter;
@JsonProperty("max_counter")
private Integer maxCounter;
@JsonProperty("current_counter")
private Integer currentCounter;
@JsonProperty("is_complete")
private Integer isComplete;
@JsonProperty("replaced_reward_groupId")
private Integer replacedRewardGroupId;
@JsonProperty("has_timer")
private Integer hasTimer;
@JsonProperty("timer_complete_time")
private String timerCompleteTime;
@JsonProperty("is_current_task_complete")
private Integer isCurrentTaskComplete;
@JsonProperty("completed_idx_strings")
private List<String> completedIdxStrings;
@DynamoDbAttribute("quest_id")
public Integer getQuestId() {
return questId;
}
@DynamoDbAttribute("quest_type")
public EQuestType getQuestType() {
return questType;
}
@DynamoDbAttribute("ugq_quest_info")
public UgqQuestInfo getUgqQuestInfo() {
return ugqQuestInfo;
}
@DynamoDbAttribute("quest_assign_time")
public String getQuestAssignTime() {
return questAssignTime;
}
@DynamoDbAttribute("current_task_num")
public Integer getCurrentTaskNum() {
return currentTaskNum;
}
@DynamoDbAttribute("task_start_time")
public String getTaskStartTime() {
return taskStartTime;
}
@DynamoDbAttribute("quest_complete_time")
public String getQuestCompleteTime() {
return questCompleteTime;
}
@DynamoDbAttribute("active_events")
public List<String> getActiveEvents() {
return activeEvents;
}
@DynamoDbAttribute("has_counter")
public Integer getHasCounter() {
return hasCounter;
}
@DynamoDbAttribute("min_counter")
public Integer getMinCounter() {
return minCounter;
}
@DynamoDbAttribute("max_counter")
public Integer getMaxCounter() {
return maxCounter;
}
@DynamoDbAttribute("current_counter")
public Integer getCurrentCounter() {
return currentCounter;
}
@DynamoDbAttribute("is_complete")
public Integer getIsComplete() {
return isComplete;
}
@DynamoDbAttribute("replaced_reward_groupId")
public Integer getReplacedRewardGroupId() {
return replacedRewardGroupId;
}
@DynamoDbAttribute("has_timer")
public Integer getHasTimer() {
return hasTimer;
}
@DynamoDbAttribute("timer_complete_time")
public String getTimerCompleteTime() {
return timerCompleteTime;
}
@DynamoDbAttribute("is_current_task_complete")
public Integer getIsCurrentTaskComplete() {
return isCurrentTaskComplete;
}
@DynamoDbAttribute("completed_idx_strings")
public List<String> getCompletedIdxStrings() {
return completedIdxStrings;
}
}

View File

@@ -0,0 +1,29 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class BannerDoc extends DynamoDBDocBase {
private String bannerAttrib;
public String getAttribFieldName() {
return "BannerAttrib";
}
@DynamoDbAttribute("BannerAttrib")
@JsonProperty("BannerAttrib")
public String getAttribValue() {
return bannerAttrib;
}
public void setAttribValue(String value) {
this.bannerAttrib = value;
}
}

View File

@@ -0,0 +1,30 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.caliverse.admin.global.common.constants.DynamoDBConstants;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class BlockUserDoc extends DynamoDBDocBase {
private String blockUserAttrib;
public String getAttribFieldName() {
return DynamoDBConstants.ATTRIB_BLOCK_USER;
}
@DynamoDbAttribute(DynamoDBConstants.ATTRIB_BLOCK_USER)
@JsonProperty(DynamoDBConstants.ATTRIB_BLOCK_USER)
public String getAttribValue() {
return blockUserAttrib;
}
public void setAttribValue(String value) {
this.blockUserAttrib = value;
}
}

View File

@@ -0,0 +1,30 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.caliverse.admin.global.common.constants.DynamoDBConstants;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class CharacterBaseDoc extends DynamoDBDocBase {
private String characterBaseAttrib;
public String getAttribFieldName() {
return DynamoDBConstants.ATTRIB_CHARACTER;
}
@DynamoDbAttribute(DynamoDBConstants.ATTRIB_CHARACTER)
@JsonProperty(DynamoDBConstants.ATTRIB_CHARACTER)
public String getAttribValue() {
return characterBaseAttrib;
}
public void setAttribValue(String value) {
this.characterBaseAttrib = value;
}
}

View File

@@ -0,0 +1,30 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.caliverse.admin.global.common.constants.DynamoDBConstants;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class FriendDoc extends DynamoDBDocBase {
private String friendAttrib;
public String getAttribFieldName() {
return DynamoDBConstants.ATTRIB_FRIEND;
}
@DynamoDbAttribute(DynamoDBConstants.ATTRIB_FRIEND)
@JsonProperty(DynamoDBConstants.ATTRIB_FRIEND)
public String getAttribValue() {
return friendAttrib;
}
public void setAttribValue(String value) {
this.friendAttrib = value;
}
}

View File

@@ -0,0 +1,29 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class MyhomeDoc extends DynamoDBDocBase {
private String myHomeAttrib;
public String getAttribFieldName() {
return "MyHomeAttrib";
}
@DynamoDbAttribute("MyHomeAttrib")
@JsonProperty("MyHomeAttrib")
public String getAttribValue() {
return myHomeAttrib;
}
public void setAttribValue(String value) {
this.myHomeAttrib = value;
}
}

View File

@@ -0,0 +1,30 @@
package com.caliverse.admin.dynamodb.domain.doc;
import com.caliverse.admin.dynamodb.domain.atrrib.QuestAttrib;
import com.caliverse.admin.global.common.constants.DynamoDBConstants;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbAttribute;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
public class QuestDoc extends DynamoDBDocBase {
private QuestAttrib questAttrib;
public String getAttribFieldName() {
return DynamoDBConstants.ATTRIB_QUEST;
}
@DynamoDbAttribute(DynamoDBConstants.ATTRIB_QUEST)
public QuestAttrib getAttribValue() {
return questAttrib;
}
public void setAttribValue(QuestAttrib value) {
this.questAttrib = value;
}
}

View File

@@ -0,0 +1,28 @@
package com.caliverse.admin.dynamodb.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@DynamoDbBean
public class AppearanceProfile {
@JsonProperty("basic_style")
private Integer basicStyle;
@JsonProperty("body_shape")
private Integer bodyShape;
@JsonProperty("hair_style")
private Integer hairStyle;
@JsonProperty("custom_values")
private List<Integer> customValues;
@JsonProperty("is_custom_completed")
private boolean isCustomCompleted;
}

View File

@@ -0,0 +1,45 @@
package com.caliverse.admin.dynamodb.entity;
import com.caliverse.admin.domain.entity.common.ValueEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum ECountDeltaType implements ValueEnum {
None(0),
New(1),
Update(2),
Acquire(3),
Consume(4),
Delete(5),
;
private final int value;
ECountDeltaType(int value) {
this.value = value;
}
@Override
public int getValue() {
return value;
}
@JsonCreator
public static ECountDeltaType fromValue(Object value) {
if (value instanceof Number) {
int intValue = ((Number) value).intValue();
for (ECountDeltaType type : values()) {
if (type.value == intValue) {
return type;
}
}
} else if (value instanceof String) {
String stringValue = (String) value;
for (ECountDeltaType type : values()) {
if (type.name().equalsIgnoreCase(stringValue)) {
return type;
}
}
}
throw new IllegalArgumentException("Invalid EAmountDeltaType value: " + value);
}
}

View File

@@ -0,0 +1,25 @@
package com.caliverse.admin.dynamodb.entity;
import com.caliverse.admin.domain.entity.common.ValueEnum;
public enum EUgqStateType implements ValueEnum {
None(0),
Test(1),
Live(2),
Shutdown(3),
RevisionChanged(4),
Standby(5),
;
private final int value;
EUgqStateType(int value) {
this.value = value;
}
@Override
public int getValue() {
return value;
}
}

View File

@@ -0,0 +1,77 @@
package com.caliverse.admin.dynamodb.entity;
import com.caliverse.admin.domain.entity.common.ValueEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
public enum EntityStateType implements ValueEnum {
None(0),
Created(1),
Initializing(2),
Loading(3),
Login(11),
Logout(111),
GameZoneEnter(15),
PlayReady(16),
Spawning(17),
SpawnedCutScene(18),
Alive(51),
Idle(511),
Think(512),
Move(513),
Roam(5131),
Walk(5132),
Run(5133),
Patrol(5134),
Chase(5135),
Dash(5136),
GoHome(5137),
Dancing(5138),
Battle(514),
SkillFire(5141),
Uncontrol(515),
Hide(516),
Pause(519),
Dead(61),
Revive(611),
GameZoneExit(99),
Activate(101),
Deactivate(102),
Drop(201),
UsingByCrafting(301),
UsingByFarming(302),
UsingByMyHome(303)
;
private final int value;
EntityStateType(int value) {
this.value = value;
}
@Override
public int getValue() {
return value;
}
@JsonCreator
public static EntityStateType fromValue(Object value) {
if (value instanceof Number) {
int intValue = ((Number) value).intValue();
for (EntityStateType type : values()) {
if (type.value == intValue) {
return type;
}
}
} else if (value instanceof String) {
String stringValue = (String) value;
for (EntityStateType type : values()) {
if (type.name().equalsIgnoreCase(stringValue)) {
return type;
}
}
}
throw new IllegalArgumentException("Invalid ECurrencyType value: " + value);
}
}

View File

@@ -0,0 +1,26 @@
package com.caliverse.admin.dynamodb.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@DynamoDbBean
public class StateInfo {
@JsonProperty("StateType")
private Integer stateType;
@JsonProperty("AnchorMetaGuid")
private String anchorMetaGuid;
@JsonProperty("MetaIdOfStateType")
private Integer metaIdOfStateType;
}

View File

@@ -0,0 +1,18 @@
package com.caliverse.admin.dynamodb.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@DynamoDbBean
public class UgqQuestInfo {
private Integer QuestRevision;
private Integer QuestCost;
private EUgqStateType UqgState;
}

View File

@@ -0,0 +1,14 @@
package com.caliverse.admin.dynamodb.repository;
import com.caliverse.admin.domain.entity.MenuBanner;
import com.caliverse.admin.domain.request.MenuRequest;
import com.caliverse.admin.dynamodb.domain.atrrib.BannerAttrib;
import com.caliverse.admin.dynamodb.domain.doc.BannerDoc;
import com.caliverse.admin.dynamodb.entity.DynamodbOperationResult;
public interface BannerRepository extends DynamoDBRepository<BannerDoc> {
BannerAttrib findBannerAttrib(Integer bannerId);
void insertBanner(MenuBanner banner);
void updateBanner(MenuBanner banner);
DynamodbOperationResult deleteBanner(Integer bannerId);
}

View File

@@ -0,0 +1,20 @@
package com.caliverse.admin.dynamodb.repository;
import com.caliverse.admin.domain.entity.EFilterOperator;
import com.caliverse.admin.dynamodb.domain.doc.BlockUserDoc;
import com.caliverse.admin.dynamodb.dto.PageResult;
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;
import java.util.Map;
public interface BlockUserRepository extends DynamoDBRepository<BlockUserDoc> {
PageResult<BlockUserDoc> getBlockUserListWithPaging(
String userGuid,
String sortKeyPrefix,
String filterAttributeName,
EFilterOperator filterOperator,
String filterAttributeValue,
Map<String, AttributeValue> exclusiveStartKey,
boolean sortIndex
);
}

View File

@@ -0,0 +1,8 @@
package com.caliverse.admin.dynamodb.repository;
import com.caliverse.admin.dynamodb.domain.atrrib.CharacterBaseAttrib;
import com.caliverse.admin.dynamodb.domain.doc.CharacterBaseDoc;
public interface CharacterBaseRepository extends DynamoDBRepository<CharacterBaseDoc> {
CharacterBaseAttrib findCharacter(String guid);
}

View File

@@ -0,0 +1,20 @@
package com.caliverse.admin.dynamodb.repository;
import com.caliverse.admin.domain.entity.EFilterOperator;
import com.caliverse.admin.dynamodb.domain.doc.FriendDoc;
import com.caliverse.admin.dynamodb.dto.PageResult;
import software.amazon.awssdk.services.dynamodb.model.AttributeValue;
import java.util.Map;
public interface FriendRepository extends DynamoDBRepository<FriendDoc> {
PageResult<FriendDoc> getFriendListWithPaging(
String userGuid,
String sortKeyPrefix,
String filterAttributeName,
EFilterOperator filterOperator,
String filterAttributeValue,
Map<String, AttributeValue> exclusiveStartKey,
boolean sortIndex
);
}

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