[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Module helpers (2.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.21.0 (latest)](/python/docs/reference/datastore/latest/google.cloud.datastore.helpers)\n- [2.20.2](/python/docs/reference/datastore/2.20.2/google.cloud.datastore.helpers)\n- [2.19.0](/python/docs/reference/datastore/2.19.0/google.cloud.datastore.helpers)\n- [2.18.0](/python/docs/reference/datastore/2.18.0/google.cloud.datastore.helpers)\n- [2.17.0](/python/docs/reference/datastore/2.17.0/google.cloud.datastore.helpers)\n- [2.16.1](/python/docs/reference/datastore/2.16.1/google.cloud.datastore.helpers)\n- [2.15.2](/python/docs/reference/datastore/2.15.2/google.cloud.datastore.helpers)\n- [2.14.0](/python/docs/reference/datastore/2.14.0/google.cloud.datastore.helpers)\n- [2.13.2](/python/docs/reference/datastore/2.13.2/google.cloud.datastore.helpers)\n- [2.12.0](/python/docs/reference/datastore/2.12.0/google.cloud.datastore.helpers)\n- [2.11.1](/python/docs/reference/datastore/2.11.1/google.cloud.datastore.helpers)\n- [2.10.0](/python/docs/reference/datastore/2.10.0/google.cloud.datastore.helpers)\n- [2.9.0](/python/docs/reference/datastore/2.9.0/google.cloud.datastore.helpers)\n- [2.8.3](/python/docs/reference/datastore/2.8.3/google.cloud.datastore.helpers)\n- [2.7.2](/python/docs/reference/datastore/2.7.2/google.cloud.datastore.helpers)\n- [2.6.2](/python/docs/reference/datastore/2.6.2/google.cloud.datastore.helpers)\n- [2.5.1](/python/docs/reference/datastore/2.5.1/google.cloud.datastore.helpers)\n- [2.4.0](/python/docs/reference/datastore/2.4.0/google.cloud.datastore.helpers)\n- [2.3.0](/python/docs/reference/datastore/2.3.0/google.cloud.datastore.helpers)\n- [2.2.0](/python/docs/reference/datastore/2.2.0/google.cloud.datastore.helpers)\n- [2.1.6](/python/docs/reference/datastore/2.1.6/google.cloud.datastore.helpers)\n- [2.0.1](/python/docs/reference/datastore/2.0.1/google.cloud.datastore.helpers)\n- [1.15.5](/python/docs/reference/datastore/1.15.5/google.cloud.datastore.helpers)\n- [1.14.0](/python/docs/reference/datastore/1.14.0/google.cloud.datastore.helpers)\n- [1.13.2](/python/docs/reference/datastore/1.13.2/google.cloud.datastore.helpers)\n- [1.12.0](/python/docs/reference/datastore/1.12.0/google.cloud.datastore.helpers)\n- [1.11.0](/python/docs/reference/datastore/1.11.0/google.cloud.datastore.helpers)\n- [1.10.0](/python/docs/reference/datastore/1.10.0/google.cloud.datastore.helpers)\n- [1.9.0](/python/docs/reference/datastore/1.9.0/google.cloud.datastore.helpers) \nHelper functions for dealing with Cloud Datastore's Protobuf API.\n\nThe non-private functions are part of the API.\n\nClasses\n-------\n\n### [GeoPoint](/python/docs/reference/datastore/latest/google.cloud.datastore.helpers.GeoPoint)\n\n GeoPoint(latitude, longitude)\n\nSimple container for a geo point value.\n\nModules\nFunctions\n-----------------\n\n### entity_from_protobuf\n\n entity_from_protobuf(pb)\n\nFactory method for creating an entity based on a protobuf.\n\nThe protobuf should be one returned from the Cloud Datastore\nProtobuf API.\n\n### entity_to_protobuf\n\n entity_to_protobuf(entity)\n\nConverts an entity into a protobuf.\n\n### get_read_options\n\n get_read_options(\n eventual, transaction_id, read_time=None, new_transaction_options=None\n )\n\nValidate rules for read options, and assign to the request.\n\nHelper method for `lookup()` and `run_query`.\n\n### get_transaction_options\n\n get_transaction_options(transaction)\n\nGet the transaction_id or new_transaction_options field from an active transaction object,\nfor use in get_read_options\n\nThese are mutually-exclusive fields, so one or both will be None.\n\n### key_from_protobuf\n\n key_from_protobuf(pb)\n\nFactory method for creating a key based on a protobuf.\n\nThe protobuf should be one returned from the Cloud Datastore\nProtobuf API.\n\n### set_database_id_to_request\n\n set_database_id_to_request(request, database_id=None)\n\nSet the \"database_id\" field to the request only if it was provided."]]