Package com.google.datastore.v1
Interface MutationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Mutation,Mutation.Builder
public interface MutationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongThe version of the entity that this mutation is being applied to.The strategy to use when a conflict is detected.intThe strategy to use when a conflict is detected.The key of the entity to delete.The key of the entity to delete.The entity to insert.The entity to insert.The properties to write in this mutation.The properties to write in this mutation.getPropertyTransforms(int index) Optional.intOptional.Optional.getPropertyTransformsOrBuilder(int index) Optional.List<? extends PropertyTransformOrBuilder>Optional.The entity to update.The entity to update.com.google.protobuf.TimestampThe update time of the entity that this mutation is being applied to.com.google.protobuf.TimestampOrBuilderThe update time of the entity that this mutation is being applied to.The entity to upsert.The entity to upsert.booleanThe version of the entity that this mutation is being applied to.booleanThe key of the entity to delete.booleanThe entity to insert.booleanThe properties to write in this mutation.booleanThe entity to update.booleanThe update time of the entity that this mutation is being applied to.booleanThe entity to upsert.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasInsert
boolean hasInsert()The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity insert = 4;- Returns:
- Whether the insert field is set.
-
getInsert
Entity getInsert()The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity insert = 4;- Returns:
- The insert.
-
getInsertOrBuilder
EntityOrBuilder getInsertOrBuilder()The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity insert = 4; -
hasUpdate
boolean hasUpdate()The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;- Returns:
- Whether the update field is set.
-
getUpdate
Entity getUpdate()The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;- Returns:
- The update.
-
getUpdateOrBuilder
EntityOrBuilder getUpdateOrBuilder()The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
hasUpsert
boolean hasUpsert()The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity upsert = 6;- Returns:
- Whether the upsert field is set.
-
getUpsert
Entity getUpsert()The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity upsert = 6;- Returns:
- The upsert.
-
getUpsertOrBuilder
EntityOrBuilder getUpsertOrBuilder()The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.
.google.datastore.v1.Entity upsert = 6; -
hasDelete
boolean hasDelete()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.
.google.datastore.v1.Key delete = 7;- Returns:
- Whether the delete field is set.
-
getDelete
Key getDelete()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.
.google.datastore.v1.Key delete = 7;- Returns:
- The delete.
-
getDeleteOrBuilder
KeyOrBuilder getDeleteOrBuilder()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.
.google.datastore.v1.Key delete = 7; -
hasBaseVersion
boolean hasBaseVersion()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.
int64 base_version = 8;- Returns:
- Whether the baseVersion field is set.
-
getBaseVersion
long getBaseVersion()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.
int64 base_version = 8;- Returns:
- The baseVersion.
-
hasUpdateTime
boolean hasUpdateTime()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.
.google.protobuf.Timestamp update_time = 11;- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()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.
.google.protobuf.Timestamp update_time = 11;- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()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.
.google.protobuf.Timestamp update_time = 11; -
getConflictResolutionStrategyValue
int getConflictResolutionStrategyValue()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.
.google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10;- Returns:
- The enum numeric value on the wire for conflictResolutionStrategy.
-
getConflictResolutionStrategy
Mutation.ConflictResolutionStrategy getConflictResolutionStrategy()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.
.google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10;- Returns:
- The conflictResolutionStrategy.
-
hasPropertyMask
boolean hasPropertyMask()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.
.google.datastore.v1.PropertyMask property_mask = 9;- Returns:
- Whether the propertyMask field is set.
-
getPropertyMask
PropertyMask getPropertyMask()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.
.google.datastore.v1.PropertyMask property_mask = 9;- Returns:
- The propertyMask.
-
getPropertyMaskOrBuilder
PropertyMaskOrBuilder getPropertyMaskOrBuilder()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.
.google.datastore.v1.PropertyMask property_mask = 9; -
getPropertyTransformsList
List<PropertyTransform> getPropertyTransformsList()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.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertyTransforms
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.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertyTransformsCount
int getPropertyTransformsCount()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.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertyTransformsOrBuilderList
List<? extends PropertyTransformOrBuilder> getPropertyTransformsOrBuilderList()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.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getPropertyTransformsOrBuilder
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.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getOperationCase
Mutation.OperationCase getOperationCase() -
getConflictDetectionStrategyCase
Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
-