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 typegoogle.datastore.v1.MutationResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutationResult.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MutationResultbuild()MutationResultbuildPartial()MutationResult.Builderclear()MutationResult.BuilderclearConflictDetected()Whether a conflict was detected for this mutation.MutationResult.BuilderclearCreateTime()The create time of the entity.MutationResult.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MutationResult.BuilderclearKey()The automatically allocated key.MutationResult.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MutationResult.BuilderclearUpdateTime()The update time of the entity on the server after processing the mutation.MutationResult.BuilderclearVersion()The version of the entity on the server after processing the mutation.MutationResult.Builderclone()booleangetConflictDetected()Whether a conflict was detected for this mutation.com.google.protobuf.TimestampgetCreateTime()The create time of the entity.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()The create time of the entity.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The create time of the entity.MutationResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()KeygetKey()The automatically allocated key.Key.BuildergetKeyBuilder()The automatically allocated key.KeyOrBuildergetKeyOrBuilder()The automatically allocated key.com.google.protobuf.TimestampgetUpdateTime()The update time of the entity on the server after processing the mutation.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()The update time of the entity on the server after processing the mutation.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The update time of the entity on the server after processing the mutation.longgetVersion()The version of the entity on the server after processing the mutation.booleanhasCreateTime()The create time of the entity.booleanhasKey()The automatically allocated key.booleanhasUpdateTime()The update time of the entity on the server after processing the mutation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MutationResult.BuildermergeCreateTime(com.google.protobuf.Timestamp value)The create time of the entity.MutationResult.BuildermergeFrom(MutationResult other)MutationResult.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MutationResult.BuildermergeFrom(com.google.protobuf.Message other)MutationResult.BuildermergeKey(Key value)The automatically allocated key.MutationResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MutationResult.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)The update time of the entity on the server after processing the mutation.MutationResult.BuildersetConflictDetected(boolean value)Whether a conflict was detected for this mutation.MutationResult.BuildersetCreateTime(com.google.protobuf.Timestamp value)The create time of the entity.MutationResult.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)The create time of the entity.MutationResult.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MutationResult.BuildersetKey(Key value)The automatically allocated key.MutationResult.BuildersetKey(Key.Builder builderForValue)The automatically allocated key.MutationResult.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MutationResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MutationResult.BuildersetUpdateTime(com.google.protobuf.Timestamp value)The update time of the entity on the server after processing the mutation.MutationResult.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)The update time of the entity on the server after processing the mutation.MutationResult.BuildersetVersion(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, 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clear
public 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
public MutationResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MutationResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MutationResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MutationResult.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
public MutationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clearOneof
public MutationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public MutationResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
-
mergeFrom
public MutationResult.Builder mergeFrom(MutationResult other)
-
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
public Key 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
public MutationResult.Builder setKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
-
setKey
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;
-
mergeKey
public MutationResult.Builder mergeKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
-
clearKey
public MutationResult.Builder clearKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
-
getKeyBuilder
public Key.Builder getKeyBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
-
getKeyOrBuilder
public KeyOrBuilder 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
public 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;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
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;- 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
public MutationResult.Builder setCreateTime(com.google.protobuf.Timestamp value)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
-
setCreateTime
public MutationResult.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
-
mergeCreateTime
public MutationResult.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
-
clearCreateTime
public MutationResult.Builder 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
public 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;
-
setUpdateTime
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;
-
mergeUpdateTime
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;
-
clearUpdateTime
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;
-
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
public 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;- Parameters:
value- The conflictDetected to set.- Returns:
- This builder for chaining.
-
clearConflictDetected
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;- 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>
-
-