Dialogflow/src/V2/QueryParameters.php
public function setContexts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Context::class);
        $this->contexts = $arr;

        return $this;
    }
public function setContexts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Context::class);
        $this->contexts = $arr;

        return $this;
    }
public function setContexts ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dialogflow \ V2 \ Context :: class ) ; $ this -> contexts = $ arr ; return $ this ; }
Optional. The collection of contexts to be activated before this query is
executed.

Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Context contexts = 3;</code>
@param \Google\Cloud\Dialogflow\V2\Context[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
Optional . The collection of contexts to be activated before this query is executed .