Firestore v1 API - Class Precondition (3.1.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

GoogleCloudGoogle.Cloud.FirestoreV1

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