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()
long
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 key of the entity to delete.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The 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.Timestamp
The update time of the entity that this mutation is being applied to.com.google.protobuf.Timestamp.Builder
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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeDelete
(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.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
clearOneof
- 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
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
-
mergeFrom
-
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
- Specified by:
getOperationCase
in interfaceMutationOrBuilder
-
clearOperation
-
getConflictDetectionStrategyCase
- Specified by:
getConflictDetectionStrategyCase
in 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:
hasInsert
in 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:
getInsert
in 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:
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
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
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:
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
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
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:
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
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
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:
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
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:
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
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:
getUpdateTimeOrBuilder
in interfaceMutationOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
-