public final class Mutation extends com.google.protobuf.GeneratedMessageV3 implements MutationOrBuilder
A mutation to apply to an entity.Protobuf type
google.datastore.v1.Mutation
Modifier and Type | Class and Description |
---|---|
static class |
Mutation.Builder
A mutation to apply to an entity.
|
static class |
Mutation.ConflictDetectionStrategyCase |
static class |
Mutation.OperationCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
BASE_VERSION_FIELD_NUMBER |
static int |
DELETE_FIELD_NUMBER |
static int |
INSERT_FIELD_NUMBER |
static int |
UPDATE_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
UPSERT_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getBaseVersion()
The version of the entity that this mutation is being applied
to.
|
Mutation.ConflictDetectionStrategyCase |
getConflictDetectionStrategyCase() |
static Mutation |
getDefaultInstance() |
Mutation |
getDefaultInstanceForType() |
Key |
getDelete()
The key of the entity to delete.
|
KeyOrBuilder |
getDeleteOrBuilder()
The key of the entity to delete.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Entity |
getInsert()
The entity to insert.
|
EntityOrBuilder |
getInsertOrBuilder()
The entity to insert.
|
Mutation.OperationCase |
getOperationCase() |
com.google.protobuf.Parser<Mutation> |
getParserForType() |
int |
getSerializedSize() |
Entity |
getUpdate()
The entity to update.
|
EntityOrBuilder |
getUpdateOrBuilder()
The entity to update.
|
com.google.protobuf.Timestamp |
getUpdateTime()
The update time of the entity that this mutation is being applied
to.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The update time of the entity that this mutation is being applied
to.
|
Entity |
getUpsert()
The entity to upsert.
|
EntityOrBuilder |
getUpsertOrBuilder()
The entity to upsert.
|
boolean |
hasBaseVersion()
The version of the entity that this mutation is being applied
to.
|
boolean |
hasDelete()
The key of the entity to delete.
|
int |
hashCode() |
boolean |
hasInsert()
The entity to insert.
|
boolean |
hasUpdate()
The entity to update.
|
boolean |
hasUpdateTime()
The update time of the entity that this mutation is being applied
to.
|
boolean |
hasUpsert()
The entity to upsert.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Mutation.Builder |
newBuilder() |
static Mutation.Builder |
newBuilder(Mutation prototype) |
Mutation.Builder |
newBuilderForType() |
protected Mutation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Mutation |
parseDelimitedFrom(InputStream input) |
static Mutation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation |
parseFrom(byte[] data) |
static Mutation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation |
parseFrom(ByteBuffer data) |
static Mutation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation |
parseFrom(com.google.protobuf.ByteString data) |
static Mutation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Mutation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Mutation |
parseFrom(InputStream input) |
static Mutation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Mutation> |
parser() |
Mutation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int INSERT_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER
public static final int UPSERT_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER
public static final int BASE_VERSION_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public Mutation.OperationCase getOperationCase()
getOperationCase
in interface MutationOrBuilder
public Mutation.ConflictDetectionStrategyCase getConflictDetectionStrategyCase()
getConflictDetectionStrategyCase
in interface MutationOrBuilder
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 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 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 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 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 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;
hasBaseVersion
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 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;
hasUpdateTime
in interface MutationOrBuilder
public com.google.protobuf.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;
getUpdateTime
in interface MutationOrBuilder
public com.google.protobuf.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;
getUpdateTimeOrBuilder
in interface MutationOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Mutation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Mutation parseFrom(InputStream input) throws IOException
IOException
public static Mutation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Mutation parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Mutation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Mutation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Mutation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Mutation.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Mutation.Builder newBuilder()
public static Mutation.Builder newBuilder(Mutation prototype)
public Mutation.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Mutation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Mutation getDefaultInstance()
public static com.google.protobuf.Parser<Mutation> parser()
public com.google.protobuf.Parser<Mutation> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Mutation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.