Skip to Content

Enumeration RevertOutcome

What a revert actually removed.

The service reports the effect rather than restating what was asked for, so every member arrives on a call that did not throw. NOT_FOUND, EXPIRED and REFUSED describe caller-visible state, and nothing is raised to say the revert did not happen: RevertResult.outcome is the only place it is said.

NOT_FOUND is the one to expect first after a write. A write is accepted asynchronously, so an operation id whose ingestion has not finished answers to nothing yet, and trying again shortly is the remedy.

An outcome this SDK predates arrives as RevertOutcome.UNSPECIFIED rather than as a raw integer, so a value no case covers cannot reach a switch written against an older contract.

Index
UNSPECIFIED: 0

The service reported an outcome this SDK does not know.

MEMORY_REMOVED: 1

The reverted insight was its memory's last, so the memory went too.

ADDITION_REMOVED: 2

An addition to an existing memory was removed.

ENTRY_REMOVED

ENTRY_REMOVED: 3

The insight was removed, and no memory was involved either way.

MERGED: 4

The write was folded into an existing insight as an endorsement rather than added as new, so the caller's duplicate was removed and the endorsed insight is untouched.

NOT_FOUND: 5

No write answers to that operation id.

EXPIRED: 6

The write is older than the window in which it can be undone.

REFUSED: 7

The service declined to undo this write.