Class ThreadProto.Thread
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.bytedesk.core.socket.protobuf.model.ThreadProto.Thread
- All Implemented Interfaces:
ThreadProto.ThreadOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ThreadProto
public static final class ThreadProto.Thread
extends com.google.protobuf.GeneratedMessageV3
implements ThreadProto.ThreadOrBuilder
Protobuf type
Thread- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeThreadNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectstatic final intprivate static final ThreadProto.Threadprivate Objectstatic final intprivate byteprivate static final com.google.protobuf.Parser<ThreadProto.Thread>private static final longprivate Objectstatic final intprivate Objectstatic final intprivate Objectstatic final intprivate Objectstatic final intprivate UserProto.Userstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean会话来源客户端com.google.protobuf.ByteString会话来源客户端static ThreadProto.Threadstatic final com.google.protobuf.Descriptors.DescriptorgetExtra()自定义扩展/附加信息com.google.protobuf.ByteString自定义扩展/附加信息com.google.protobuf.Parser<ThreadProto.Thread>intgetState()会话状态com.google.protobuf.ByteString会话状态getTopic()订阅主题com.google.protobuf.ByteString订阅主题getType()会话类型com.google.protobuf.ByteString会话类型getUid()IDcom.google.protobuf.ByteStringIDgetUser()头像昵称等信息头像昵称等信息inthashCode()booleanhasUser()头像昵称等信息protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ThreadProto.Thread.Builderstatic ThreadProto.Thread.BuildernewBuilder(ThreadProto.Thread prototype) protected ThreadProto.Thread.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ThreadProto.ThreadparseDelimitedFrom(InputStream input) static ThreadProto.ThreadparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThreadProto.ThreadparseFrom(byte[] data) static ThreadProto.ThreadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThreadProto.ThreadparseFrom(com.google.protobuf.ByteString data) static ThreadProto.ThreadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThreadProto.ThreadparseFrom(com.google.protobuf.CodedInputStream input) static ThreadProto.ThreadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThreadProto.ThreadparseFrom(InputStream input) static ThreadProto.ThreadparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ThreadProto.ThreadparseFrom(ByteBuffer data) static ThreadProto.ThreadparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ThreadProto.Thread>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER- See Also:
-
uid_
-
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER- See Also:
-
topic_
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
type_
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
state_
-
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER- See Also:
-
user_
-
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER- See Also:
-
channel_
-
EXTRA_FIELD_NUMBER
public static final int EXTRA_FIELD_NUMBER- See Also:
-
extra_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
Thread
private Thread(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) -
Thread
private Thread()
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getUid
ID
string uid = 1;- Specified by:
getUidin interfaceThreadProto.ThreadOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()ID
string uid = 1;- Specified by:
getUidBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for uid.
-
getTopic
订阅主题
string topic = 2;- Specified by:
getTopicin interfaceThreadProto.ThreadOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()订阅主题
string topic = 2;- Specified by:
getTopicBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for topic.
-
getType
会话类型
string type = 3;- Specified by:
getTypein interfaceThreadProto.ThreadOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()会话类型
string type = 3;- Specified by:
getTypeBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for type.
-
getState
会话状态
string state = 4;- Specified by:
getStatein interfaceThreadProto.ThreadOrBuilder- Returns:
- The state.
-
getStateBytes
public com.google.protobuf.ByteString getStateBytes()会话状态
string state = 4;- Specified by:
getStateBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for state.
-
hasUser
public boolean hasUser()头像昵称等信息
.User user = 5;- Specified by:
hasUserin interfaceThreadProto.ThreadOrBuilder- Returns:
- Whether the user field is set.
-
getUser
头像昵称等信息
.User user = 5;- Specified by:
getUserin interfaceThreadProto.ThreadOrBuilder- Returns:
- The user.
-
getUserOrBuilder
头像昵称等信息
.User user = 5;- Specified by:
getUserOrBuilderin interfaceThreadProto.ThreadOrBuilder
-
getChannel
会话来源客户端
string channel = 6;- Specified by:
getChannelin interfaceThreadProto.ThreadOrBuilder- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.ByteString getChannelBytes()会话来源客户端
string channel = 6;- Specified by:
getChannelBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for channel.
-
getExtra
自定义扩展/附加信息
string extra = 7;- Specified by:
getExtrain interfaceThreadProto.ThreadOrBuilder- Returns:
- The extra.
-
getExtraBytes
public com.google.protobuf.ByteString getExtraBytes()自定义扩展/附加信息
string extra = 7;- Specified by:
getExtraBytesin interfaceThreadProto.ThreadOrBuilder- Returns:
- The bytes for extra.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ThreadProto.Thread parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThreadProto.Thread parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThreadProto.Thread parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThreadProto.Thread parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThreadProto.Thread parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ThreadProto.Thread parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ThreadProto.Thread parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ThreadProto.Thread parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ThreadProto.Thread parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ThreadProto.Thread parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ThreadProto.Thread.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-