Class MutationResult.Builder (2.21.2)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MutationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MutationResult.Builder
Overrides

build()

public MutationResult build()
Returns
Type Description
MutationResult

buildPartial()

public MutationResult buildPartial()
Returns
Type Description
MutationResult

clear()

public MutationResult.Builder clear()
Returns
Type Description
MutationResult.Builder
Overrides

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
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;

Returns
Type Description
MutationResult.Builder

clearField(Descriptors.FieldDescriptor field)

public MutationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MutationResult.Builder
Overrides

clearKey()

public MutationResult.Builder clearKey()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
Type Description
MutationResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MutationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MutationResult.Builder
Overrides

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;

Returns
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;

Returns
Type Description
MutationResult.Builder

This builder for chaining.

clone()

public MutationResult.Builder clone()
Returns
Type Description
MutationResult.Builder
Overrides

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;

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MutationResult getDefaultInstanceForType()
Returns
Type Description
MutationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public Key getKey()

The automatically allocated key. Set only when the mutation allocated a key.

.google.datastore.v1.Key key = 3;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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;

Parameter
Name Description
value Timestamp
Returns
Type Description
MutationResult.Builder

mergeFrom(MutationResult other)

public MutationResult.Builder mergeFrom(MutationResult other)
Parameter
Name Description
other MutationResult
Returns
Type Description
MutationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MutationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MutationResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MutationResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MutationResult.Builder
Overrides

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;

Parameter
Name Description
value Key
Returns
Type Description
MutationResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MutationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MutationResult.Builder
Overrides

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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
value boolean

The conflictDetected to set.

Returns
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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MutationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MutationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MutationResult.Builder
Overrides

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;

Parameter
Name Description
value Key
Returns
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;

Parameter
Name Description
builderForValue Key.Builder
Returns
Type Description
MutationResult.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MutationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MutationResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MutationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MutationResult.Builder
Overrides

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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
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;

Parameter
Name Description
value long

The version to set.

Returns
Type Description
MutationResult.Builder

This builder for chaining.