publicfinalclass MutationextendsGeneratedMessageV3implementsMutationOrBuilder
A mutation to apply to an entity.
Protobuf type google.datastore.v1.Mutation
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>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BASE_VERSION_FIELD_NUMBER
publicstaticfinalintBASE_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER
publicstaticfinalintCONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DELETE_FIELD_NUMBER
publicstaticfinalintDELETE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INSERT_FIELD_NUMBER
publicstaticfinalintINSERT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PROPERTY_MASK_FIELD_NUMBER
publicstaticfinalintPROPERTY_MASK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintPROPERTY_TRANSFORMS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
UPDATE_FIELD_NUMBER
publicstaticfinalintUPDATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
UPDATE_TIME_FIELD_NUMBER
publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
UPSERT_FIELD_NUMBER
publicstaticfinalintUPSERT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticMutationgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticMutation.BuildernewBuilder()
newBuilder(Mutation prototype)
publicstaticMutation.BuildernewBuilder(Mutationprototype)
| Parameter |
| Name |
Description |
prototype |
Mutation
|
publicstaticMutationparseDelimitedFrom(InputStreaminput)
publicstaticMutationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticMutationparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticMutationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticMutationparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticMutationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticMutationparseFrom(CodedInputStreaminput)
publicstaticMutationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticMutationparseFrom(InputStreaminput)
publicstaticMutationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticMutationparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticMutationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<Mutation>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBaseVersion()
publiclonggetBaseVersion()
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()
publicMutation.ConflictDetectionStrategyCasegetConflictDetectionStrategyCase()
getConflictResolutionStrategy()
publicMutation.ConflictResolutionStrategygetConflictResolutionStrategy()
The strategy to use when a conflict is detected. Defaults to
SERVER_VALUE.
If this is set, then conflict_detection_strategy must also be set.
.google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10;
getConflictResolutionStrategyValue()
publicintgetConflictResolutionStrategyValue()
The strategy to use when a conflict is detected. Defaults to
SERVER_VALUE.
If this is set, then conflict_detection_strategy must also be set.
.google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for conflictResolutionStrategy.
|
getDefaultInstanceForType()
publicMutationgetDefaultInstanceForType()
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()
publicKeyOrBuildergetDeleteOrBuilder()
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;
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()
publicEntityOrBuildergetInsertOrBuilder()
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;
getOperationCase()
publicMutation.OperationCasegetOperationCase()
getParserForType()
publicParser<Mutation>getParserForType()
Overrides
getPropertyMask()
publicPropertyMaskgetPropertyMask()
The properties to write in this mutation.
None of the properties in the mask may have a reserved name, except for
key.
This field is ignored for delete.
If the entity already exists, only properties referenced in the mask are
updated, others are left untouched.
Properties referenced in the mask but not in the entity are deleted.
.google.datastore.v1.PropertyMask property_mask = 9;
getPropertyMaskOrBuilder()
publicPropertyMaskOrBuildergetPropertyMaskOrBuilder()
The properties to write in this mutation.
None of the properties in the mask may have a reserved name, except for
key.
This field is ignored for delete.
If the entity already exists, only properties referenced in the mask are
updated, others are left untouched.
Properties referenced in the mask but not in the entity are deleted.
.google.datastore.v1.PropertyMask property_mask = 9;
publicPropertyTransformgetPropertyTransforms(intindex)
Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
publicintgetPropertyTransformsCount()
Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
publicList<PropertyTransform>getPropertyTransformsList()
Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL];
publicPropertyTransformOrBuildergetPropertyTransformsOrBuilder(intindex)
Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
publicList<?extendsPropertyTransformOrBuilder>getPropertyTransformsOrBuilderList()
Optional. The transforms to perform on the entity.
This field can be set only when the operation is insert, update,
or upsert. If present, the transforms are be applied to the entity
regardless of the property mask, in order, after the operation.
repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.datastore.v1.PropertyTransformOrBuilder> |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
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()
publicEntityOrBuildergetUpdateOrBuilder()
The entity to update. The entity must already exist.
Must have a complete key path.
.google.datastore.v1.Entity update = 5;
getUpdateTime()
publicTimestampgetUpdateTime()
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 |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()
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;
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()
publicEntityOrBuildergetUpsertOrBuilder()
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;
hasBaseVersion()
publicbooleanhasBaseVersion()
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()
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()
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.
|
hasPropertyMask()
publicbooleanhasPropertyMask()
The properties to write in this mutation.
None of the properties in the mask may have a reserved name, except for
key.
This field is ignored for delete.
If the entity already exists, only properties referenced in the mask are
updated, others are left untouched.
Properties referenced in the mask but not in the entity are deleted.
.google.datastore.v1.PropertyMask property_mask = 9;
| Returns |
| Type |
Description |
boolean |
Whether the propertyMask field is set.
|
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()
publicbooleanhasUpdateTime()
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()
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 |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicMutation.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedMutation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicMutation.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides