public static final class MutationResult.Builder extends GeneratedMessageV3.Builder<MutationResult.Builder> implements MutationResultOrBuilder
The result of applying a mutation.Protobuf type
google.datastore.v1.MutationResultgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<MutationResult.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic MutationResult build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic MutationResult buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic MutationResult.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(MutationResult other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<MutationResult.Builder>java.io.IOExceptionpublic boolean hasKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;hasKey in interface MutationResultOrBuilderpublic Key getKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;getKey in interface MutationResultOrBuilderpublic MutationResult.Builder setKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;public MutationResult.Builder setKey(Key.Builder builderForValue)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;public MutationResult.Builder mergeKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;public MutationResult.Builder clearKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;public Key.Builder getKeyBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;public KeyOrBuilder getKeyOrBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;getKeyOrBuilder in interface MutationResultOrBuilderpublic 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;getVersion in interface MutationResultOrBuilderpublic MutationResult.Builder setVersion(long value)
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;public MutationResult.Builder 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;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;getConflictDetected in interface MutationResultOrBuilderpublic MutationResult.Builder setConflictDetected(boolean value)
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;public MutationResult.Builder 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;public final MutationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<MutationResult.Builder>public final MutationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<MutationResult.Builder>