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.
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 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.
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.
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.
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.
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.
[[["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."],[],[],null,["# Interface EntityOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastore.v1.EntityOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastore.v1.EntityOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastore.v1.EntityOrBuilder) \n\n public interface EntityOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsProperties(String key)\n\n public abstract boolean containsProperties(String key)\n\nThe entity's properties.\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`map\u003cstring, .google.events.cloud.datastore.v1.Value\u003e properties = 3;`\n\n### getKey()\n\n public abstract Key getKey()\n\nThe entity's key.\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`.google.events.cloud.datastore.v1.Key key = 1;`\n\n### getKeyOrBuilder()\n\n public abstract KeyOrBuilder getKeyOrBuilder()\n\nThe entity's key.\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`.google.events.cloud.datastore.v1.Key key = 1;`\n\n### getProperties()\n\n public abstract Map\u003cString,Value\u003e getProperties()\n\nUse [#getPropertiesMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastore.v1.EntityOrBuilder#com_google_events_cloud_datastore_v1_EntityOrBuilder_getPropertiesMap__) instead.\n\n### getPropertiesCount()\n\n public abstract int getPropertiesCount()\n\nThe entity's properties.\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`map\u003cstring, .google.events.cloud.datastore.v1.Value\u003e properties = 3;`\n\n### getPropertiesMap()\n\n public abstract Map\u003cString,Value\u003e getPropertiesMap()\n\nThe entity's properties.\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`map\u003cstring, .google.events.cloud.datastore.v1.Value\u003e properties = 3;`\n\n### getPropertiesOrDefault(String key, Value defaultValue)\n\n public abstract Value getPropertiesOrDefault(String key, Value defaultValue)\n\nThe entity's properties.\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`map\u003cstring, .google.events.cloud.datastore.v1.Value\u003e properties = 3;`\n\n### getPropertiesOrThrow(String key)\n\n public abstract Value getPropertiesOrThrow(String key)\n\nThe entity's properties.\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`map\u003cstring, .google.events.cloud.datastore.v1.Value\u003e properties = 3;`\n\n### hasKey()\n\n public abstract boolean hasKey()\n\nThe entity's key.\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`.google.events.cloud.datastore.v1.Key key = 1;`"]]