Class Mutation (3.4.0)

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

A mutation to apply to an entity.

Inheritance

Object > Mutation

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Constructors

Mutation()

public Mutation()

Mutation(Mutation)

public Mutation(Mutation other)
Parameter
NameDescription
otherMutation

Properties

BaseVersion

public long BaseVersion { get; set; }

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

Property Value
TypeDescription
Int64

ConflictDetectionStrategyCase

public Mutation.ConflictDetectionStrategyOneofCase ConflictDetectionStrategyCase { get; }
Property Value
TypeDescription
Mutation.ConflictDetectionStrategyOneofCase

Delete

public Key Delete { get; set; }

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

Property Value
TypeDescription
Key

Insert

public Entity Insert { get; set; }

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

Property Value
TypeDescription
Entity

OperationCase

public Mutation.OperationOneofCase OperationCase { get; }
Property Value
TypeDescription
Mutation.OperationOneofCase

Update

public Entity Update { get; set; }

The entity to update. The entity must already exist. Must have a complete key path.

Property Value
TypeDescription
Entity

Upsert

public Entity Upsert { get; set; }

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

Property Value
TypeDescription
Entity