mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-18 15:28:12 +00:00
Bump version to 4.9.0-test.2
This commit is contained in:
258
api/php/generated/Chirpstack/Integration/AckEvent.php
vendored
Normal file
258
api/php/generated/Chirpstack/Integration/AckEvent.php
vendored
Normal file
@ -0,0 +1,258 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* AckEvent is the message sent when a confirmation on a confirmed downlink
|
||||
* has been received -or- when the downlink timed out.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.AckEvent</code>
|
||||
*/
|
||||
class AckEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
*/
|
||||
protected $queue_item_id = '';
|
||||
/**
|
||||
* Frame was acknowledged.
|
||||
*
|
||||
* Generated from protobuf field <code>bool acknowledged = 5;</code>
|
||||
*/
|
||||
protected $acknowledged = false;
|
||||
/**
|
||||
* Downlink frame counter to which the acknowledgement relates.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 6;</code>
|
||||
*/
|
||||
protected $f_cnt_down = 0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type string $queue_item_id
|
||||
* Downlink queue item ID (UUID).
|
||||
* @type bool $acknowledged
|
||||
* Frame was acknowledged.
|
||||
* @type int $f_cnt_down
|
||||
* Downlink frame counter to which the acknowledgement relates.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getQueueItemId()
|
||||
{
|
||||
return $this->queue_item_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueueItemId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->queue_item_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame was acknowledged.
|
||||
*
|
||||
* Generated from protobuf field <code>bool acknowledged = 5;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getAcknowledged()
|
||||
{
|
||||
return $this->acknowledged;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame was acknowledged.
|
||||
*
|
||||
* Generated from protobuf field <code>bool acknowledged = 5;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAcknowledged($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->acknowledged = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink frame counter to which the acknowledgement relates.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 6;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFCntDown()
|
||||
{
|
||||
return $this->f_cnt_down;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink frame counter to which the acknowledgement relates.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 6;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFCntDown($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->f_cnt_down = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
373
api/php/generated/Chirpstack/Integration/DeviceInfo.php
vendored
Normal file
373
api/php/generated/Chirpstack/Integration/DeviceInfo.php
vendored
Normal file
@ -0,0 +1,373 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* Device information.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.DeviceInfo</code>
|
||||
*/
|
||||
class DeviceInfo extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Tenant ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
||||
*/
|
||||
protected $tenant_id = '';
|
||||
/**
|
||||
* Tenant name.
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_name = 2;</code>
|
||||
*/
|
||||
protected $tenant_name = '';
|
||||
/**
|
||||
* Application ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string application_id = 3;</code>
|
||||
*/
|
||||
protected $application_id = '';
|
||||
/**
|
||||
* Application name.
|
||||
*
|
||||
* Generated from protobuf field <code>string application_name = 4;</code>
|
||||
*/
|
||||
protected $application_name = '';
|
||||
/**
|
||||
* Device-profile ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_id = 5;</code>
|
||||
*/
|
||||
protected $device_profile_id = '';
|
||||
/**
|
||||
* Device-profile name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_name = 6;</code>
|
||||
*/
|
||||
protected $device_profile_name = '';
|
||||
/**
|
||||
* Device name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_name = 7;</code>
|
||||
*/
|
||||
protected $device_name = '';
|
||||
/**
|
||||
* Device EUI.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 8;</code>
|
||||
*/
|
||||
protected $dev_eui = '';
|
||||
/**
|
||||
* Device class.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.DeviceClass device_class_enabled = 10;</code>
|
||||
*/
|
||||
protected $device_class_enabled = 0;
|
||||
/**
|
||||
* Device-profile and device tags.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> tags = 9;</code>
|
||||
*/
|
||||
private $tags;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $tenant_id
|
||||
* Tenant ID (UUID).
|
||||
* @type string $tenant_name
|
||||
* Tenant name.
|
||||
* @type string $application_id
|
||||
* Application ID (UUID).
|
||||
* @type string $application_name
|
||||
* Application name.
|
||||
* @type string $device_profile_id
|
||||
* Device-profile ID (UUID).
|
||||
* @type string $device_profile_name
|
||||
* Device-profile name.
|
||||
* @type string $device_name
|
||||
* Device name.
|
||||
* @type string $dev_eui
|
||||
* Device EUI.
|
||||
* @type int $device_class_enabled
|
||||
* Device class.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $tags
|
||||
* Device-profile and device tags.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tenant ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getTenantId()
|
||||
{
|
||||
return $this->tenant_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tenant ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTenantId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->tenant_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tenant name.
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_name = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getTenantName()
|
||||
{
|
||||
return $this->tenant_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tenant name.
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_name = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTenantName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->tenant_name = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Application ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string application_id = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationId()
|
||||
{
|
||||
return $this->application_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Application ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string application_id = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->application_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Application name.
|
||||
*
|
||||
* Generated from protobuf field <code>string application_name = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationName()
|
||||
{
|
||||
return $this->application_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Application name.
|
||||
*
|
||||
* Generated from protobuf field <code>string application_name = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->application_name = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_id = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceProfileId()
|
||||
{
|
||||
return $this->device_profile_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_id = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceProfileId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->device_profile_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_name = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceProfileName()
|
||||
{
|
||||
return $this->device_profile_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_profile_name = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceProfileName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->device_profile_name = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_name = 7;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceName()
|
||||
{
|
||||
return $this->device_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device name.
|
||||
*
|
||||
* Generated from protobuf field <code>string device_name = 7;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->device_name = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device EUI.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 8;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDevEui()
|
||||
{
|
||||
return $this->dev_eui;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device EUI.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device class.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.DeviceClass device_class_enabled = 10;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getDeviceClassEnabled()
|
||||
{
|
||||
return $this->device_class_enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device class.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.DeviceClass device_class_enabled = 10;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceClassEnabled($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \Chirpstack\Common\DeviceClass::class);
|
||||
$this->device_class_enabled = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile and device tags.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> tags = 9;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getTags()
|
||||
{
|
||||
return $this->tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device-profile and device tags.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> tags = 9;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTags($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->tags = $arr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
260
api/php/generated/Chirpstack/Integration/DownlinkCommand.php
vendored
Normal file
260
api/php/generated/Chirpstack/Integration/DownlinkCommand.php
vendored
Normal file
@ -0,0 +1,260 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* DownlinkCommand is the command to enqueue a downlink payload for the given
|
||||
* device.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.DownlinkCommand</code>
|
||||
*/
|
||||
class DownlinkCommand extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* ID (UUID).
|
||||
* If left blank, a random UUID will be generated.
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
*/
|
||||
protected $id = '';
|
||||
/**
|
||||
* Device EUI (EUI64).
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 2;</code>
|
||||
*/
|
||||
protected $dev_eui = '';
|
||||
/**
|
||||
* Confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 3;</code>
|
||||
*/
|
||||
protected $confirmed = false;
|
||||
/**
|
||||
* FPort (must be > 0).
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 4;</code>
|
||||
*/
|
||||
protected $f_port = 0;
|
||||
/**
|
||||
* Data.
|
||||
* Or use the json_object field when a codec has been configured.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 5;</code>
|
||||
*/
|
||||
protected $data = '';
|
||||
/**
|
||||
* Only use this when a codec has been configured that can encode this
|
||||
* object to bytes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
*/
|
||||
protected $object = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $id
|
||||
* ID (UUID).
|
||||
* If left blank, a random UUID will be generated.
|
||||
* @type string $dev_eui
|
||||
* Device EUI (EUI64).
|
||||
* @type bool $confirmed
|
||||
* Confirmed.
|
||||
* @type int $f_port
|
||||
* FPort (must be > 0).
|
||||
* @type string $data
|
||||
* Data.
|
||||
* Or use the json_object field when a codec has been configured.
|
||||
* @type \Google\Protobuf\Struct $object
|
||||
* Only use this when a codec has been configured that can encode this
|
||||
* object to bytes.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* ID (UUID).
|
||||
* If left blank, a random UUID will be generated.
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID (UUID).
|
||||
* If left blank, a random UUID will be generated.
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device EUI (EUI64).
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDevEui()
|
||||
{
|
||||
return $this->dev_eui;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device EUI (EUI64).
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDevEui($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->dev_eui = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 3;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getConfirmed()
|
||||
{
|
||||
return $this->confirmed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 3;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfirmed($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->confirmed = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* FPort (must be > 0).
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFPort()
|
||||
{
|
||||
return $this->f_port;
|
||||
}
|
||||
|
||||
/**
|
||||
* FPort (must be > 0).
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFPort($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->f_port = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data.
|
||||
* Or use the json_object field when a codec has been configured.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data.
|
||||
* Or use the json_object field when a codec has been configured.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setData($var)
|
||||
{
|
||||
GPBUtil::checkString($var, False);
|
||||
$this->data = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only use this when a codec has been configured that can encode this
|
||||
* object to bytes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
* @return \Google\Protobuf\Struct|null
|
||||
*/
|
||||
public function getObject()
|
||||
{
|
||||
return $this->object;
|
||||
}
|
||||
|
||||
public function hasObject()
|
||||
{
|
||||
return isset($this->object);
|
||||
}
|
||||
|
||||
public function clearObject()
|
||||
{
|
||||
unset($this->object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Only use this when a codec has been configured that can encode this
|
||||
* object to bytes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
* @param \Google\Protobuf\Struct $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setObject($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
|
||||
$this->object = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
269
api/php/generated/Chirpstack/Integration/IntegrationEvent.php
vendored
Normal file
269
api/php/generated/Chirpstack/Integration/IntegrationEvent.php
vendored
Normal file
@ -0,0 +1,269 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* IntegrationEvent is the message that can be sent by an integration.
|
||||
* It allows for sending events which are provided by an external integration
|
||||
* which are "not native" to ChirpStack.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.IntegrationEvent</code>
|
||||
*/
|
||||
class IntegrationEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Integration name.
|
||||
*
|
||||
* Generated from protobuf field <code>string integration_name = 4;</code>
|
||||
*/
|
||||
protected $integration_name = '';
|
||||
/**
|
||||
* Event type.
|
||||
*
|
||||
* Generated from protobuf field <code>string event_type = 5;</code>
|
||||
*/
|
||||
protected $event_type = '';
|
||||
/**
|
||||
* Struct containing the event object.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
*/
|
||||
protected $object = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type string $integration_name
|
||||
* Integration name.
|
||||
* @type string $event_type
|
||||
* Event type.
|
||||
* @type \Google\Protobuf\Struct $object
|
||||
* Struct containing the event object.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Integration name.
|
||||
*
|
||||
* Generated from protobuf field <code>string integration_name = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getIntegrationName()
|
||||
{
|
||||
return $this->integration_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Integration name.
|
||||
*
|
||||
* Generated from protobuf field <code>string integration_name = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setIntegrationName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->integration_name = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event type.
|
||||
*
|
||||
* Generated from protobuf field <code>string event_type = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getEventType()
|
||||
{
|
||||
return $this->event_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event type.
|
||||
*
|
||||
* Generated from protobuf field <code>string event_type = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setEventType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->event_type = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Struct containing the event object.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
* @return \Google\Protobuf\Struct|null
|
||||
*/
|
||||
public function getObject()
|
||||
{
|
||||
return $this->object;
|
||||
}
|
||||
|
||||
public function hasObject()
|
||||
{
|
||||
return isset($this->object);
|
||||
}
|
||||
|
||||
public function clearObject()
|
||||
{
|
||||
unset($this->object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Struct containing the event object.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 6;</code>
|
||||
* @param \Google\Protobuf\Struct $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setObject($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
|
||||
$this->object = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
290
api/php/generated/Chirpstack/Integration/JoinEvent.php
vendored
Normal file
290
api/php/generated/Chirpstack/Integration/JoinEvent.php
vendored
Normal file
@ -0,0 +1,290 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* JoinEvent is the message sent when a device joined the network.
|
||||
* Note: this event is sent at the first uplink after OTAA.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.JoinEvent</code>
|
||||
*/
|
||||
class JoinEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
*/
|
||||
protected $dev_addr = '';
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 5;</code>
|
||||
*/
|
||||
protected $relay_rx_info = null;
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 6;</code>
|
||||
*/
|
||||
protected $join_server_context = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type string $dev_addr
|
||||
* Device address.
|
||||
* @type \Chirpstack\Integration\UplinkRelayRxInfo $relay_rx_info
|
||||
* Relay info.
|
||||
* @type \Chirpstack\Common\JoinServerContext $join_server_context
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDevAddr()
|
||||
{
|
||||
return $this->dev_addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDevAddr($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->dev_addr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 5;</code>
|
||||
* @return \Chirpstack\Integration\UplinkRelayRxInfo|null
|
||||
*/
|
||||
public function getRelayRxInfo()
|
||||
{
|
||||
return $this->relay_rx_info;
|
||||
}
|
||||
|
||||
public function hasRelayRxInfo()
|
||||
{
|
||||
return isset($this->relay_rx_info);
|
||||
}
|
||||
|
||||
public function clearRelayRxInfo()
|
||||
{
|
||||
unset($this->relay_rx_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 5;</code>
|
||||
* @param \Chirpstack\Integration\UplinkRelayRxInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRelayRxInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\UplinkRelayRxInfo::class);
|
||||
$this->relay_rx_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 6;</code>
|
||||
* @return \Chirpstack\Common\JoinServerContext|null
|
||||
*/
|
||||
public function getJoinServerContext()
|
||||
{
|
||||
return $this->join_server_context;
|
||||
}
|
||||
|
||||
public function hasJoinServerContext()
|
||||
{
|
||||
return isset($this->join_server_context);
|
||||
}
|
||||
|
||||
public function clearJoinServerContext()
|
||||
{
|
||||
unset($this->join_server_context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 6;</code>
|
||||
* @param \Chirpstack\Common\JoinServerContext $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJoinServerContext($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Common\JoinServerContext::class);
|
||||
$this->join_server_context = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
199
api/php/generated/Chirpstack/Integration/LocationEvent.php
vendored
Normal file
199
api/php/generated/Chirpstack/Integration/LocationEvent.php
vendored
Normal file
@ -0,0 +1,199 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* LocationEvent is the message sent when a geolocation resolve was returned.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.LocationEvent</code>
|
||||
*/
|
||||
class LocationEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Location.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
||||
*/
|
||||
protected $location = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type \Chirpstack\Common\Location $location
|
||||
* Location.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Location.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
||||
* @return \Chirpstack\Common\Location|null
|
||||
*/
|
||||
public function getLocation()
|
||||
{
|
||||
return $this->location;
|
||||
}
|
||||
|
||||
public function hasLocation()
|
||||
{
|
||||
return isset($this->location);
|
||||
}
|
||||
|
||||
public function clearLocation()
|
||||
{
|
||||
unset($this->location);
|
||||
}
|
||||
|
||||
/**
|
||||
* Location.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
||||
* @param \Chirpstack\Common\Location $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLocation($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class);
|
||||
$this->location = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
116
api/php/generated/Chirpstack/Integration/LogCode.php
vendored
Normal file
116
api/php/generated/Chirpstack/Integration/LogCode.php
vendored
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* Protobuf type <code>integration.LogCode</code>
|
||||
*/
|
||||
class LogCode
|
||||
{
|
||||
/**
|
||||
* Unknown type.
|
||||
*
|
||||
* Generated from protobuf enum <code>UNKNOWN = 0;</code>
|
||||
*/
|
||||
const UNKNOWN = 0;
|
||||
/**
|
||||
* Error related to the downlink payload size.
|
||||
* Usually seen when the payload exceeded the maximum allowed payload size.
|
||||
*
|
||||
* Generated from protobuf enum <code>DOWNLINK_PAYLOAD_SIZE = 1;</code>
|
||||
*/
|
||||
const DOWNLINK_PAYLOAD_SIZE = 1;
|
||||
/**
|
||||
* Uplink codec error.
|
||||
*
|
||||
* Generated from protobuf enum <code>UPLINK_CODEC = 2;</code>
|
||||
*/
|
||||
const UPLINK_CODEC = 2;
|
||||
/**
|
||||
* Downlink codec error.
|
||||
*
|
||||
* Generated from protobuf enum <code>DOWNLINK_CODEC = 3;</code>
|
||||
*/
|
||||
const DOWNLINK_CODEC = 3;
|
||||
/**
|
||||
* OTAA error.
|
||||
*
|
||||
* Generated from protobuf enum <code>OTAA = 4;</code>
|
||||
*/
|
||||
const OTAA = 4;
|
||||
/**
|
||||
* Uplink frame-counter was reset.
|
||||
*
|
||||
* Generated from protobuf enum <code>UPLINK_F_CNT_RESET = 5;</code>
|
||||
*/
|
||||
const UPLINK_F_CNT_RESET = 5;
|
||||
/**
|
||||
* Uplink MIC error.
|
||||
*
|
||||
* Generated from protobuf enum <code>UPLINK_MIC = 6;</code>
|
||||
*/
|
||||
const UPLINK_MIC = 6;
|
||||
/**
|
||||
* Uplink frame-counter retransmission.
|
||||
*
|
||||
* Generated from protobuf enum <code>UPLINK_F_CNT_RETRANSMISSION = 7;</code>
|
||||
*/
|
||||
const UPLINK_F_CNT_RETRANSMISSION = 7;
|
||||
/**
|
||||
* Downlink gateway error.
|
||||
*
|
||||
* Generated from protobuf enum <code>DOWNLINK_GATEWAY = 8;</code>
|
||||
*/
|
||||
const DOWNLINK_GATEWAY = 8;
|
||||
/**
|
||||
* Relay new end-device.
|
||||
*
|
||||
* Generated from protobuf enum <code>RELAY_NEW_END_DEVICE = 9;</code>
|
||||
*/
|
||||
const RELAY_NEW_END_DEVICE = 9;
|
||||
/**
|
||||
* Downlink frame-counter.
|
||||
*
|
||||
* Generated from protobuf enum <code>F_CNT_DOWN = 10;</code>
|
||||
*/
|
||||
const F_CNT_DOWN = 10;
|
||||
|
||||
private static $valueToName = [
|
||||
self::UNKNOWN => 'UNKNOWN',
|
||||
self::DOWNLINK_PAYLOAD_SIZE => 'DOWNLINK_PAYLOAD_SIZE',
|
||||
self::UPLINK_CODEC => 'UPLINK_CODEC',
|
||||
self::DOWNLINK_CODEC => 'DOWNLINK_CODEC',
|
||||
self::OTAA => 'OTAA',
|
||||
self::UPLINK_F_CNT_RESET => 'UPLINK_F_CNT_RESET',
|
||||
self::UPLINK_MIC => 'UPLINK_MIC',
|
||||
self::UPLINK_F_CNT_RETRANSMISSION => 'UPLINK_F_CNT_RETRANSMISSION',
|
||||
self::DOWNLINK_GATEWAY => 'DOWNLINK_GATEWAY',
|
||||
self::RELAY_NEW_END_DEVICE => 'RELAY_NEW_END_DEVICE',
|
||||
self::F_CNT_DOWN => 'F_CNT_DOWN',
|
||||
];
|
||||
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
|
||||
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . strtoupper($name);
|
||||
if (!defined($const)) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return constant($const);
|
||||
}
|
||||
}
|
||||
|
257
api/php/generated/Chirpstack/Integration/LogEvent.php
vendored
Normal file
257
api/php/generated/Chirpstack/Integration/LogEvent.php
vendored
Normal file
@ -0,0 +1,257 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* LogEvent is the message sent when a device-related log was sent.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.LogEvent</code>
|
||||
*/
|
||||
class LogEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 1;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 2;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Log level.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogLevel level = 3;</code>
|
||||
*/
|
||||
protected $level = 0;
|
||||
/**
|
||||
* Log code.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogCode code = 4;</code>
|
||||
*/
|
||||
protected $code = 0;
|
||||
/**
|
||||
* Description message.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 5;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Context map.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> context = 6;</code>
|
||||
*/
|
||||
private $context;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type int $level
|
||||
* Log level.
|
||||
* @type int $code
|
||||
* Log code.
|
||||
* @type string $description
|
||||
* Description message.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $context
|
||||
* Context map.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 2;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 2;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log level.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogLevel level = 3;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getLevel()
|
||||
{
|
||||
return $this->level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log level.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogLevel level = 3;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLevel($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \Chirpstack\Integration\LogLevel::class);
|
||||
$this->level = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log code.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogCode code = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log code.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.LogCode code = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \Chirpstack\Integration\LogCode::class);
|
||||
$this->code = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description message.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description message.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Context map.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> context = 6;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getContext()
|
||||
{
|
||||
return $this->context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Context map.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> context = 6;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setContext($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->context = $arr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
59
api/php/generated/Chirpstack/Integration/LogLevel.php
vendored
Normal file
59
api/php/generated/Chirpstack/Integration/LogLevel.php
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* Protobuf type <code>integration.LogLevel</code>
|
||||
*/
|
||||
class LogLevel
|
||||
{
|
||||
/**
|
||||
* Info.
|
||||
*
|
||||
* Generated from protobuf enum <code>INFO = 0;</code>
|
||||
*/
|
||||
const INFO = 0;
|
||||
/**
|
||||
* Warning.
|
||||
*
|
||||
* Generated from protobuf enum <code>WARNING = 1;</code>
|
||||
*/
|
||||
const WARNING = 1;
|
||||
/**
|
||||
* Error.
|
||||
*
|
||||
* Generated from protobuf enum <code>ERROR = 2;</code>
|
||||
*/
|
||||
const ERROR = 2;
|
||||
|
||||
private static $valueToName = [
|
||||
self::INFO => 'INFO',
|
||||
self::WARNING => 'WARNING',
|
||||
self::ERROR => 'ERROR',
|
||||
];
|
||||
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
|
||||
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . strtoupper($name);
|
||||
if (!defined($const)) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return constant($const);
|
||||
}
|
||||
}
|
||||
|
296
api/php/generated/Chirpstack/Integration/StatusEvent.php
vendored
Normal file
296
api/php/generated/Chirpstack/Integration/StatusEvent.php
vendored
Normal file
@ -0,0 +1,296 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* StatusEvent is the message sent when a device-status mac-command was sent
|
||||
* by the device.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.StatusEvent</code>
|
||||
*/
|
||||
class StatusEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* The demodulation signal-to-noise ratio in dB for the last successfully
|
||||
* received device-status request by the Network Server.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 margin = 5;</code>
|
||||
*/
|
||||
protected $margin = 0;
|
||||
/**
|
||||
* Device is connected to an external power source.
|
||||
*
|
||||
* Generated from protobuf field <code>bool external_power_source = 6;</code>
|
||||
*/
|
||||
protected $external_power_source = false;
|
||||
/**
|
||||
* Battery level is not available.
|
||||
*
|
||||
* Generated from protobuf field <code>bool battery_level_unavailable = 7;</code>
|
||||
*/
|
||||
protected $battery_level_unavailable = false;
|
||||
/**
|
||||
* Battery level.
|
||||
*
|
||||
* Generated from protobuf field <code>float battery_level = 8;</code>
|
||||
*/
|
||||
protected $battery_level = 0.0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type int $margin
|
||||
* The demodulation signal-to-noise ratio in dB for the last successfully
|
||||
* received device-status request by the Network Server.
|
||||
* @type bool $external_power_source
|
||||
* Device is connected to an external power source.
|
||||
* @type bool $battery_level_unavailable
|
||||
* Battery level is not available.
|
||||
* @type float $battery_level
|
||||
* Battery level.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The demodulation signal-to-noise ratio in dB for the last successfully
|
||||
* received device-status request by the Network Server.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 margin = 5;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getMargin()
|
||||
{
|
||||
return $this->margin;
|
||||
}
|
||||
|
||||
/**
|
||||
* The demodulation signal-to-noise ratio in dB for the last successfully
|
||||
* received device-status request by the Network Server.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 margin = 5;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMargin($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->margin = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device is connected to an external power source.
|
||||
*
|
||||
* Generated from protobuf field <code>bool external_power_source = 6;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getExternalPowerSource()
|
||||
{
|
||||
return $this->external_power_source;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device is connected to an external power source.
|
||||
*
|
||||
* Generated from protobuf field <code>bool external_power_source = 6;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExternalPowerSource($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->external_power_source = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Battery level is not available.
|
||||
*
|
||||
* Generated from protobuf field <code>bool battery_level_unavailable = 7;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getBatteryLevelUnavailable()
|
||||
{
|
||||
return $this->battery_level_unavailable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Battery level is not available.
|
||||
*
|
||||
* Generated from protobuf field <code>bool battery_level_unavailable = 7;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBatteryLevelUnavailable($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->battery_level_unavailable = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Battery level.
|
||||
*
|
||||
* Generated from protobuf field <code>float battery_level = 8;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getBatteryLevel()
|
||||
{
|
||||
return $this->battery_level;
|
||||
}
|
||||
|
||||
/**
|
||||
* Battery level.
|
||||
*
|
||||
* Generated from protobuf field <code>float battery_level = 8;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBatteryLevel($var)
|
||||
{
|
||||
GPBUtil::checkFloat($var);
|
||||
$this->battery_level = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
303
api/php/generated/Chirpstack/Integration/TxAckEvent.php
vendored
Normal file
303
api/php/generated/Chirpstack/Integration/TxAckEvent.php
vendored
Normal file
@ -0,0 +1,303 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* TxAckEvent is the message sent when a downlink was acknowledged by the
|
||||
* gateway for transmission. As a downlink can be scheduled in the future, this
|
||||
* event does not confirm that the message has already been transmitted.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.TxAckEvent</code>
|
||||
*/
|
||||
class TxAckEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Downlink ID.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 downlink_id = 1;</code>
|
||||
*/
|
||||
protected $downlink_id = 0;
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
*/
|
||||
protected $queue_item_id = '';
|
||||
/**
|
||||
* Downlink frame-counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 5;</code>
|
||||
*/
|
||||
protected $f_cnt_down = 0;
|
||||
/**
|
||||
* Gateway ID.
|
||||
*
|
||||
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
||||
*/
|
||||
protected $gateway_id = '';
|
||||
/**
|
||||
* TX info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 7;</code>
|
||||
*/
|
||||
protected $tx_info = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $downlink_id
|
||||
* Downlink ID.
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device info.
|
||||
* @type string $queue_item_id
|
||||
* Downlink queue item ID (UUID).
|
||||
* @type int $f_cnt_down
|
||||
* Downlink frame-counter.
|
||||
* @type string $gateway_id
|
||||
* Gateway ID.
|
||||
* @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info
|
||||
* TX info.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink ID.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 downlink_id = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getDownlinkId()
|
||||
{
|
||||
return $this->downlink_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink ID.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 downlink_id = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDownlinkId($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->downlink_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getQueueItemId()
|
||||
{
|
||||
return $this->queue_item_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink queue item ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string queue_item_id = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueueItemId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->queue_item_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink frame-counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 5;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFCntDown()
|
||||
{
|
||||
return $this->f_cnt_down;
|
||||
}
|
||||
|
||||
/**
|
||||
* Downlink frame-counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt_down = 5;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFCntDown($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->f_cnt_down = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gateway ID.
|
||||
*
|
||||
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getGatewayId()
|
||||
{
|
||||
return $this->gateway_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gateway ID.
|
||||
*
|
||||
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setGatewayId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->gateway_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* TX info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 7;</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 info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.DownlinkTxInfo tx_info = 7;</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;
|
||||
}
|
||||
|
||||
}
|
||||
|
619
api/php/generated/Chirpstack/Integration/UplinkEvent.php
vendored
Normal file
619
api/php/generated/Chirpstack/Integration/UplinkEvent.php
vendored
Normal file
@ -0,0 +1,619 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* UplinkEvent is the message sent when an uplink payload has been received.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.UplinkEvent</code>
|
||||
*/
|
||||
class UplinkEvent extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
*/
|
||||
protected $deduplication_id = '';
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
|
||||
*/
|
||||
protected $time = null;
|
||||
/**
|
||||
* Device information.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
*/
|
||||
protected $device_info = null;
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
*/
|
||||
protected $dev_addr = '';
|
||||
/**
|
||||
* Device has ADR bit set.
|
||||
*
|
||||
* Generated from protobuf field <code>bool adr = 5;</code>
|
||||
*/
|
||||
protected $adr = false;
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 6;</code>
|
||||
*/
|
||||
protected $dr = 0;
|
||||
/**
|
||||
* Frame counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt = 7;</code>
|
||||
*/
|
||||
protected $f_cnt = 0;
|
||||
/**
|
||||
* Frame port.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 8;</code>
|
||||
*/
|
||||
protected $f_port = 0;
|
||||
/**
|
||||
* Uplink was of type confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 9;</code>
|
||||
*/
|
||||
protected $confirmed = false;
|
||||
/**
|
||||
* FRMPayload data.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 10;</code>
|
||||
*/
|
||||
protected $data = '';
|
||||
/**
|
||||
* Note that this is only set when a codec is configured in the Device
|
||||
* Profile.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 11;</code>
|
||||
*/
|
||||
protected $object = null;
|
||||
/**
|
||||
* Receiving gateway RX info.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 12;</code>
|
||||
*/
|
||||
private $rx_info;
|
||||
/**
|
||||
* TX info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 13;</code>
|
||||
*/
|
||||
protected $tx_info = null;
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 14;</code>
|
||||
*/
|
||||
protected $relay_rx_info = null;
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 15;</code>
|
||||
*/
|
||||
protected $join_server_context = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $deduplication_id
|
||||
* Deduplication ID (UUID).
|
||||
* @type \Google\Protobuf\Timestamp $time
|
||||
* Timestamp.
|
||||
* @type \Chirpstack\Integration\DeviceInfo $device_info
|
||||
* Device information.
|
||||
* @type string $dev_addr
|
||||
* Device address.
|
||||
* @type bool $adr
|
||||
* Device has ADR bit set.
|
||||
* @type int $dr
|
||||
* Data-rate.
|
||||
* @type int $f_cnt
|
||||
* Frame counter.
|
||||
* @type int $f_port
|
||||
* Frame port.
|
||||
* @type bool $confirmed
|
||||
* Uplink was of type confirmed.
|
||||
* @type string $data
|
||||
* FRMPayload data.
|
||||
* @type \Google\Protobuf\Struct $object
|
||||
* Note that this is only set when a codec is configured in the Device
|
||||
* Profile.
|
||||
* @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info
|
||||
* Receiving gateway RX info.
|
||||
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
|
||||
* TX info.
|
||||
* @type \Chirpstack\Integration\UplinkRelayRxInfo $relay_rx_info
|
||||
* Relay info.
|
||||
* @type \Chirpstack\Common\JoinServerContext $join_server_context
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeduplicationId()
|
||||
{
|
||||
return $this->deduplication_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplication ID (UUID).
|
||||
*
|
||||
* Generated from protobuf field <code>string deduplication_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeduplicationId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deduplication_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamp.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</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 = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTime($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
||||
$this->time = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device information.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @return \Chirpstack\Integration\DeviceInfo|null
|
||||
*/
|
||||
public function getDeviceInfo()
|
||||
{
|
||||
return $this->device_info;
|
||||
}
|
||||
|
||||
public function hasDeviceInfo()
|
||||
{
|
||||
return isset($this->device_info);
|
||||
}
|
||||
|
||||
public function clearDeviceInfo()
|
||||
{
|
||||
unset($this->device_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Device information.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.DeviceInfo device_info = 3;</code>
|
||||
* @param \Chirpstack\Integration\DeviceInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeviceInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class);
|
||||
$this->device_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDevAddr()
|
||||
{
|
||||
return $this->dev_addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device address.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_addr = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDevAddr($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->dev_addr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device has ADR bit set.
|
||||
*
|
||||
* Generated from protobuf field <code>bool adr = 5;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getAdr()
|
||||
{
|
||||
return $this->adr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device has ADR bit set.
|
||||
*
|
||||
* Generated from protobuf field <code>bool adr = 5;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdr($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->adr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 6;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getDr()
|
||||
{
|
||||
return $this->dr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 6;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDr($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->dr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt = 7;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFCnt()
|
||||
{
|
||||
return $this->f_cnt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame counter.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_cnt = 7;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFCnt($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->f_cnt = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame port.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 8;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFPort()
|
||||
{
|
||||
return $this->f_port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frame port.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 f_port = 8;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFPort($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->f_port = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uplink was of type confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 9;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getConfirmed()
|
||||
{
|
||||
return $this->confirmed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Uplink was of type confirmed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool confirmed = 9;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setConfirmed($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->confirmed = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* FRMPayload data.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 10;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* FRMPayload data.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 10;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setData($var)
|
||||
{
|
||||
GPBUtil::checkString($var, False);
|
||||
$this->data = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Note that this is only set when a codec is configured in the Device
|
||||
* Profile.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 11;</code>
|
||||
* @return \Google\Protobuf\Struct|null
|
||||
*/
|
||||
public function getObject()
|
||||
{
|
||||
return $this->object;
|
||||
}
|
||||
|
||||
public function hasObject()
|
||||
{
|
||||
return isset($this->object);
|
||||
}
|
||||
|
||||
public function clearObject()
|
||||
{
|
||||
unset($this->object);
|
||||
}
|
||||
|
||||
/**
|
||||
* Note that this is only set when a codec is configured in the Device
|
||||
* Profile.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct object = 11;</code>
|
||||
* @param \Google\Protobuf\Struct $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setObject($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
|
||||
$this->object = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Receiving gateway RX info.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 12;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRxInfo()
|
||||
{
|
||||
return $this->rx_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Receiving gateway RX info.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 12;</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;
|
||||
}
|
||||
|
||||
/**
|
||||
* TX info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 13;</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 info.
|
||||
*
|
||||
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 13;</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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 14;</code>
|
||||
* @return \Chirpstack\Integration\UplinkRelayRxInfo|null
|
||||
*/
|
||||
public function getRelayRxInfo()
|
||||
{
|
||||
return $this->relay_rx_info;
|
||||
}
|
||||
|
||||
public function hasRelayRxInfo()
|
||||
{
|
||||
return isset($this->relay_rx_info);
|
||||
}
|
||||
|
||||
public function clearRelayRxInfo()
|
||||
{
|
||||
unset($this->relay_rx_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay info.
|
||||
*
|
||||
* Generated from protobuf field <code>.integration.UplinkRelayRxInfo relay_rx_info = 14;</code>
|
||||
* @param \Chirpstack\Integration\UplinkRelayRxInfo $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRelayRxInfo($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Integration\UplinkRelayRxInfo::class);
|
||||
$this->relay_rx_info = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 15;</code>
|
||||
* @return \Chirpstack\Common\JoinServerContext|null
|
||||
*/
|
||||
public function getJoinServerContext()
|
||||
{
|
||||
return $this->join_server_context;
|
||||
}
|
||||
|
||||
public function hasJoinServerContext()
|
||||
{
|
||||
return isset($this->join_server_context);
|
||||
}
|
||||
|
||||
public function clearJoinServerContext()
|
||||
{
|
||||
unset($this->join_server_context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Join-Server context.
|
||||
* A non-empty value indicatest that ChirpStack does not have access to
|
||||
* the AppSKey and that the encryption / decryption of the payloads is
|
||||
* the responsibility of the end-application.
|
||||
*
|
||||
* Generated from protobuf field <code>.common.JoinServerContext join_server_context = 15;</code>
|
||||
* @param \Chirpstack\Common\JoinServerContext $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJoinServerContext($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Chirpstack\Common\JoinServerContext::class);
|
||||
$this->join_server_context = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
237
api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php
vendored
Normal file
237
api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php
vendored
Normal file
@ -0,0 +1,237 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: integration/integration.proto
|
||||
|
||||
namespace Chirpstack\Integration;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* Uplink relay RX information.
|
||||
*
|
||||
* Generated from protobuf message <code>integration.UplinkRelayRxInfo</code>
|
||||
*/
|
||||
class UplinkRelayRxInfo extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Relay DevEUI.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 1;</code>
|
||||
*/
|
||||
protected $dev_eui = '';
|
||||
/**
|
||||
* Frequency.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 frequency = 2;</code>
|
||||
*/
|
||||
protected $frequency = 0;
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 3;</code>
|
||||
*/
|
||||
protected $dr = 0;
|
||||
/**
|
||||
* SNR.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 snr = 4;</code>
|
||||
*/
|
||||
protected $snr = 0;
|
||||
/**
|
||||
* RSSI.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 rssi = 5;</code>
|
||||
*/
|
||||
protected $rssi = 0;
|
||||
/**
|
||||
* WOR channel.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
|
||||
*/
|
||||
protected $wor_channel = 0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $dev_eui
|
||||
* Relay DevEUI.
|
||||
* @type int $frequency
|
||||
* Frequency.
|
||||
* @type int $dr
|
||||
* Data-rate.
|
||||
* @type int $snr
|
||||
* SNR.
|
||||
* @type int $rssi
|
||||
* RSSI.
|
||||
* @type int $wor_channel
|
||||
* WOR channel.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay DevEUI.
|
||||
*
|
||||
* Generated from protobuf field <code>string dev_eui = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDevEui()
|
||||
{
|
||||
return $this->dev_eui;
|
||||
}
|
||||
|
||||
/**
|
||||
* Relay DevEUI.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frequency.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 frequency = 2;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFrequency()
|
||||
{
|
||||
return $this->frequency;
|
||||
}
|
||||
|
||||
/**
|
||||
* Frequency.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 frequency = 2;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFrequency($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->frequency = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 3;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getDr()
|
||||
{
|
||||
return $this->dr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Data-rate.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 dr = 3;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDr($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->dr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* SNR.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 snr = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getSnr()
|
||||
{
|
||||
return $this->snr;
|
||||
}
|
||||
|
||||
/**
|
||||
* SNR.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 snr = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSnr($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->snr = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* RSSI.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 rssi = 5;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getRssi()
|
||||
{
|
||||
return $this->rssi;
|
||||
}
|
||||
|
||||
/**
|
||||
* RSSI.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 rssi = 5;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRssi($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->rssi = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* WOR channel.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getWorChannel()
|
||||
{
|
||||
return $this->wor_channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* WOR channel.
|
||||
*
|
||||
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setWorChannel($var)
|
||||
{
|
||||
GPBUtil::checkUint32($var);
|
||||
$this->wor_channel = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user