Firestore v1 API - Class Precondition (3.8.0)

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

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

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