Datastore/src/Query/Query.php
public function kind($kinds)
    {
        if (!is_array($kinds)) {
            $kinds = [$kinds];
        }

        foreach ($kinds as $kind) {
            $this->query['kind'][] = $this->propertyName($kind);
        }

        return $this;
    }
public function kind($kinds)
    {
        if (!is_array($kinds)) {
            $kinds = [$kinds];
        }

        foreach ($kinds as $kind) {
            $this->query['kind'][] = $this->propertyName($kind);
        }

        return $this;
    }
public function kind ( $ kinds ) { if ( ! is_array ( $ kinds ) ) { $ kinds = [ $ kinds ] ; } foreach ( $ kinds as $ kind ) { $ this -> query [ 'kind' ] [ ] = $ this -> propertyName ( $ kind ) ; } return $ this ; }
Set the Kind to query.

If empty, returns entities of all kinds. Must be set in order to filter
results. While you may supply as many kinds as you wish, datastore currently
only accepts one at a time.

Example:
```
$query->kind('Person');
```

@param array|string $kinds The kind or kinds to return. Only a single kind
is currently supported.
@return Query
Set the Kind to query .