Package com.google.datastore.v1
Class MutationResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
com.google.datastore.v1.MutationResult.Builder
- All Implemented Interfaces:
MutationResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MutationResult
public static final class MutationResult.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
implements MutationResultOrBuilder
The result of applying a mutation.Protobuf type
google.datastore.v1.MutationResult-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Whether a conflict was detected for this mutation.The create time of the entity.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()The automatically allocated key.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The update time of the entity on the server after processing the mutation.The version of the entity on the server after processing the mutation.clone()booleanWhether a conflict was detected for this mutation.com.google.protobuf.TimestampThe create time of the entity.com.google.protobuf.Timestamp.BuilderThe create time of the entity.com.google.protobuf.TimestampOrBuilderThe create time of the entity.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()The automatically allocated key.The automatically allocated key.The automatically allocated key.com.google.protobuf.TimestampThe update time of the entity on the server after processing the mutation.com.google.protobuf.Timestamp.BuilderThe update time of the entity on the server after processing the mutation.com.google.protobuf.TimestampOrBuilderThe update time of the entity on the server after processing the mutation.longThe version of the entity on the server after processing the mutation.booleanThe create time of the entity.booleanhasKey()The automatically allocated key.booleanThe update time of the entity on the server after processing the mutation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The create time of the entity.mergeFrom(MutationResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The automatically allocated key.final MutationResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime(com.google.protobuf.Timestamp value) The update time of the entity on the server after processing the mutation.setConflictDetected(boolean value) Whether a conflict was detected for this mutation.setCreateTime(com.google.protobuf.Timestamp value) The create time of the entity.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The create time of the entity.The automatically allocated key.setKey(Key.Builder builderForValue) The automatically allocated key.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final MutationResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime(com.google.protobuf.Timestamp value) The update time of the entity on the server after processing the mutation.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The update time of the entity on the server after processing the mutation.setVersion(long value) The version of the entity on the server after processing the mutation.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<MutationResult.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<MutationResult.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<MutationResult.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<MutationResult.Builder>
-
setField
public MutationResult.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<MutationResult.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
setRepeatedField
public MutationResult.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<MutationResult.Builder>
-
addRepeatedField
public MutationResult.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<MutationResult.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
mergeFrom
public MutationResult.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<MutationResult.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;- Specified by:
hasKeyin interfaceMutationResultOrBuilder- Returns:
- Whether the key field is set.
-
getKey
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;- Specified by:
getKeyin interfaceMutationResultOrBuilder- Returns:
- The key.
-
setKey
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
setKey
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
mergeKey
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
clearKey
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
getKeyBuilder
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3; -
getKeyOrBuilder
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;- Specified by:
getKeyOrBuilderin interfaceMutationResultOrBuilder
-
getVersion
public long getVersion()The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;- Specified by:
getVersionin interfaceMutationResultOrBuilder- Returns:
- The version.
-
setVersion
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;- Specified by:
hasCreateTimein interfaceMutationResultOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimein interfaceMutationResultOrBuilder- Returns:
- The createTime.
-
setCreateTime
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
setCreateTime
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
mergeCreateTime
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
clearCreateTime
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimeOrBuilderin interfaceMutationResultOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;- Specified by:
hasUpdateTimein interfaceMutationResultOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;- Specified by:
getUpdateTimein interfaceMutationResultOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6; -
setUpdateTime
The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6; -
mergeUpdateTime
The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6; -
clearUpdateTime
The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;- Specified by:
getUpdateTimeOrBuilderin interfaceMutationResultOrBuilder
-
getConflictDetected
public boolean getConflictDetected()Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;- Specified by:
getConflictDetectedin interfaceMutationResultOrBuilder- Returns:
- The conflictDetected.
-
setConflictDetected
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;- Parameters:
value- The conflictDetected to set.- Returns:
- This builder for chaining.
-
clearConflictDetected
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final MutationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
mergeUnknownFields
public final MutationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-