Tasks/src/V2/Task.php
public function setLastAttempt($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2\Attempt::class);
        $this->last_attempt = $var;

        return $this;
    }
public function setLastAttempt($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2\Attempt::class);
        $this->last_attempt = $var;

        return $this;
    }
public function setLastAttempt ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Tasks \ V2 \ Attempt :: class ) ; $ this -> last_attempt = $ var ; return $ this ; }
Output only. The status of the task's last attempt.

Generated from protobuf field <code>.google.cloud.tasks.v2.Attempt last_attempt = 10;</code>
@param \Google\Cloud\Tasks\V2\Attempt $var
@return $this
Output only . The status of the task s last attempt .