gw.RawPacketForwarderEvent
*/
class RawPacketForwarderEvent extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field bytes gateway_id_legacy = 1;
*/
protected $gateway_id_legacy = '';
/**
* Gateway ID.
*
* Generated from protobuf field string gateway_id = 4;
*/
protected $gateway_id = '';
/**
* Payload contains the raw payload.
*
* Generated from protobuf field bytes payload = 3;
*/
protected $payload = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id_legacy
* Gateway ID.
* Deprecated: use gateway_id.
* @type string $gateway_id
* Gateway ID.
* @type string $payload
* Payload contains the raw payload.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field bytes gateway_id_legacy = 1;
* @return string
*/
public function getGatewayIdLegacy()
{
return $this->gateway_id_legacy;
}
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field bytes gateway_id_legacy = 1;
* @param string $var
* @return $this
*/
public function setGatewayIdLegacy($var)
{
GPBUtil::checkString($var, False);
$this->gateway_id_legacy = $var;
return $this;
}
/**
* Gateway ID.
*
* Generated from protobuf field string gateway_id = 4;
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field string gateway_id = 4;
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Payload contains the raw payload.
*
* Generated from protobuf field bytes payload = 3;
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* Payload contains the raw payload.
*
* Generated from protobuf field bytes payload = 3;
* @param string $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkString($var, False);
$this->payload = $var;
return $this;
}
}