TargetChange(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Targets being watched have changed.
Attributes
Name | Description |
target_change_type |
google.cloud.firestore_v1.types.TargetChange.TargetChangeType
The type of change that occurred. |
target_ids |
Sequence[int]
The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined. |
cause |
google.rpc.status_pb2.Status
The error that resulted in this change, if applicable. |
resume_token |
bytes
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. |
read_time |
google.protobuf.timestamp_pb2.Timestamp
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. |
Inheritance
builtins.object > proto.message.Message > TargetChangeClasses
TargetChangeType
TargetChangeType(value)
The type of change.