public final class Mutation extends GeneratedMessageV3 implements MutationOrBuilder
A mutation to apply to an entity.
Protobuf type google.datastore.v1.Mutation
Static Fields
BASE_VERSION_FIELD_NUMBER
public static final int BASE_VERSION_FIELD_NUMBER
Field Value
DELETE_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER
Field Value
INSERT_FIELD_NUMBER
public static final int INSERT_FIELD_NUMBER
Field Value
UPDATE_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
UPSERT_FIELD_NUMBER
public static final int UPSERT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Mutation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Mutation.Builder newBuilder()
Returns
newBuilder(Mutation prototype)
public static Mutation.Builder newBuilder(Mutation prototype)
Parameter
Returns
public static Mutation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Mutation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Mutation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Mutation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Mutation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Mutation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Mutation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Mutation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Mutation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Mutation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Mutation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Mutation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Mutation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
long | The baseVersion.
|
getConflictDetectionStrategyCase()
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
Returns
getDefaultInstanceForType()
public Mutation getDefaultInstanceForType()
Returns
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
Type | Description |
Key | The delete.
|
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
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
Type | Description |
Entity | The insert.
|
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
getOperationCase()
public Mutation.OperationCase getOperationCase()
Returns
getParserForType()
public Parser<Mutation> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Type | Description |
Entity | The update.
|
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
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
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
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
Type | Description |
Entity | The upsert.
|
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
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
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;
Returns
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;
Returns
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;
Returns
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;
Returns
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;
Returns
Type | Description |
boolean | Whether the upsert field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Mutation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Mutation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Mutation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions