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 |
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(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 |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The create time of the entity.
|
MutationResult.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The create time of the entity.
|
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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
public MutationResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MutationResult build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MutationResult buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MutationResult.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
IOException
public boolean hasKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
hasKey
in interface MutationResultOrBuilder
public Key getKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
getKey
in interface MutationResultOrBuilder
public 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 MutationResultOrBuilder
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;
getVersion
in interface MutationResultOrBuilder
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;
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 hasCreateTime()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
hasCreateTime
in interface MutationResultOrBuilder
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;
getCreateTime
in interface MutationResultOrBuilder
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;
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;
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;
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;
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;
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;
getCreateTimeOrBuilder
in interface MutationResultOrBuilder
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 MutationResultOrBuilder
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;
getUpdateTime
in interface MutationResultOrBuilder
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;
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 MutationResultOrBuilder
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 MutationResultOrBuilder
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;
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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
Copyright © 2023 Google LLC. All rights reserved.