Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.


An immutable filter predicate that constrains a single property.

Inherits From: FilterPredicate, expected_type

op A string representing the operator to use.
value A entity_pb2.Property, the property and value to compare against.

datastore_errors.BadArgumentError if op has an unsupported value or value is not an entity_pb2.Property.





View source

Applies the filter predicate to the given entity.

entity the datastore_pb.EntityProto to test.

True if the given entity matches the filter, False otherwise.


View source

Return self==value.


View source

Return self!=value.