mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
100 lines
2.0 KiB
PHP
Vendored
100 lines
2.0 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/device.proto
|
|
|
|
namespace Chirpstack\Api;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>api.DeviceState</code>
|
|
*/
|
|
class DeviceState extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Value.
|
|
*
|
|
* Generated from protobuf field <code>string value = 3;</code>
|
|
*/
|
|
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 <code>string name = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Value.
|
|
*
|
|
* Generated from protobuf field <code>string value = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
/**
|
|
* Value.
|
|
*
|
|
* Generated from protobuf field <code>string value = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setValue($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->value = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|