mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 13:59:46 +00:00
406 lines
9.7 KiB
PHP
Vendored
406 lines
9.7 KiB
PHP
Vendored
<?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.InfluxDbIntegration</code>
|
|
*/
|
|
class InfluxDbIntegration extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Application ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string application_id = 1;</code>
|
|
*/
|
|
protected $application_id = '';
|
|
/**
|
|
* InfluxDb API write endpoint (e.g. http://localhost:8086/write).
|
|
*
|
|
* Generated from protobuf field <code>string endpoint = 2;</code>
|
|
*/
|
|
protected $endpoint = '';
|
|
/**
|
|
* InfluxDb database name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string db = 3;</code>
|
|
*/
|
|
protected $db = '';
|
|
/**
|
|
* InfluxDb username. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string username = 4;</code>
|
|
*/
|
|
protected $username = '';
|
|
/**
|
|
* InfluxDb password. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string password = 5;</code>
|
|
*/
|
|
protected $password = '';
|
|
/**
|
|
* InfluxDb retention policy name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string retention_policy_name = 6;</code>
|
|
*/
|
|
protected $retention_policy_name = '';
|
|
/**
|
|
* InfluxDb timestamp precision (InfluxDb v1).
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbPrecision precision = 7;</code>
|
|
*/
|
|
protected $precision = 0;
|
|
/**
|
|
* InfluxDb version.
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbVersion version = 8;</code>
|
|
*/
|
|
protected $version = 0;
|
|
/**
|
|
* Token. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string token = 9;</code>
|
|
*/
|
|
protected $token = '';
|
|
/**
|
|
* Organization. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string organization = 10;</code>
|
|
*/
|
|
protected $organization = '';
|
|
/**
|
|
* Bucket. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string bucket = 11;</code>
|
|
*/
|
|
protected $bucket = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $application_id
|
|
* Application ID (UUID).
|
|
* @type string $endpoint
|
|
* InfluxDb API write endpoint (e.g. http://localhost:8086/write).
|
|
* @type string $db
|
|
* InfluxDb database name. (InfluxDb v1)
|
|
* @type string $username
|
|
* InfluxDb username. (InfluxDb v1)
|
|
* @type string $password
|
|
* InfluxDb password. (InfluxDb v1)
|
|
* @type string $retention_policy_name
|
|
* InfluxDb retention policy name. (InfluxDb v1)
|
|
* @type int $precision
|
|
* InfluxDb timestamp precision (InfluxDb v1).
|
|
* @type int $version
|
|
* InfluxDb version.
|
|
* @type string $token
|
|
* Token. (InfluxDb v2)
|
|
* @type string $organization
|
|
* Organization. (InfluxDb v2)
|
|
* @type string $bucket
|
|
* Bucket. (InfluxDb v2)
|
|
* }
|
|
*/
|
|
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;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb API write endpoint (e.g. http://localhost:8086/write).
|
|
*
|
|
* Generated from protobuf field <code>string endpoint = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getEndpoint()
|
|
{
|
|
return $this->endpoint;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb API write endpoint (e.g. http://localhost:8086/write).
|
|
*
|
|
* Generated from protobuf field <code>string endpoint = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setEndpoint($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->endpoint = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb database name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string db = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getDb()
|
|
{
|
|
return $this->db;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb database name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string db = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDb($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->db = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb username. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string username = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getUsername()
|
|
{
|
|
return $this->username;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb username. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string username = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setUsername($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->username = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb password. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string password = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getPassword()
|
|
{
|
|
return $this->password;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb password. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string password = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setPassword($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->password = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb retention policy name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string retention_policy_name = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getRetentionPolicyName()
|
|
{
|
|
return $this->retention_policy_name;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb retention policy name. (InfluxDb v1)
|
|
*
|
|
* Generated from protobuf field <code>string retention_policy_name = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRetentionPolicyName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->retention_policy_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb timestamp precision (InfluxDb v1).
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbPrecision precision = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getPrecision()
|
|
{
|
|
return $this->precision;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb timestamp precision (InfluxDb v1).
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbPrecision precision = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setPrecision($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Api\InfluxDbPrecision::class);
|
|
$this->precision = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb version.
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbVersion version = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getVersion()
|
|
{
|
|
return $this->version;
|
|
}
|
|
|
|
/**
|
|
* InfluxDb version.
|
|
*
|
|
* Generated from protobuf field <code>.api.InfluxDbVersion version = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setVersion($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Api\InfluxDbVersion::class);
|
|
$this->version = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Token. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string token = 9;</code>
|
|
* @return string
|
|
*/
|
|
public function getToken()
|
|
{
|
|
return $this->token;
|
|
}
|
|
|
|
/**
|
|
* Token. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string token = 9;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setToken($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->token = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Organization. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string organization = 10;</code>
|
|
* @return string
|
|
*/
|
|
public function getOrganization()
|
|
{
|
|
return $this->organization;
|
|
}
|
|
|
|
/**
|
|
* Organization. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string organization = 10;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setOrganization($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->organization = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Bucket. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string bucket = 11;</code>
|
|
* @return string
|
|
*/
|
|
public function getBucket()
|
|
{
|
|
return $this->bucket;
|
|
}
|
|
|
|
/**
|
|
* Bucket. (InfluxDb v2)
|
|
*
|
|
* Generated from protobuf field <code>string bucket = 11;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setBucket($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->bucket = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|