Dialogflow/src/V2/SearchAgentsResponse.php
public function setAgents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Agent::class);
        $this->agents = $arr;

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

        return $this;
    }
public function setAgents ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dialogflow \ V2 \ Agent :: class ) ; $ this -> agents = $ arr ; return $ this ; }
The list of agents. There will be a maximum number of items returned based
on the page_size field in the request.

Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Agent agents = 1;</code>
@param \Google\Cloud\Dialogflow\V2\Agent[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The list of agents . There will be a maximum number of items returned based on the page_size field in the request .