Logging/src/V2/LogEntry.php
public function setSourceLocation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntrySourceLocation::class);
        $this->source_location = $var;

        return $this;
    }
public function setSourceLocation($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntrySourceLocation::class);
        $this->source_location = $var;

        return $this;
    }
public function setSourceLocation ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Logging \ V2 \ LogEntrySourceLocation :: class ) ; $ this -> source_location = $ var ; return $ this ; }
Optional. Source code location information associated with the log entry,
if any.

Generated from protobuf field <code>.google.logging.v2.LogEntrySourceLocation source_location = 23;</code>
@param \Google\Cloud\Logging\V2\LogEntrySourceLocation $var
@return $this
Optional . Source code location information associated with the log entry if any .