public static final class Mutation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder> implements MutationOrBuilder
A mutation to apply to an entity.Protobuf type
google.datastore.v1.Mutation| Modifier and Type | Method and Description |
|---|---|
Mutation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mutation |
build() |
Mutation |
buildPartial() |
Mutation.Builder |
clear() |
Mutation.Builder |
clearBaseVersion()
The version of the entity that this mutation is being applied to.
|
Mutation.Builder |
clearConflictDetectionStrategy() |
Mutation.Builder |
clearDelete()
The key of the entity to delete.
|
Mutation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Mutation.Builder |
clearInsert()
The entity to insert.
|
Mutation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Mutation.Builder |
clearOperation() |
Mutation.Builder |
clearUpdate()
The entity to update.
|
Mutation.Builder |
clearUpsert()
The entity to upsert.
|
Mutation.Builder |
clone() |
long |
getBaseVersion()
The version of the entity that this mutation is being applied to.
|
Mutation.ConflictDetectionStrategyCase |
getConflictDetectionStrategyCase() |
Mutation |
getDefaultInstanceForType() |
Key |
getDelete()
The key of the entity to delete.
|
Key.Builder |
getDeleteBuilder()
The key of the entity to delete.
|
KeyOrBuilder |
getDeleteOrBuilder()
The key of the entity to delete.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Entity |
getInsert()
The entity to insert.
|
Entity.Builder |
getInsertBuilder()
The entity to insert.
|
EntityOrBuilder |
getInsertOrBuilder()
The entity to insert.
|
Mutation.OperationCase |
getOperationCase() |
Entity |
getUpdate()
The entity to update.
|
Entity.Builder |
getUpdateBuilder()
The entity to update.
|
EntityOrBuilder |
getUpdateOrBuilder()
The entity to update.
|
Entity |
getUpsert()
The entity to upsert.
|
Entity.Builder |
getUpsertBuilder()
The entity to upsert.
|
EntityOrBuilder |
getUpsertOrBuilder()
The entity to upsert.
|
boolean |
hasDelete()
The key of the entity to delete.
|
boolean |
hasInsert()
The entity to insert.
|
boolean |
hasUpdate()
The entity to update.
|
boolean |
hasUpsert()
The entity to upsert.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Mutation.Builder |
mergeDelete(Key value)
The key of the entity to delete.
|
Mutation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Mutation.Builder |
mergeFrom(com.google.protobuf.Message other) |
Mutation.Builder |
mergeFrom(Mutation other) |
Mutation.Builder |
mergeInsert(Entity value)
The entity to insert.
|
Mutation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Mutation.Builder |
mergeUpdate(Entity value)
The entity to update.
|
Mutation.Builder |
mergeUpsert(Entity value)
The entity to upsert.
|
Mutation.Builder |
setBaseVersion(long value)
The version of the entity that this mutation is being applied to.
|
Mutation.Builder |
setDelete(Key.Builder builderForValue)
The key of the entity to delete.
|
Mutation.Builder |
setDelete(Key value)
The key of the entity to delete.
|
Mutation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mutation.Builder |
setInsert(Entity.Builder builderForValue)
The entity to insert.
|
Mutation.Builder |
setInsert(Entity value)
The entity to insert.
|
Mutation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Mutation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Mutation.Builder |
setUpdate(Entity.Builder builderForValue)
The entity to update.
|
Mutation.Builder |
setUpdate(Entity value)
The entity to update.
|
Mutation.Builder |
setUpsert(Entity.Builder builderForValue)
The entity to upsert.
|
Mutation.Builder |
setUpsert(Entity value)
The entity to upsert.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Mutation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Mutation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Mutation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mutation.Builder>public Mutation.Builder mergeFrom(Mutation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public Mutation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Mutation.Builder>IOExceptionpublic Mutation.OperationCase getOperationCase()
getOperationCase in interface MutationOrBuilderpublic Mutation.Builder clearOperation()
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
getConflictDetectionStrategyCase in interface MutationOrBuilderpublic Mutation.Builder clearConflictDetectionStrategy()
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;hasInsert in interface MutationOrBuilderpublic 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;getInsert in interface MutationOrBuilderpublic 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;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;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;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;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;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;getInsertOrBuilder in interface MutationOrBuilderpublic boolean hasUpdate()
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;hasUpdate in interface MutationOrBuilderpublic Entity getUpdate()
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;getUpdate in interface MutationOrBuilderpublic 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;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;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;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;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;public EntityOrBuilder getUpdateOrBuilder()
The entity to update. The entity must already exist. Must have a complete key path.
.google.datastore.v1.Entity update = 5;getUpdateOrBuilder in interface MutationOrBuilderpublic 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;hasUpsert in interface MutationOrBuilderpublic 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;getUpsert in interface MutationOrBuilderpublic 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;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;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;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;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;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;getUpsertOrBuilder in interface MutationOrBuilderpublic 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;hasDelete in interface MutationOrBuilderpublic 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;getDelete in interface MutationOrBuilderpublic 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;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;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;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;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;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;getDeleteOrBuilder in interface MutationOrBuilderpublic 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;getBaseVersion in interface MutationOrBuilderpublic 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;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;public final Mutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>public final Mutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>Copyright © 2018 Google LLC. All rights reserved.