// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GameMsgProtocol.proto
package com.zzn.nettygame.netty.proto;
public final class GameMsgProtocol {
private GameMsgProtocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* <pre>
* 消息代号
* </pre>
*
* Protobuf enum {@code msg.MsgCode}
*/
public enum MsgCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>USER_ENTRY_CMD = 0;</code>
*/
USER_ENTRY_CMD(0),
/**
* <code>USER_ENTRY_RESULT = 1;</code>
*/
USER_ENTRY_RESULT(1),
/**
* <code>WHO_ELSE_IS_HERE_CMD = 2;</code>
*/
WHO_ELSE_IS_HERE_CMD(2),
/**
* <code>WHO_ELSE_IS_HERE_RESULT = 3;</code>
*/
WHO_ELSE_IS_HERE_RESULT(3),
/**
* <code>USER_MOVE_TO_CMD = 4;</code>
*/
USER_MOVE_TO_CMD(4),
/**
* <code>USER_MOVE_TO_RESULT = 5;</code>
*/
USER_MOVE_TO_RESULT(5),
/**
* <code>USER_QUIT_RESULT = 6;</code>
*/
USER_QUIT_RESULT(6),
/**
* <code>USER_STOP_CMD = 7;</code>
*/
USER_STOP_CMD(7),
/**
* <code>USER_STOP_RESULT = 8;</code>
*/
USER_STOP_RESULT(8),
/**
* <code>USER_ATTK_CMD = 9;</code>
*/
USER_ATTK_CMD(9),
/**
* <code>USER_ATTK_RESULT = 10;</code>
*/
USER_ATTK_RESULT(10),
/**
* <code>USER_SUBTRACT_HP_RESULT = 11;</code>
*/
USER_SUBTRACT_HP_RESULT(11),
/**
* <code>USER_DIE_RESULT = 12;</code>
*/
USER_DIE_RESULT(12),
UNRECOGNIZED(-1),
;
/**
* <code>USER_ENTRY_CMD = 0;</code>
*/
public static final int USER_ENTRY_CMD_VALUE = 0;
/**
* <code>USER_ENTRY_RESULT = 1;</code>
*/
public static final int USER_ENTRY_RESULT_VALUE = 1;
/**
* <code>WHO_ELSE_IS_HERE_CMD = 2;</code>
*/
public static final int WHO_ELSE_IS_HERE_CMD_VALUE = 2;
/**
* <code>WHO_ELSE_IS_HERE_RESULT = 3;</code>
*/
public static final int WHO_ELSE_IS_HERE_RESULT_VALUE = 3;
/**
* <code>USER_MOVE_TO_CMD = 4;</code>
*/
public static final int USER_MOVE_TO_CMD_VALUE = 4;
/**
* <code>USER_MOVE_TO_RESULT = 5;</code>
*/
public static final int USER_MOVE_TO_RESULT_VALUE = 5;
/**
* <code>USER_QUIT_RESULT = 6;</code>
*/
public static final int USER_QUIT_RESULT_VALUE = 6;
/**
* <code>USER_STOP_CMD = 7;</code>
*/
public static final int USER_STOP_CMD_VALUE = 7;
/**
* <code>USER_STOP_RESULT = 8;</code>
*/
public static final int USER_STOP_RESULT_VALUE = 8;
/**
* <code>USER_ATTK_CMD = 9;</code>
*/
public static final int USER_ATTK_CMD_VALUE = 9;
/**
* <code>USER_ATTK_RESULT = 10;</code>
*/
public static final int USER_ATTK_RESULT_VALUE = 10;
/**
* <code>USER_SUBTRACT_HP_RESULT = 11;</code>
*/
public static final int USER_SUBTRACT_HP_RESULT_VALUE = 11;
/**
* <code>USER_DIE_RESULT = 12;</code>
*/
public static final int USER_DIE_RESULT_VALUE = 12;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new 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.
*/
@Deprecated
public static MsgCode 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 MsgCode forNumber(int value) {
switch (value) {
case 0: return USER_ENTRY_CMD;
case 1: return USER_ENTRY_RESULT;
case 2: return WHO_ELSE_IS_HERE_CMD;
case 3: return WHO_ELSE_IS_HERE_RESULT;
case 4: return USER_MOVE_TO_CMD;
case 5: return USER_MOVE_TO_RESULT;
case 6: return USER_QUIT_RESULT;
case 7: return USER_STOP_CMD;
case 8: return USER_STOP_RESULT;
case 9: return USER_ATTK_CMD;
case 10: return USER_ATTK_RESULT;
case 11: return USER_SUBTRACT_HP_RESULT;
case 12: return USER_DIE_RESULT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<MsgCode>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MsgCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<MsgCode>() {
public MsgCode findValueByNumber(int number) {
return MsgCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new 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 GameMsgProtocol.getDescriptor().getEnumTypes().get(0);
}
private static final MsgCode[] VALUES = values();
public static MsgCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private MsgCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:msg.MsgCode)
}
public interface UserEntryCmdOrBuilder extends
// @@protoc_insertion_point(interface_extends:msg.UserEntryCmd)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* 用户 Id
* </pre>
*
* <code>uint32 userId = 1;</code>
* @return The userId.
*/
int getUserId();
/**
* <pre>
* 英雄形象
* </pre>
*
* <code>string heroAvatar = 2;</code>
* @return The heroAvatar.
*/
String getHeroAvatar();
/**
* <pre>
* 英雄形象
* </pre>
*
* <code>string heroAvatar = 2;</code>
* @return The bytes for heroAvatar.
*/
com.google.protobuf.ByteString
getHeroAvatarBytes();
}
/**
* <pre>
*
* 用户入场
* /////////////////////////////////////////////////////////////////////
* 指令
* </pre>
*
* Protobuf type {@code msg.UserEntryCmd}
*/
public static final class UserEntryCmd extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:msg.UserEntryCmd)
UserEntryCmdOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserEntryCmd.newBuilder() to construct.
private UserEntryCmd(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private UserEntryCmd() {
heroAvatar_ = "";
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new UserEntryCmd();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
网络游戏前后端(java,cocos).zip (33个子文件)
netty-cocos-main
mvnw.cmd 6KB
pom.xml 3KB
src
test
java
com
zzn
nettygame
NettyGameApplicationTests.java 650B
main
resources
application.properties 1B
java
com
zzn
nettygame
netty
handler
GameMsgHandler.java 3KB
TestHandler.java 1KB
GameMsgEncoder.java 2KB
Test2Handler.java 1KB
GameMsgDecoder.java 2KB
cmdhandler
CmdHandlerFactory.java 3KB
UserAttkCmdHandler.java 433B
UserEntryCmdHandler.java 1KB
ICmdHandler.java 268B
UserMoveToCmdHandler.java 869B
WhoElseIsHereCmdHandler.java 2KB
proto
GameMsgProtocol.java 322KB
Stater.java 3KB
dto
User.java 147B
proto1
GameMsgProtocol.proto 3KB
GameMsgProtocol.java 294KB
util
PackageUtil.java 11KB
UserManager.java 606B
GameMsgRecognizer.java 3KB
Broadcaster.java 835B
NettyGameApplication.java 328B
.mvn
wrapper
maven-wrapper.properties 218B
maven-wrapper.jar 50KB
MavenWrapperDownloader.java 5KB
proto
protoc-3.19.1-win64.zip 1.45MB
GenJsCode.cmd 437B
mvnw 10KB
.gitignore 395B
cocos
guaishou01.zip 7.73MB
共 33 条
- 1
资源评论
马coder
- 粉丝: 1203
- 资源: 6602
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功