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 TypeMethodDescriptionlong
The version of the entity that this mutation is being applied to.The key of the entity to delete.The key of the entity to delete.The entity to insert.The entity to insert.The entity to update.The entity to update.com.google.protobuf.Timestamp
The update time of the entity that this mutation is being applied to.com.google.protobuf.TimestampOrBuilder
The update time of the entity that this mutation is being applied to.The entity to upsert.The entity to upsert.boolean
The version of the entity that this mutation is being applied to.boolean
The key of the entity to delete.boolean
The entity to insert.boolean
The entity to update.boolean
The update time of the entity that this mutation is being applied to.boolean
The entity to upsert.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods 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;
-
getOperationCase
Mutation.OperationCase getOperationCase() -
getConflictDetectionStrategyCase
Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
-