public sealed class Target : IMessage<Target>, IEquatable<Target>, IDeepCloneable<Target>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class Target.
A specification of a set of documents to listen to.
Namespace
GoogleCloudGoogle.Cloud.FirestoreV1Assembly
Google.Cloud.Firestore.V1.dll
Constructors
Target()
public Target()
Target(Target)
public Target(Target other)
Parameter | |
---|---|
Name | Description |
other | Target |
Properties
Documents
public Target.Types.DocumentsTarget Documents { get; set; }
A target specified by a set of document names.
Property Value | |
---|---|
Type | Description |
TargetTypesDocumentsTarget |
Once
public bool Once { get; set; }
If the target should be removed once it is current and consistent.
Property Value | |
---|---|
Type | Description |
bool |
Query
public Target.Types.QueryTarget Query { get; set; }
A target specified by a query.
Property Value | |
---|---|
Type | Description |
TargetTypesQueryTarget |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
ResumeTypeCase
public Target.ResumeTypeOneofCase ResumeTypeCase { get; }
Property Value | |
---|---|
Type | Description |
TargetResumeTypeOneofCase |
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 | |
---|---|
Type | Description |
int |
TargetTypeCase
public Target.TargetTypeOneofCase TargetTypeCase { get; }
Property Value | |
---|---|
Type | Description |
TargetTargetTypeOneofCase |