Google Cloud Datastore v1 API - Class Mutation (4.10.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
Name Description
other Mutation

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
Type Description
long

ConflictDetectionStrategyCase

public Mutation.ConflictDetectionStrategyOneofCase ConflictDetectionStrategyCase { get; }
Property Value
Type Description
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
Type Description
Key

HasBaseVersion

public bool HasBaseVersion { get; }

Gets whether the "base_version" field is set

Property Value
Type Description
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
Type Description
Entity

OperationCase

public Mutation.OperationOneofCase OperationCase { get; }
Property Value
Type Description
MutationOperationOneofCase

Update

public Entity Update { get; set; }

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

Property Value
Type Description
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
Type Description
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
Type Description
Entity