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| Modifier and Type | Method and Description |
|---|---|
MutationResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MutationResult |
build() |
MutationResult |
buildPartial() |
MutationResult.Builder |
clear() |
MutationResult.Builder |
clearConflictDetected()
Whether a conflict was detected for this mutation.
|
MutationResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MutationResult.Builder |
clearKey()
The automatically allocated key.
|
MutationResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MutationResult.Builder |
clearUpdateTime()
The update time of the entity on the server after processing the mutation.
|
MutationResult.Builder |
clearVersion()
The version of the entity on the server after processing the mutation.
|
MutationResult.Builder |
clone() |
boolean |
getConflictDetected()
Whether a conflict was detected for this mutation.
|
MutationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Key |
getKey()
The automatically allocated key.
|
Key.Builder |
getKeyBuilder()
The automatically allocated key.
|
KeyOrBuilder |
getKeyOrBuilder()
The automatically allocated key.
|
com.google.protobuf.Timestamp |
getUpdateTime()
The update time of the entity on the server after processing the mutation.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
The update time of the entity on the server after processing the mutation.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The update time of the entity on the server after processing the mutation.
|
long |
getVersion()
The version of the entity on the server after processing the mutation.
|
boolean |
hasKey()
The automatically allocated key.
|
boolean |
hasUpdateTime()
The update time of the entity on the server after processing the mutation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MutationResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MutationResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
MutationResult.Builder |
mergeFrom(MutationResult other) |
MutationResult.Builder |
mergeKey(Key value)
The automatically allocated key.
|
MutationResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MutationResult.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
The update time of the entity on the server after processing the mutation.
|
MutationResult.Builder |
setConflictDetected(boolean value)
Whether a conflict was detected for this mutation.
|
MutationResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MutationResult.Builder |
setKey(Key.Builder builderForValue)
The automatically allocated key.
|
MutationResult.Builder |
setKey(Key value)
The automatically allocated key.
|
MutationResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MutationResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MutationResult.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The update time of the entity on the server after processing the mutation.
|
MutationResult.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
The update time of the entity on the server after processing the mutation.
|
MutationResult.Builder |
setVersion(long value)
The version of the entity on the server after processing the mutation.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MutationResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MutationResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MutationResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(MutationResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public MutationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>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;value - The version to set.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 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;hasUpdateTime in interface MutationResultOrBuilderpublic 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;getUpdateTime in interface MutationResultOrBuilderpublic MutationResult.Builder setUpdateTime(com.google.protobuf.Timestamp value)
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;public MutationResult.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;public MutationResult.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
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;public MutationResult.Builder 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;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;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;getUpdateTimeOrBuilder in interface MutationResultOrBuilderpublic 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;value - The conflictDetected to set.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>public final MutationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>Copyright © 2022 Google LLC. All rights reserved.