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

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

        return $this;
    }
public function setEntityResultType ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Datastore \ V1 \ EntityResult_ResultType :: class ) ; $ this -> entity_result_type = $ var ; return $ this ; }
The result type for every entity in `entity_results`.

Generated from protobuf field <code>.google.datastore.v1.EntityResult.ResultType entity_result_type = 1;</code>
@param int $var
@return $this
The result type for every entity in entity_results .