Bump version to 4.9.0-test.2

This commit is contained in:
Orne Brocaar
2024-06-25 12:27:28 +01:00
parent 3f1a47e1e2
commit 68473906c9
388 changed files with 54509 additions and 105 deletions

View File

@ -0,0 +1,133 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/api_request.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.ApiRequestLog</code>
*/
class ApiRequestLog extends \Google\Protobuf\Internal\Message
{
/**
* API service name.
*
* Generated from protobuf field <code>string service = 1;</code>
*/
protected $service = '';
/**
* API method name.
*
* Generated from protobuf field <code>string method = 2;</code>
*/
protected $method = '';
/**
* Metadata.
*
* Generated from protobuf field <code>map<string, string> metadata = 3;</code>
*/
private $metadata;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $service
* API service name.
* @type string $method
* API method name.
* @type array|\Google\Protobuf\Internal\MapField $metadata
* Metadata.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\ApiRequest::initOnce();
parent::__construct($data);
}
/**
* API service name.
*
* Generated from protobuf field <code>string service = 1;</code>
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* API service name.
*
* Generated from protobuf field <code>string service = 1;</code>
* @param string $var
* @return $this
*/
public function setService($var)
{
GPBUtil::checkString($var, True);
$this->service = $var;
return $this;
}
/**
* API method name.
*
* Generated from protobuf field <code>string method = 2;</code>
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* API method name.
*
* Generated from protobuf field <code>string method = 2;</code>
* @param string $var
* @return $this
*/
public function setMethod($var)
{
GPBUtil::checkString($var, True);
$this->method = $var;
return $this;
}
/**
* Metadata.
*
* Generated from protobuf field <code>map<string, string> metadata = 3;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Metadata.
*
* Generated from protobuf field <code>map<string, string> metadata = 3;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setMetadata($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->metadata = $arr;
return $this;
}
}

View File

@ -0,0 +1,347 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/backend_interfaces.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.BackendInterfacesRequest</code>
*/
class BackendInterfacesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Sender ID.
*
* Generated from protobuf field <code>string sender_id = 1;</code>
*/
protected $sender_id = '';
/**
* Receiver ID.
*
* Generated from protobuf field <code>string receiver_id = 2;</code>
*/
protected $receiver_id = '';
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 3;</code>
*/
protected $time = null;
/**
* Transaction ID.
*
* Generated from protobuf field <code>uint32 transaction_id = 4;</code>
*/
protected $transaction_id = 0;
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
*/
protected $message_type = '';
/**
* Result code.
*
* Generated from protobuf field <code>string result_code = 6;</code>
*/
protected $result_code = '';
/**
* Request body.
*
* Generated from protobuf field <code>string request_body = 7;</code>
*/
protected $request_body = '';
/**
* Request error.
*
* Generated from protobuf field <code>string request_error = 8;</code>
*/
protected $request_error = '';
/**
* Response body.
*
* Generated from protobuf field <code>string response_body = 9;</code>
*/
protected $response_body = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $sender_id
* Sender ID.
* @type string $receiver_id
* Receiver ID.
* @type \Google\Protobuf\Timestamp $time
* Timestamp.
* @type int $transaction_id
* Transaction ID.
* @type string $message_type
* Message-type.
* @type string $result_code
* Result code.
* @type string $request_body
* Request body.
* @type string $request_error
* Request error.
* @type string $response_body
* Response body.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\BackendInterfaces::initOnce();
parent::__construct($data);
}
/**
* Sender ID.
*
* Generated from protobuf field <code>string sender_id = 1;</code>
* @return string
*/
public function getSenderId()
{
return $this->sender_id;
}
/**
* Sender ID.
*
* Generated from protobuf field <code>string sender_id = 1;</code>
* @param string $var
* @return $this
*/
public function setSenderId($var)
{
GPBUtil::checkString($var, True);
$this->sender_id = $var;
return $this;
}
/**
* Receiver ID.
*
* Generated from protobuf field <code>string receiver_id = 2;</code>
* @return string
*/
public function getReceiverId()
{
return $this->receiver_id;
}
/**
* Receiver ID.
*
* Generated from protobuf field <code>string receiver_id = 2;</code>
* @param string $var
* @return $this
*/
public function setReceiverId($var)
{
GPBUtil::checkString($var, True);
$this->receiver_id = $var;
return $this;
}
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 3;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getTime()
{
return $this->time;
}
public function hasTime()
{
return isset($this->time);
}
public function clearTime()
{
unset($this->time);
}
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 3;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->time = $var;
return $this;
}
/**
* Transaction ID.
*
* Generated from protobuf field <code>uint32 transaction_id = 4;</code>
* @return int
*/
public function getTransactionId()
{
return $this->transaction_id;
}
/**
* Transaction ID.
*
* Generated from protobuf field <code>uint32 transaction_id = 4;</code>
* @param int $var
* @return $this
*/
public function setTransactionId($var)
{
GPBUtil::checkUint32($var);
$this->transaction_id = $var;
return $this;
}
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
* @return string
*/
public function getMessageType()
{
return $this->message_type;
}
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
* @param string $var
* @return $this
*/
public function setMessageType($var)
{
GPBUtil::checkString($var, True);
$this->message_type = $var;
return $this;
}
/**
* Result code.
*
* Generated from protobuf field <code>string result_code = 6;</code>
* @return string
*/
public function getResultCode()
{
return $this->result_code;
}
/**
* Result code.
*
* Generated from protobuf field <code>string result_code = 6;</code>
* @param string $var
* @return $this
*/
public function setResultCode($var)
{
GPBUtil::checkString($var, True);
$this->result_code = $var;
return $this;
}
/**
* Request body.
*
* Generated from protobuf field <code>string request_body = 7;</code>
* @return string
*/
public function getRequestBody()
{
return $this->request_body;
}
/**
* Request body.
*
* Generated from protobuf field <code>string request_body = 7;</code>
* @param string $var
* @return $this
*/
public function setRequestBody($var)
{
GPBUtil::checkString($var, True);
$this->request_body = $var;
return $this;
}
/**
* Request error.
*
* Generated from protobuf field <code>string request_error = 8;</code>
* @return string
*/
public function getRequestError()
{
return $this->request_error;
}
/**
* Request error.
*
* Generated from protobuf field <code>string request_error = 8;</code>
* @param string $var
* @return $this
*/
public function setRequestError($var)
{
GPBUtil::checkString($var, True);
$this->request_error = $var;
return $this;
}
/**
* Response body.
*
* Generated from protobuf field <code>string response_body = 9;</code>
* @return string
*/
public function getResponseBody()
{
return $this->response_body;
}
/**
* Response body.
*
* Generated from protobuf field <code>string response_body = 9;</code>
* @param string $var
* @return $this
*/
public function setResponseBody($var)
{
GPBUtil::checkString($var, True);
$this->response_body = $var;
return $this;
}
}

View File

@ -0,0 +1,391 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/frame.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.DownlinkFrameLog</code>
*/
class DownlinkFrameLog extends \Google\Protobuf\Internal\Message
{
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 1;</code>
*/
protected $time = null;
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 2;</code>
*/
protected $phy_payload = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
*/
protected $tx_info = null;
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 4;</code>
*/
protected $downlink_id = 0;
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
*/
protected $gateway_id = '';
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 6;</code>
*/
protected $m_type = 0;
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 7;</code>
*/
protected $dev_addr = '';
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 8;</code>
*/
protected $dev_eui = '';
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 9;</code>
*/
protected $plaintext_f_opts = false;
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 10;</code>
*/
protected $plaintext_frm_payload = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $time
* Time.
* @type string $phy_payload
* PHYPayload.
* @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info
* TX meta-data.
* @type int $downlink_id
* Downlink ID.
* @type string $gateway_id
* Gateway ID (EUI64).
* @type int $m_type
* Message type.
* @type string $dev_addr
* Device address (optional).
* @type string $dev_eui
* Device EUI (optional).
* @type bool $plaintext_f_opts
* Plaintext f_opts mac-commands.
* @type bool $plaintext_frm_payload
* Plaintext frm_payload.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\Frame::initOnce();
parent::__construct($data);
}
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 1;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getTime()
{
return $this->time;
}
public function hasTime()
{
return isset($this->time);
}
public function clearTime()
{
unset($this->time);
}
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 1;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->time = $var;
return $this;
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 2;</code>
* @return string
*/
public function getPhyPayload()
{
return $this->phy_payload;
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 2;</code>
* @param string $var
* @return $this
*/
public function setPhyPayload($var)
{
GPBUtil::checkString($var, False);
$this->phy_payload = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
* @return \Chirpstack\Gateway\DownlinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
* @param \Chirpstack\Gateway\DownlinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 4;</code>
* @return int
*/
public function getDownlinkId()
{
return $this->downlink_id;
}
/**
* Downlink ID.
*
* Generated from protobuf field <code>uint32 downlink_id = 4;</code>
* @param int $var
* @return $this
*/
public function setDownlinkId($var)
{
GPBUtil::checkUint32($var);
$this->downlink_id = $var;
return $this;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 6;</code>
* @return int
*/
public function getMType()
{
return $this->m_type;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 6;</code>
* @param int $var
* @return $this
*/
public function setMType($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class);
$this->m_type = $var;
return $this;
}
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 7;</code>
* @return string
*/
public function getDevAddr()
{
return $this->dev_addr;
}
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 7;</code>
* @param string $var
* @return $this
*/
public function setDevAddr($var)
{
GPBUtil::checkString($var, True);
$this->dev_addr = $var;
return $this;
}
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 8;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 8;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 9;</code>
* @return bool
*/
public function getPlaintextFOpts()
{
return $this->plaintext_f_opts;
}
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 9;</code>
* @param bool $var
* @return $this
*/
public function setPlaintextFOpts($var)
{
GPBUtil::checkBool($var);
$this->plaintext_f_opts = $var;
return $this;
}
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 10;</code>
* @return bool
*/
public function getPlaintextFrmPayload()
{
return $this->plaintext_frm_payload;
}
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 10;</code>
* @param bool $var
* @return $this
*/
public function setPlaintextFrmPayload($var)
{
GPBUtil::checkBool($var);
$this->plaintext_frm_payload = $var;
return $this;
}
}

View File

@ -0,0 +1,313 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/meta.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.DownlinkMeta</code>
*/
class DownlinkMeta extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Multicast Group ID (UUID).
*
* Generated from protobuf field <code>string multicast_group_id = 2;</code>
*/
protected $multicast_group_id = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
*/
protected $tx_info = null;
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
*/
protected $phy_payload_byte_count = 0;
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
*/
protected $mac_command_byte_count = 0;
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
*/
protected $application_payload_byte_count = 0;
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
*/
protected $message_type = 0;
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 8;</code>
*/
protected $gateway_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* @type string $multicast_group_id
* Multicast Group ID (UUID).
* @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info
* TX meta-data.
* @type int $phy_payload_byte_count
* PHYPayload byte count.
* @type int $mac_command_byte_count
* MAC-Command byte count.
* @type int $application_payload_byte_count
* Application payload byte count.
* @type int $message_type
* Message type.
* @type string $gateway_id
* Gateway ID (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\Meta::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Multicast Group ID (UUID).
*
* Generated from protobuf field <code>string multicast_group_id = 2;</code>
* @return string
*/
public function getMulticastGroupId()
{
return $this->multicast_group_id;
}
/**
* Multicast Group ID (UUID).
*
* Generated from protobuf field <code>string multicast_group_id = 2;</code>
* @param string $var
* @return $this
*/
public function setMulticastGroupId($var)
{
GPBUtil::checkString($var, True);
$this->multicast_group_id = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
* @return \Chirpstack\Gateway\DownlinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 3;</code>
* @param \Chirpstack\Gateway\DownlinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @return int
*/
public function getPhyPayloadByteCount()
{
return $this->phy_payload_byte_count;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @param int $var
* @return $this
*/
public function setPhyPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->phy_payload_byte_count = $var;
return $this;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @return int
*/
public function getMacCommandByteCount()
{
return $this->mac_command_byte_count;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @param int $var
* @return $this
*/
public function setMacCommandByteCount($var)
{
GPBUtil::checkUint32($var);
$this->mac_command_byte_count = $var;
return $this;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @return int
*/
public function getApplicationPayloadByteCount()
{
return $this->application_payload_byte_count;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @param int $var
* @return $this
*/
public function setApplicationPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->application_payload_byte_count = $var;
return $this;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @return int
*/
public function getMessageType()
{
return $this->message_type;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @param int $var
* @return $this
*/
public function setMessageType($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class);
$this->message_type = $var;
return $this;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 8;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 8;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
}

View File

@ -0,0 +1,357 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/frame.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.UplinkFrameLog</code>
*/
class UplinkFrameLog extends \Google\Protobuf\Internal\Message
{
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
*/
protected $phy_payload = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
*/
protected $tx_info = null;
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
*/
private $rx_info;
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 4;</code>
*/
protected $m_type = 0;
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 5;</code>
*/
protected $dev_addr = '';
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 6;</code>
*/
protected $dev_eui = '';
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 7;</code>
*/
protected $time = null;
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 8;</code>
*/
protected $plaintext_f_opts = false;
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 9;</code>
*/
protected $plaintext_frm_payload = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $phy_payload
* PHYPayload.
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
* TX meta-data.
* @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info
* RX meta-data.
* @type int $m_type
* Message type.
* @type string $dev_addr
* Device address (optional).
* @type string $dev_eui
* Device EUI (optional).
* @type \Google\Protobuf\Timestamp $time
* Time.
* @type bool $plaintext_f_opts
* Plaintext f_opts mac-commands.
* @type bool $plaintext_frm_payload
* Plaintext frm_payload.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\Frame::initOnce();
parent::__construct($data);
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
* @return string
*/
public function getPhyPayload()
{
return $this->phy_payload;
}
/**
* PHYPayload.
*
* Generated from protobuf field <code>bytes phy_payload = 1;</code>
* @param string $var
* @return $this
*/
public function setPhyPayload($var)
{
GPBUtil::checkString($var, False);
$this->phy_payload = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @return \Chirpstack\Gateway\UplinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @param \Chirpstack\Gateway\UplinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRxInfo()
{
return $this->rx_info;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRxInfo($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class);
$this->rx_info = $arr;
return $this;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 4;</code>
* @return int
*/
public function getMType()
{
return $this->m_type;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType m_type = 4;</code>
* @param int $var
* @return $this
*/
public function setMType($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class);
$this->m_type = $var;
return $this;
}
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 5;</code>
* @return string
*/
public function getDevAddr()
{
return $this->dev_addr;
}
/**
* Device address (optional).
*
* Generated from protobuf field <code>string dev_addr = 5;</code>
* @param string $var
* @return $this
*/
public function setDevAddr($var)
{
GPBUtil::checkString($var, True);
$this->dev_addr = $var;
return $this;
}
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 6;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (optional).
*
* Generated from protobuf field <code>string dev_eui = 6;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 7;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getTime()
{
return $this->time;
}
public function hasTime()
{
return isset($this->time);
}
public function clearTime()
{
unset($this->time);
}
/**
* Time.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 7;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->time = $var;
return $this;
}
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 8;</code>
* @return bool
*/
public function getPlaintextFOpts()
{
return $this->plaintext_f_opts;
}
/**
* Plaintext f_opts mac-commands.
*
* Generated from protobuf field <code>bool plaintext_f_opts = 8;</code>
* @param bool $var
* @return $this
*/
public function setPlaintextFOpts($var)
{
GPBUtil::checkBool($var);
$this->plaintext_f_opts = $var;
return $this;
}
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 9;</code>
* @return bool
*/
public function getPlaintextFrmPayload()
{
return $this->plaintext_frm_payload;
}
/**
* Plaintext frm_payload.
*
* Generated from protobuf field <code>bool plaintext_frm_payload = 9;</code>
* @param bool $var
* @return $this
*/
public function setPlaintextFrmPayload($var)
{
GPBUtil::checkBool($var);
$this->plaintext_frm_payload = $var;
return $this;
}
}

View File

@ -0,0 +1,279 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/meta.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.UplinkMeta</code>
*/
class UplinkMeta extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
*/
protected $tx_info = null;
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
*/
private $rx_info;
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
*/
protected $phy_payload_byte_count = 0;
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
*/
protected $mac_command_byte_count = 0;
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
*/
protected $application_payload_byte_count = 0;
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
*/
protected $message_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
* TX meta-data.
* @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info
* RX meta-data.
* @type int $phy_payload_byte_count
* PHYPayload byte count.
* @type int $mac_command_byte_count
* MAC-Command byte count.
* @type int $application_payload_byte_count
* Application payload byte count.
* @type int $message_type
* Message type.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\Meta::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @return \Chirpstack\Gateway\UplinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @param \Chirpstack\Gateway\UplinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRxInfo()
{
return $this->rx_info;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRxInfo($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class);
$this->rx_info = $arr;
return $this;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @return int
*/
public function getPhyPayloadByteCount()
{
return $this->phy_payload_byte_count;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @param int $var
* @return $this
*/
public function setPhyPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->phy_payload_byte_count = $var;
return $this;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @return int
*/
public function getMacCommandByteCount()
{
return $this->mac_command_byte_count;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @param int $var
* @return $this
*/
public function setMacCommandByteCount($var)
{
GPBUtil::checkUint32($var);
$this->mac_command_byte_count = $var;
return $this;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @return int
*/
public function getApplicationPayloadByteCount()
{
return $this->application_payload_byte_count;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @param int $var
* @return $this
*/
public function setApplicationPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->application_payload_byte_count = $var;
return $this;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @return int
*/
public function getMessageType()
{
return $this->message_type;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @param int $var
* @return $this
*/
public function setMessageType($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class);
$this->message_type = $var;
return $this;
}
}