Firestore v1 API - Class TargetChange (3.8.0)

public sealed class TargetChange : IMessage<TargetChange>, IEquatable<TargetChange>, IDeepCloneable<TargetChange>, IBufferMessage, IMessage

Reference documentation and code samples for the Firestore v1 API class TargetChange.

Targets being watched have changed.

Inheritance

object > TargetChange

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

TargetChange()

public TargetChange()

TargetChange(TargetChange)

public TargetChange(TargetChange other)
Parameter
Name Description
other TargetChange

Properties

Cause

public Status Cause { get; set; }

The error that resulted in this change, if applicable.

Property Value
Type Description
Status

ReadTime

public Timestamp ReadTime { get; set; }

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.

Property Value
Type Description
Timestamp

ResumeToken

public ByteString ResumeToken { get; set; }

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.

Property Value
Type Description
ByteString

TargetChangeType

public TargetChange.Types.TargetChangeType TargetChangeType { get; set; }

The type of change that occurred.

Property Value
Type Description
TargetChangeTypesTargetChangeType

TargetIds

public RepeatedField<int> TargetIds { get; }

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.

Property Value
Type Description
RepeatedFieldint