Class Mutation.Builder (2.18.5)

public static final class Mutation.Builder extends GeneratedMessageV3.Builder<Mutation.Builder> implements MutationOrBuilder

A mutation to apply to an entity.

Protobuf type google.datastore.v1.Mutation

Implements

MutationOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Mutation build()
Returns
TypeDescription
Mutation

buildPartial()

public Mutation buildPartial()
Returns
TypeDescription
Mutation

clear()

public Mutation.Builder clear()
Returns
TypeDescription
Mutation.Builder
Overrides

clearBaseVersion()

public Mutation.Builder clearBaseVersion()

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

int64 base_version = 8;

Returns
TypeDescription
Mutation.Builder

This builder for chaining.

clearConflictDetectionStrategy()

public Mutation.Builder clearConflictDetectionStrategy()
Returns
TypeDescription
Mutation.Builder

clearDelete()

public Mutation.Builder clearDelete()

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Returns
TypeDescription
Mutation.Builder

clearField(Descriptors.FieldDescriptor field)

public Mutation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Mutation.Builder
Overrides

clearInsert()

public Mutation.Builder clearInsert()

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Returns
TypeDescription
Mutation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Mutation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Mutation.Builder
Overrides

clearOperation()

public Mutation.Builder clearOperation()
Returns
TypeDescription
Mutation.Builder

clearUpdate()

public Mutation.Builder clearUpdate()

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Returns
TypeDescription
Mutation.Builder

clearUpdateTime()

public Mutation.Builder clearUpdateTime()

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Mutation.Builder

clearUpsert()

public Mutation.Builder clearUpsert()

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Returns
TypeDescription
Mutation.Builder

clone()

public Mutation.Builder clone()
Returns
TypeDescription
Mutation.Builder
Overrides

getBaseVersion()

public long getBaseVersion()

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

int64 base_version = 8;

Returns
TypeDescription
long

The baseVersion.

getConflictDetectionStrategyCase()

public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
Returns
TypeDescription
Mutation.ConflictDetectionStrategyCase

getDefaultInstanceForType()

public Mutation getDefaultInstanceForType()
Returns
TypeDescription
Mutation

getDelete()

public Key getDelete()

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Returns
TypeDescription
Key

The delete.

getDeleteBuilder()

public Key.Builder getDeleteBuilder()

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Returns
TypeDescription
Key.Builder

getDeleteOrBuilder()

public KeyOrBuilder getDeleteOrBuilder()

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Returns
TypeDescription
KeyOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInsert()

public Entity getInsert()

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Returns
TypeDescription
Entity

The insert.

getInsertBuilder()

public Entity.Builder getInsertBuilder()

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Returns
TypeDescription
Entity.Builder

getInsertOrBuilder()

public EntityOrBuilder getInsertOrBuilder()

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Returns
TypeDescription
EntityOrBuilder

getOperationCase()

public Mutation.OperationCase getOperationCase()
Returns
TypeDescription
Mutation.OperationCase

getUpdate()

public Entity getUpdate()

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Returns
TypeDescription
Entity

The update.

getUpdateBuilder()

public Entity.Builder getUpdateBuilder()

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Returns
TypeDescription
Entity.Builder

getUpdateOrBuilder()

public EntityOrBuilder getUpdateOrBuilder()

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Returns
TypeDescription
EntityOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
TimestampOrBuilder

getUpsert()

public Entity getUpsert()

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Returns
TypeDescription
Entity

The upsert.

getUpsertBuilder()

public Entity.Builder getUpsertBuilder()

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Returns
TypeDescription
Entity.Builder

getUpsertOrBuilder()

public EntityOrBuilder getUpsertOrBuilder()

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Returns
TypeDescription
EntityOrBuilder

hasBaseVersion()

public boolean hasBaseVersion()

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

int64 base_version = 8;

Returns
TypeDescription
boolean

Whether the baseVersion field is set.

hasDelete()

public boolean hasDelete()

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Returns
TypeDescription
boolean

Whether the delete field is set.

hasInsert()

public boolean hasInsert()

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Returns
TypeDescription
boolean

Whether the insert field is set.

hasUpdate()

public boolean hasUpdate()

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Returns
TypeDescription
boolean

Whether the update field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasUpsert()

public boolean hasUpsert()

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Returns
TypeDescription
boolean

Whether the upsert field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDelete(Key value)

public Mutation.Builder mergeDelete(Key value)

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Parameter
NameDescription
valueKey
Returns
TypeDescription
Mutation.Builder

mergeFrom(Mutation other)

public Mutation.Builder mergeFrom(Mutation other)
Parameter
NameDescription
otherMutation
Returns
TypeDescription
Mutation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Mutation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Mutation.Builder
Overrides

mergeInsert(Entity value)

public Mutation.Builder mergeInsert(Entity value)

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Mutation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Mutation.Builder
Overrides

mergeUpdate(Entity value)

public Mutation.Builder mergeUpdate(Entity value)

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

mergeUpdateTime(Timestamp value)

public Mutation.Builder mergeUpdateTime(Timestamp value)

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mutation.Builder

mergeUpsert(Entity value)

public Mutation.Builder mergeUpsert(Entity value)

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

setBaseVersion(long value)

public Mutation.Builder setBaseVersion(long value)

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

int64 base_version = 8;

Parameter
NameDescription
valuelong

The baseVersion to set.

Returns
TypeDescription
Mutation.Builder

This builder for chaining.

setDelete(Key value)

public Mutation.Builder setDelete(Key value)

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Parameter
NameDescription
valueKey
Returns
TypeDescription
Mutation.Builder

setDelete(Key.Builder builderForValue)

public Mutation.Builder setDelete(Key.Builder builderForValue)

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

.google.datastore.v1.Key delete = 7;

Parameter
NameDescription
builderForValueKey.Builder
Returns
TypeDescription
Mutation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInsert(Entity value)

public Mutation.Builder setInsert(Entity value)

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

setInsert(Entity.Builder builderForValue)

public Mutation.Builder setInsert(Entity.Builder builderForValue)

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity insert = 4;

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
Mutation.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Mutation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Mutation.Builder
Overrides

setUpdate(Entity value)

public Mutation.Builder setUpdate(Entity value)

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

setUpdate(Entity.Builder builderForValue)

public Mutation.Builder setUpdate(Entity.Builder builderForValue)

The entity to update. The entity must already exist. Must have a complete key path.

.google.datastore.v1.Entity update = 5;

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
Mutation.Builder

setUpdateTime(Timestamp value)

public Mutation.Builder setUpdateTime(Timestamp value)

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Mutation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Mutation.Builder setUpdateTime(Timestamp.Builder builderForValue)

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

.google.protobuf.Timestamp update_time = 11;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Mutation.Builder

setUpsert(Entity value)

public Mutation.Builder setUpsert(Entity value)

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Parameter
NameDescription
valueEntity
Returns
TypeDescription
Mutation.Builder

setUpsert(Entity.Builder builderForValue)

public Mutation.Builder setUpsert(Entity.Builder builderForValue)

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

.google.datastore.v1.Entity upsert = 6;

Parameter
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
Mutation.Builder