ErrorReporting/src/V1beta1/ErrorContext.php
public function setReportLocation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\SourceLocation::class);
        $this->report_location = $var;

        return $this;
    }
public function setReportLocation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\SourceLocation::class);
        $this->report_location = $var;

        return $this;
    }
public function setReportLocation ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ SourceLocation :: class ) ; $ this -> report_location = $ var ; return $ this ; }
The location in the source code where the decision was made to
report the error, usually the place where it was logged.
For a logged exception this would be the source line where the
exception is logged, usually close to the place where it was
caught. This value is in contrast to `Exception.cause_location`,
which describes the source line where the exception was thrown.

Generated from protobuf field <code>.google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3;</code>
@param \Google\Cloud\ErrorReporting\V1beta1\SourceLocation $var
@return $this
The location in the source code where the decision was made to report the error usually the place where it was logged . For a logged exception this would be the source line where the exception is logged usually close to the place where it was caught . This value is in contrast to Exception . cause_location which describes the source line where the exception was thrown .