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

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

        return $this;
    }
public function setContext ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ ErrorContext :: class ) ; $ this -> context = $ var ; return $ this ; }
Data about the context in which the error occurred.

Generated from protobuf field <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code>
@param \Google\Cloud\ErrorReporting\V1beta1\ErrorContext $var
@return $this
Data about the context in which the error occurred .