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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Mutation
build()
Mutation
buildPartial()
Mutation.Builder
clear()
Mutation.Builder
clearBaseVersion()
The version of the entity that this mutation is being applied to.Mutation.Builder
clearConflictDetectionStrategy()
Mutation.Builder
clearDelete()
The key of the entity to delete.Mutation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Mutation.Builder
clearInsert()
The entity to insert.Mutation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Mutation.Builder
clearOperation()
Mutation.Builder
clearUpdate()
The entity to update.Mutation.Builder
clearUpdateTime()
The update time of the entity that this mutation is being applied to.Mutation.Builder
clearUpsert()
The entity to upsert.Mutation.Builder
clone()
long
getBaseVersion()
The version of the entity that this mutation is being applied to.Mutation.ConflictDetectionStrategyCase
getConflictDetectionStrategyCase()
Mutation
getDefaultInstanceForType()
Key
getDelete()
The key of the entity to delete.Key.Builder
getDeleteBuilder()
The key of the entity to delete.KeyOrBuilder
getDeleteOrBuilder()
The key of the entity to delete.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Entity
getInsert()
The entity to insert.Entity.Builder
getInsertBuilder()
The entity to insert.EntityOrBuilder
getInsertOrBuilder()
The entity to insert.Mutation.OperationCase
getOperationCase()
Entity
getUpdate()
The entity to update.Entity.Builder
getUpdateBuilder()
The entity to update.EntityOrBuilder
getUpdateOrBuilder()
The entity to update.com.google.protobuf.Timestamp
getUpdateTime()
The update time of the entity that this mutation is being applied to.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
The update time of the entity that this mutation is being applied to.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
The update time of the entity that this mutation is being applied to.Entity
getUpsert()
The entity to upsert.Entity.Builder
getUpsertBuilder()
The entity to upsert.EntityOrBuilder
getUpsertOrBuilder()
The entity to upsert.boolean
hasBaseVersion()
The version of the entity that this mutation is being applied to.boolean
hasDelete()
The key of the entity to delete.boolean
hasInsert()
The entity to insert.boolean
hasUpdate()
The entity to update.boolean
hasUpdateTime()
The update time of the entity that this mutation is being applied to.boolean
hasUpsert()
The entity to upsert.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Mutation.Builder
mergeDelete(Key value)
The key of the entity to delete.Mutation.Builder
mergeFrom(Mutation other)
Mutation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Mutation.Builder
mergeFrom(com.google.protobuf.Message other)
Mutation.Builder
mergeInsert(Entity value)
The entity to insert.Mutation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Mutation.Builder
mergeUpdate(Entity value)
The entity to update.Mutation.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
The update time of the entity that this mutation is being applied to.Mutation.Builder
mergeUpsert(Entity value)
The entity to upsert.Mutation.Builder
setBaseVersion(long value)
The version of the entity that this mutation is being applied to.Mutation.Builder
setDelete(Key value)
The key of the entity to delete.Mutation.Builder
setDelete(Key.Builder builderForValue)
The key of the entity to delete.Mutation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Mutation.Builder
setInsert(Entity value)
The entity to insert.Mutation.Builder
setInsert(Entity.Builder builderForValue)
The entity to insert.Mutation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Mutation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Mutation.Builder
setUpdate(Entity value)
The entity to update.Mutation.Builder
setUpdate(Entity.Builder builderForValue)
The entity to update.Mutation.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
The update time of the entity that this mutation is being applied to.Mutation.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The update time of the entity that this mutation is being applied to.Mutation.Builder
setUpsert(Entity value)
The entity to upsert.Mutation.Builder
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, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clear
public Mutation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
getDefaultInstanceForType
public Mutation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Mutation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Mutation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Mutation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
setField
public Mutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearField
public Mutation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearOneof
public Mutation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
setRepeatedField
public Mutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
addRepeatedField
public Mutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeFrom
public Mutation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
-
mergeFrom
public Mutation.Builder mergeFrom(Mutation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
- Throws:
IOException
-
getOperationCase
public Mutation.OperationCase getOperationCase()
- Specified by:
getOperationCase
in interfaceMutationOrBuilder
-
clearOperation
public Mutation.Builder clearOperation()
-
getConflictDetectionStrategyCase
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
- Specified by:
getConflictDetectionStrategyCase
in 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:
hasInsert
in 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:
getInsert
in 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:
getInsertOrBuilder
in 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:
hasUpdate
in 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:
getUpdate
in 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:
getUpdateOrBuilder
in 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:
hasUpsert
in 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:
getUpsert
in 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:
getUpsertOrBuilder
in 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:
hasDelete
in 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:
getDelete
in 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:
getDeleteOrBuilder
in 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:
hasBaseVersion
in 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:
getBaseVersion
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in interfaceMutationOrBuilder
-
setUnknownFields
public final Mutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeUnknownFields
public final Mutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
-