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 typegoogle.datastore.v1.Mutation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Mutation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Mutationbuild()MutationbuildPartial()Mutation.Builderclear()Mutation.BuilderclearBaseVersion()The version of the entity that this mutation is being applied to.Mutation.BuilderclearConflictDetectionStrategy()Mutation.BuilderclearDelete()The key of the entity to delete.Mutation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Mutation.BuilderclearInsert()The entity to insert.Mutation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Mutation.BuilderclearOperation()Mutation.BuilderclearUpdate()The entity to update.Mutation.BuilderclearUpdateTime()The update time of the entity that this mutation is being applied to.Mutation.BuilderclearUpsert()The entity to upsert.Mutation.Builderclone()longgetBaseVersion()The version of the entity that this mutation is being applied to.Mutation.ConflictDetectionStrategyCasegetConflictDetectionStrategyCase()MutationgetDefaultInstanceForType()KeygetDelete()The key of the entity to delete.Key.BuildergetDeleteBuilder()The key of the entity to delete.KeyOrBuildergetDeleteOrBuilder()The key of the entity to delete.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EntitygetInsert()The entity to insert.Entity.BuildergetInsertBuilder()The entity to insert.EntityOrBuildergetInsertOrBuilder()The entity to insert.Mutation.OperationCasegetOperationCase()EntitygetUpdate()The entity to update.Entity.BuildergetUpdateBuilder()The entity to update.EntityOrBuildergetUpdateOrBuilder()The entity to update.com.google.protobuf.TimestampgetUpdateTime()The update time of the entity that this mutation is being applied to.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()The update time of the entity that this mutation is being applied to.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The update time of the entity that this mutation is being applied to.EntitygetUpsert()The entity to upsert.Entity.BuildergetUpsertBuilder()The entity to upsert.EntityOrBuildergetUpsertOrBuilder()The entity to upsert.booleanhasBaseVersion()The version of the entity that this mutation is being applied to.booleanhasDelete()The key of the entity to delete.booleanhasInsert()The entity to insert.booleanhasUpdate()The entity to update.booleanhasUpdateTime()The update time of the entity that this mutation is being applied to.booleanhasUpsert()The entity to upsert.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Mutation.BuildermergeDelete(Key value)The key of the entity to delete.Mutation.BuildermergeFrom(Mutation other)Mutation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Mutation.BuildermergeFrom(com.google.protobuf.Message other)Mutation.BuildermergeInsert(Entity value)The entity to insert.Mutation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Mutation.BuildermergeUpdate(Entity value)The entity to update.Mutation.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)The update time of the entity that this mutation is being applied to.Mutation.BuildermergeUpsert(Entity value)The entity to upsert.Mutation.BuildersetBaseVersion(long value)The version of the entity that this mutation is being applied to.Mutation.BuildersetDelete(Key value)The key of the entity to delete.Mutation.BuildersetDelete(Key.Builder builderForValue)The key of the entity to delete.Mutation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Mutation.BuildersetInsert(Entity value)The entity to insert.Mutation.BuildersetInsert(Entity.Builder builderForValue)The entity to insert.Mutation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Mutation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Mutation.BuildersetUpdate(Entity value)The entity to update.Mutation.BuildersetUpdate(Entity.Builder builderForValue)The entity to update.Mutation.BuildersetUpdateTime(com.google.protobuf.Timestamp value)The update time of the entity that this mutation is being applied to.Mutation.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)The update time of the entity that this mutation is being applied to.Mutation.BuildersetUpsert(Entity value)The entity to upsert.Mutation.BuildersetUpsert(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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public Mutation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Mutation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Mutation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Mutation.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
public Mutation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearOneof
public Mutation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public Mutation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
-
mergeFrom
public Mutation.Builder mergeFrom(Mutation other)
-
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
public Mutation.OperationCase getOperationCase()
- Specified by:
getOperationCasein interfaceMutationOrBuilder
-
clearOperation
public Mutation.Builder clearOperation()
-
getConflictDetectionStrategyCase
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
- Specified by:
getConflictDetectionStrategyCasein interfaceMutationOrBuilder
-
clearConflictDetectionStrategy
public Mutation.Builder 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
public 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;- Specified by:
getInsertin interfaceMutationOrBuilder- Returns:
- The insert.
-
setInsert
public Mutation.Builder setInsert(Entity value)
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
public Mutation.Builder setInsert(Entity.Builder builderForValue)
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
public Mutation.Builder mergeInsert(Entity value)
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
public Mutation.Builder 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
public Entity.Builder 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
public 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;- 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
public Entity 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
public Mutation.Builder setUpdate(Entity value)
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;
-
setUpdate
public Mutation.Builder setUpdate(Entity.Builder builderForValue)
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;
-
mergeUpdate
public Mutation.Builder mergeUpdate(Entity value)
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;
-
clearUpdate
public Mutation.Builder clearUpdate()
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;
-
getUpdateBuilder
public Entity.Builder getUpdateBuilder()
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;
-
getUpdateOrBuilder
public EntityOrBuilder 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
public 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;- Specified by:
getUpsertin interfaceMutationOrBuilder- Returns:
- The upsert.
-
setUpsert
public Mutation.Builder setUpsert(Entity value)
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
public Mutation.Builder setUpsert(Entity.Builder builderForValue)
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
public Mutation.Builder mergeUpsert(Entity value)
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
public Mutation.Builder 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
public Entity.Builder 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
public 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;- 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
public 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;- Specified by:
getDeletein interfaceMutationOrBuilder- Returns:
- The delete.
-
setDelete
public Mutation.Builder setDelete(Key value)
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
public Mutation.Builder setDelete(Key.Builder builderForValue)
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
public Mutation.Builder mergeDelete(Key value)
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
public Mutation.Builder 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
public Key.Builder 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
public 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;- 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
public Mutation.Builder setBaseVersion(long value)
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
public Mutation.Builder 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
public Mutation.Builder setUpdateTime(com.google.protobuf.Timestamp value)
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
public Mutation.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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
public Mutation.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
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
public Mutation.Builder 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
public final Mutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeUnknownFields
public final Mutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
-