Stay organized with collections Save and categorize content based on your preferences.
Helper functions for dealing with Cloud Datastore’s Protobuf API.
The non-private functions are part of the API.
class google.cloud.datastore.helpers.GeoPoint(latitude, longitude)Bases: object
Simple container for a geo point value.
_eq_(other)Compare two geo points for equality.
Return type
Returns
True if the points compare equal, else False.
Compare two geo points for inequality.
Return type
Returns
False if the points compare equal, else True.
Convert the current object to protobuf.
Return type
google.type.latlng_pb2.LatLng
.
Returns
The current point as a protobuf.
Factory method for creating an entity based on a protobuf.
The protobuf should be one returned from the Cloud Datastore Protobuf API.
Parameters
pb (entity_pb2.Entity
) – The Protobuf representing the entity.
Return type
Returns
The entity derived from the protobuf.
Converts an entity into a protobuf.
Parameters
entity (google.cloud.datastore.entity.Entity
) – The entity to be turned into a protobuf.
Return type
entity_pb2.Entity
Returns
The protobuf representing the entity.
Validate rules for read options, and assign to the request.
Helper method for lookup()
and run_query
.
Parameters
Return type
datastore_pb2.ReadOptions
Returns
The read options corresponding to the inputs.
Raises
ValueError
if eventual
is True
and the transaction_id
is not None
.
Factory method for creating a key based on a protobuf.
The protobuf should be one returned from the Cloud Datastore Protobuf API.
Parameters
pb (entity_pb2.Key
) – The Protobuf representing the key.
Return type
Returns
a new Key instance
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4