Package com.google.datastore.v1
Class Mutation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
com.google.datastore.v1.Mutation.Builder
- All Implemented Interfaces:
MutationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Mutation
public static final class Mutation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
implements MutationOrBuilder
A mutation to apply to an entity.Protobuf type
google.datastore.v1.Mutation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The version of the entity that this mutation is being applied to.The key of the entity to delete.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The entity to insert.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The entity to update.The update time of the entity that this mutation is being applied to.The entity to upsert.clone()longThe 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 key of the entity to delete.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe entity to insert.The entity to insert.The entity to insert.The entity to update.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.Timestamp.BuilderThe 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.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 entity to update.booleanThe update time of the entity that this mutation is being applied to.booleanThe entity to upsert.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDelete(Key value) The key of the entity to delete.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInsert(Entity value) The entity to insert.final Mutation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdate(Entity value) The entity to update.mergeUpdateTime(com.google.protobuf.Timestamp value) The update time of the entity that this mutation is being applied to.mergeUpsert(Entity value) The entity to upsert.setBaseVersion(long value) The version of the entity that this mutation is being applied to.The key of the entity to delete.setDelete(Key.Builder builderForValue) The key of the entity to delete.The entity to insert.setInsert(Entity.Builder builderForValue) The entity to insert.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Mutation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The entity to update.setUpdate(Entity.Builder builderForValue) The entity to update.setUpdateTime(com.google.protobuf.Timestamp value) The update time of the entity that this mutation is being applied to.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The update time of the entity that this mutation is being applied to.The entity to upsert.setUpsert(Entity.Builder builderForValue) The entity to upsert.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
setField
public Mutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
setRepeatedField
public Mutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
addRepeatedField
public Mutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeFrom
public Mutation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>- Throws:
IOException
-
getOperationCase
- Specified by:
getOperationCasein interfaceMutationOrBuilder
-
clearOperation
-
getConflictDetectionStrategyCase
- Specified by:
getConflictDetectionStrategyCasein interfaceMutationOrBuilder
-
clearConflictDetectionStrategy
-
hasInsert
public 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;- Specified by:
hasInsertin interfaceMutationOrBuilder- Returns:
- Whether the insert field is set.
-
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;- Specified by:
getInsertin interfaceMutationOrBuilder- Returns:
- The insert.
-
setInsert
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; -
setInsert
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; -
mergeInsert
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; -
clearInsert
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; -
getInsertBuilder
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; -
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;- Specified by:
getInsertOrBuilderin interfaceMutationOrBuilder
-
hasUpdate
public boolean hasUpdate()The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;- Specified by:
hasUpdatein interfaceMutationOrBuilder- Returns:
- Whether the update field is set.
-
getUpdate
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;- Specified by:
getUpdatein interfaceMutationOrBuilder- Returns:
- The update.
-
setUpdate
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
setUpdate
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
mergeUpdate
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
clearUpdate
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
getUpdateBuilder
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5; -
getUpdateOrBuilder
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;- Specified by:
getUpdateOrBuilderin interfaceMutationOrBuilder
-
hasUpsert
public 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;- Specified by:
hasUpsertin interfaceMutationOrBuilder- Returns:
- Whether the upsert field is set.
-
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;- Specified by:
getUpsertin interfaceMutationOrBuilder- Returns:
- The upsert.
-
setUpsert
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; -
setUpsert
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; -
mergeUpsert
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; -
clearUpsert
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; -
getUpsertBuilder
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; -
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;- Specified by:
getUpsertOrBuilderin interfaceMutationOrBuilder
-
hasDelete
public 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;- Specified by:
hasDeletein interfaceMutationOrBuilder- Returns:
- Whether the delete field is set.
-
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;- Specified by:
getDeletein interfaceMutationOrBuilder- Returns:
- The delete.
-
setDelete
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; -
setDelete
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; -
mergeDelete
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; -
clearDelete
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; -
getDeleteBuilder
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; -
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;- Specified by:
getDeleteOrBuilderin interfaceMutationOrBuilder
-
hasBaseVersion
public 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;- Specified by:
hasBaseVersionin interfaceMutationOrBuilder- Returns:
- Whether the baseVersion field is set.
-
getBaseVersion
public 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;- Specified by:
getBaseVersionin interfaceMutationOrBuilder- Returns:
- The baseVersion.
-
setBaseVersion
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;- Parameters:
value- The baseVersion to set.- Returns:
- This builder for chaining.
-
clearBaseVersion
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:
- This builder for chaining.
-
hasUpdateTime
public 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;- Specified by:
hasUpdateTimein interfaceMutationOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public 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;- Specified by:
getUpdateTimein interfaceMutationOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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; -
setUpdateTime
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; -
mergeUpdateTime
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; -
clearUpdateTime
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; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()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; -
getUpdateTimeOrBuilder
public 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;- Specified by:
getUpdateTimeOrBuilderin interfaceMutationOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-