The kind of the entity.
A kind matching regex .* is reserved/read-only.
A kind must not contain more than 1500 bytes when UTF-8 encoded.
Cannot be "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
The kind of the entity.
A kind matching regex .* is reserved/read-only.
A kind must not contain more than 1500 bytes when UTF-8 encoded.
Cannot be "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
The name of the entity.
A name matching regex .* is reserved/read-only.
A name must not be more than 1500 bytes when UTF-8 encoded.
Cannot be "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
The name of the entity.
A name matching regex .* is reserved/read-only.
A name must not be more than 1500 bytes when UTF-8 encoded.
Cannot be "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
The name of the entity.
A name matching regex .* is reserved/read-only.
A name must not be more than 1500 bytes when UTF-8 encoded.
Cannot be "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
[[["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 Key.PathElementOrBuilder (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.Key.PathElementOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastore.v1.Key.PathElementOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastore.v1.Key.PathElementOrBuilder) \n\n public static interface Key.PathElementOrBuilder 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### getId()\n\n public abstract long getId()\n\nThe auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.\n\n`int64 id = 2;`\n\n### getIdTypeCase()\n\n public abstract Key.PathElement.IdTypeCase getIdTypeCase()\n\n### getKind()\n\n public abstract String getKind()\n\nThe kind of the entity.\nA kind matching regex **.*** is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.\nMust be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are\nencoded as **bytes\u003cX\u003e** where `\u003cX\u003e` is the base-64 encoding of the\nbytes.\n\n`string kind = 1;`\n\n### getKindBytes()\n\n public abstract ByteString getKindBytes()\n\nThe kind of the entity.\nA kind matching regex **.*** is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.\nMust be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are\nencoded as **bytes\u003cX\u003e** where `\u003cX\u003e` is the base-64 encoding of the\nbytes.\n\n`string kind = 1;`\n\n### getName()\n\n public abstract String getName()\n\nThe name of the entity.\nA name matching regex **.*** is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.\nMust be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are\nencoded as **bytes\u003cX\u003e** where `\u003cX\u003e` is the base-64 encoding of the\nbytes.\n\n`string name = 3;`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nThe name of the entity.\nA name matching regex **.*** is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.\nMust be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are\nencoded as **bytes\u003cX\u003e** where `\u003cX\u003e` is the base-64 encoding of the\nbytes.\n\n`string name = 3;`\n\n### hasId()\n\n public abstract boolean hasId()\n\nThe auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.\n\n`int64 id = 2;`\n\n### hasName()\n\n public abstract boolean hasName()\n\nThe name of the entity.\nA name matching regex **.*** is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.\nMust be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are\nencoded as **bytes\u003cX\u003e** where `\u003cX\u003e` is the base-64 encoding of the\nbytes.\n\n`string name = 3;`"]]