diff --git a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java index 1817cee78de..2a666b26a9e 100644 --- a/datastore/src/main/java/com/google/datastore/snippets/Concepts.java +++ b/datastore/src/main/java/com/google/datastore/snippets/Concepts.java @@ -210,7 +210,8 @@ public void testProperties() { .set("done", false) .set("priority", 4) .set("percent_complete", 10.0) - .set("description", "Learn Cloud Datastore") + .set("description", + StringValue.builder("Learn Cloud Datastore").excludeFromIndexes(true).build()) .build(); // [END properties] assertValidEntity(task);