File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
datastore/src/test/java/com/google/datastore/snippets Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33
33
import com .google .cloud .datastore .IncompleteKey ;
34
34
import com .google .cloud .datastore .Key ;
35
35
import com .google .cloud .datastore .KeyFactory ;
36
+ import com .google .cloud .datastore .ListValue ;
36
37
import com .google .cloud .datastore .PathElement ;
37
38
import com .google .cloud .datastore .ProjectionEntity ;
38
39
import com .google .cloud .datastore .Query ;
@@ -224,7 +225,7 @@ public void testArrayValue() {
224
225
// [START datastore_array_value]
225
226
Entity task = Entity .newBuilder (taskKey )
226
227
.set ("tags" , "fun" , "programming" )
227
- .set ("collaborators" , "alice" , "bob" )
228
+ .set ("collaborators" , ListValue . of ( "alice" , "bob" ) )
228
229
.build ();
229
230
// [END datastore_array_value]
230
231
assertValidEntity (task );
You can’t perform that action at this time.
0 commit comments