From 37cdb9ddf5d58183a52a586f9ba61968abf67391 Mon Sep 17 00:00:00 2001 From: Paulo Leite Moreira Date: Thu, 24 Nov 2016 15:46:48 -0200 Subject: [PATCH] Change deprecated kind(String) method to setKind(String) --- google-cloud-datastore/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-datastore/README.md b/google-cloud-datastore/README.md index 80f5d2475d92..05067b8b627a 100644 --- a/google-cloud-datastore/README.md +++ b/google-cloud-datastore/README.md @@ -90,7 +90,7 @@ import com.google.cloud.datastore.KeyFactory; Then add the following code to put an entity in Datastore. ```java -KeyFactory keyFactory = datastore.newKeyFactory().kind("Person"); +KeyFactory keyFactory = datastore.newKeyFactory().setKind("Person"); Key key = keyFactory.newKey("john.doe@gmail.com"); Entity entity = Entity.newBuilder(key) .set("name", "John Doe")