public static final class ThreadReadState.Builder extends GeneratedMessage.Builder<ThreadReadState.Builder> implements ThreadReadStateOrBuilderA user's read state within a thread, used to identify read and unread messages.
Protobuf type google.chat.v1.ThreadReadState
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ThreadReadState.BuilderImplements
ThreadReadStateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ThreadReadState build()| Returns | |
|---|---|
| Type | Description |
ThreadReadState |
|
buildPartial()
public ThreadReadState buildPartial()| Returns | |
|---|---|
| Type | Description |
ThreadReadState |
|
clear()
public ThreadReadState.Builder clear()| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
clearLastReadTime()
public ThreadReadState.Builder clearLastReadTime()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 |
ThreadReadState.Builder |
|
clearName()
public ThreadReadState.Builder clearName()Resource name of the thread read state.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ThreadReadState getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ThreadReadState |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getLastReadTimeBuilder()
public Timestamp.Builder getLastReadTimeBuilder()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 |
Builder |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ThreadReadState other)
public ThreadReadState.Builder mergeFrom(ThreadReadState other)| Parameter | |
|---|---|
| Name | Description |
other |
ThreadReadState |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ThreadReadState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ThreadReadState.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
mergeLastReadTime(Timestamp value)
public ThreadReadState.Builder mergeLastReadTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
setLastReadTime(Timestamp value)
public ThreadReadState.Builder setLastReadTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
setLastReadTime(Timestamp.Builder builderForValue)
public ThreadReadState.Builder setLastReadTime(Timestamp.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
|
setName(String value)
public ThreadReadState.Builder setName(String value)Resource name of the thread read state.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ThreadReadState.Builder setNameBytes(ByteString value)Resource name of the thread read state.
Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ThreadReadState.Builder |
This builder for chaining. |