SaveStateRequest: Message<"virtufin.SaveStateRequest"> & {
    change?: ChangeNotification;
    createOnly: boolean;
    etag: string;
    includeValue: boolean;
    key: string;
    publishChange: boolean;
    service: string;
    ttlSeconds: number;
    value: string;
}

Type declaration

  • Optionalchange?: ChangeNotification

    Optional. When set together with publish_change, this event is published to its own topic instead of the Tier 0 sys.api.state.saved/deleted default. See ChangeNotification.

    from field: virtufin.ChangeNotification change = 9;

  • createOnly: boolean

    When true and etag is empty, the save SHALL use FirstWrite concurrency against an empty etag -- i.e. it succeeds only if the key does not already exist, and fails with Aborted (the same conflict signal a mismatched non-empty etag produces) if it does. Has no effect when etag is non-empty (that case is already a real compare-and-swap). Defaults to false, matching prior behavior exactly for every existing caller that doesn't set it.

    from field: bool create_only = 8;

  • etag: string

    from field: string etag = 4;

  • includeValue: boolean

    from field: bool include_value = 6;

  • key: string

    from field: string key = 2;

  • publishChange: boolean

    from field: bool publish_change = 5;

  • service: string

    from field: string service = 1;

  • ttlSeconds: number

    from field: int32 ttl_seconds = 7;

  • value: string

    from field: string value = 3;

from message virtufin.SaveStateRequest