api.DeviceState */ class DeviceState extends \Google\Protobuf\Internal\Message { /** * Name. * * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Value. * * Generated from protobuf field string value = 3; */ protected $value = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name. * @type string $value * Value. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * Name. * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * Name. * * 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; } /** * Value. * * Generated from protobuf field string value = 3; * @return string */ public function getValue() { return $this->value; } /** * Value. * * Generated from protobuf field string value = 3; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } }