public List<Entity> runQueryOnProperty(String kind, String property, String value) {
    // TODO change so that it's not necessary to hold the entities in a list for integration testing
    // [START runQueryOnProperty]
    StructuredQuery<Entity> query =
        Query.newEntityQueryBuilder()
            .setKind(kind)
            .setFilter(PropertyFilter.eq(property, value))
            .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 runQueryOnProperty]
    return entities;
  }
public List < Entity > runQueryOnProperty ( String kind , String property , String value ) { StructuredQuery < Entity > query = Query . newEntityQueryBuilder ( ) . setKind ( kind ) . setFilter ( PropertyFilter . eq ( property , value ) ) . build ( ) ; QueryResults < Entity > results = datastore . run ( query ) ; List < Entity > entities = Lists . newArrayList ( ) ; while ( results . hasNext ( ) ) { Entity result = results . next ( ) ; entities . add ( result ) ; } return entities ; }
[VARIABLE "my_value"]