proto.api.ChangeEnableReq
*/
class ChangeEnableReq extends \Google\Protobuf\Internal\Message
{
/**
* 机柜id
*
* Generated from protobuf field repeated string dev_ids = 1;
*/
private $dev_ids;
/**
* 状态 1启用 2禁用
*
* Generated from protobuf field int32 enable = 2;
*/
protected $enable = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\RepeatedField $dev_ids
* 机柜id
* @type int $enable
* 状态 1启用 2禁用
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\Cabinet::initOnce();
parent::__construct($data);
}
/**
* 机柜id
*
* Generated from protobuf field repeated string dev_ids = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getDevIds()
{
return $this->dev_ids;
}
/**
* 机柜id
*
* Generated from protobuf field repeated string dev_ids = 1;
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDevIds($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->dev_ids = $arr;
return $this;
}
/**
* 状态 1启用 2禁用
*
* Generated from protobuf field int32 enable = 2;
* @return int
*/
public function getEnable()
{
return $this->enable;
}
/**
* 状态 1启用 2禁用
*
* Generated from protobuf field int32 enable = 2;
* @param int $var
* @return $this
*/
public function setEnable($var)
{
GPBUtil::checkInt32($var);
$this->enable = $var;
return $this;
}
}