public function setEntityResultType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\EntityResult_ResultType::class);
        $this->entity_result_type = $var;

        return $this;
    }