google.cloud.dialogflow.v2.IntentBatch */ class IntentBatch extends \Google\Protobuf\Internal\Message { /** * A collection of intents. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 1; */ private $intents; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\Intent::initOnce(); parent::__construct(); } /** * A collection of intents. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIntents() { return $this->intents; } /** * A collection of intents. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent intents = 1; * @param \Google\Cloud\Dialogflow\V2\Intent[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIntents($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent::class); $this->intents = $arr; return $this; } }