Class ThreadReadState.Builder (0.15.0)

public static final class ThreadReadState.Builder extends GeneratedMessageV3.Builder<ThreadReadState.Builder> implements ThreadReadStateOrBuilder

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

Protobuf type google.chat.v1.ThreadReadState

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ThreadReadState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreadReadState.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ThreadReadState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ThreadReadState.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreadReadState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ThreadReadState.Builder
Overrides

clone()

public ThreadReadState.Builder clone()
Returns
Type Description
ThreadReadState.Builder
Overrides

getDefaultInstanceForType()

public ThreadReadState getDefaultInstanceForType()
Returns
Type Description
ThreadReadState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ThreadReadState.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ThreadReadState.Builder
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreadReadState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ThreadReadState.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ThreadReadState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreadReadState.Builder
Overrides

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 String

The 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 ByteString

The bytes for name to set.

Returns
Type Description
ThreadReadState.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ThreadReadState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ThreadReadState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ThreadReadState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ThreadReadState.Builder
Overrides