grpc.testing.ReconnectInfo
*/
class ReconnectInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bool passed = 1;
*/
protected $passed = false;
/**
* Generated from protobuf field repeated int32 backoff_ms = 2;
*/
private $backoff_ms;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type bool $passed
* @type int[]|\Google\Protobuf\Internal\RepeatedField $backoff_ms
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field bool passed = 1;
* @return bool
*/
public function getPassed()
{
return $this->passed;
}
/**
* Generated from protobuf field bool passed = 1;
* @param bool $var
* @return $this
*/
public function setPassed($var)
{
GPBUtil::checkBool($var);
$this->passed = $var;
return $this;
}
/**
* Generated from protobuf field repeated int32 backoff_ms = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getBackoffMs()
{
return $this->backoff_ms;
}
/**
* Generated from protobuf field repeated int32 backoff_ms = 2;
* @param int[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBackoffMs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->backoff_ms = $arr;
return $this;
}
}