public sealed class Mutation : IMessage<Mutation>, IEquatable<Mutation>, IDeepCloneable<Mutation>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Datastore v1 API class Mutation.
A mutation to apply to an entity.
Namespace
Google.Cloud.Datastore.V1Assembly
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 |
|
ConflictResolutionStrategy
public Mutation.Types.ConflictResolutionStrategy ConflictResolutionStrategy { get; set; }The strategy to use when a conflict is detected. Defaults to
SERVER_VALUE.
If this is set, then conflict_detection_strategy must also be set.
| Property Value | |
|---|---|
| Type | Description |
MutationTypesConflictResolutionStrategy |
|
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 |
|
PropertyMask
public PropertyMask PropertyMask { get; set; }The properties to write in this mutation.
None of the properties in the mask may have a reserved name, except for
__key__.
This field is ignored for delete.
If the entity already exists, only properties referenced in the mask are updated, others are left untouched. Properties referenced in the mask but not in the entity are deleted.
| Property Value | |
|---|---|
| Type | Description |
PropertyMask |
|
PropertyTransforms
public RepeatedField<PropertyTransform> PropertyTransforms { get; }Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldPropertyTransform |
|
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 |
|