public function setRepresentative($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent::class);
        $this->representative = $var;

        return $this;
    }