public sealed class Precondition : IMessage<Precondition>, IEquatable<Precondition>, IDeepCloneable<Precondition>, IBufferMessage, IMessageReference documentation and code samples for the Firestore v1 API class Precondition.
A precondition on a document, used for conditional operations.
Implements
IMessagePrecondition, IEquatablePrecondition, IDeepCloneablePrecondition, IBufferMessage, IMessageNamespace
Google.Cloud.Firestore.V1Assembly
Google.Cloud.Firestore.V1.dll
Constructors
Precondition()
public Precondition()Precondition(Precondition)
public Precondition(Precondition other)| Parameter | |
|---|---|
| Name | Description |
other |
Precondition |
Properties
ConditionTypeCase
public Precondition.ConditionTypeOneofCase ConditionTypeCase { get; }| Property Value | |
|---|---|
| Type | Description |
PreconditionConditionTypeOneofCase |
|
Exists
public bool Exists { get; set; }When set to true, the target document must exist.
When set to false, the target document must not exist.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasExists
public bool HasExists { get; }Gets whether the "exists" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
UpdateTime
public Timestamp UpdateTime { get; set; }When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|