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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Mutation build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Mutation buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Mutation.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Mutation.Builder>
public Mutation.Builder mergeFrom(Mutation other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Mutation.Builder>
java.io.IOException
public Mutation.OperationCase getOperationCase()
getOperationCase
in interface MutationOrBuilder
public Mutation.Builder clearOperation()
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
getConflictDetectionStrategyCase
in interface MutationOrBuilder
public 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 MutationOrBuilder
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;
getInsert
in interface MutationOrBuilder
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;
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 MutationOrBuilder
public 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 MutationOrBuilder
public 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 MutationOrBuilder
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;
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 MutationOrBuilder
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;
hasUpsert
in interface MutationOrBuilder
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;
getUpsert
in interface MutationOrBuilder
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;
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 MutationOrBuilder
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;
hasDelete
in interface MutationOrBuilder
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;
getDelete
in interface MutationOrBuilder
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;
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 MutationOrBuilder
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;
getBaseVersion
in interface MutationOrBuilder
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;
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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Mutation.Builder>
public final Mutation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Mutation.Builder>