ErrorReporting/src/V1beta1/ListEventsResponse.php
public function setErrorEvents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent::class);
        $this->error_events = $arr;

        return $this;
    }
public function setErrorEvents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent::class);
        $this->error_events = $arr;

        return $this;
    }
public function setErrorEvents ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ ErrorEvent :: class ) ; $ this -> error_events = $ arr ; return $ this ; }
The error events which match the given request.

Generated from protobuf field <code>repeated .google.devtools.clouderrorreporting.v1beta1.ErrorEvent error_events = 1;</code>
@param \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The error events which match the given request .