Class SpaceReadState (0.8.0)

public final class SpaceReadState extends GeneratedMessageV3 implements SpaceReadStateOrBuilder

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

Protobuf type google.chat.v1.SpaceReadState

Static 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 SpaceReadState getDefaultInstance()
Returns
Type Description
SpaceReadState

getDescriptor()

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

newBuilder()

public static SpaceReadState.Builder newBuilder()
Returns
Type Description
SpaceReadState.Builder

newBuilder(SpaceReadState prototype)

public static SpaceReadState.Builder newBuilder(SpaceReadState prototype)
Parameter
Name Description
prototype SpaceReadState
Returns
Type Description
SpaceReadState.Builder

parseDelimitedFrom(InputStream input)

public static SpaceReadState parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SpaceReadState parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SpaceReadState parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SpaceReadState parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SpaceReadState parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SpaceReadState parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SpaceReadState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SpaceReadState> parser()
Returns
Type Description
Parser<SpaceReadState>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SpaceReadState getDefaultInstanceForType()
Returns
Type Description
SpaceReadState

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.

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.

getParserForType()

public Parser<SpaceReadState> getParserForType()
Returns
Type Description
Parser<SpaceReadState>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SpaceReadState.Builder newBuilderForType()
Returns
Type Description
SpaceReadState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SpaceReadState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SpaceReadState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SpaceReadState.Builder toBuilder()
Returns
Type Description
SpaceReadState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException