Class Target (2.3.0)

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

A specification of a set of documents to listen to.

Inheritance

Object > Target

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

Target()

public Target()

Target(Target)

public Target(Target other)
Parameter
NameDescription
otherTarget

Properties

Documents

public Target.Types.DocumentsTarget Documents { get; set; }

A target specified by a set of document names.

Property Value
TypeDescription
Target.Types.DocumentsTarget

Once

public bool Once { get; set; }

If the target should be removed once it is current and consistent.

Property Value
TypeDescription
Boolean

Query

public Target.Types.QueryTarget Query { get; set; }

A target specified by a query.

Property Value
TypeDescription
Target.Types.QueryTarget

ReadTime

public Timestamp ReadTime { get; set; }

Start listening after a specific read_time.

The client must know the state of matching documents at this time.

Property Value
TypeDescription
Timestamp

ResumeToken

public ByteString ResumeToken { get; set; }

A resume token from a prior [TargetChange][google.firestore.v1.TargetChange] for an identical target.

Using a resume token with a different target is unsupported and may fail.

Property Value
TypeDescription
ByteString

ResumeTypeCase

public Target.ResumeTypeOneofCase ResumeTypeCase { get; }
Property Value
TypeDescription
Target.ResumeTypeOneofCase

TargetId

public int TargetId { get; set; }

The target ID that identifies the target on the stream. Must be a positive number and non-zero.

Property Value
TypeDescription
Int32

TargetTypeCase

public Target.TargetTypeOneofCase TargetTypeCase { get; }
Property Value
TypeDescription
Target.TargetTypeOneofCase