Class UpdateSpaceReadStateRequest (0.36.0)

publicfinalclass UpdateSpaceReadStateRequestextendsGeneratedMessageV3implementsUpdateSpaceReadStateRequestOrBuilder

Request message for UpdateSpaceReadState API.

Protobuf type google.chat.v1.UpdateSpaceReadStateRequest

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

SPACE_READ_STATE_FIELD_NUMBER

publicstaticfinalintSPACE_READ_STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_MASK_FIELD_NUMBER

publicstaticfinalintUPDATE_MASK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticUpdateSpaceReadStateRequestgetDefaultInstance()
Returns
Type Description
UpdateSpaceReadStateRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticUpdateSpaceReadStateRequest.BuildernewBuilder()
Returns
Type Description
UpdateSpaceReadStateRequest.Builder

newBuilder(UpdateSpaceReadStateRequest prototype)

publicstaticUpdateSpaceReadStateRequest.BuildernewBuilder(UpdateSpaceReadStateRequestprototype)
Parameter
Name Description
prototype UpdateSpaceReadStateRequest
Returns
Type Description
UpdateSpaceReadStateRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticUpdateSpaceReadStateRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticUpdateSpaceReadStateRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticUpdateSpaceReadStateRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticUpdateSpaceReadStateRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticUpdateSpaceReadStateRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticUpdateSpaceReadStateRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UpdateSpaceReadStateRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicUpdateSpaceReadStateRequestgetDefaultInstanceForType()
Returns
Type Description
UpdateSpaceReadStateRequest

getParserForType()

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSpaceReadState()

publicSpaceReadStategetSpaceReadState()

Required. The space read state and fields to update.

Only supports updating read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

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

.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpaceReadState

The spaceReadState.

getSpaceReadStateOrBuilder()

publicSpaceReadStateOrBuildergetSpaceReadStateOrBuilder()

Required. The space read state and fields to update.

Only supports updating read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

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

.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpaceReadStateOrBuilder

getUpdateMask()

publicFieldMaskgetUpdateMask()

Required. The field paths to update. Currently supported field paths:

  • last_read_time

    When the last_read_time is before the latest message create time, the space appears as unread in the UI.

    To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

publicFieldMaskOrBuildergetUpdateMaskOrBuilder()

Required. The field paths to update. Currently supported field paths:

  • last_read_time

    When the last_read_time is before the latest message create time, the space appears as unread in the UI.

    To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSpaceReadState()

publicbooleanhasSpaceReadState()

Required. The space read state and fields to update.

Only supports updating read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState.

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState.

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState.

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

.google.chat.v1.SpaceReadState space_read_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the spaceReadState field is set.

hasUpdateMask()

publicbooleanhasUpdateMask()

Required. The field paths to update. Currently supported field paths:

  • last_read_time

    When the last_read_time is before the latest message create time, the space appears as unread in the UI.

    To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask 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()

publicUpdateSpaceReadStateRequest.BuildernewBuilderForType()
Returns
Type Description
UpdateSpaceReadStateRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedUpdateSpaceReadStateRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpdateSpaceReadStateRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicUpdateSpaceReadStateRequest.BuildertoBuilder()
Returns
Type Description
UpdateSpaceReadStateRequest.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.