The entity's key. An entity must have a key, unless otherwise documented (for example, an entity in Value.entity_value may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
The entity's properties. The map's keys are property names. A property name matching regex __.*__ is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
getKey
The entity's key.
An entity must have a key, unless otherwise documented (for example,
an entity in Value.entity_value may have no key).
An entity's kind is its key path's last element's kind,
or null if it has no key.
An entity must have a key, unless otherwise documented (for example,
an entity in Value.entity_value may have no key).
An entity's kind is its key path's last element's kind,
or null if it has no key.
The map's keys are property names.
A property name matching regex __.*__ is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
The map's keys are property names.
A property name matching regex __.*__ is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
[[["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-09-04 UTC."],[],[],null,["# Cloud Datastore V1 Client - Class Entity (1.33.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.33.1 (latest)](/php/docs/reference/cloud-datastore/latest/V1.Entity)\n- [1.33.0](/php/docs/reference/cloud-datastore/1.33.0/V1.Entity)\n- [1.32.3](/php/docs/reference/cloud-datastore/1.32.3/V1.Entity)\n- [1.31.0](/php/docs/reference/cloud-datastore/1.31.0/V1.Entity)\n- [1.30.0](/php/docs/reference/cloud-datastore/1.30.0/V1.Entity)\n- [1.29.2](/php/docs/reference/cloud-datastore/1.29.2/V1.Entity)\n- [1.28.2](/php/docs/reference/cloud-datastore/1.28.2/V1.Entity)\n- [1.26.0](/php/docs/reference/cloud-datastore/1.26.0/V1.Entity)\n- [1.25.0](/php/docs/reference/cloud-datastore/1.25.0/V1.Entity)\n- [1.24.4](/php/docs/reference/cloud-datastore/1.24.4/V1.Entity)\n- [1.23.0](/php/docs/reference/cloud-datastore/1.23.0/V1.Entity)\n- [1.22.1](/php/docs/reference/cloud-datastore/1.22.1/V1.Entity)\n- [1.21.2](/php/docs/reference/cloud-datastore/1.21.2/V1.Entity)\n- [1.19.0](/php/docs/reference/cloud-datastore/1.19.0/V1.Entity)\n- [1.18.1](/php/docs/reference/cloud-datastore/1.18.1/V1.Entity)\n- [1.17.1](/php/docs/reference/cloud-datastore/1.17.1/V1.Entity) \nReference documentation and code samples for the Cloud Datastore V1 Client class Entity.\n\nA Datastore data object.\n\nMust not exceed 1 MiB - 4 bytes.\n\nGenerated from protobuf message `google.datastore.v1.Entity`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nThe entity's key.\n\nAn entity must have a key, unless otherwise documented (for example,\nan entity in `Value.entity_value` may have no key).\nAn entity's kind is its key path's last element's kind,\nor null if it has no key.\n\n### hasKey\n\n### clearKey\n\n### setKey\n\nThe entity's key.\n\nAn entity must have a key, unless otherwise documented (for example,\nan entity in `Value.entity_value` may have no key).\nAn entity's kind is its key path's last element's kind,\nor null if it has no key.\n\n### getProperties\n\nThe entity's properties.\n\nThe map's keys are property names.\nA property name matching regex `__.*__` is reserved.\nA reserved property name is forbidden in certain documented contexts.\nThe map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot\nbe empty.\n\n### setProperties\n\nThe entity's properties.\n\nThe map's keys are property names.\nA property name matching regex `__.*__` is reserved.\nA reserved property name is forbidden in certain documented contexts.\nThe map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot\nbe empty."]]