Skip to content

Commit 37cdb9d

Browse files
Change deprecated kind(String) method to setKind(String)
1 parent 3c24d90 commit 37cdb9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-datastore/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ import com.google.cloud.datastore.KeyFactory;
9090
Then add the following code to put an entity in Datastore.
9191

9292
```java
93-
KeyFactory keyFactory = datastore.newKeyFactory().kind("Person");
93+
KeyFactory keyFactory = datastore.newKeyFactory().setKind("Person");
9494
Key key = keyFactory.newKey("[email protected]");
9595
Entity entity = Entity.newBuilder(key)
9696
.set("name", "John Doe")

0 commit comments

Comments
 (0)