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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Mutation.BuilderImplements
MutationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Mutation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Mutation.Builder |
build()
public Mutation build()
Type | Description |
Mutation |
buildPartial()
public Mutation buildPartial()
Type | Description |
Mutation |
clear()
public Mutation.Builder clear()
Type | Description |
Mutation.Builder |
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;
Type | Description |
Mutation.Builder | This builder for chaining. |
clearConflictDetectionStrategy()
public Mutation.Builder clearConflictDetectionStrategy()
Type | Description |
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;
Type | Description |
Mutation.Builder |
clearField(Descriptors.FieldDescriptor field)
public Mutation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Mutation.Builder |
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;
Type | Description |
Mutation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Mutation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Mutation.Builder |
clearOperation()
public Mutation.Builder clearOperation()
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
Mutation.Builder |
clone()
public Mutation.Builder clone()
Type | Description |
Mutation.Builder |
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;
Type | Description |
long | The baseVersion. |
getConflictDetectionStrategyCase()
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
Type | Description |
Mutation.ConflictDetectionStrategyCase |
getDefaultInstanceForType()
public Mutation getDefaultInstanceForType()
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
KeyOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
EntityOrBuilder |
getOperationCase()
public Mutation.OperationCase getOperationCase()
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
boolean | Whether the upsert field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | Key |
Type | Description |
Mutation.Builder |
mergeFrom(Mutation other)
public Mutation.Builder mergeFrom(Mutation other)
Name | Description |
other | Mutation |
Type | Description |
Mutation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Mutation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Mutation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Mutation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Mutation.Builder |
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;
Name | Description |
value | Entity |
Type | Description |
Mutation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Mutation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Mutation.Builder |
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;
Name | Description |
value | Entity |
Type | Description |
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;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
value | Entity |
Type | Description |
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;
Name | Description |
value | long The baseVersion to set. |
Type | Description |
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;
Name | Description |
value | Key |
Type | Description |
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;
Name | Description |
builderForValue | Key.Builder |
Type | Description |
Mutation.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Mutation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Mutation.Builder |
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;
Name | Description |
value | Entity |
Type | Description |
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;
Name | Description |
builderForValue | Entity.Builder |
Type | Description |
Mutation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Mutation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Mutation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Mutation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Mutation.Builder |
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;
Name | Description |
value | Entity |
Type | Description |
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;
Name | Description |
builderForValue | Entity.Builder |
Type | Description |
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;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
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;
Name | Description |
value | Entity |
Type | Description |
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;
Name | Description |
builderForValue | Entity.Builder |
Type | Description |
Mutation.Builder |