Dialogflow/src/V2/Intent.php
public function setEvents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->events = $arr;

        return $this;
    }
public function setEvents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->events = $arr;

        return $this;
    }
public function setEvents ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> events = $ arr ; return $ this ; }
Optional. The collection of event names that trigger the intent.
If the collection of input contexts is not empty, all of the contexts must
be present in the active user session for an event to trigger this intent.

Generated from protobuf field <code>repeated string events = 8;</code>
@param string[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Optional . The collection of event names that trigger the intent . If the collection of input contexts is not empty all of the contexts must be present in the active user session for an event to trigger this intent .