# Interface UpdateSpaceReadStateRequestOrBuilder (0.57.0)

0.57.0 (latest) 0.55.0 0.52.0 0.51.0 0.49.0 0.47.0 0.46.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.28.0 0.27.0 0.26.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface UpdateSpaceReadStateRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getSpaceReadState()

    public abstract SpaceReadState getSpaceReadState()

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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.SpaceReadState` | The spaceReadState. |

### getSpaceReadStateOrBuilder()

    public abstract SpaceReadStateOrBuilder getSpaceReadStateOrBuilder()

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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chat/latest/com.google.chat.v1.SpaceReadStateOrBuilder` |   |

### getUpdateMask()

    public abstract FieldMask getUpdateMask()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` | The updateMask. |

### getUpdateMaskOrBuilder()

    public abstract FieldMaskOrBuilder getUpdateMaskOrBuilder()

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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMaskOrBuilder.html` |   |

### hasSpaceReadState()

    public abstract boolean hasSpaceReadState()

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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the spaceReadState field is set. |

### hasUpdateMask()

    public abstract boolean hasUpdateMask()

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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateMask field is set. |