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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ThreadReadStateImplements
ThreadReadStateOrBuilderStatic Fields
LAST_READ_TIME_FIELD_NUMBER
public static final int LAST_READ_TIME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ThreadReadState getDefaultInstance()
Returns | |
---|---|
Type | Description |
ThreadReadState |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ThreadReadState.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ThreadReadState.Builder |
newBuilder(ThreadReadState prototype)
public static ThreadReadState.Builder newBuilder(ThreadReadState prototype)
Parameter | |
---|---|
Name | Description |
prototype |
ThreadReadState |
Returns | |
---|---|
Type | Description |
ThreadReadState.Builder |
parseDelimitedFrom(InputStream input)
public static ThreadReadState parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ThreadReadState parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ThreadReadState parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ThreadReadState parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ThreadReadState parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ThreadReadState parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ThreadReadState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ThreadReadState |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ThreadReadState> parser()
Returns | |
---|---|
Type | Description |
Parser<ThreadReadState> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public ThreadReadState getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TimestampOrBuilder |
getName()
public String getName()
Resource name of the thread read state.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getParserForType()
public Parser<ThreadReadState> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ThreadReadState> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 | |
---|---|
Type | Description |
boolean |
Whether the lastReadTime field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ThreadReadState.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ThreadReadState.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ThreadReadState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
ThreadReadState.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ThreadReadState.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ThreadReadState.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |