chirpstack/api/php/generated/Chirpstack/Gateway/RawPacketForwarderEvent.php
2024-06-25 12:27:28 +01:00

142 lines
3.3 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gw/gw.proto
namespace Chirpstack\Gateway;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* RawPacketForwarderEvent contains a raw packet-forwarder event.
* It can be used to access packet-forwarder features that are not (fully)
* integrated with the ChirpStack Gateway Bridge.
*
* Generated from protobuf message <code>gw.RawPacketForwarderEvent</code>
*/
class RawPacketForwarderEvent extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
*/
protected $gateway_id_legacy = '';
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 4;</code>
*/
protected $gateway_id = '';
/**
* Payload contains the raw payload.
*
* Generated from protobuf field <code>bytes payload = 3;</code>
*/
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 <code>bytes gateway_id_legacy = 1;</code>
* @return string
*/
public function getGatewayIdLegacy()
{
return $this->gateway_id_legacy;
}
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
* @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 <code>string gateway_id = 4;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 4;</code>
* @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 <code>bytes payload = 3;</code>
* @return string
*/
public function getPayload()
{
return $this->payload;
}
/**
* Payload contains the raw payload.
*
* Generated from protobuf field <code>bytes payload = 3;</code>
* @param string $var
* @return $this
*/
public function setPayload($var)
{
GPBUtil::checkString($var, False);
$this->payload = $var;
return $this;
}
}