Class SpaceReadState.Builder (0.19.0)

public static final class SpaceReadState.Builder extends GeneratedMessageV3.Builder<SpaceReadState.Builder> implements SpaceReadStateOrBuilder

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

Protobuf type google.chat.v1.SpaceReadState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SpaceReadState build()
Returns
Type Description
SpaceReadState

buildPartial()

public SpaceReadState buildPartial()
Returns
Type Description
SpaceReadState

clear()

public SpaceReadState.Builder clear()
Returns
Type Description
SpaceReadState.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLastReadTime()

public SpaceReadState.Builder clearLastReadTime()

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SpaceReadState.Builder

clearName()

public SpaceReadState.Builder clearName()

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

string name = 1;

Returns
Type Description
SpaceReadState.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SpaceReadState getDefaultInstanceForType()
Returns
Type Description
SpaceReadState

getDescriptorForType()

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

getLastReadTime()

public Timestamp getLastReadTime()

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The lastReadTime.

getLastReadTimeBuilder()

public Timestamp.Builder getLastReadTimeBuilder()

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getLastReadTimeOrBuilder()

public TimestampOrBuilder getLastReadTimeOrBuilder()

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasLastReadTime()

public boolean hasLastReadTime()

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

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(SpaceReadState other)

public SpaceReadState.Builder mergeFrom(SpaceReadState other)
Parameter
Name Description
other SpaceReadState
Returns
Type Description
SpaceReadState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpaceReadState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeLastReadTime(Timestamp value)

public SpaceReadState.Builder mergeLastReadTime(Timestamp value)

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpaceReadState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLastReadTime(Timestamp value)

public SpaceReadState.Builder setLastReadTime(Timestamp value)

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
SpaceReadState.Builder

setLastReadTime(Timestamp.Builder builderForValue)

public SpaceReadState.Builder setLastReadTime(Timestamp.Builder builderForValue)

Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

.google.protobuf.Timestamp last_read_time = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SpaceReadState.Builder

setName(String value)

public SpaceReadState.Builder setName(String value)

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SpaceReadState.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SpaceReadState.Builder setNameBytes(ByteString value)

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SpaceReadState.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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