Class ThreadReadState (0.20.0)

public final class ThreadReadState extends GeneratedMessageV3 implements ThreadReadStateOrBuilder

A user's read state within a thread, used to identify read and unread messages.

Protobuf type google.chat.v1.ThreadReadState

Static Fields

LAST_READ_TIME_FIELD_NUMBER

public static final int LAST_READ_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ThreadReadState getDefaultInstance()
Returns
TypeDescription
ThreadReadState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ThreadReadState.Builder newBuilder()
Returns
TypeDescription
ThreadReadState.Builder

newBuilder(ThreadReadState )

public static ThreadReadState.Builder newBuilder(ThreadReadState )
Parameter
NameDescription
ThreadReadState
Returns
TypeDescription
ThreadReadState.Builder

parseDelimitedFrom(InputStream input)

public static ThreadReadState parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ThreadReadState parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ThreadReadState parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ThreadReadState parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ThreadReadState parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ThreadReadState parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ThreadReadState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreadReadState
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ThreadReadState> parser()
Returns
TypeDescription
Parser<ThreadReadState>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ThreadReadState getDefaultInstanceForType()
Returns
TypeDescription
ThreadReadState

getLastReadTime()

public Timestamp getLastReadTime()

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

.google.protobuf.Timestamp last_read_time = 2;

Returns
TypeDescription
Timestamp

The lastReadTime.

getLastReadTimeOrBuilder()

public TimestampOrBuilder getLastReadTimeOrBuilder()

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

.google.protobuf.Timestamp last_read_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Resource name of the thread read state.

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the thread read state.

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<ThreadReadState> getParserForType()
Returns
TypeDescription
Parser<ThreadReadState>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasLastReadTime()

public boolean hasLastReadTime()

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

.google.protobuf.Timestamp last_read_time = 2;

Returns
TypeDescription
boolean

Whether the lastReadTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ThreadReadState.Builder newBuilderForType()
Returns
TypeDescription
ThreadReadState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ThreadReadState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ThreadReadState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ThreadReadState.Builder toBuilder()
Returns
TypeDescription
ThreadReadState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException