public final class MutationResult extends GeneratedMessageV3 implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MutationResultImplements
MutationResultOrBuilderStatic Fields
CONFLICT_DETECTED_FIELD_NUMBER
public static final int CONFLICT_DETECTED_FIELD_NUMBER
Type | Description |
int |
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Type | Description |
int |
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MutationResult getDefaultInstance()
Type | Description |
MutationResult |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MutationResult.Builder newBuilder()
Type | Description |
MutationResult.Builder |
newBuilder(MutationResult prototype)
public static MutationResult.Builder newBuilder(MutationResult prototype)
Name | Description |
prototype | MutationResult |
Type | Description |
MutationResult.Builder |
parseDelimitedFrom(InputStream input)
public static MutationResult parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MutationResult parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MutationResult parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MutationResult parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MutationResult parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MutationResult parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MutationResult |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MutationResult> parser()
Type | Description |
Parser<MutationResult> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getConflictDetected()
public boolean getConflictDetected()
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;
Type | Description |
boolean | The conflictDetected. |
getDefaultInstanceForType()
public MutationResult getDefaultInstanceForType()
Type | Description |
MutationResult |
getKey()
public Key getKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
Key | The key. |
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
KeyOrBuilder |
getParserForType()
public Parser<MutationResult> getParserForType()
Type | Description |
Parser<MutationResult> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
getVersion()
public long getVersion()
The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;
Type | Description |
long | The version. |
hasKey()
public boolean hasKey()
The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Type | Description |
boolean | Whether the key field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public MutationResult.Builder newBuilderForType()
Type | Description |
MutationResult.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MutationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MutationResult.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MutationResult.Builder toBuilder()
Type | Description |
MutationResult.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |