Class SpaceReadState (0.21.0)

publicfinalclass SpaceReadStateextendsGeneratedMessageV3implementsSpaceReadStateOrBuilder

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

Protobuf type google.chat.v1.SpaceReadState

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

LAST_READ_TIME_FIELD_NUMBER

publicstaticfinalintLAST_READ_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSpaceReadStategetDefaultInstance()
Returns
Type Description
SpaceReadState

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSpaceReadState.BuildernewBuilder()
Returns
Type Description
SpaceReadState.Builder

newBuilder(SpaceReadState prototype)

publicstaticSpaceReadState.BuildernewBuilder(SpaceReadStateprototype)
Parameter
Name Description
prototype SpaceReadState
Returns
Type Description
SpaceReadState.Builder

parseDelimitedFrom(InputStream input)

publicstaticSpaceReadStateparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticSpaceReadStateparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSpaceReadStateparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSpaceReadStateparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticSpaceReadStateparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticSpaceReadStateparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSpaceReadStateparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SpaceReadState
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<SpaceReadState>parser()
Returns
Type Description
Parser<SpaceReadState>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicSpaceReadStategetDefaultInstanceForType()
Returns
Type Description
SpaceReadState

getLastReadTime()

publicTimestampgetLastReadTime()

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

publicTimestampOrBuildergetLastReadTimeOrBuilder()

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

publicStringgetName()

Resource name of the space read state.

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasLastReadTime()

publicbooleanhasLastReadTime()

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

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicSpaceReadState.BuildernewBuilderForType()
Returns
Type Description
SpaceReadState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSpaceReadState.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SpaceReadState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicSpaceReadState.BuildertoBuilder()
Returns
Type Description
SpaceReadState.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.