code: public List<Entity> runQuery(String kind) {
      // TODO change so that it's not necessary to hold the entities in a list for integration testing
      // [START runQuery]
      StructuredQuery<Entity> query = Query.newEntityQueryBuilder().setKind(kind).build();
      QueryResults<Entity> results = datastore.run(query);
      List<Entity> entities = Lists.newArrayList();
      while (results.hasNext()) {
        Entity result = results.next();
        // do something with result
        entities.add(result);
      }
      // [END runQuery]
      return entities;
    }
docs: [VARIABLE "my_kind"]