public static final class MutationResult.Builder extends GeneratedMessageV3.Builder<MutationResult.Builder> implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MutationResult.BuilderImplements
MutationResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MutationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MutationResult.Builder |
build()
public MutationResult build()
Type | Description |
MutationResult |
buildPartial()
public MutationResult buildPartial()
Type | Description |
MutationResult |
clear()
public MutationResult.Builder clear()
Type | Description |
MutationResult.Builder |
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;
Type | Description |
MutationResult.Builder | This builder for chaining. |
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;
Type | Description |
MutationResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public MutationResult.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MutationResult.Builder |
clearKey()
public MutationResult.Builder clearKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
MutationResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MutationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MutationResult.Builder |
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;
Type | Description |
MutationResult.Builder |
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;
Type | Description |
MutationResult.Builder | This builder for chaining. |
clone()
public MutationResult.Builder clone()
Type | Description |
MutationResult.Builder |
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;
Type | Description |
boolean | The conflictDetected. |
getCreateTime()
public Timestamp getCreateTime()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public MutationResult getDefaultInstanceForType()
Type | Description |
MutationResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getKey()
public Key getKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
Key | The key. |
getKeyBuilder()
public Key.Builder getKeyBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
Key.Builder |
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
KeyOrBuilder |
getUpdateTime()
public 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;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public 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;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public 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;
Type | Description |
TimestampOrBuilder |
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;
Type | Description |
long | The version. |
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;
Type | Description |
boolean | Whether the createTime field is set. |
hasKey()
public boolean hasKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
boolean | Whether the key field is set. |
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;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public MutationResult.Builder mergeCreateTime(Timestamp value)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
MutationResult.Builder |
mergeFrom(MutationResult other)
public MutationResult.Builder mergeFrom(MutationResult other)
Name | Description |
other | MutationResult |
Type | Description |
MutationResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MutationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MutationResult.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MutationResult.Builder |
mergeKey(Key value)
public MutationResult.Builder mergeKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Name | Description |
value | Key |
Type | Description |
MutationResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MutationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MutationResult.Builder |
mergeUpdateTime(Timestamp value)
public MutationResult.Builder mergeUpdateTime(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;
Name | Description |
value | Timestamp |
Type | Description |
MutationResult.Builder |
setConflictDetected(boolean value)
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;
Name | Description |
value | boolean The conflictDetected to set. |
Type | Description |
MutationResult.Builder | This builder for chaining. |
setCreateTime(Timestamp value)
public MutationResult.Builder setCreateTime(Timestamp value)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
MutationResult.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public MutationResult.Builder setCreateTime(Timestamp.Builder builderForValue)
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
MutationResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MutationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MutationResult.Builder |
setKey(Key value)
public MutationResult.Builder setKey(Key value)
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Name | Description |
value | Key |
Type | Description |
MutationResult.Builder |
setKey(Key.Builder builderForValue)
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;
Name | Description |
builderForValue | Key.Builder |
Type | Description |
MutationResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MutationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MutationResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MutationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MutationResult.Builder |
setUpdateTime(Timestamp value)
public MutationResult.Builder setUpdateTime(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;
Name | Description |
value | Timestamp |
Type | Description |
MutationResult.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public MutationResult.Builder setUpdateTime(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;
Name | Description |
builderForValue | Builder |
Type | Description |
MutationResult.Builder |
setVersion(long value)
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;
Name | Description |
value | long The version to set. |
Type | Description |
MutationResult.Builder | This builder for chaining. |