A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.
A partition ID contains several dimensions: project ID and namespace ID.
Partition dimensions:
May be "".
Must be valid UTF-8 bytes.
Must have values that match regex [A-Za-z\d\.\-_]{1,100} If the value of any dimension matches regex __.*__, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts.
Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state.
JSON representation
{"projectId": string,"namespaceId": string,}
Fields
projectId
string
The ID of the project to which the entities belong.
namespaceId
string
If not empty, the ID of the namespace to which the entities belong.
[[["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-04-30 UTC."],[[["\u003cp\u003eA partition ID groups entities by project and namespace, with the namespace ID potentially being empty.\u003c/p\u003e\n"],["\u003cp\u003ePartition IDs consist of a project ID and a namespace ID, both of which must be valid UTF-8 bytes matching the regex \u003ccode\u003e[A-Za-z\\d\\.\\-_]{1,100}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePartition IDs with dimensions matching \u003ccode\u003e__.*__\u003c/code\u003e are considered reserved/read-only and are forbidden in specific contexts.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of a partition ID includes \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003enamespaceId\u003c/code\u003e strings, indicating the project and namespace to which the entities belong respectively.\u003c/p\u003e\n"]]],[],null,["# PartitionId\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.\n\nA partition ID contains several dimensions: project ID and namespace ID.\n\nPartition dimensions:\n\n- May be `\"\"`.\n- Must be valid UTF-8 bytes.\n- Must have values that match regex `[A-Za-z\\d\\.\\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts.\n\nForeign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state."]]