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, 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
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
public Mutation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Mutation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Mutation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Mutation.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Mutation.Builder>
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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Mutation.Builder>
Copyright © 2018 Google LLC. All rights reserved.