Each RPC normalizes the partition IDs of the keys in its input entities,
and always returns entities with keys with normalized partition IDs.
This applies to all keys and entities, including those in values, except keys
with both an empty path and an empty or unset partition ID. Normalization of
input keys sets the project ID (if not already set) to the project ID from
the request.
[[["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,["# Class DatastoreGrpc (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.DatastoreGrpc)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.DatastoreGrpc)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.DatastoreGrpc)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.DatastoreGrpc)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.DatastoreGrpc)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.DatastoreGrpc)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.DatastoreGrpc)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.DatastoreGrpc)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.DatastoreGrpc)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.DatastoreGrpc)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.DatastoreGrpc)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.DatastoreGrpc)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.DatastoreGrpc)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.DatastoreGrpc)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.DatastoreGrpc)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.DatastoreGrpc) \n\n public final class DatastoreGrpc\n\nEach RPC normalizes the partition IDs of the keys in its input entities,\nand always returns entities with keys with normalized partition IDs.\nThis applies to all keys and entities, including those in values, except keys\nwith both an empty path and an empty or unset partition ID. Normalization of\ninput keys sets the project ID (if not already set) to the project ID from\nthe request. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e DatastoreGrpc \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### SERVICE_NAME\n\n public static final String SERVICE_NAME\n\nStatic Methods\n--------------\n\n### bindService(DatastoreGrpc.AsyncService service)\n\n public static final ServerServiceDefinition bindService(DatastoreGrpc.AsyncService service)\n\n### getAllocateIdsMethod()\n\n public static MethodDescriptor\u003cAllocateIdsRequest,AllocateIdsResponse\u003e getAllocateIdsMethod()\n\n### getBeginTransactionMethod()\n\n public static MethodDescriptor\u003cBeginTransactionRequest,BeginTransactionResponse\u003e getBeginTransactionMethod()\n\n### getCommitMethod()\n\n public static MethodDescriptor\u003cCommitRequest,CommitResponse\u003e getCommitMethod()\n\n### getLookupMethod()\n\n public static MethodDescriptor\u003cLookupRequest,LookupResponse\u003e getLookupMethod()\n\n### getReserveIdsMethod()\n\n public static MethodDescriptor\u003cReserveIdsRequest,ReserveIdsResponse\u003e getReserveIdsMethod()\n\n### getRollbackMethod()\n\n public static MethodDescriptor\u003cRollbackRequest,RollbackResponse\u003e getRollbackMethod()\n\n### getRunAggregationQueryMethod()\n\n public static MethodDescriptor\u003cRunAggregationQueryRequest,RunAggregationQueryResponse\u003e getRunAggregationQueryMethod()\n\n### getRunQueryMethod()\n\n public static MethodDescriptor\u003cRunQueryRequest,RunQueryResponse\u003e getRunQueryMethod()\n\n### getServiceDescriptor()\n\n public static ServiceDescriptor getServiceDescriptor()\n\n### newBlockingStub(Channel channel)\n\n public static DatastoreGrpc.DatastoreBlockingStub newBlockingStub(Channel channel)\n\nCreates a new blocking-style stub that supports unary and streaming output calls on the service\n\n### newBlockingV2Stub(Channel channel)\n\n public static DatastoreGrpc.DatastoreBlockingV2Stub newBlockingV2Stub(Channel channel)\n\nCreates a new blocking-style stub that supports all types of calls on the service\n\n### newFutureStub(Channel channel)\n\n public static DatastoreGrpc.DatastoreFutureStub newFutureStub(Channel channel)\n\nCreates a new ListenableFuture-style stub that supports unary calls on the service\n\n### newStub(Channel channel)\n\n public static DatastoreGrpc.DatastoreStub newStub(Channel channel)\n\nCreates a new async stub that supports all call types for the service"]]