Google Cloud Datastore v1 API - Class Mutation (4.7.0)

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

Reference documentation and code samples for the Google Cloud Datastore v1 API class Mutation.

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
long

ConflictDetectionStrategyCase

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

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

HasBaseVersion

public bool HasBaseVersion { get; }

Gets whether the "base_version" field is set

Property Value
TypeDescription
bool

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
MutationOperationOneofCase

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

UpdateTime

public Timestamp UpdateTime { get; set; }

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

Property Value
TypeDescription
Timestamp

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