Class Precondition (3.0.0)

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

A precondition on a document, used for conditional operations.

Inheritance

Object > Precondition

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

Precondition()

public Precondition()

Precondition(Precondition)

public Precondition(Precondition other)
Parameter
NameDescription
otherPrecondition

Properties

ConditionTypeCase

public Precondition.ConditionTypeOneofCase ConditionTypeCase { get; }
Property Value
TypeDescription
Precondition.ConditionTypeOneofCase

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
TypeDescription
Boolean

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
TypeDescription
Timestamp