public final class MutationResult extends GeneratedMessageV3 implements MutationResultOrBuilder
The result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
CONFLICT_DETECTED_FIELD_NUMBER
public static final int CONFLICT_DETECTED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static MutationResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MutationResult.Builder newBuilder()
newBuilder(MutationResult prototype)
public static MutationResult.Builder newBuilder(MutationResult prototype)
public static MutationResult parseDelimitedFrom(InputStream input)
public static MutationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MutationResult parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MutationResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(CodedInputStream input)
public static MutationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(InputStream input)
public static MutationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MutationResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MutationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MutationResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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;
Returns |
---|
Type | Description |
boolean | The conflictDetected.
|
getCreateTime()
public Timestamp getCreateTime()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
getDefaultInstanceForType()
public MutationResult getDefaultInstanceForType()
getKey()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Returns |
---|
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;
getParserForType()
public Parser<MutationResult> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
The update time of the entity on the server after processing the mutation.
If the mutation doesn't change anything on the server, then the timestamp
will be the update timestamp of the current entity. This field will not be
set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
Returns |
---|
Type | Description |
Timestamp | The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
The update time of the entity on the server after processing the mutation.
If the mutation doesn't change anything on the server, then the timestamp
will be the update timestamp of the current entity. This field will not be
set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
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;
Returns |
---|
Type | Description |
long | The version.
|
hasCreateTime()
public boolean hasCreateTime()
The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
Returns |
---|
Type | Description |
boolean | Whether the createTime field is set.
|
hasKey()
The automatically allocated key.
Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
Returns |
---|
Type | Description |
boolean | Whether the key field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
The update time of the entity on the server after processing the mutation.
If the mutation doesn't change anything on the server, then the timestamp
will be the update timestamp of the current entity. This field will not be
set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
Returns |
---|
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MutationResult.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MutationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public MutationResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides