api.Measurement
*/
class Measurement extends \Google\Protobuf\Internal\Message
{
/**
* Name (user defined).
*
* Generated from protobuf field string name = 2;
*/
protected $name = '';
/**
* Kind.
*
* Generated from protobuf field .api.MeasurementKind kind = 3;
*/
protected $kind = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Name (user defined).
* @type int $kind
* Kind.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* Name (user defined).
*
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name (user defined).
*
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Kind.
*
* Generated from protobuf field .api.MeasurementKind kind = 3;
* @return int
*/
public function getKind()
{
return $this->kind;
}
/**
* Kind.
*
* Generated from protobuf field .api.MeasurementKind kind = 3;
* @param int $var
* @return $this
*/
public function setKind($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\MeasurementKind::class);
$this->kind = $var;
return $this;
}
}