We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeff0ae commit d610131Copy full SHA for d610131
samples/snippets/src/test/java/com/example/datastore/RegionalEndpointIT.java
@@ -56,9 +56,9 @@ public void testRegionalEndpoint() throws Exception {
56
// The kind for the new entity
57
String kind = "Task";
58
// The name/ID for the new entity
59
- String name = "sampletask1";
+ long id = 5072090633863168L;
60
// The Cloud Datastore key for the new entity
61
- Key taskKey = datastoreWithEndpoint.newKeyFactory().setKind(kind).newKey(name);
+ Key taskKey = datastoreWithEndpoint.newKeyFactory().setKind(kind).newKey(id);
62
63
// Prepares the new entity
64
Entity task = Entity.newBuilder(taskKey).set("description", "Buy milk").build();
0 commit comments