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()
boolean
Whether a conflict was detected for this mutation.com.google.protobuf.Timestamp
The create time of the entity.com.google.protobuf.Timestamp.Builder
The create time of the entity.com.google.protobuf.TimestampOrBuilder
The create time of the entity.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKey()
The automatically allocated key.The automatically allocated key.The automatically allocated key.com.google.protobuf.Timestamp
The update time of the entity on the server after processing the mutation.com.google.protobuf.Timestamp.Builder
The update time of the entity on the server after processing the mutation.com.google.protobuf.TimestampOrBuilder
The update time of the entity on the server after processing the mutation.long
The version of the entity on the server after processing the mutation.boolean
The create time of the entity.boolean
hasKey()
The automatically allocated key.boolean
The update time of the entity on the server after processing the mutation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCreateTime
(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.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
-
clearOneof
- 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
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
-
mergeFrom
-
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
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
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:
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
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:
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
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:
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
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:
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
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:
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>
-