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.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
clearCreateTime()
The create time of the entity.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.com.google.protobuf.Timestamp
getCreateTime()
The create time of the entity.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
The create time of the entity.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The create time of the entity.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
hasCreateTime()
The create time of the entity.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
mergeCreateTime(com.google.protobuf.Timestamp value)
The create time of the entity.MutationResult.Builder
mergeFrom(MutationResult other)
MutationResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MutationResult.Builder
mergeFrom(com.google.protobuf.Message 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
setCreateTime(com.google.protobuf.Timestamp value)
The create time of the entity.MutationResult.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The create time of the entity.MutationResult.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MutationResult.Builder
setKey(Key value)
The automatically allocated key.MutationResult.Builder
setKey(Key.Builder builderForValue)
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 value)
The update time of the entity on the server after processing the mutation.MutationResult.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clear
public MutationResult.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<MutationResult.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<MutationResult.Builder>
-
getDefaultInstanceForType
public MutationResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MutationResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MutationResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MutationResult.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<MutationResult.Builder>
-
setField
public MutationResult.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<MutationResult.Builder>
-
clearField
public MutationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clearOneof
public MutationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
setRepeatedField
public MutationResult.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<MutationResult.Builder>
-
addRepeatedField
public MutationResult.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<MutationResult.Builder>
-
mergeFrom
public MutationResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
-
mergeFrom
public MutationResult.Builder mergeFrom(MutationResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasKey
in 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:
getKey
in 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:
getKeyOrBuilder
in 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:
getVersion
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
getConflictDetected
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
mergeUnknownFields
public final MutationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
-