public function setMoreResults($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\QueryResultBatch_MoreResultsType::class);
        $this->more_results = $var;

        return $this;
    }