google_api_firestore v0.0.1 GoogleApi.Firestore.V1beta1.Model.TargetChange View Source

Targets being watched have changed.

Attributes

  • cause (Status): The error that resulted in this change, if applicable. Defaults to: null.
  • readTime (String.t): The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing. Defaults to: null.
  • resumeToken (binary()): A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty. Not set on every target change. Defaults to: null.
  • targetChangeType (String.t): The type of change that occurred. Defaults to: null.

    • Enum - one of [NO_CHANGE, ADD, REMOVE, CURRENT, RESET]
  • targetIds ([integer()]): The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined. Defaults to: null.