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:
  • 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_

      private volatile Object uid_
    • TOPIC_FIELD_NUMBER

      public static final int TOPIC_FIELD_NUMBER
      See Also:
    • topic_

      private volatile Object topic_
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • type_

      private volatile Object type_
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • state_

      private volatile Object state_
    • USER_FIELD_NUMBER

      public static final int USER_FIELD_NUMBER
      See Also:
    • user_

      private UserProto.User user_
    • EXTRA_FIELD_NUMBER

      public static final int EXTRA_FIELD_NUMBER
      See Also:
    • extra_

      private volatile Object extra_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final ThreadProto.Thread DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<ThreadProto.Thread> PARSER
  • Constructor Details

    • Thread

      private Thread(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
    • Thread

      private Thread()
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getUid

      public String getUid()
       ID
       
      string uid = 1;
      Specified by:
      getUid in interface ThreadProto.ThreadOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       ID
       
      string uid = 1;
      Specified by:
      getUidBytes in interface ThreadProto.ThreadOrBuilder
      Returns:
      The bytes for uid.
    • getTopic

      public String getTopic()
       订阅主题
       
      string topic = 2;
      Specified by:
      getTopic in interface ThreadProto.ThreadOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       订阅主题
       
      string topic = 2;
      Specified by:
      getTopicBytes in interface ThreadProto.ThreadOrBuilder
      Returns:
      The bytes for topic.
    • getType

      public String getType()
       会话类型
       
      string type = 3;
      Specified by:
      getType in interface ThreadProto.ThreadOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       会话类型
       
      string type = 3;
      Specified by:
      getTypeBytes in interface ThreadProto.ThreadOrBuilder
      Returns:
      The bytes for type.
    • getState

      public String getState()
       会话状态
       
      string state = 4;
      Specified by:
      getState in interface ThreadProto.ThreadOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       会话状态
       
      string state = 4;
      Specified by:
      getStateBytes in interface ThreadProto.ThreadOrBuilder
      Returns:
      The bytes for state.
    • hasUser

      public boolean hasUser()
       头像昵称等信息
       
      .User user = 5;
      Specified by:
      hasUser in interface ThreadProto.ThreadOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public UserProto.User getUser()
       头像昵称等信息
       
      .User user = 5;
      Specified by:
      getUser in interface ThreadProto.ThreadOrBuilder
      Returns:
      The user.
    • getUserOrBuilder

      public UserProto.UserOrBuilder getUserOrBuilder()
       头像昵称等信息
       
      .User user = 5;
      Specified by:
      getUserOrBuilder in interface ThreadProto.ThreadOrBuilder
    • getExtra

      public String getExtra()
       自定义扩展/附加信息
       
      string extra = 6;
      Specified by:
      getExtra in interface ThreadProto.ThreadOrBuilder
      Returns:
      The extra.
    • getExtraBytes

      public com.google.protobuf.ByteString getExtraBytes()
       自定义扩展/附加信息
       
      string extra = 6;
      Specified by:
      getExtraBytes in interface ThreadProto.ThreadOrBuilder
      Returns:
      The bytes for extra.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ThreadProto.Thread parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ThreadProto.Thread parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ThreadProto.Thread parseDelimitedFrom(InputStream input) throws IOException
      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

      public ThreadProto.Thread.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ThreadProto.Thread.Builder newBuilder()
    • newBuilder

      public static ThreadProto.Thread.Builder newBuilder(ThreadProto.Thread prototype)
    • toBuilder

      public ThreadProto.Thread.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ThreadProto.Thread.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ThreadProto.Thread getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ThreadProto.Thread> parser()
    • getParserForType

      public com.google.protobuf.Parser<ThreadProto.Thread> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ThreadProto.Thread getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder