// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoMsg.proto
package com.crazymakercircle.im.common.bean.msg;
public final class ProtoMsg {
private ProtoMsg() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.crazymakercircle.im.common.bean.msg.HeadType}
*/
public enum HeadType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LOGIN_REQUEST = 0;</code>
*/
LOGIN_REQUEST(0),
/**
* <code>LOGIN_RESPONSE = 1;</code>
*/
LOGIN_RESPONSE(1),
/**
* <code>LOGOUT_REQUEST = 2;</code>
*/
LOGOUT_REQUEST(2),
/**
* <code>LOGOUT_RESPONSE = 3;</code>
*/
LOGOUT_RESPONSE(3),
/**
* <code>KEEPALIVE_REQUEST = 4;</code>
*/
KEEPALIVE_REQUEST(4),
/**
* <code>KEEPALIVE_RESPONSE = 5;</code>
*/
KEEPALIVE_RESPONSE(5),
/**
* <code>MESSAGE_REQUEST = 6;</code>
*/
MESSAGE_REQUEST(6),
/**
* <code>MESSAGE_RESPONSE = 7;</code>
*/
MESSAGE_RESPONSE(7),
/**
* <code>MESSAGE_NOTIFICATION = 8;</code>
*/
MESSAGE_NOTIFICATION(8),
UNRECOGNIZED(-1),
;
/**
* <code>LOGIN_REQUEST = 0;</code>
*/
public static final int LOGIN_REQUEST_VALUE = 0;
/**
* <code>LOGIN_RESPONSE = 1;</code>
*/
public static final int LOGIN_RESPONSE_VALUE = 1;
/**
* <code>LOGOUT_REQUEST = 2;</code>
*/
public static final int LOGOUT_REQUEST_VALUE = 2;
/**
* <code>LOGOUT_RESPONSE = 3;</code>
*/
public static final int LOGOUT_RESPONSE_VALUE = 3;
/**
* <code>KEEPALIVE_REQUEST = 4;</code>
*/
public static final int KEEPALIVE_REQUEST_VALUE = 4;
/**
* <code>KEEPALIVE_RESPONSE = 5;</code>
*/
public static final int KEEPALIVE_RESPONSE_VALUE = 5;
/**
* <code>MESSAGE_REQUEST = 6;</code>
*/
public static final int MESSAGE_REQUEST_VALUE = 6;
/**
* <code>MESSAGE_RESPONSE = 7;</code>
*/
public static final int MESSAGE_RESPONSE_VALUE = 7;
/**
* <code>MESSAGE_NOTIFICATION = 8;</code>
*/
public static final int MESSAGE_NOTIFICATION_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HeadType valueOf(int value) {
return forNumber(value);
}
public static HeadType forNumber(int value) {
switch (value) {
case 0: return LOGIN_REQUEST;
case 1: return LOGIN_RESPONSE;
case 2: return LOGOUT_REQUEST;
case 3: return LOGOUT_RESPONSE;
case 4: return KEEPALIVE_REQUEST;
case 5: return KEEPALIVE_RESPONSE;
case 6: return MESSAGE_REQUEST;
case 7: return MESSAGE_RESPONSE;
case 8: return MESSAGE_NOTIFICATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<HeadType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HeadType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<HeadType>() {
public HeadType findValueByNumber(int number) {
return HeadType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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.crazymakercircle.im.common.bean.msg.ProtoMsg.getDescriptor().getEnumTypes().get(0);
}
private static final HeadType[] VALUES = values();
public static HeadType 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 HeadType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.crazymakercircle.im.common.bean.msg.HeadType)
}
public interface LoginRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.crazymakercircle.im.common.bean.msg.LoginRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string uid = 1;</code>
*/
java.lang.String getUid();
/**
* <code>string uid = 1;</code>
*/
com.google.protobuf.ByteString
getUidBytes();
/**
* <code>string deviceId = 2;</code>
*/
java.lang.String getDeviceId();
/**
* <code>string deviceId = 2;</code>
*/
com.google.protobuf.ByteString
getDeviceIdBytes();
/**
* <code>string token = 3;</code>
*/
java.lang.String getToken();
/**
* <code>string token = 3;</code>
*/
com.google.protobuf.ByteString
getTokenBytes();
/**
* <code>uint32 platform = 4;</code>
*/
int getPlatform();
/**
* <code>string app_version = 5;</code>
*/
java.lang.String getAppVersion();
/**
* <code>string app_version = 5;</code>
*/
com.google.protobuf.ByteString
getAppVersionBytes();
}
/**
* Protobuf type {@code com.crazymakercircle.im.common.bean.msg.LoginRequest}
*/
public static final class LoginRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.crazymakercircle.im.common.bean.msg.LoginRequest)
LoginRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoginRequest.newBuilder() to construct.
private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LoginRequest() {
uid_ = "";
deviceId_ = "";
token_ = "";
platform_ = 0;
appVersion_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LoginRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
uid_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
token_ = s;
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
《基于Java高并发编程核心技术的第二卷源码设计》项目采用Java语言编写,整体包含360个文件,其中以Java源文件为主,达339个,辅以9个XML配置文件、4个Proto缓冲文件、3个可执行文件、2个Git忽略文件、1个Markdown文件、1个文本文件和1个批处理文件。该项目源码结构完整,适用于深入研究Java高并发编程技术。
资源推荐
资源详情
资源评论
收起资源包目录
基于Java高并发编程核心技术的第二卷源码设计 (360个子文件)
protobuf.bat 113B
protoc.exe 6.51MB
protoc-3.6.exe 2.32MB
protoc3.6.1.exe 2.32MB
.gitignore 444B
.gitignore 7B
ProtoMsg.java 236KB
HashMap.java 32KB
HttpClientHelper.java 20KB
LongEventSceneDemo.java 17KB
ConcurrentRecord.java 16KB
BinaryTree.java 14KB
HttpProtocolHelper.java 14KB
KeyStoreHelper.java 13KB
OsUtil.java 12KB
HashMap.java 12KB
LevelOrderPrinter.java 12KB
CreateThreadPoolDemo.java 11KB
StringUtils.java 11KB
HttpConnection.java 11KB
TestAsyncClient.java 11KB
DataCertCreate.java 10KB
FileUtil.java 10KB
LockTest.java 10KB
ByteUtil.java 10KB
ThreadUtil.java 10KB
CompletableFutureDemo.java 10KB
CLHLock.java 10KB
ShareLock.java 9KB
ReentrantSpinLock.java 9KB
RemotingUtil.java 9KB
HashMap.java 8KB
AtomicTest.java 8KB
SpinLock.java 8KB
RBTree.java 8KB
PoolSizeCalculator.java 7KB
MutexLock.java 7KB
LongConnHttpClient.java 7KB
ThreadSleep.java 7KB
InnerLockTest.java 7KB
TreeTest.java 6KB
ThreadLocalTest.java 6KB
NettyPromiseDemo.java 5KB
IOUtil.java 5KB
TwoLockDemo.java 5KB
NettyEchoServer.java 5KB
Logger.java 5KB
NettyEchoClient.java 5KB
BinarySearchTree.java 5KB
LruDemo.java 5KB
DoubleCircleLinkedList.java 5KB
NettyFutureDemo.java 5KB
GuavaFutureDemo.java 5KB
ShareLockTest.java 5KB
HttpStringCodec.java 5KB
SimpleThreadPool.java 5KB
HttpCodec.java 5KB
LongEventDemo.java 5KB
AVLTree.java 5KB
ReentrantLockPetStore.java 4KB
ArrayList.java 4KB
CompletableFutureTestV2.java 4KB
Test.java 4KB
DisruptorTaskScheduler.java 4KB
DoubleLinkedList.java 4KB
Base64Utils.java 4KB
ObjectLock.java 4KB
CommunicatePetStore.java 4KB
JvmUtil.java 4KB
Goods.java 4KB
TransShard.java 4KB
PlateDemo1Test.java 4KB
CompletableFutureTest.java 4KB
SkipList.java 4KB
CounDownDemo.java 4KB
StampedLockTest.java 4KB
ThreadLocalTest2.java 4KB
ConsistentHash.java 4KB
PetStore5.java 3KB
StatusDemo.java 3KB
Foo.java 3KB
ByteBufTest.java 3KB
SingleCircleLinkedList.java 3KB
MutexAndShareLockTest.java 3KB
PetStore4.java 3KB
PetStore3.java 3KB
SSLContextHelper.java 3KB
LongAdderVSAtomicLongTest.java 3KB
CpuAffinityDemo.java 3KB
Print.java 3KB
X509TrustManagerFacade.java 3KB
Customer.java 3KB
SingleLinkedList.java 3KB
JavaFutureDemo.java 3KB
CertHelper.java 3KB
JavaFuturePoolDemo.java 3KB
LongAdderVSAtomicLongTest.java 3KB
TestCompareAndSwap.java 3KB
User.java 3KB
ZKclient.java 3KB
共 360 条
- 1
- 2
- 3
- 4
资源评论
lly202406
- 粉丝: 2743
- 资源: 5456
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功