Bump version to 4.9.0-test.2

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

12
Cargo.lock generated
View File

@ -570,7 +570,7 @@ dependencies = [
[[package]]
name = "backend"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
dependencies = [
"aes-kw",
"anyhow",
@ -800,7 +800,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chirpstack"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
dependencies = [
"aes",
"anyhow",
@ -891,7 +891,7 @@ dependencies = [
[[package]]
name = "chirpstack_api"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
dependencies = [
"diesel",
"hex",
@ -909,7 +909,7 @@ dependencies = [
[[package]]
name = "chirpstack_integration"
version = "4.6.0"
version = "4.9.0-test.2"
dependencies = [
"anyhow",
"async-trait",
@ -2582,7 +2582,7 @@ dependencies = [
[[package]]
name = "lrwn"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
dependencies = [
"aes",
"anyhow",
@ -2596,7 +2596,7 @@ dependencies = [
[[package]]
name = "lrwn_filters"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
dependencies = [
"hex",
"lrwn",

View File

@ -15,16 +15,16 @@ dev-dependencies:
# Set the versions
version:
test -n "$(VERSION)"
sed -i 's/^version.*/version = "$(VERSION)"/g' ./chirpstack/Cargo.toml
sed -i 's/^version.*/version = "$(VERSION)"/g' ./backend/Cargo.toml
sed -i 's/^version.*/version = "$(VERSION)"/g' ./lrwn/Cargo.toml
sed -i 's/^version.*/version = "$(VERSION)"/g' ./lrwn-filters/Cargo.toml
sed -i 's/^version.*/version = "$(VERSION)"/g' ./chirpstack-integration/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./chirpstack/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./backend/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./lrwn/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./lrwn-filters/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./chirpstack-integration/Cargo.toml
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./ui/package.json
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./api/grpc-web/package.json
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./api/js/package.json
sed -i 's/version.*/version = "$(VERSION)",/g' ./api/python/src/setup.py
sed -i 's/^version.*/version = "$(VERSION)"/g' ./api/rust/Cargo.toml
sed -i 's/^ version.*/ version = "$(VERSION)"/g' ./api/rust/Cargo.toml
sed -i 's/^version.*/version = "$(VERSION)"/g' ./api/java/build.gradle.kts
sed -i 's/^version.*/version = "$(VERSION)"/g' ./api/kotlin/build.gradle.kts
sed -i 's/"version.*/"version": "$(VERSION)",/g' ./api/php/composer.json

View File

@ -1,6 +1,6 @@
{
"name": "@chirpstack/chirpstack-api-grpc-web",
"version": "4.9.0-test.1",
"version": "4.9.0-test.2",
"description": "Chirpstack gRPC-web API",
"license": "MIT",
"devDependencies": {

View File

@ -8,7 +8,7 @@ plugins {
}
group = "io.chirpstack"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
repositories {
mavenCentral()

2
api/js/package.json vendored
View File

@ -1,6 +1,6 @@
{
"name": "@chirpstack/chirpstack-api",
"version": "4.9.0-test.1",
"version": "4.9.0-test.2",
"description": "Chirpstack JS and TS API",
"license": "MIT",
"devDependencies": {

View File

@ -9,7 +9,7 @@ plugins {
}
group = "io.chirpstack"
version = "4.9.0-test.1"
version = "4.9.0-test.2"
repositories {
mavenCentral()

View File

@ -3,7 +3,7 @@
"description": "Chirpstack PHP API",
"license": "MIT",
"type": "library",
"version": "4.8.1",
"version": "4.9.0-test.2",
"require": {
"php": ">=7.0.0",
"grpc/grpc": "^v1.57.0",

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.ActivateDeviceRequest</code>
*/
class ActivateDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
*/
protected $device_activation = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceActivation $device_activation
* Device activation object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
* @return \Chirpstack\Api\DeviceActivation|null
*/
public function getDeviceActivation()
{
return $this->device_activation;
}
public function hasDeviceActivation()
{
return isset($this->device_activation);
}
public function clearDeviceActivation()
{
unset($this->device_activation);
}
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
* @param \Chirpstack\Api\DeviceActivation $var
* @return $this
*/
public function setDeviceActivation($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceActivation::class);
$this->device_activation = $var;
return $this;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AddDeviceToMulticastGroupRequest</code>
*/
class AddDeviceToMulticastGroupRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
*/
protected $multicast_group_id = '';
/**
* Device EUI (HEX encoded).
*
* Generated from protobuf field <code>string dev_eui = 2;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $multicast_group_id
* Multicast group ID.
* @type string $dev_eui
* Device EUI (HEX encoded).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @return string
*/
public function getMulticastGroupId()
{
return $this->multicast_group_id;
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @param string $var
* @return $this
*/
public function setMulticastGroupId($var)
{
GPBUtil::checkString($var, True);
$this->multicast_group_id = $var;
return $this;
}
/**
* Device EUI (HEX encoded).
*
* Generated from protobuf field <code>string dev_eui = 2;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (HEX encoded).
*
* 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;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AddGatewayToMulticastGroupRequest</code>
*/
class AddGatewayToMulticastGroupRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
*/
protected $multicast_group_id = '';
/**
* Gateway ID (HEX encoded).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
*/
protected $gateway_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $multicast_group_id
* Multicast group ID.
* @type string $gateway_id
* Gateway ID (HEX encoded).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @return string
*/
public function getMulticastGroupId()
{
return $this->multicast_group_id;
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @param string $var
* @return $this
*/
public function setMulticastGroupId($var)
{
GPBUtil::checkString($var, True);
$this->multicast_group_id = $var;
return $this;
}
/**
* Gateway ID (HEX encoded).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (HEX encoded).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/relay.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AddRelayDeviceRequest</code>
*/
class AddRelayDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Relay DevEUI (EUI64).
*
* Generated from protobuf field <code>string relay_dev_eui = 1;</code>
*/
protected $relay_dev_eui = '';
/**
* Device DevEUI (EUI64).
*
* Generated from protobuf field <code>string device_dev_eui = 2;</code>
*/
protected $device_dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $relay_dev_eui
* Relay DevEUI (EUI64).
* @type string $device_dev_eui
* Device DevEUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Relay::initOnce();
parent::__construct($data);
}
/**
* Relay DevEUI (EUI64).
*
* Generated from protobuf field <code>string relay_dev_eui = 1;</code>
* @return string
*/
public function getRelayDevEui()
{
return $this->relay_dev_eui;
}
/**
* Relay DevEUI (EUI64).
*
* Generated from protobuf field <code>string relay_dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setRelayDevEui($var)
{
GPBUtil::checkString($var, True);
$this->relay_dev_eui = $var;
return $this;
}
/**
* Device DevEUI (EUI64).
*
* Generated from protobuf field <code>string device_dev_eui = 2;</code>
* @return string
*/
public function getDeviceDevEui()
{
return $this->device_dev_eui;
}
/**
* Device DevEUI (EUI64).
*
* Generated from protobuf field <code>string device_dev_eui = 2;</code>
* @param string $var
* @return $this
*/
public function setDeviceDevEui($var)
{
GPBUtil::checkString($var, True);
$this->device_dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AddTenantUserRequest</code>
*/
class AddTenantUserRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant user object.
*
* Generated from protobuf field <code>.api.TenantUser tenant_user = 1;</code>
*/
protected $tenant_user = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\TenantUser $tenant_user
* Tenant user object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant user object.
*
* Generated from protobuf field <code>.api.TenantUser tenant_user = 1;</code>
* @return \Chirpstack\Api\TenantUser|null
*/
public function getTenantUser()
{
return $this->tenant_user;
}
public function hasTenantUser()
{
return isset($this->tenant_user);
}
public function clearTenantUser()
{
unset($this->tenant_user);
}
/**
* Tenant user object.
*
* Generated from protobuf field <code>.api.TenantUser tenant_user = 1;</code>
* @param \Chirpstack\Api\TenantUser $var
* @return $this
*/
public function setTenantUser($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\TenantUser::class);
$this->tenant_user = $var;
return $this;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AdrAlgorithmListItem</code>
*/
class AdrAlgorithmListItem extends \Google\Protobuf\Internal\Message
{
/**
* Algorithm ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Algorithm name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Algorithm ID.
* @type string $name
* Algorithm name.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* Algorithm ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Algorithm ID.
*
* 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;
}
/**
* Algorithm name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Algorithm name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}

View File

@ -0,0 +1,175 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.ApiKey</code>
*/
class ApiKey extends \Google\Protobuf\Internal\Message
{
/**
* API key ID.
* This value will be automatically generated on create.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Is global admin key.
*
* Generated from protobuf field <code>bool is_admin = 3;</code>
*/
protected $is_admin = false;
/**
* Tenant ID.
* In case the API key is intended to manage resources under a single tenant.
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
*/
protected $tenant_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* API key ID.
* This value will be automatically generated on create.
* @type string $name
* Name.
* @type bool $is_admin
* Is global admin key.
* @type string $tenant_id
* Tenant ID.
* In case the API key is intended to manage resources under a single tenant.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* API key ID.
* This value will be automatically generated on create.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* API key ID.
* This value will be automatically generated on create.
*
* 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;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Is global admin key.
*
* Generated from protobuf field <code>bool is_admin = 3;</code>
* @return bool
*/
public function getIsAdmin()
{
return $this->is_admin;
}
/**
* Is global admin key.
*
* Generated from protobuf field <code>bool is_admin = 3;</code>
* @param bool $var
* @return $this
*/
public function setIsAdmin($var)
{
GPBUtil::checkBool($var);
$this->is_admin = $var;
return $this;
}
/**
* Tenant ID.
* In case the API key is intended to manage resources under a single tenant.
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID.
* In case the API key is intended to manage resources under a single tenant.
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @param string $var
* @return $this
*/
public function setTenantId($var)
{
GPBUtil::checkString($var, True);
$this->tenant_id = $var;
return $this;
}
}

View File

@ -0,0 +1,217 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.Application</code>
*/
class Application extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
* Note: on create this will be automatically generated.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Application description.
*
* Generated from protobuf field <code>string description = 3;</code>
*/
protected $description = '';
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
*/
protected $tenant_id = '';
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</code>
*/
private $tags;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* Note: on create this will be automatically generated.
* @type string $name
* Application name.
* @type string $description
* Application description.
* @type string $tenant_id
* Tenant ID (UUID).
* @type array|\Google\Protobuf\Internal\MapField $tags
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
* Note: on create this will be automatically generated.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
* Note: on create this will be automatically 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;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Application description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Application description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @param string $var
* @return $this
*/
public function setTenantId($var)
{
GPBUtil::checkString($var, True);
$this->tenant_id = $var;
return $this;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getTags()
{
return $this->tags;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</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;
}
}

View File

@ -0,0 +1,221 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.ApplicationListItem</code>
*/
class ApplicationListItem extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
*/
protected $updated_at = null;
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
*/
protected $name = '';
/**
* Application description.
*
* Generated from protobuf field <code>string description = 5;</code>
*/
protected $description = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type string $name
* Application name.
* @type string $description
* Application description.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
*
* 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;
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->created_at = $var;
return $this;
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
public function hasUpdatedAt()
{
return isset($this->updated_at);
}
public function clearUpdatedAt()
{
unset($this->updated_at);
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Application description.
*
* Generated from protobuf field <code>string description = 5;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Application description.
*
* 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;
}
}

View File

@ -0,0 +1,726 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
namespace Chirpstack\Api;
/**
* ApplicationService is the service providing API methods for managing
* applications.
*/
class ApplicationServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Create creates the given application.
* @param \Chirpstack\Api\CreateApplicationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Create(\Chirpstack\Api\CreateApplicationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/Create',
$argument,
['\Chirpstack\Api\CreateApplicationResponse', 'decode'],
$metadata, $options);
}
/**
* Get the application for the given ID.
* @param \Chirpstack\Api\GetApplicationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Get(\Chirpstack\Api\GetApplicationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/Get',
$argument,
['\Chirpstack\Api\GetApplicationResponse', 'decode'],
$metadata, $options);
}
/**
* Update updates the given application.
* @param \Chirpstack\Api\UpdateApplicationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Update(\Chirpstack\Api\UpdateApplicationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/Update',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the application for the given ID.
* @param \Chirpstack\Api\DeleteApplicationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Delete(\Chirpstack\Api\DeleteApplicationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/Delete',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the list of applications.
* @param \Chirpstack\Api\ListApplicationsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function List(\Chirpstack\Api\ListApplicationsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/List',
$argument,
['\Chirpstack\Api\ListApplicationsResponse', 'decode'],
$metadata, $options);
}
/**
* List all configured integrations.
* @param \Chirpstack\Api\ListIntegrationsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function ListIntegrations(\Chirpstack\Api\ListIntegrationsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/ListIntegrations',
$argument,
['\Chirpstack\Api\ListIntegrationsResponse', 'decode'],
$metadata, $options);
}
/**
* Create HTTP integration.
* @param \Chirpstack\Api\CreateHttpIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateHttpIntegration(\Chirpstack\Api\CreateHttpIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateHttpIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the configured HTTP integration.
* @param \Chirpstack\Api\GetHttpIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetHttpIntegration(\Chirpstack\Api\GetHttpIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetHttpIntegration',
$argument,
['\Chirpstack\Api\GetHttpIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update the HTTP integration.
* @param \Chirpstack\Api\UpdateHttpIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateHttpIntegration(\Chirpstack\Api\UpdateHttpIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateHttpIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the HTTP integration.
* @param \Chirpstack\Api\DeleteHttpIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteHttpIntegration(\Chirpstack\Api\DeleteHttpIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteHttpIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create InfluxDb integration.
* @param \Chirpstack\Api\CreateInfluxDbIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateInfluxDbIntegration(\Chirpstack\Api\CreateInfluxDbIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateInfluxDbIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get InfluxDb integration.
* @param \Chirpstack\Api\GetInfluxDbIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetInfluxDbIntegration(\Chirpstack\Api\GetInfluxDbIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetInfluxDbIntegration',
$argument,
['\Chirpstack\Api\GetInfluxDbIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update InfluxDb integration.
* @param \Chirpstack\Api\UpdateInfluxDbIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateInfluxDbIntegration(\Chirpstack\Api\UpdateInfluxDbIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateInfluxDbIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete InfluxDb integration.
* @param \Chirpstack\Api\DeleteInfluxDbIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteInfluxDbIntegration(\Chirpstack\Api\DeleteInfluxDbIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteInfluxDbIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create ThingsBoard integration.
* @param \Chirpstack\Api\CreateThingsBoardIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateThingsBoardIntegration(\Chirpstack\Api\CreateThingsBoardIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateThingsBoardIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get ThingsBoard integration.
* @param \Chirpstack\Api\GetThingsBoardIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetThingsBoardIntegration(\Chirpstack\Api\GetThingsBoardIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetThingsBoardIntegration',
$argument,
['\Chirpstack\Api\GetThingsBoardIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update ThingsBoard integration.
* @param \Chirpstack\Api\UpdateThingsBoardIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateThingsBoardIntegration(\Chirpstack\Api\UpdateThingsBoardIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateThingsBoardIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete ThingsBoard integration.
* @param \Chirpstack\Api\DeleteThingsBoardIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteThingsBoardIntegration(\Chirpstack\Api\DeleteThingsBoardIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteThingsBoardIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create myDevices integration.
* @param \Chirpstack\Api\CreateMyDevicesIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateMyDevicesIntegration(\Chirpstack\Api\CreateMyDevicesIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateMyDevicesIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get myDevices integration.
* @param \Chirpstack\Api\GetMyDevicesIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetMyDevicesIntegration(\Chirpstack\Api\GetMyDevicesIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetMyDevicesIntegration',
$argument,
['\Chirpstack\Api\GetMyDevicesIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update myDevices integration.
* @param \Chirpstack\Api\UpdateMyDevicesIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateMyDevicesIntegration(\Chirpstack\Api\UpdateMyDevicesIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateMyDevicesIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete myDevices integration.
* @param \Chirpstack\Api\DeleteMyDevicesIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteMyDevicesIntegration(\Chirpstack\Api\DeleteMyDevicesIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteMyDevicesIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create LoRaCloud integration.
* @param \Chirpstack\Api\CreateLoraCloudIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateLoraCloudIntegration(\Chirpstack\Api\CreateLoraCloudIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateLoraCloudIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get LoRaCloud integration.
* @param \Chirpstack\Api\GetLoraCloudIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetLoraCloudIntegration(\Chirpstack\Api\GetLoraCloudIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetLoraCloudIntegration',
$argument,
['\Chirpstack\Api\GetLoraCloudIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update LoRaCloud integration.
* @param \Chirpstack\Api\UpdateLoraCloudIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateLoraCloudIntegration(\Chirpstack\Api\UpdateLoraCloudIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateLoraCloudIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete LoRaCloud integration.
* @param \Chirpstack\Api\DeleteLoraCloudIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteLoraCloudIntegration(\Chirpstack\Api\DeleteLoraCloudIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteLoraCloudIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create GCP Pub/Sub integration.
* @param \Chirpstack\Api\CreateGcpPubSubIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateGcpPubSubIntegration(\Chirpstack\Api\CreateGcpPubSubIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateGcpPubSubIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get GCP Pub/Sub integration.
* @param \Chirpstack\Api\GetGcpPubSubIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetGcpPubSubIntegration(\Chirpstack\Api\GetGcpPubSubIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetGcpPubSubIntegration',
$argument,
['\Chirpstack\Api\GetGcpPubSubIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update GCP Pub/Sub integration.
* @param \Chirpstack\Api\UpdateGcpPubSubIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateGcpPubSubIntegration(\Chirpstack\Api\UpdateGcpPubSubIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateGcpPubSubIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete GCP Pub/Sub integration.
* @param \Chirpstack\Api\DeleteGcpPubSubIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteGcpPubSubIntegration(\Chirpstack\Api\DeleteGcpPubSubIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteGcpPubSubIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create AWS SNS integration.
* @param \Chirpstack\Api\CreateAwsSnsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateAwsSnsIntegration(\Chirpstack\Api\CreateAwsSnsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateAwsSnsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get AWS SNS integration.
* @param \Chirpstack\Api\GetAwsSnsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetAwsSnsIntegration(\Chirpstack\Api\GetAwsSnsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetAwsSnsIntegration',
$argument,
['\Chirpstack\Api\GetAwsSnsIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update AWS SNS integration.
* @param \Chirpstack\Api\UpdateAwsSnsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateAwsSnsIntegration(\Chirpstack\Api\UpdateAwsSnsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateAwsSnsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete AWS SNS integration.
* @param \Chirpstack\Api\DeleteAwsSnsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteAwsSnsIntegration(\Chirpstack\Api\DeleteAwsSnsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteAwsSnsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create Azure Service-Bus integration.
* @param \Chirpstack\Api\CreateAzureServiceBusIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateAzureServiceBusIntegration(\Chirpstack\Api\CreateAzureServiceBusIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateAzureServiceBusIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get Azure Service-Bus integration.
* @param \Chirpstack\Api\GetAzureServiceBusIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetAzureServiceBusIntegration(\Chirpstack\Api\GetAzureServiceBusIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetAzureServiceBusIntegration',
$argument,
['\Chirpstack\Api\GetAzureServiceBusIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update Azure Service-Bus integration.
* @param \Chirpstack\Api\UpdateAzureServiceBusIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateAzureServiceBusIntegration(\Chirpstack\Api\UpdateAzureServiceBusIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateAzureServiceBusIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete Azure Service-Bus integration.
* @param \Chirpstack\Api\DeleteAzureServiceBusIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteAzureServiceBusIntegration(\Chirpstack\Api\DeleteAzureServiceBusIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteAzureServiceBusIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create Pilot Things integration.
* @param \Chirpstack\Api\CreatePilotThingsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreatePilotThingsIntegration(\Chirpstack\Api\CreatePilotThingsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreatePilotThingsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get Pilot Things integration.
* @param \Chirpstack\Api\GetPilotThingsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetPilotThingsIntegration(\Chirpstack\Api\GetPilotThingsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetPilotThingsIntegration',
$argument,
['\Chirpstack\Api\GetPilotThingsIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update Pilot Things integration.
* @param \Chirpstack\Api\UpdatePilotThingsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdatePilotThingsIntegration(\Chirpstack\Api\UpdatePilotThingsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdatePilotThingsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete Pilot Things integration.
* @param \Chirpstack\Api\DeletePilotThingsIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeletePilotThingsIntegration(\Chirpstack\Api\DeletePilotThingsIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeletePilotThingsIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Create IFTTT integration.
* @param \Chirpstack\Api\CreateIftttIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateIftttIntegration(\Chirpstack\Api\CreateIftttIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/CreateIftttIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get IFTTT integration.
* @param \Chirpstack\Api\GetIftttIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetIftttIntegration(\Chirpstack\Api\GetIftttIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GetIftttIntegration',
$argument,
['\Chirpstack\Api\GetIftttIntegrationResponse', 'decode'],
$metadata, $options);
}
/**
* Update IFTTT integration.
* @param \Chirpstack\Api\UpdateIftttIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateIftttIntegration(\Chirpstack\Api\UpdateIftttIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/UpdateIftttIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete IFTTT integration.
* @param \Chirpstack\Api\DeleteIftttIntegrationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteIftttIntegration(\Chirpstack\Api\DeleteIftttIntegrationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/DeleteIftttIntegration',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Generates application ID specific client-certificate.
* @param \Chirpstack\Api\GenerateMqttIntegrationClientCertificateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GenerateMqttIntegrationClientCertificate(\Chirpstack\Api\GenerateMqttIntegrationClientCertificateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.ApplicationService/GenerateMqttIntegrationClientCertificate',
$argument,
['\Chirpstack\Api\GenerateMqttIntegrationClientCertificateResponse', 'decode'],
$metadata, $options);
}
}

View File

@ -0,0 +1,235 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AwsSnsIntegration</code>
*/
class AwsSnsIntegration extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
*/
protected $encoding = 0;
/**
* AWS region.
*
* Generated from protobuf field <code>string region = 3;</code>
*/
protected $region = '';
/**
* AWS Access Key ID.
*
* Generated from protobuf field <code>string access_key_id = 4;</code>
*/
protected $access_key_id = '';
/**
* AWS Secret Access Key.
*
* Generated from protobuf field <code>string secret_access_key = 5;</code>
*/
protected $secret_access_key = '';
/**
* Topic ARN.
*
* Generated from protobuf field <code>string topic_arn = 6;</code>
*/
protected $topic_arn = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* @type int $encoding
* Encoding.
* @type string $region
* AWS region.
* @type string $access_key_id
* AWS Access Key ID.
* @type string $secret_access_key
* AWS Secret Access Key.
* @type string $topic_arn
* Topic ARN.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @return int
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @param int $var
* @return $this
*/
public function setEncoding($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class);
$this->encoding = $var;
return $this;
}
/**
* AWS region.
*
* Generated from protobuf field <code>string region = 3;</code>
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* AWS region.
*
* Generated from protobuf field <code>string region = 3;</code>
* @param string $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkString($var, True);
$this->region = $var;
return $this;
}
/**
* AWS Access Key ID.
*
* Generated from protobuf field <code>string access_key_id = 4;</code>
* @return string
*/
public function getAccessKeyId()
{
return $this->access_key_id;
}
/**
* AWS Access Key ID.
*
* Generated from protobuf field <code>string access_key_id = 4;</code>
* @param string $var
* @return $this
*/
public function setAccessKeyId($var)
{
GPBUtil::checkString($var, True);
$this->access_key_id = $var;
return $this;
}
/**
* AWS Secret Access Key.
*
* Generated from protobuf field <code>string secret_access_key = 5;</code>
* @return string
*/
public function getSecretAccessKey()
{
return $this->secret_access_key;
}
/**
* AWS Secret Access Key.
*
* Generated from protobuf field <code>string secret_access_key = 5;</code>
* @param string $var
* @return $this
*/
public function setSecretAccessKey($var)
{
GPBUtil::checkString($var, True);
$this->secret_access_key = $var;
return $this;
}
/**
* Topic ARN.
*
* Generated from protobuf field <code>string topic_arn = 6;</code>
* @return string
*/
public function getTopicArn()
{
return $this->topic_arn;
}
/**
* Topic ARN.
*
* Generated from protobuf field <code>string topic_arn = 6;</code>
* @param string $var
* @return $this
*/
public function setTopicArn($var)
{
GPBUtil::checkString($var, True);
$this->topic_arn = $var;
return $this;
}
}

View File

@ -0,0 +1,171 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.AzureServiceBusIntegration</code>
*/
class AzureServiceBusIntegration extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
*/
protected $encoding = 0;
/**
* Connection string.
*
* Generated from protobuf field <code>string connection_string = 3;</code>
*/
protected $connection_string = '';
/**
* Publish name.
* This is the name of the topic or queue.
*
* Generated from protobuf field <code>string publish_name = 4;</code>
*/
protected $publish_name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* @type int $encoding
* Encoding.
* @type string $connection_string
* Connection string.
* @type string $publish_name
* Publish name.
* This is the name of the topic or queue.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @return int
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @param int $var
* @return $this
*/
public function setEncoding($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class);
$this->encoding = $var;
return $this;
}
/**
* Connection string.
*
* Generated from protobuf field <code>string connection_string = 3;</code>
* @return string
*/
public function getConnectionString()
{
return $this->connection_string;
}
/**
* Connection string.
*
* Generated from protobuf field <code>string connection_string = 3;</code>
* @param string $var
* @return $this
*/
public function setConnectionString($var)
{
GPBUtil::checkString($var, True);
$this->connection_string = $var;
return $this;
}
/**
* Publish name.
* This is the name of the topic or queue.
*
* Generated from protobuf field <code>string publish_name = 4;</code>
* @return string
*/
public function getPublishName()
{
return $this->publish_name;
}
/**
* Publish name.
* This is the name of the topic or queue.
*
* Generated from protobuf field <code>string publish_name = 4;</code>
* @param string $var
* @return $this
*/
public function setPublishName($var)
{
GPBUtil::checkString($var, True);
$this->publish_name = $var;
return $this;
}
}

View File

@ -0,0 +1,80 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use UnexpectedValueException;
/**
* Protobuf type <code>api.CadPeriodicity</code>
*/
class CadPeriodicity
{
/**
* 1 second.
*
* Generated from protobuf enum <code>SEC_1 = 0;</code>
*/
const SEC_1 = 0;
/**
* 500 milliseconds
*
* Generated from protobuf enum <code>MS_500 = 1;</code>
*/
const MS_500 = 1;
/**
* 250 milliseconds
*
* Generated from protobuf enum <code>MS_250 = 2;</code>
*/
const MS_250 = 2;
/**
* 100 milliseconds
*
* Generated from protobuf enum <code>MS_100 = 3;</code>
*/
const MS_100 = 3;
/**
* 50 milliseconds
*
* Generated from protobuf enum <code>MS_50 = 4;</code>
*/
const MS_50 = 4;
/**
* 20 milliseconds
*
* Generated from protobuf enum <code>MS_20 = 5;</code>
*/
const MS_20 = 5;
private static $valueToName = [
self::SEC_1 => 'SEC_1',
self::MS_500 => 'MS_500',
self::MS_250 => 'MS_250',
self::MS_100 => 'MS_100',
self::MS_50 => 'MS_50',
self::MS_20 => 'MS_20',
];
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);
}
}

View File

@ -0,0 +1,59 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use UnexpectedValueException;
/**
* Protobuf type <code>api.CodecRuntime</code>
*/
class CodecRuntime
{
/**
* None.
*
* Generated from protobuf enum <code>NONE = 0;</code>
*/
const NONE = 0;
/**
* Cayenne LPP.
*
* Generated from protobuf enum <code>CAYENNE_LPP = 1;</code>
*/
const CAYENNE_LPP = 1;
/**
* JavaScript.
*
* Generated from protobuf enum <code>JS = 2;</code>
*/
const JS = 2;
private static $valueToName = [
self::NONE => 'NONE',
self::CAYENNE_LPP => 'CAYENNE_LPP',
self::JS => 'JS',
];
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);
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateApiKeyRequest</code>
*/
class CreateApiKeyRequest extends \Google\Protobuf\Internal\Message
{
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
*/
protected $api_key = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\ApiKey $api_key
* The API key to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
* @return \Chirpstack\Api\ApiKey|null
*/
public function getApiKey()
{
return $this->api_key;
}
public function hasApiKey()
{
return isset($this->api_key);
}
public function clearApiKey()
{
unset($this->api_key);
}
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
* @param \Chirpstack\Api\ApiKey $var
* @return $this
*/
public function setApiKey($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\ApiKey::class);
$this->api_key = $var;
return $this;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateApiKeyResponse</code>
*/
class CreateApiKeyResponse extends \Google\Protobuf\Internal\Message
{
/**
* API key ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* API token for authentication API requests.
*
* Generated from protobuf field <code>string token = 2;</code>
*/
protected $token = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* API key ID.
* @type string $token
* API token for authentication API requests.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* API key ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* API key ID.
*
* 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;
}
/**
* API token for authentication API requests.
*
* Generated from protobuf field <code>string token = 2;</code>
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* API token for authentication API requests.
*
* Generated from protobuf field <code>string token = 2;</code>
* @param string $var
* @return $this
*/
public function setToken($var)
{
GPBUtil::checkString($var, True);
$this->token = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateApplicationRequest</code>
*/
class CreateApplicationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application object to create.
*
* Generated from protobuf field <code>.api.Application application = 1;</code>
*/
protected $application = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Application $application
* Application object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application object to create.
*
* Generated from protobuf field <code>.api.Application application = 1;</code>
* @return \Chirpstack\Api\Application|null
*/
public function getApplication()
{
return $this->application;
}
public function hasApplication()
{
return isset($this->application);
}
public function clearApplication()
{
unset($this->application);
}
/**
* Application object to create.
*
* Generated from protobuf field <code>.api.Application application = 1;</code>
* @param \Chirpstack\Api\Application $var
* @return $this
*/
public function setApplication($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Application::class);
$this->application = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateApplicationResponse</code>
*/
class CreateApplicationResponse extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateAwsSnsIntegrationRequest</code>
*/
class CreateAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AwsSnsIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\AwsSnsIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AwsSnsIntegration integration = 1;</code>
* @return \Chirpstack\Api\AwsSnsIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AwsSnsIntegration integration = 1;</code>
* @param \Chirpstack\Api\AwsSnsIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\AwsSnsIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateAzureServiceBusIntegrationRequest</code>
*/
class CreateAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AzureServiceBusIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\AzureServiceBusIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AzureServiceBusIntegration integration = 1;</code>
* @return \Chirpstack\Api\AzureServiceBusIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.AzureServiceBusIntegration integration = 1;</code>
* @param \Chirpstack\Api\AzureServiceBusIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\AzureServiceBusIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateDeviceKeysRequest</code>
*/
class CreateDeviceKeysRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device-keys object.
*
* Generated from protobuf field <code>.api.DeviceKeys device_keys = 1;</code>
*/
protected $device_keys = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceKeys $device_keys
* Device-keys object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device-keys object.
*
* Generated from protobuf field <code>.api.DeviceKeys device_keys = 1;</code>
* @return \Chirpstack\Api\DeviceKeys|null
*/
public function getDeviceKeys()
{
return $this->device_keys;
}
public function hasDeviceKeys()
{
return isset($this->device_keys);
}
public function clearDeviceKeys()
{
unset($this->device_keys);
}
/**
* Device-keys object.
*
* Generated from protobuf field <code>.api.DeviceKeys device_keys = 1;</code>
* @param \Chirpstack\Api\DeviceKeys $var
* @return $this
*/
public function setDeviceKeys($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceKeys::class);
$this->device_keys = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateDeviceProfileRequest</code>
*/
class CreateDeviceProfileRequest extends \Google\Protobuf\Internal\Message
{
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfile device_profile = 1;</code>
*/
protected $device_profile = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceProfile $device_profile
* Object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfile device_profile = 1;</code>
* @return \Chirpstack\Api\DeviceProfile|null
*/
public function getDeviceProfile()
{
return $this->device_profile;
}
public function hasDeviceProfile()
{
return isset($this->device_profile);
}
public function clearDeviceProfile()
{
unset($this->device_profile);
}
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfile device_profile = 1;</code>
* @param \Chirpstack\Api\DeviceProfile $var
* @return $this
*/
public function setDeviceProfile($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfile::class);
$this->device_profile = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateDeviceProfileResponse</code>
*/
class CreateDeviceProfileResponse extends \Google\Protobuf\Internal\Message
{
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile_template.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateDeviceProfileTemplateRequest</code>
*/
class CreateDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message
{
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfileTemplate device_profile_template = 1;</code>
*/
protected $device_profile_template = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceProfileTemplate $device_profile_template
* Object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce();
parent::__construct($data);
}
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfileTemplate device_profile_template = 1;</code>
* @return \Chirpstack\Api\DeviceProfileTemplate|null
*/
public function getDeviceProfileTemplate()
{
return $this->device_profile_template;
}
public function hasDeviceProfileTemplate()
{
return isset($this->device_profile_template);
}
public function clearDeviceProfileTemplate()
{
unset($this->device_profile_template);
}
/**
* Object to create.
*
* Generated from protobuf field <code>.api.DeviceProfileTemplate device_profile_template = 1;</code>
* @param \Chirpstack\Api\DeviceProfileTemplate $var
* @return $this
*/
public function setDeviceProfileTemplate($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfileTemplate::class);
$this->device_profile_template = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateDeviceRequest</code>
*/
class CreateDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
*/
protected $device = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Device $device
* Device object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
* @return \Chirpstack\Api\Device|null
*/
public function getDevice()
{
return $this->device;
}
public function hasDevice()
{
return isset($this->device);
}
public function clearDevice()
{
unset($this->device);
}
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
* @param \Chirpstack\Api\Device $var
* @return $this
*/
public function setDevice($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Device::class);
$this->device = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateGatewayRequest</code>
*/
class CreateGatewayRequest extends \Google\Protobuf\Internal\Message
{
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
*/
protected $gateway = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Gateway $gateway
* Gateway object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
* @return \Chirpstack\Api\Gateway|null
*/
public function getGateway()
{
return $this->gateway;
}
public function hasGateway()
{
return isset($this->gateway);
}
public function clearGateway()
{
unset($this->gateway);
}
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
* @param \Chirpstack\Api\Gateway $var
* @return $this
*/
public function setGateway($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class);
$this->gateway = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateGcpPubSubIntegrationRequest</code>
*/
class CreateGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.GcpPubSubIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\GcpPubSubIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.GcpPubSubIntegration integration = 1;</code>
* @return \Chirpstack\Api\GcpPubSubIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.GcpPubSubIntegration integration = 1;</code>
* @param \Chirpstack\Api\GcpPubSubIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\GcpPubSubIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateHttpIntegrationRequest</code>
*/
class CreateHttpIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.HttpIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\HttpIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.HttpIntegration integration = 1;</code>
* @return \Chirpstack\Api\HttpIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.HttpIntegration integration = 1;</code>
* @param \Chirpstack\Api\HttpIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\HttpIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateIftttIntegrationRequest</code>
*/
class CreateIftttIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object.
*
* Generated from protobuf field <code>.api.IftttIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\IftttIntegration $integration
* Integration object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object.
*
* Generated from protobuf field <code>.api.IftttIntegration integration = 1;</code>
* @return \Chirpstack\Api\IftttIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object.
*
* Generated from protobuf field <code>.api.IftttIntegration integration = 1;</code>
* @param \Chirpstack\Api\IftttIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\IftttIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateInfluxDbIntegrationRequest</code>
*/
class CreateInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.InfluxDbIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\InfluxDbIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.InfluxDbIntegration integration = 1;</code>
* @return \Chirpstack\Api\InfluxDbIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.InfluxDbIntegration integration = 1;</code>
* @param \Chirpstack\Api\InfluxDbIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\InfluxDbIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateLoraCloudIntegrationRequest</code>
*/
class CreateLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.LoraCloudIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\LoraCloudIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.LoraCloudIntegration integration = 1;</code>
* @return \Chirpstack\Api\LoraCloudIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.LoraCloudIntegration integration = 1;</code>
* @param \Chirpstack\Api\LoraCloudIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\LoraCloudIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateMulticastGroupRequest</code>
*/
class CreateMulticastGroupRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast group to create.
*
* Generated from protobuf field <code>.api.MulticastGroup multicast_group = 1;</code>
*/
protected $multicast_group = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\MulticastGroup $multicast_group
* Multicast group to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast group to create.
*
* Generated from protobuf field <code>.api.MulticastGroup multicast_group = 1;</code>
* @return \Chirpstack\Api\MulticastGroup|null
*/
public function getMulticastGroup()
{
return $this->multicast_group;
}
public function hasMulticastGroup()
{
return isset($this->multicast_group);
}
public function clearMulticastGroup()
{
unset($this->multicast_group);
}
/**
* Multicast group to create.
*
* Generated from protobuf field <code>.api.MulticastGroup multicast_group = 1;</code>
* @param \Chirpstack\Api\MulticastGroup $var
* @return $this
*/
public function setMulticastGroup($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroup::class);
$this->multicast_group = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateMulticastGroupResponse</code>
*/
class CreateMulticastGroupResponse extends \Google\Protobuf\Internal\Message
{
/**
* ID of created multicast group (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID of created multicast group (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* ID of created multicast group (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID of created multicast group (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateMyDevicesIntegrationRequest</code>
*/
class CreateMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.MyDevicesIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\MyDevicesIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.MyDevicesIntegration integration = 1;</code>
* @return \Chirpstack\Api\MyDevicesIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.MyDevicesIntegration integration = 1;</code>
* @param \Chirpstack\Api\MyDevicesIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\MyDevicesIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreatePilotThingsIntegrationRequest</code>
*/
class CreatePilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.PilotThingsIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\PilotThingsIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.PilotThingsIntegration integration = 1;</code>
* @return \Chirpstack\Api\PilotThingsIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.PilotThingsIntegration integration = 1;</code>
* @param \Chirpstack\Api\PilotThingsIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\PilotThingsIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateTenantRequest</code>
*/
class CreateTenantRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant object to create.
*
* Generated from protobuf field <code>.api.Tenant tenant = 1;</code>
*/
protected $tenant = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Tenant $tenant
* Tenant object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant object to create.
*
* Generated from protobuf field <code>.api.Tenant tenant = 1;</code>
* @return \Chirpstack\Api\Tenant|null
*/
public function getTenant()
{
return $this->tenant;
}
public function hasTenant()
{
return isset($this->tenant);
}
public function clearTenant()
{
unset($this->tenant);
}
/**
* Tenant object to create.
*
* Generated from protobuf field <code>.api.Tenant tenant = 1;</code>
* @param \Chirpstack\Api\Tenant $var
* @return $this
*/
public function setTenant($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Tenant::class);
$this->tenant = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateTenantResponse</code>
*/
class CreateTenantResponse extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Tenant ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Tenant ID.
*
* 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;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateThingsBoardIntegrationRequest</code>
*/
class CreateThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.ThingsBoardIntegration integration = 1;</code>
*/
protected $integration = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\ThingsBoardIntegration $integration
* Integration object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.ThingsBoardIntegration integration = 1;</code>
* @return \Chirpstack\Api\ThingsBoardIntegration|null
*/
public function getIntegration()
{
return $this->integration;
}
public function hasIntegration()
{
return isset($this->integration);
}
public function clearIntegration()
{
unset($this->integration);
}
/**
* Integration object to create.
*
* Generated from protobuf field <code>.api.ThingsBoardIntegration integration = 1;</code>
* @param \Chirpstack\Api\ThingsBoardIntegration $var
* @return $this
*/
public function setIntegration($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\ThingsBoardIntegration::class);
$this->integration = $var;
return $this;
}
}

View File

@ -0,0 +1,143 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/user.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateUserRequest</code>
*/
class CreateUserRequest extends \Google\Protobuf\Internal\Message
{
/**
* User object to create.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
*/
protected $user = null;
/**
* Password to set for the user.
*
* Generated from protobuf field <code>string password = 2;</code>
*/
protected $password = '';
/**
* Add the user to the following tenants.
*
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
*/
private $tenants;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\User $user
* User object to create.
* @type string $password
* Password to set for the user.
* @type array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $tenants
* Add the user to the following tenants.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\User::initOnce();
parent::__construct($data);
}
/**
* User object to create.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
* @return \Chirpstack\Api\User|null
*/
public function getUser()
{
return $this->user;
}
public function hasUser()
{
return isset($this->user);
}
public function clearUser()
{
unset($this->user);
}
/**
* User object to create.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
* @param \Chirpstack\Api\User $var
* @return $this
*/
public function setUser($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\User::class);
$this->user = $var;
return $this;
}
/**
* Password to set for the user.
*
* Generated from protobuf field <code>string password = 2;</code>
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Password to set for the user.
*
* Generated from protobuf field <code>string password = 2;</code>
* @param string $var
* @return $this
*/
public function setPassword($var)
{
GPBUtil::checkString($var, True);
$this->password = $var;
return $this;
}
/**
* Add the user to the following tenants.
*
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTenants()
{
return $this->tenants;
}
/**
* Add the user to the following tenants.
*
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
* @param array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTenants($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserTenant::class);
$this->tenants = $arr;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/user.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.CreateUserResponse</code>
*/
class CreateUserResponse extends \Google\Protobuf\Internal\Message
{
/**
* User ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* User ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\User::initOnce();
parent::__construct($data);
}
/**
* User ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* User ID.
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeactivateDeviceRequest</code>
*/
class DeactivateDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteApiKeyRequest</code>
*/
class DeleteApiKeyRequest extends \Google\Protobuf\Internal\Message
{
/**
* API key ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* API key ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* API key ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* API key ID.
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteApplicationRequest</code>
*/
class DeleteApplicationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteAwsSnsIntegrationRequest</code>
*/
class DeleteAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteAzureServiceBusIntegrationRequest</code>
*/
class DeleteAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteDeviceKeysRequest</code>
*/
class DeleteDeviceKeysRequest extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteDeviceProfileRequest</code>
*/
class DeleteDeviceProfileRequest extends \Google\Protobuf\Internal\Message
{
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile_template.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteDeviceProfileTemplateRequest</code>
*/
class DeleteDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message
{
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce();
parent::__construct($data);
}
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID.
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteDeviceRequest</code>
*/
class DeleteDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteGatewayRequest</code>
*/
class DeleteGatewayRequest extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
*/
protected $gateway_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id
* Gateway ID (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteGcpPubSubIntegrationRequest</code>
*/
class DeleteGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteHttpIntegrationRequest</code>
*/
class DeleteHttpIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteIftttIntegrationRequest</code>
*/
class DeleteIftttIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteInfluxDbIntegrationRequest</code>
*/
class DeleteInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteLoraCloudIntegrationRequest</code>
*/
class DeleteLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteMulticastGroupRequest</code>
*/
class DeleteMulticastGroupRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast group iD.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Multicast group iD.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast group iD.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Multicast group iD.
*
* 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;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteMyDevicesIntegrationRequest</code>
*/
class DeleteMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeletePilotThingsIntegrationRequest</code>
*/
class DeletePilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteRelayGatewayRequest</code>
*/
class DeleteRelayGatewayRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
*/
protected $tenant_id = '';
/**
* Relay ID (4 byte HEX).
*
* Generated from protobuf field <code>string relay_id = 2;</code>
*/
protected $relay_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $tenant_id
* Tenant ID.
* @type string $relay_id
* Relay ID (4 byte HEX).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID.
*
* 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;
}
/**
* Relay ID (4 byte HEX).
*
* Generated from protobuf field <code>string relay_id = 2;</code>
* @return string
*/
public function getRelayId()
{
return $this->relay_id;
}
/**
* Relay ID (4 byte HEX).
*
* Generated from protobuf field <code>string relay_id = 2;</code>
* @param string $var
* @return $this
*/
public function setRelayId($var)
{
GPBUtil::checkString($var, True);
$this->relay_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteTenantRequest</code>
*/
class DeleteTenantRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Tenant ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Tenant ID.
*
* 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;
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteTenantUserRequest</code>
*/
class DeleteTenantUserRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
*/
protected $tenant_id = '';
/**
* User ID (UUID).
*
* Generated from protobuf field <code>string user_id = 2;</code>
*/
protected $user_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $tenant_id
* Tenant ID (UUID).
* @type string $user_id
* User ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::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;
}
/**
* User ID (UUID).
*
* Generated from protobuf field <code>string user_id = 2;</code>
* @return string
*/
public function getUserId()
{
return $this->user_id;
}
/**
* User ID (UUID).
*
* Generated from protobuf field <code>string user_id = 2;</code>
* @param string $var
* @return $this
*/
public function setUserId($var)
{
GPBUtil::checkString($var, True);
$this->user_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteThingsBoardIntegrationRequest</code>
*/
class DeleteThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/user.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeleteUserRequest</code>
*/
class DeleteUserRequest extends \Google\Protobuf\Internal\Message
{
/**
* User ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* User ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\User::initOnce();
parent::__construct($data);
}
/**
* User ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* User ID.
*
* 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;
}
}

View File

@ -0,0 +1,411 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.Device</code>
*/
class Device extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
*/
protected $description = '';
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 4;</code>
*/
protected $application_id = '';
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string device_profile_id = 5;</code>
*/
protected $device_profile_id = '';
/**
* Skip frame-counter checks (this is insecure, but could be helpful for
* debugging).
*
* Generated from protobuf field <code>bool skip_fcnt_check = 6;</code>
*/
protected $skip_fcnt_check = false;
/**
* Device is disabled.
*
* Generated from protobuf field <code>bool is_disabled = 7;</code>
*/
protected $is_disabled = false;
/**
* Variables (user defined).
* These variables can be used together with integrations to store tokens /
* secrets that must be configured per device. These variables are not
* exposed in the event payloads.
*
* Generated from protobuf field <code>map<string, string> variables = 8;</code>
*/
private $variables;
/**
* Tags (user defined).
* These tags can be used to add additional information to the device.
* These tags are exposed in all the integration events.
*
* Generated from protobuf field <code>map<string, string> tags = 9;</code>
*/
private $tags;
/**
* JoinEUI (optional, EUI64).
* This field will be automatically set / updated on OTAA. However, in some
* cases it must be pre-configured. For example to allow OTAA using a Relay.
* In this case the Relay needs to know the JoinEUI + DevEUI combinations
* of the devices for which it needs to forward uplinks.
*
* Generated from protobuf field <code>string join_eui = 10;</code>
*/
protected $join_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* @type string $name
* Name.
* @type string $description
* Description.
* @type string $application_id
* Application ID (UUID).
* @type string $device_profile_id
* Device-profile ID (UUID).
* @type bool $skip_fcnt_check
* Skip frame-counter checks (this is insecure, but could be helpful for
* debugging).
* @type bool $is_disabled
* Device is disabled.
* @type array|\Google\Protobuf\Internal\MapField $variables
* Variables (user defined).
* These variables can be used together with integrations to store tokens /
* secrets that must be configured per device. These variables are not
* exposed in the event payloads.
* @type array|\Google\Protobuf\Internal\MapField $tags
* Tags (user defined).
* These tags can be used to add additional information to the device.
* These tags are exposed in all the integration events.
* @type string $join_eui
* JoinEUI (optional, EUI64).
* This field will be automatically set / updated on OTAA. However, in some
* cases it must be pre-configured. For example to allow OTAA using a Relay.
* In this case the Relay needs to know the JoinEUI + DevEUI combinations
* of the devices for which it needs to forward uplinks.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 4;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 4;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $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;
}
/**
* Skip frame-counter checks (this is insecure, but could be helpful for
* debugging).
*
* Generated from protobuf field <code>bool skip_fcnt_check = 6;</code>
* @return bool
*/
public function getSkipFcntCheck()
{
return $this->skip_fcnt_check;
}
/**
* Skip frame-counter checks (this is insecure, but could be helpful for
* debugging).
*
* Generated from protobuf field <code>bool skip_fcnt_check = 6;</code>
* @param bool $var
* @return $this
*/
public function setSkipFcntCheck($var)
{
GPBUtil::checkBool($var);
$this->skip_fcnt_check = $var;
return $this;
}
/**
* Device is disabled.
*
* Generated from protobuf field <code>bool is_disabled = 7;</code>
* @return bool
*/
public function getIsDisabled()
{
return $this->is_disabled;
}
/**
* Device is disabled.
*
* Generated from protobuf field <code>bool is_disabled = 7;</code>
* @param bool $var
* @return $this
*/
public function setIsDisabled($var)
{
GPBUtil::checkBool($var);
$this->is_disabled = $var;
return $this;
}
/**
* Variables (user defined).
* These variables can be used together with integrations to store tokens /
* secrets that must be configured per device. These variables are not
* exposed in the event payloads.
*
* Generated from protobuf field <code>map<string, string> variables = 8;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getVariables()
{
return $this->variables;
}
/**
* Variables (user defined).
* These variables can be used together with integrations to store tokens /
* secrets that must be configured per device. These variables are not
* exposed in the event payloads.
*
* Generated from protobuf field <code>map<string, string> variables = 8;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setVariables($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->variables = $arr;
return $this;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the device.
* These tags are exposed in all the integration events.
*
* Generated from protobuf field <code>map<string, string> tags = 9;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getTags()
{
return $this->tags;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the device.
* These tags are exposed in all the integration events.
*
* 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;
}
/**
* JoinEUI (optional, EUI64).
* This field will be automatically set / updated on OTAA. However, in some
* cases it must be pre-configured. For example to allow OTAA using a Relay.
* In this case the Relay needs to know the JoinEUI + DevEUI combinations
* of the devices for which it needs to forward uplinks.
*
* Generated from protobuf field <code>string join_eui = 10;</code>
* @return string
*/
public function getJoinEui()
{
return $this->join_eui;
}
/**
* JoinEUI (optional, EUI64).
* This field will be automatically set / updated on OTAA. However, in some
* cases it must be pre-configured. For example to allow OTAA using a Relay.
* In this case the Relay needs to know the JoinEUI + DevEUI combinations
* of the devices for which it needs to forward uplinks.
*
* Generated from protobuf field <code>string join_eui = 10;</code>
* @param string $var
* @return $this
*/
public function setJoinEui($var)
{
GPBUtil::checkString($var, True);
$this->join_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,337 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceActivation</code>
*/
class DeviceActivation extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
*/
protected $dev_addr = '';
/**
* Application session key (HEX encoded).
*
* Generated from protobuf field <code>string app_s_key = 3;</code>
*/
protected $app_s_key = '';
/**
* Network session encryption key (HEX encoded).
*
* Generated from protobuf field <code>string nwk_s_enc_key = 4;</code>
*/
protected $nwk_s_enc_key = '';
/**
* Serving network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string s_nwk_s_int_key = 8;</code>
*/
protected $s_nwk_s_int_key = '';
/**
* Forwarding network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string f_nwk_s_int_key = 9;</code>
*/
protected $f_nwk_s_int_key = '';
/**
* Uplink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_up = 5;</code>
*/
protected $f_cnt_up = 0;
/**
* Downlink network frame-counter.
*
* Generated from protobuf field <code>uint32 n_f_cnt_down = 6;</code>
*/
protected $n_f_cnt_down = 0;
/**
* Downlink application frame-counter.
*
* Generated from protobuf field <code>uint32 a_f_cnt_down = 10;</code>
*/
protected $a_f_cnt_down = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* @type string $dev_addr
* Device address (HEX encoded).
* @type string $app_s_key
* Application session key (HEX encoded).
* @type string $nwk_s_enc_key
* Network session encryption key (HEX encoded).
* @type string $s_nwk_s_int_key
* Serving network session integrity key (HEX encoded).
* @type string $f_nwk_s_int_key
* Forwarding network session integrity key (HEX encoded).
* @type int $f_cnt_up
* Uplink frame-counter.
* @type int $n_f_cnt_down
* Downlink network frame-counter.
* @type int $a_f_cnt_down
* Downlink application frame-counter.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
* @return string
*/
public function getDevAddr()
{
return $this->dev_addr;
}
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
* @param string $var
* @return $this
*/
public function setDevAddr($var)
{
GPBUtil::checkString($var, True);
$this->dev_addr = $var;
return $this;
}
/**
* Application session key (HEX encoded).
*
* Generated from protobuf field <code>string app_s_key = 3;</code>
* @return string
*/
public function getAppSKey()
{
return $this->app_s_key;
}
/**
* Application session key (HEX encoded).
*
* Generated from protobuf field <code>string app_s_key = 3;</code>
* @param string $var
* @return $this
*/
public function setAppSKey($var)
{
GPBUtil::checkString($var, True);
$this->app_s_key = $var;
return $this;
}
/**
* Network session encryption key (HEX encoded).
*
* Generated from protobuf field <code>string nwk_s_enc_key = 4;</code>
* @return string
*/
public function getNwkSEncKey()
{
return $this->nwk_s_enc_key;
}
/**
* Network session encryption key (HEX encoded).
*
* Generated from protobuf field <code>string nwk_s_enc_key = 4;</code>
* @param string $var
* @return $this
*/
public function setNwkSEncKey($var)
{
GPBUtil::checkString($var, True);
$this->nwk_s_enc_key = $var;
return $this;
}
/**
* Serving network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string s_nwk_s_int_key = 8;</code>
* @return string
*/
public function getSNwkSIntKey()
{
return $this->s_nwk_s_int_key;
}
/**
* Serving network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string s_nwk_s_int_key = 8;</code>
* @param string $var
* @return $this
*/
public function setSNwkSIntKey($var)
{
GPBUtil::checkString($var, True);
$this->s_nwk_s_int_key = $var;
return $this;
}
/**
* Forwarding network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string f_nwk_s_int_key = 9;</code>
* @return string
*/
public function getFNwkSIntKey()
{
return $this->f_nwk_s_int_key;
}
/**
* Forwarding network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string f_nwk_s_int_key = 9;</code>
* @param string $var
* @return $this
*/
public function setFNwkSIntKey($var)
{
GPBUtil::checkString($var, True);
$this->f_nwk_s_int_key = $var;
return $this;
}
/**
* Uplink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_up = 5;</code>
* @return int
*/
public function getFCntUp()
{
return $this->f_cnt_up;
}
/**
* Uplink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_up = 5;</code>
* @param int $var
* @return $this
*/
public function setFCntUp($var)
{
GPBUtil::checkUint32($var);
$this->f_cnt_up = $var;
return $this;
}
/**
* Downlink network frame-counter.
*
* Generated from protobuf field <code>uint32 n_f_cnt_down = 6;</code>
* @return int
*/
public function getNFCntDown()
{
return $this->n_f_cnt_down;
}
/**
* Downlink network frame-counter.
*
* Generated from protobuf field <code>uint32 n_f_cnt_down = 6;</code>
* @param int $var
* @return $this
*/
public function setNFCntDown($var)
{
GPBUtil::checkUint32($var);
$this->n_f_cnt_down = $var;
return $this;
}
/**
* Downlink application frame-counter.
*
* Generated from protobuf field <code>uint32 a_f_cnt_down = 10;</code>
* @return int
*/
public function getAFCntDown()
{
return $this->a_f_cnt_down;
}
/**
* Downlink application frame-counter.
*
* Generated from protobuf field <code>uint32 a_f_cnt_down = 10;</code>
* @param int $var
* @return $this
*/
public function setAFCntDown($var)
{
GPBUtil::checkUint32($var);
$this->a_f_cnt_down = $var;
return $this;
}
}

View File

@ -0,0 +1,141 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceKeys</code>
*/
class DeviceKeys extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Network root key (128 bit).
* Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`!
*
* Generated from protobuf field <code>string nwk_key = 2;</code>
*/
protected $nwk_key = '';
/**
* Application root key (128 bit).
* Note: This field only needs to be set for LoRaWAN 1.1.x devices!
*
* Generated from protobuf field <code>string app_key = 3;</code>
*/
protected $app_key = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* @type string $nwk_key
* Network root key (128 bit).
* Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`!
* @type string $app_key
* Application root key (128 bit).
* Note: This field only needs to be set for LoRaWAN 1.1.x devices!
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Network root key (128 bit).
* Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`!
*
* Generated from protobuf field <code>string nwk_key = 2;</code>
* @return string
*/
public function getNwkKey()
{
return $this->nwk_key;
}
/**
* Network root key (128 bit).
* Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`!
*
* Generated from protobuf field <code>string nwk_key = 2;</code>
* @param string $var
* @return $this
*/
public function setNwkKey($var)
{
GPBUtil::checkString($var, True);
$this->nwk_key = $var;
return $this;
}
/**
* Application root key (128 bit).
* Note: This field only needs to be set for LoRaWAN 1.1.x devices!
*
* Generated from protobuf field <code>string app_key = 3;</code>
* @return string
*/
public function getAppKey()
{
return $this->app_key;
}
/**
* Application root key (128 bit).
* Note: This field only needs to be set for LoRaWAN 1.1.x devices!
*
* Generated from protobuf field <code>string app_key = 3;</code>
* @param string $var
* @return $this
*/
public function setAppKey($var)
{
GPBUtil::checkString($var, True);
$this->app_key = $var;
return $this;
}
}

View File

@ -0,0 +1,377 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceListItem</code>
*/
class DeviceListItem extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
*/
protected $updated_at = null;
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
*/
protected $last_seen_at = null;
/**
* Name.
*
* Generated from protobuf field <code>string name = 5;</code>
*/
protected $name = '';
/**
* Description.
*
* Generated from protobuf field <code>string description = 6;</code>
*/
protected $description = '';
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string device_profile_id = 7;</code>
*/
protected $device_profile_id = '';
/**
* Device-profile name.
*
* Generated from protobuf field <code>string device_profile_name = 8;</code>
*/
protected $device_profile_name = '';
/**
* Device status.
*
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
*/
protected $device_status = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* DevEUI (EUI64).
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type \Google\Protobuf\Timestamp $last_seen_at
* Last seen at timestamp.
* @type string $name
* Name.
* @type string $description
* Description.
* @type string $device_profile_id
* Device-profile ID (UUID).
* @type string $device_profile_name
* Device-profile name.
* @type \Chirpstack\Api\DeviceStatus $device_status
* Device status.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->created_at = $var;
return $this;
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
public function hasUpdatedAt()
{
return isset($this->updated_at);
}
public function clearUpdatedAt()
{
unset($this->updated_at);
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getLastSeenAt()
{
return $this->last_seen_at;
}
public function hasLastSeenAt()
{
return isset($this->last_seen_at);
}
public function clearLastSeenAt()
{
unset($this->last_seen_at);
}
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setLastSeenAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->last_seen_at = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 5;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 5;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 6;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 6;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string device_profile_id = 7;</code>
* @return string
*/
public function getDeviceProfileId()
{
return $this->device_profile_id;
}
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string device_profile_id = 7;</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 = 8;</code>
* @return string
*/
public function getDeviceProfileName()
{
return $this->device_profile_name;
}
/**
* Device-profile name.
*
* Generated from protobuf field <code>string device_profile_name = 8;</code>
* @param string $var
* @return $this
*/
public function setDeviceProfileName($var)
{
GPBUtil::checkString($var, True);
$this->device_profile_name = $var;
return $this;
}
/**
* Device status.
*
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
* @return \Chirpstack\Api\DeviceStatus|null
*/
public function getDeviceStatus()
{
return $this->device_status;
}
public function hasDeviceStatus()
{
return isset($this->device_status);
}
public function clearDeviceStatus()
{
unset($this->device_status);
}
/**
* Device status.
*
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
* @param \Chirpstack\Api\DeviceStatus $var
* @return $this
*/
public function setDeviceStatus($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceStatus::class);
$this->device_status = $var;
return $this;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,391 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceProfileListItem</code>
*/
class DeviceProfileListItem extends \Google\Protobuf\Internal\Message
{
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
*/
protected $updated_at = null;
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
*/
protected $name = '';
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 5;</code>
*/
protected $region = 0;
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
*/
protected $mac_version = 0;
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
*/
protected $reg_params_revision = 0;
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
*/
protected $supports_otaa = false;
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
*/
protected $supports_class_b = false;
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
*/
protected $supports_class_c = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Device-profile ID (UUID).
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type string $name
* Name.
* @type int $region
* Region.
* @type int $mac_version
* LoRaWAN mac-version.
* @type int $reg_params_revision
* Regional parameters revision.
* @type bool $supports_otaa
* Supports OTAA.
* @type bool $supports_class_b
* Supports Class-B.
* @type bool $supports_class_c
* Supports Class-C.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* Device-profile ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Device-profile ID (UUID).
*
* 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;
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->created_at = $var;
return $this;
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
public function hasUpdatedAt()
{
return isset($this->updated_at);
}
public function clearUpdatedAt()
{
unset($this->updated_at);
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 5;</code>
* @return int
*/
public function getRegion()
{
return $this->region;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 5;</code>
* @param int $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class);
$this->region = $var;
return $this;
}
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
* @return int
*/
public function getMacVersion()
{
return $this->mac_version;
}
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
* @param int $var
* @return $this
*/
public function setMacVersion($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class);
$this->mac_version = $var;
return $this;
}
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
* @return int
*/
public function getRegParamsRevision()
{
return $this->reg_params_revision;
}
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
* @param int $var
* @return $this
*/
public function setRegParamsRevision($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class);
$this->reg_params_revision = $var;
return $this;
}
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
* @return bool
*/
public function getSupportsOtaa()
{
return $this->supports_otaa;
}
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
* @param bool $var
* @return $this
*/
public function setSupportsOtaa($var)
{
GPBUtil::checkBool($var);
$this->supports_otaa = $var;
return $this;
}
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
* @return bool
*/
public function getSupportsClassB()
{
return $this->supports_class_b;
}
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
* @param bool $var
* @return $this
*/
public function setSupportsClassB($var)
{
GPBUtil::checkBool($var);
$this->supports_class_b = $var;
return $this;
}
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
* @return bool
*/
public function getSupportsClassC()
{
return $this->supports_class_c;
}
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
* @param bool $var
* @return $this
*/
public function setSupportsClassC($var)
{
GPBUtil::checkBool($var);
$this->supports_class_c = $var;
return $this;
}
}

View File

@ -0,0 +1,111 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
namespace Chirpstack\Api;
/**
* DeviceProfileService is the service providing API methods for managing
* device-profiles.
*/
class DeviceProfileServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Create the given device-profile.
* @param \Chirpstack\Api\CreateDeviceProfileRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Create(\Chirpstack\Api\CreateDeviceProfileRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/Create',
$argument,
['\Chirpstack\Api\CreateDeviceProfileResponse', 'decode'],
$metadata, $options);
}
/**
* Get the device-profile for the given ID.
* @param \Chirpstack\Api\GetDeviceProfileRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Get(\Chirpstack\Api\GetDeviceProfileRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/Get',
$argument,
['\Chirpstack\Api\GetDeviceProfileResponse', 'decode'],
$metadata, $options);
}
/**
* Update the given device-profile.
* @param \Chirpstack\Api\UpdateDeviceProfileRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Update(\Chirpstack\Api\UpdateDeviceProfileRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/Update',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the device-profile with the given ID.
* @param \Chirpstack\Api\DeleteDeviceProfileRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Delete(\Chirpstack\Api\DeleteDeviceProfileRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/Delete',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* List the available device-profiles.
* @param \Chirpstack\Api\ListDeviceProfilesRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function List(\Chirpstack\Api\ListDeviceProfilesRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/List',
$argument,
['\Chirpstack\Api\ListDeviceProfilesResponse', 'decode'],
$metadata, $options);
}
/**
* List available ADR algorithms.
* @param \Google\Protobuf\GPBEmpty $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function ListAdrAlgorithms(\Google\Protobuf\GPBEmpty $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileService/ListAdrAlgorithms',
$argument,
['\Chirpstack\Api\ListDeviceProfileAdrAlgorithmsResponse', 'decode'],
$metadata, $options);
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,459 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device_profile_template.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceProfileTemplateListItem</code>
*/
class DeviceProfileTemplateListItem extends \Google\Protobuf\Internal\Message
{
/**
* Device-profile template ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
*/
protected $updated_at = null;
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
*/
protected $name = '';
/**
* Vendor.
*
* Generated from protobuf field <code>string vendor = 5;</code>
*/
protected $vendor = '';
/**
* Firmware.
*
* Generated from protobuf field <code>string firmware = 6;</code>
*/
protected $firmware = '';
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 7;</code>
*/
protected $region = 0;
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 8;</code>
*/
protected $mac_version = 0;
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 9;</code>
*/
protected $reg_params_revision = 0;
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 10;</code>
*/
protected $supports_otaa = false;
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 11;</code>
*/
protected $supports_class_b = false;
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 12;</code>
*/
protected $supports_class_c = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Device-profile template ID.
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type string $name
* Name.
* @type string $vendor
* Vendor.
* @type string $firmware
* Firmware.
* @type int $region
* Region.
* @type int $mac_version
* LoRaWAN mac-version.
* @type int $reg_params_revision
* Regional parameters revision.
* @type bool $supports_otaa
* Supports OTAA.
* @type bool $supports_class_b
* Supports Class-B.
* @type bool $supports_class_c
* Supports Class-C.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce();
parent::__construct($data);
}
/**
* Device-profile template ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Device-profile template ID.
*
* 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;
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->created_at = $var;
return $this;
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
public function hasUpdatedAt()
{
return isset($this->updated_at);
}
public function clearUpdatedAt()
{
unset($this->updated_at);
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Vendor.
*
* Generated from protobuf field <code>string vendor = 5;</code>
* @return string
*/
public function getVendor()
{
return $this->vendor;
}
/**
* Vendor.
*
* Generated from protobuf field <code>string vendor = 5;</code>
* @param string $var
* @return $this
*/
public function setVendor($var)
{
GPBUtil::checkString($var, True);
$this->vendor = $var;
return $this;
}
/**
* Firmware.
*
* Generated from protobuf field <code>string firmware = 6;</code>
* @return string
*/
public function getFirmware()
{
return $this->firmware;
}
/**
* Firmware.
*
* Generated from protobuf field <code>string firmware = 6;</code>
* @param string $var
* @return $this
*/
public function setFirmware($var)
{
GPBUtil::checkString($var, True);
$this->firmware = $var;
return $this;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 7;</code>
* @return int
*/
public function getRegion()
{
return $this->region;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 7;</code>
* @param int $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class);
$this->region = $var;
return $this;
}
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 8;</code>
* @return int
*/
public function getMacVersion()
{
return $this->mac_version;
}
/**
* LoRaWAN mac-version.
*
* Generated from protobuf field <code>.common.MacVersion mac_version = 8;</code>
* @param int $var
* @return $this
*/
public function setMacVersion($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class);
$this->mac_version = $var;
return $this;
}
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 9;</code>
* @return int
*/
public function getRegParamsRevision()
{
return $this->reg_params_revision;
}
/**
* Regional parameters revision.
*
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 9;</code>
* @param int $var
* @return $this
*/
public function setRegParamsRevision($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class);
$this->reg_params_revision = $var;
return $this;
}
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 10;</code>
* @return bool
*/
public function getSupportsOtaa()
{
return $this->supports_otaa;
}
/**
* Supports OTAA.
*
* Generated from protobuf field <code>bool supports_otaa = 10;</code>
* @param bool $var
* @return $this
*/
public function setSupportsOtaa($var)
{
GPBUtil::checkBool($var);
$this->supports_otaa = $var;
return $this;
}
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 11;</code>
* @return bool
*/
public function getSupportsClassB()
{
return $this->supports_class_b;
}
/**
* Supports Class-B.
*
* Generated from protobuf field <code>bool supports_class_b = 11;</code>
* @param bool $var
* @return $this
*/
public function setSupportsClassB($var)
{
GPBUtil::checkBool($var);
$this->supports_class_b = $var;
return $this;
}
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 12;</code>
* @return bool
*/
public function getSupportsClassC()
{
return $this->supports_class_c;
}
/**
* Supports Class-C.
*
* Generated from protobuf field <code>bool supports_class_c = 12;</code>
* @param bool $var
* @return $this
*/
public function setSupportsClassC($var)
{
GPBUtil::checkBool($var);
$this->supports_class_c = $var;
return $this;
}
}

View File

@ -0,0 +1,95 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
namespace Chirpstack\Api;
/**
* DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
*/
class DeviceProfileTemplateServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Create the given device-profile template.
* @param \Chirpstack\Api\CreateDeviceProfileTemplateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Create(\Chirpstack\Api\CreateDeviceProfileTemplateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileTemplateService/Create',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the device-profile template for the given ID.
* @param \Chirpstack\Api\GetDeviceProfileTemplateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Get(\Chirpstack\Api\GetDeviceProfileTemplateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileTemplateService/Get',
$argument,
['\Chirpstack\Api\GetDeviceProfileTemplateResponse', 'decode'],
$metadata, $options);
}
/**
* Update the given device-profile template.
* @param \Chirpstack\Api\UpdateDeviceProfileTemplateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Update(\Chirpstack\Api\UpdateDeviceProfileTemplateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileTemplateService/Update',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the device-profile template with the given ID.
* @param \Chirpstack\Api\DeleteDeviceProfileTemplateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Delete(\Chirpstack\Api\DeleteDeviceProfileTemplateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileTemplateService/Delete',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* List the available device-profile templates.
* @param \Chirpstack\Api\ListDeviceProfileTemplatesRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function List(\Chirpstack\Api\ListDeviceProfileTemplatesRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceProfileTemplateService/List',
$argument,
['\Chirpstack\Api\ListDeviceProfileTemplatesResponse', 'decode'],
$metadata, $options);
}
}

View File

@ -0,0 +1,387 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceQueueItem</code>
*/
class DeviceQueueItem extends \Google\Protobuf\Internal\Message
{
/**
* ID (UUID).
* This is automatically generated on enqueue.
*
* 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;
/**
* Is pending.
* This is set by ChirpStack to true when the downlink is pending (e.g. it
* has been sent, but a confirmation is still pending).
*
* Generated from protobuf field <code>bool is_pending = 7;</code>
*/
protected $is_pending = false;
/**
* Downlink frame-counter.
* Do not set this for plain-text data payloads. It will be automatically set
* by ChirpStack when the payload has been sent as downlink.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 8;</code>
*/
protected $f_cnt_down = 0;
/**
* Is encrypted.
* This must be set to true if the end-application has already encrypted
* the data payload. In this case, the f_cnt_down field must be set to
* the corresponding frame-counter which has been used during the encryption.
*
* Generated from protobuf field <code>bool is_encrypted = 9;</code>
*/
protected $is_encrypted = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID (UUID).
* This is automatically generated on enqueue.
* @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.
* @type bool $is_pending
* Is pending.
* This is set by ChirpStack to true when the downlink is pending (e.g. it
* has been sent, but a confirmation is still pending).
* @type int $f_cnt_down
* Downlink frame-counter.
* Do not set this for plain-text data payloads. It will be automatically set
* by ChirpStack when the payload has been sent as downlink.
* @type bool $is_encrypted
* Is encrypted.
* This must be set to true if the end-application has already encrypted
* the data payload. In this case, the f_cnt_down field must be set to
* the corresponding frame-counter which has been used during the encryption.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* ID (UUID).
* This is automatically generated on enqueue.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID (UUID).
* This is automatically generated on enqueue.
*
* 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;
}
/**
* Is pending.
* This is set by ChirpStack to true when the downlink is pending (e.g. it
* has been sent, but a confirmation is still pending).
*
* Generated from protobuf field <code>bool is_pending = 7;</code>
* @return bool
*/
public function getIsPending()
{
return $this->is_pending;
}
/**
* Is pending.
* This is set by ChirpStack to true when the downlink is pending (e.g. it
* has been sent, but a confirmation is still pending).
*
* Generated from protobuf field <code>bool is_pending = 7;</code>
* @param bool $var
* @return $this
*/
public function setIsPending($var)
{
GPBUtil::checkBool($var);
$this->is_pending = $var;
return $this;
}
/**
* Downlink frame-counter.
* Do not set this for plain-text data payloads. It will be automatically set
* by ChirpStack when the payload has been sent as downlink.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 8;</code>
* @return int
*/
public function getFCntDown()
{
return $this->f_cnt_down;
}
/**
* Downlink frame-counter.
* Do not set this for plain-text data payloads. It will be automatically set
* by ChirpStack when the payload has been sent as downlink.
*
* Generated from protobuf field <code>uint32 f_cnt_down = 8;</code>
* @param int $var
* @return $this
*/
public function setFCntDown($var)
{
GPBUtil::checkUint32($var);
$this->f_cnt_down = $var;
return $this;
}
/**
* Is encrypted.
* This must be set to true if the end-application has already encrypted
* the data payload. In this case, the f_cnt_down field must be set to
* the corresponding frame-counter which has been used during the encryption.
*
* Generated from protobuf field <code>bool is_encrypted = 9;</code>
* @return bool
*/
public function getIsEncrypted()
{
return $this->is_encrypted;
}
/**
* Is encrypted.
* This must be set to true if the end-application has already encrypted
* the data payload. In this case, the f_cnt_down field must be set to
* the corresponding frame-counter which has been used during the encryption.
*
* Generated from protobuf field <code>bool is_encrypted = 9;</code>
* @param bool $var
* @return $this
*/
public function setIsEncrypted($var)
{
GPBUtil::checkBool($var);
$this->is_encrypted = $var;
return $this;
}
}

View File

@ -0,0 +1,328 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
namespace Chirpstack\Api;
/**
* DeviceService is the service providing API methods for managing devices.
*/
class DeviceServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Create the given device.
* @param \Chirpstack\Api\CreateDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Create(\Chirpstack\Api\CreateDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Create',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get returns the device for the given DevEUI.
* @param \Chirpstack\Api\GetDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Get(\Chirpstack\Api\GetDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Get',
$argument,
['\Chirpstack\Api\GetDeviceResponse', 'decode'],
$metadata, $options);
}
/**
* Update the given device.
* @param \Chirpstack\Api\UpdateDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Update(\Chirpstack\Api\UpdateDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Update',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the device with the given DevEUI.
* @param \Chirpstack\Api\DeleteDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Delete(\Chirpstack\Api\DeleteDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Delete',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the list of devices.
* @param \Chirpstack\Api\ListDevicesRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function List(\Chirpstack\Api\ListDevicesRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/List',
$argument,
['\Chirpstack\Api\ListDevicesResponse', 'decode'],
$metadata, $options);
}
/**
* Create the given device-keys.
* @param \Chirpstack\Api\CreateDeviceKeysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function CreateKeys(\Chirpstack\Api\CreateDeviceKeysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/CreateKeys',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the device-keys for the given DevEUI.
* @param \Chirpstack\Api\GetDeviceKeysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetKeys(\Chirpstack\Api\GetDeviceKeysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetKeys',
$argument,
['\Chirpstack\Api\GetDeviceKeysResponse', 'decode'],
$metadata, $options);
}
/**
* Update the given device-keys.
* @param \Chirpstack\Api\UpdateDeviceKeysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateKeys(\Chirpstack\Api\UpdateDeviceKeysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/UpdateKeys',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the device-keys for the given DevEUI.
* @param \Chirpstack\Api\DeleteDeviceKeysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteKeys(\Chirpstack\Api\DeleteDeviceKeysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/DeleteKeys',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* FlushDevNonces flushes the OTAA device nonces.
* @param \Chirpstack\Api\FlushDevNoncesRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function FlushDevNonces(\Chirpstack\Api\FlushDevNoncesRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/FlushDevNonces',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Activate (re)activates the device with the given parameters (for ABP or for
* importing OTAA activations).
* @param \Chirpstack\Api\ActivateDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Activate(\Chirpstack\Api\ActivateDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Activate',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Deactivate de-activates the device.
* @param \Chirpstack\Api\DeactivateDeviceRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Deactivate(\Chirpstack\Api\DeactivateDeviceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Deactivate',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* GetActivation returns the current activation details of the device (OTAA or
* ABP).
* @param \Chirpstack\Api\GetDeviceActivationRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetActivation(\Chirpstack\Api\GetDeviceActivationRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetActivation',
$argument,
['\Chirpstack\Api\GetDeviceActivationResponse', 'decode'],
$metadata, $options);
}
/**
* GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into
* account.
* @param \Chirpstack\Api\GetRandomDevAddrRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetRandomDevAddr(\Chirpstack\Api\GetRandomDevAddrRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetRandomDevAddr',
$argument,
['\Chirpstack\Api\GetRandomDevAddrResponse', 'decode'],
$metadata, $options);
}
/**
* GetMetrics returns the device metrics.
* Note that this requires a device-profile with codec and measurements
* configured.
* @param \Chirpstack\Api\GetDeviceMetricsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetMetrics(\Chirpstack\Api\GetDeviceMetricsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetMetrics',
$argument,
['\Chirpstack\Api\GetDeviceMetricsResponse', 'decode'],
$metadata, $options);
}
/**
* GetLinkMetrics returns the device link metrics.
* This includes uplinks, downlinks, RSSI, SNR, etc...
* @param \Chirpstack\Api\GetDeviceLinkMetricsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetLinkMetrics(\Chirpstack\Api\GetDeviceLinkMetricsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetLinkMetrics',
$argument,
['\Chirpstack\Api\GetDeviceLinkMetricsResponse', 'decode'],
$metadata, $options);
}
/**
* Enqueue adds the given item to the downlink queue.
* @param \Chirpstack\Api\EnqueueDeviceQueueItemRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Enqueue(\Chirpstack\Api\EnqueueDeviceQueueItemRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/Enqueue',
$argument,
['\Chirpstack\Api\EnqueueDeviceQueueItemResponse', 'decode'],
$metadata, $options);
}
/**
* FlushQueue flushes the downlink device-queue.
* @param \Chirpstack\Api\FlushDeviceQueueRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function FlushQueue(\Chirpstack\Api\FlushDeviceQueueRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/FlushQueue',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* GetQueue returns the downlink device-queue.
* @param \Chirpstack\Api\GetDeviceQueueItemsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetQueue(\Chirpstack\Api\GetDeviceQueueItemsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetQueue',
$argument,
['\Chirpstack\Api\GetDeviceQueueItemsResponse', 'decode'],
$metadata, $options);
}
/**
* GetNextFCntDown returns the next FCntDown to use for enqueing encrypted
* downlinks. The difference with the DeviceActivation f_cont_down is that
* this method takes potential existing queue-items into account.
* @param \Chirpstack\Api\GetDeviceNextFCntDownRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetNextFCntDown(\Chirpstack\Api\GetDeviceNextFCntDownRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.DeviceService/GetNextFCntDown',
$argument,
['\Chirpstack\Api\GetDeviceNextFCntDownResponse', 'decode'],
$metadata, $options);
}
}

View File

@ -0,0 +1,99 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceState</code>
*/
class DeviceState extends \Google\Protobuf\Internal\Message
{
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Value.
*
* Generated from protobuf field <code>string value = 3;</code>
*/
protected $value = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Name.
* @type string $value
* Value.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Value.
*
* Generated from protobuf field <code>string value = 3;</code>
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Value.
*
* Generated from protobuf field <code>string value = 3;</code>
* @param string $var
* @return $this
*/
public function setValue($var)
{
GPBUtil::checkString($var, True);
$this->value = $var;
return $this;
}
}

View File

@ -0,0 +1,141 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceStatus</code>
*/
class DeviceStatus extends \Google\Protobuf\Internal\Message
{
/**
* The device margin status
* -32..32: The demodulation SNR ration in dB
*
* Generated from protobuf field <code>int32 margin = 1;</code>
*/
protected $margin = 0;
/**
* Device is connected to an external power source.
*
* Generated from protobuf field <code>bool external_power_source = 2;</code>
*/
protected $external_power_source = false;
/**
* Device battery level as a percentage.
* -1 when the battery level is not available.
*
* Generated from protobuf field <code>float battery_level = 3;</code>
*/
protected $battery_level = 0.0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $margin
* The device margin status
* -32..32: The demodulation SNR ration in dB
* @type bool $external_power_source
* Device is connected to an external power source.
* @type float $battery_level
* Device battery level as a percentage.
* -1 when the battery level is not available.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* The device margin status
* -32..32: The demodulation SNR ration in dB
*
* Generated from protobuf field <code>int32 margin = 1;</code>
* @return int
*/
public function getMargin()
{
return $this->margin;
}
/**
* The device margin status
* -32..32: The demodulation SNR ration in dB
*
* Generated from protobuf field <code>int32 margin = 1;</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 = 2;</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 = 2;</code>
* @param bool $var
* @return $this
*/
public function setExternalPowerSource($var)
{
GPBUtil::checkBool($var);
$this->external_power_source = $var;
return $this;
}
/**
* Device battery level as a percentage.
* -1 when the battery level is not available.
*
* Generated from protobuf field <code>float battery_level = 3;</code>
* @return float
*/
public function getBatteryLevel()
{
return $this->battery_level;
}
/**
* Device battery level as a percentage.
* -1 when the battery level is not available.
*
* Generated from protobuf field <code>float battery_level = 3;</code>
* @param float $var
* @return $this
*/
public function setBatteryLevel($var)
{
GPBUtil::checkFloat($var);
$this->battery_level = $var;
return $this;
}
}

View File

@ -0,0 +1,48 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use UnexpectedValueException;
/**
* Protobuf type <code>api.Encoding</code>
*/
class Encoding
{
/**
* Generated from protobuf enum <code>JSON = 0;</code>
*/
const JSON = 0;
/**
* Generated from protobuf enum <code>PROTOBUF = 1;</code>
*/
const PROTOBUF = 1;
private static $valueToName = [
self::JSON => 'JSON',
self::PROTOBUF => 'PROTOBUF',
];
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);
}
}

View File

@ -0,0 +1,68 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.EnqueueDeviceQueueItemRequest</code>
*/
class EnqueueDeviceQueueItemRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.api.DeviceQueueItem queue_item = 1;</code>
*/
protected $queue_item = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceQueueItem $queue_item
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.api.DeviceQueueItem queue_item = 1;</code>
* @return \Chirpstack\Api\DeviceQueueItem|null
*/
public function getQueueItem()
{
return $this->queue_item;
}
public function hasQueueItem()
{
return isset($this->queue_item);
}
public function clearQueueItem()
{
unset($this->queue_item);
}
/**
* Generated from protobuf field <code>.api.DeviceQueueItem queue_item = 1;</code>
* @param \Chirpstack\Api\DeviceQueueItem $var
* @return $this
*/
public function setQueueItem($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceQueueItem::class);
$this->queue_item = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.EnqueueDeviceQueueItemResponse</code>
*/
class EnqueueDeviceQueueItemResponse extends \Google\Protobuf\Internal\Message
{
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID (UUID).
*
* 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;
}
}

View File

@ -0,0 +1,75 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.EnqueueMulticastGroupQueueItemRequest</code>
*/
class EnqueueMulticastGroupQueueItemRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast queue-item to enqueue.
*
* Generated from protobuf field <code>.api.MulticastGroupQueueItem queue_item = 1;</code>
*/
protected $queue_item = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\MulticastGroupQueueItem $queue_item
* Multicast queue-item to enqueue.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast queue-item to enqueue.
*
* Generated from protobuf field <code>.api.MulticastGroupQueueItem queue_item = 1;</code>
* @return \Chirpstack\Api\MulticastGroupQueueItem|null
*/
public function getQueueItem()
{
return $this->queue_item;
}
public function hasQueueItem()
{
return isset($this->queue_item);
}
public function clearQueueItem()
{
unset($this->queue_item);
}
/**
* Multicast queue-item to enqueue.
*
* Generated from protobuf field <code>.api.MulticastGroupQueueItem queue_item = 1;</code>
* @param \Chirpstack\Api\MulticastGroupQueueItem $var
* @return $this
*/
public function setQueueItem($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroupQueueItem::class);
$this->queue_item = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.EnqueueMulticastGroupQueueItemResponse</code>
*/
class EnqueueMulticastGroupQueueItemResponse extends \Google\Protobuf\Internal\Message
{
/**
* Frame-counter of the enqueued payload.
*
* Generated from protobuf field <code>uint32 f_cnt = 1;</code>
*/
protected $f_cnt = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $f_cnt
* Frame-counter of the enqueued payload.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Frame-counter of the enqueued payload.
*
* Generated from protobuf field <code>uint32 f_cnt = 1;</code>
* @return int
*/
public function getFCnt()
{
return $this->f_cnt;
}
/**
* Frame-counter of the enqueued payload.
*
* Generated from protobuf field <code>uint32 f_cnt = 1;</code>
* @param int $var
* @return $this
*/
public function setFCnt($var)
{
GPBUtil::checkUint32($var);
$this->f_cnt = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.FlushDevNoncesRequest</code>
*/
class FlushDevNoncesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.FlushDeviceQueueRequest</code>
*/
class FlushDeviceQueueRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/multicast_group.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.FlushMulticastGroupQueueRequest</code>
*/
class FlushMulticastGroupQueueRequest extends \Google\Protobuf\Internal\Message
{
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
*/
protected $multicast_group_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $multicast_group_id
* Multicast group ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce();
parent::__construct($data);
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @return string
*/
public function getMulticastGroupId()
{
return $this->multicast_group_id;
}
/**
* Multicast group ID.
*
* Generated from protobuf field <code>string multicast_group_id = 1;</code>
* @param string $var
* @return $this
*/
public function setMulticastGroupId($var)
{
GPBUtil::checkString($var, True);
$this->multicast_group_id = $var;
return $this;
}
}

View File

@ -0,0 +1,321 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.Gateway</code>
*/
class Gateway extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
*/
protected $gateway_id = '';
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
*/
protected $description = '';
/**
* Gateway location.
*
* Generated from protobuf field <code>.common.Location location = 4;</code>
*/
protected $location = null;
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 5;</code>
*/
protected $tenant_id = '';
/**
* Tags.
*
* Generated from protobuf field <code>map<string, string> tags = 6;</code>
*/
private $tags;
/**
* Metadata (provided by the gateway).
*
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
*/
private $metadata;
/**
* Stats interval (seconds).
* This defines the expected interval in which the gateway sends its
* statistics.
*
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
*/
protected $stats_interval = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id
* Gateway ID (EUI64).
* @type string $name
* Name.
* @type string $description
* Description.
* @type \Chirpstack\Common\Location $location
* Gateway location.
* @type string $tenant_id
* Tenant ID (UUID).
* @type array|\Google\Protobuf\Internal\MapField $tags
* Tags.
* @type array|\Google\Protobuf\Internal\MapField $metadata
* Metadata (provided by the gateway).
* @type int $stats_interval
* Stats interval (seconds).
* This defines the expected interval in which the gateway sends its
* statistics.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 3;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Gateway 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);
}
/**
* Gateway 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;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 5;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 5;</code>
* @param string $var
* @return $this
*/
public function setTenantId($var)
{
GPBUtil::checkString($var, True);
$this->tenant_id = $var;
return $this;
}
/**
* Tags.
*
* Generated from protobuf field <code>map<string, string> tags = 6;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getTags()
{
return $this->tags;
}
/**
* Tags.
*
* Generated from protobuf field <code>map<string, string> tags = 6;</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;
}
/**
* Metadata (provided by the gateway).
*
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Metadata (provided by the gateway).
*
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setMetadata($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->metadata = $arr;
return $this;
}
/**
* Stats interval (seconds).
* This defines the expected interval in which the gateway sends its
* statistics.
*
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
* @return int
*/
public function getStatsInterval()
{
return $this->stats_interval;
}
/**
* Stats interval (seconds).
* This defines the expected interval in which the gateway sends its
* statistics.
*
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
* @param int $var
* @return $this
*/
public function setStatsInterval($var)
{
GPBUtil::checkUint32($var);
$this->stats_interval = $var;
return $this;
}
}

View File

@ -0,0 +1,419 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.GatewayListItem</code>
*/
class GatewayListItem extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
*/
protected $tenant_id = '';
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
*/
protected $gateway_id = '';
/**
* Name.
*
* Generated from protobuf field <code>string name = 3;</code>
*/
protected $name = '';
/**
* Description.
*
* Generated from protobuf field <code>string description = 4;</code>
*/
protected $description = '';
/**
* Location.
*
* Generated from protobuf field <code>.common.Location location = 5;</code>
*/
protected $location = null;
/**
* Gateway properties.
*
* Generated from protobuf field <code>map<string, string> properties = 6;</code>
*/
private $properties;
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 8;</code>
*/
protected $updated_at = null;
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 9;</code>
*/
protected $last_seen_at = null;
/**
* Gateway state.
* Please note that the state of the gateway is driven by the stats
* packages that are sent by the gateway.
*
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
*/
protected $state = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $tenant_id
* Tenant ID.
* @type string $gateway_id
* Gateway ID (EUI64).
* @type string $name
* Name.
* @type string $description
* Description.
* @type \Chirpstack\Common\Location $location
* Location.
* @type array|\Google\Protobuf\Internal\MapField $properties
* Gateway properties.
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type \Google\Protobuf\Timestamp $last_seen_at
* Last seen at timestamp.
* @type int $state
* Gateway state.
* Please note that the state of the gateway is driven by the stats
* packages that are sent by the gateway.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID.
*
* 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;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 3;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field <code>string name = 3;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 4;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Description.
*
* Generated from protobuf field <code>string description = 4;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Location.
*
* Generated from protobuf field <code>.common.Location location = 5;</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 = 5;</code>
* @param \Chirpstack\Common\Location $var
* @return $this
*/
public function setLocation($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class);
$this->location = $var;
return $this;
}
/**
* Gateway properties.
*
* Generated from protobuf field <code>map<string, string> properties = 6;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getProperties()
{
return $this->properties;
}
/**
* Gateway properties.
*
* Generated from protobuf field <code>map<string, string> properties = 6;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setProperties($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->properties = $arr;
return $this;
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreatedAt()
{
return $this->created_at;
}
public function hasCreatedAt()
{
return isset($this->created_at);
}
public function clearCreatedAt()
{
unset($this->created_at);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->created_at = $var;
return $this;
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 8;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
public function hasUpdatedAt()
{
return isset($this->updated_at);
}
public function clearUpdatedAt()
{
unset($this->updated_at);
}
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 8;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 9;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getLastSeenAt()
{
return $this->last_seen_at;
}
public function hasLastSeenAt()
{
return isset($this->last_seen_at);
}
public function clearLastSeenAt()
{
unset($this->last_seen_at);
}
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 9;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setLastSeenAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->last_seen_at = $var;
return $this;
}
/**
* Gateway state.
* Please note that the state of the gateway is driven by the stats
* packages that are sent by the gateway.
*
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
* @return int
*/
public function getState()
{
return $this->state;
}
/**
* Gateway state.
* Please note that the state of the gateway is driven by the stats
* packages that are sent by the gateway.
*
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
* @param int $var
* @return $this
*/
public function setState($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\GatewayState::class);
$this->state = $var;
return $this;
}
}

View File

@ -0,0 +1,201 @@
<?php
// GENERATED CODE -- DO NOT EDIT!
namespace Chirpstack\Api;
/**
* GatewayService is the service providing API methods for managing gateways.
*/
class GatewayServiceClient extends \Grpc\BaseStub {
/**
* @param string $hostname hostname
* @param array $opts channel options
* @param \Grpc\Channel $channel (optional) re-use channel object
*/
public function __construct($hostname, $opts, $channel = null) {
parent::__construct($hostname, $opts, $channel);
}
/**
* Create creates the given gateway.
* @param \Chirpstack\Api\CreateGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Create(\Chirpstack\Api\CreateGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/Create',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get returns the gateway for the given Gateway ID.
* @param \Chirpstack\Api\GetGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Get(\Chirpstack\Api\GetGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/Get',
$argument,
['\Chirpstack\Api\GetGatewayResponse', 'decode'],
$metadata, $options);
}
/**
* Update updates the given gateway.
* @param \Chirpstack\Api\UpdateGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Update(\Chirpstack\Api\UpdateGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/Update',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete deletes the gateway matching the given Gateway ID.
* @param \Chirpstack\Api\DeleteGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function Delete(\Chirpstack\Api\DeleteGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/Delete',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Get the list of gateways.
* @param \Chirpstack\Api\ListGatewaysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function List(\Chirpstack\Api\ListGatewaysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/List',
$argument,
['\Chirpstack\Api\ListGatewaysResponse', 'decode'],
$metadata, $options);
}
/**
* Generate client-certificate for the gateway.
* @param \Chirpstack\Api\GenerateGatewayClientCertificateRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GenerateClientCertificate(\Chirpstack\Api\GenerateGatewayClientCertificateRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/GenerateClientCertificate',
$argument,
['\Chirpstack\Api\GenerateGatewayClientCertificateResponse', 'decode'],
$metadata, $options);
}
/**
* GetMetrics returns the gateway metrics.
* @param \Chirpstack\Api\GetGatewayMetricsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetMetrics(\Chirpstack\Api\GetGatewayMetricsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/GetMetrics',
$argument,
['\Chirpstack\Api\GetGatewayMetricsResponse', 'decode'],
$metadata, $options);
}
/**
* GetDutyCycleMetrics returns the duty-cycle metrics.
* Note that only the last 2 hours of data are stored. Currently only per minute aggregation is available.
* @param \Chirpstack\Api\GetGatewayDutyCycleMetricsRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetDutyCycleMetrics(\Chirpstack\Api\GetGatewayDutyCycleMetricsRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/GetDutyCycleMetrics',
$argument,
['\Chirpstack\Api\GetGatewayDutyCycleMetricsResponse', 'decode'],
$metadata, $options);
}
/**
* Get the given Relay Gateway.
* @param \Chirpstack\Api\GetRelayGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function GetRelayGateway(\Chirpstack\Api\GetRelayGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/GetRelayGateway',
$argument,
['\Chirpstack\Api\GetRelayGatewayResponse', 'decode'],
$metadata, $options);
}
/**
* List the detected Relay Gateways.
* @param \Chirpstack\Api\ListRelayGatewaysRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function ListRelayGateways(\Chirpstack\Api\ListRelayGatewaysRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/ListRelayGateways',
$argument,
['\Chirpstack\Api\ListRelayGatewaysResponse', 'decode'],
$metadata, $options);
}
/**
* Update the given Relay Gateway.
* @param \Chirpstack\Api\UpdateRelayGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function UpdateRelayGateway(\Chirpstack\Api\UpdateRelayGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/UpdateRelayGateway',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
/**
* Delete the given Relay Gateway.
* @param \Chirpstack\Api\DeleteRelayGatewayRequest $argument input argument
* @param array $metadata metadata
* @param array $options call options
* @return \Grpc\UnaryCall
*/
public function DeleteRelayGateway(\Chirpstack\Api\DeleteRelayGatewayRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/api.GatewayService/DeleteRelayGateway',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
$metadata, $options);
}
}

View File

@ -0,0 +1,59 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use UnexpectedValueException;
/**
* Protobuf type <code>api.GatewayState</code>
*/
class GatewayState
{
/**
* The gateway has never sent any stats.
*
* Generated from protobuf enum <code>NEVER_SEEN = 0;</code>
*/
const NEVER_SEEN = 0;
/**
* Online.
*
* Generated from protobuf enum <code>ONLINE = 1;</code>
*/
const ONLINE = 1;
/**
* Offline.
*
* Generated from protobuf enum <code>OFFLINE = 2;</code>
*/
const OFFLINE = 2;
private static $valueToName = [
self::NEVER_SEEN => 'NEVER_SEEN',
self::ONLINE => 'ONLINE',
self::OFFLINE => 'OFFLINE',
];
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);
}
}

View File

@ -0,0 +1,217 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.GcpPubSubIntegration</code>
*/
class GcpPubSubIntegration extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
*/
protected $encoding = 0;
/**
* Credentials file.
* This IAM service-account credentials file (JSON) must have the following
* Pub/Sub roles:
* * Pub/Sub Publisher
*
* Generated from protobuf field <code>string credentials_file = 3;</code>
*/
protected $credentials_file = '';
/**
* Project ID.
*
* Generated from protobuf field <code>string project_id = 4;</code>
*/
protected $project_id = '';
/**
* Topic name.
* This is the name of the Pub/Sub topic.
*
* Generated from protobuf field <code>string topic_name = 5;</code>
*/
protected $topic_name = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* @type int $encoding
* Encoding.
* @type string $credentials_file
* Credentials file.
* This IAM service-account credentials file (JSON) must have the following
* Pub/Sub roles:
* * Pub/Sub Publisher
* @type string $project_id
* Project ID.
* @type string $topic_name
* Topic name.
* This is the name of the Pub/Sub topic.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @return int
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Encoding.
*
* Generated from protobuf field <code>.api.Encoding encoding = 2;</code>
* @param int $var
* @return $this
*/
public function setEncoding($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class);
$this->encoding = $var;
return $this;
}
/**
* Credentials file.
* This IAM service-account credentials file (JSON) must have the following
* Pub/Sub roles:
* * Pub/Sub Publisher
*
* Generated from protobuf field <code>string credentials_file = 3;</code>
* @return string
*/
public function getCredentialsFile()
{
return $this->credentials_file;
}
/**
* Credentials file.
* This IAM service-account credentials file (JSON) must have the following
* Pub/Sub roles:
* * Pub/Sub Publisher
*
* Generated from protobuf field <code>string credentials_file = 3;</code>
* @param string $var
* @return $this
*/
public function setCredentialsFile($var)
{
GPBUtil::checkString($var, True);
$this->credentials_file = $var;
return $this;
}
/**
* Project ID.
*
* Generated from protobuf field <code>string project_id = 4;</code>
* @return string
*/
public function getProjectId()
{
return $this->project_id;
}
/**
* Project ID.
*
* Generated from protobuf field <code>string project_id = 4;</code>
* @param string $var
* @return $this
*/
public function setProjectId($var)
{
GPBUtil::checkString($var, True);
$this->project_id = $var;
return $this;
}
/**
* Topic name.
* This is the name of the Pub/Sub topic.
*
* Generated from protobuf field <code>string topic_name = 5;</code>
* @return string
*/
public function getTopicName()
{
return $this->topic_name;
}
/**
* Topic name.
* This is the name of the Pub/Sub topic.
*
* Generated from protobuf field <code>string topic_name = 5;</code>
* @param string $var
* @return $this
*/
public function setTopicName($var)
{
GPBUtil::checkString($var, True);
$this->topic_name = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.GenerateGatewayClientCertificateRequest</code>
*/
class GenerateGatewayClientCertificateRequest extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
*/
protected $gateway_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id
* Gateway ID (EUI64).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 1;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
}

View File

@ -0,0 +1,177 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/gateway.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.GenerateGatewayClientCertificateResponse</code>
*/
class GenerateGatewayClientCertificateResponse extends \Google\Protobuf\Internal\Message
{
/**
* TLS certificate.
*
* Generated from protobuf field <code>string tls_cert = 1;</code>
*/
protected $tls_cert = '';
/**
* TLS key.
*
* Generated from protobuf field <code>string tls_key = 2;</code>
*/
protected $tls_key = '';
/**
* CA certificate.
*
* Generated from protobuf field <code>string ca_cert = 3;</code>
*/
protected $ca_cert = '';
/**
* Expires at defines the expiration date of the certificate.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expires_at = 4;</code>
*/
protected $expires_at = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $tls_cert
* TLS certificate.
* @type string $tls_key
* TLS key.
* @type string $ca_cert
* CA certificate.
* @type \Google\Protobuf\Timestamp $expires_at
* Expires at defines the expiration date of the certificate.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* TLS certificate.
*
* Generated from protobuf field <code>string tls_cert = 1;</code>
* @return string
*/
public function getTlsCert()
{
return $this->tls_cert;
}
/**
* TLS certificate.
*
* Generated from protobuf field <code>string tls_cert = 1;</code>
* @param string $var
* @return $this
*/
public function setTlsCert($var)
{
GPBUtil::checkString($var, True);
$this->tls_cert = $var;
return $this;
}
/**
* TLS key.
*
* Generated from protobuf field <code>string tls_key = 2;</code>
* @return string
*/
public function getTlsKey()
{
return $this->tls_key;
}
/**
* TLS key.
*
* Generated from protobuf field <code>string tls_key = 2;</code>
* @param string $var
* @return $this
*/
public function setTlsKey($var)
{
GPBUtil::checkString($var, True);
$this->tls_key = $var;
return $this;
}
/**
* CA certificate.
*
* Generated from protobuf field <code>string ca_cert = 3;</code>
* @return string
*/
public function getCaCert()
{
return $this->ca_cert;
}
/**
* CA certificate.
*
* Generated from protobuf field <code>string ca_cert = 3;</code>
* @param string $var
* @return $this
*/
public function setCaCert($var)
{
GPBUtil::checkString($var, True);
$this->ca_cert = $var;
return $this;
}
/**
* Expires at defines the expiration date of the certificate.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expires_at = 4;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getExpiresAt()
{
return $this->expires_at;
}
public function hasExpiresAt()
{
return isset($this->expires_at);
}
public function clearExpiresAt()
{
unset($this->expires_at);
}
/**
* Expires at defines the expiration date of the certificate.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp expires_at = 4;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setExpiresAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->expires_at = $var;
return $this;
}
}

View File

@ -0,0 +1,65 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.GenerateMqttIntegrationClientCertificateRequest</code>
*/
class GenerateMqttIntegrationClientCertificateRequest extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
*/
protected $application_id = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string application_id = 1;</code>
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
}

Some files were not shown because too many files have changed in this diff Show More