Class MutationResult.Builder (2.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MutationResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MutationResult.Builder
Overrides

build()

public MutationResult build()
Returns
TypeDescription
MutationResult

buildPartial()

public MutationResult buildPartial()
Returns
TypeDescription
MutationResult

clear()

public MutationResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MutationResult.Builder

clearField(Descriptors.FieldDescriptor field)

public MutationResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MutationResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MutationResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MutationResult.Builder

This builder for chaining.

clone()

public MutationResult.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MutationResult getDefaultInstanceForType()
Returns
TypeDescription
MutationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MutationResult.Builder

mergeFrom(MutationResult other)

public MutationResult.Builder mergeFrom(MutationResult other)
Parameter
NameDescription
otherMutationResult
Returns
TypeDescription
MutationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MutationResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MutationResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MutationResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueKey
Returns
TypeDescription
MutationResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MutationResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueboolean

The conflictDetected to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MutationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MutationResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKey
Returns
TypeDescription
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
NameDescription
builderForValueKey.Builder
Returns
TypeDescription
MutationResult.Builder

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

public MutationResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MutationResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MutationResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valuelong

The version to set.

Returns
TypeDescription
MutationResult.Builder

This builder for chaining.