public sealed class PartitionId : IMessage<PartitionId>, IEquatable<PartitionId>, IDeepCloneable<PartitionId>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class PartitionId.
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.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003ePartitionId\u003c/code\u003e class within the Google Cloud Datastore v1 API for .NET, with the most recent version being 4.15.0 and the current page displaying information from 4.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionId\u003c/code\u003e class is used to identify a group of entities by project and namespace, where the namespace ID may be left empty.\u003c/p\u003e\n"],["\u003cp\u003ePartition dimensions, such as project ID and namespace ID, must be valid UTF-8 bytes and match a specific regex pattern, and if they contain a value that match \u003ccode\u003e__.*__\u003c/code\u003e then it is considered a reserved partition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionId\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and has constructors for creating instances with or without project and namespace IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003ePartitionId\u003c/code\u003e contains three properties, \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eNamespaceId\u003c/code\u003e, and \u003ccode\u003eProjectId\u003c/code\u003e, which are strings to represent the ID of the database, namespace, and project of the entities.\u003c/p\u003e\n"]]],[],null,[]]