api.InfluxDbIntegration */ class InfluxDbIntegration extends \Google\Protobuf\Internal\Message { /** * Application ID (UUID). * * Generated from protobuf field string application_id = 1; */ protected $application_id = ''; /** * InfluxDb API write endpoint (e.g. http://localhost:8086/write). * * Generated from protobuf field string endpoint = 2; */ protected $endpoint = ''; /** * InfluxDb database name. (InfluxDb v1) * * Generated from protobuf field string db = 3; */ protected $db = ''; /** * InfluxDb username. (InfluxDb v1) * * Generated from protobuf field string username = 4; */ protected $username = ''; /** * InfluxDb password. (InfluxDb v1) * * Generated from protobuf field string password = 5; */ protected $password = ''; /** * InfluxDb retention policy name. (InfluxDb v1) * * Generated from protobuf field string retention_policy_name = 6; */ protected $retention_policy_name = ''; /** * InfluxDb timestamp precision (InfluxDb v1). * * Generated from protobuf field .api.InfluxDbPrecision precision = 7; */ protected $precision = 0; /** * InfluxDb version. * * Generated from protobuf field .api.InfluxDbVersion version = 8; */ protected $version = 0; /** * Token. (InfluxDb v2) * * Generated from protobuf field string token = 9; */ protected $token = ''; /** * Organization. (InfluxDb v2) * * Generated from protobuf field string organization = 10; */ protected $organization = ''; /** * Bucket. (InfluxDb v2) * * Generated from protobuf field string bucket = 11; */ 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 string application_id = 1; * @return string */ public function getApplicationId() { return $this->application_id; } /** * Application ID (UUID). * * Generated from protobuf field string application_id = 1; * @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 string endpoint = 2; * @return string */ public function getEndpoint() { return $this->endpoint; } /** * InfluxDb API write endpoint (e.g. http://localhost:8086/write). * * Generated from protobuf field string endpoint = 2; * @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 string db = 3; * @return string */ public function getDb() { return $this->db; } /** * InfluxDb database name. (InfluxDb v1) * * Generated from protobuf field string db = 3; * @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 string username = 4; * @return string */ public function getUsername() { return $this->username; } /** * InfluxDb username. (InfluxDb v1) * * Generated from protobuf field string username = 4; * @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 string password = 5; * @return string */ public function getPassword() { return $this->password; } /** * InfluxDb password. (InfluxDb v1) * * Generated from protobuf field string password = 5; * @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 string retention_policy_name = 6; * @return string */ public function getRetentionPolicyName() { return $this->retention_policy_name; } /** * InfluxDb retention policy name. (InfluxDb v1) * * Generated from protobuf field string retention_policy_name = 6; * @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 .api.InfluxDbPrecision precision = 7; * @return int */ public function getPrecision() { return $this->precision; } /** * InfluxDb timestamp precision (InfluxDb v1). * * Generated from protobuf field .api.InfluxDbPrecision precision = 7; * @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 .api.InfluxDbVersion version = 8; * @return int */ public function getVersion() { return $this->version; } /** * InfluxDb version. * * Generated from protobuf field .api.InfluxDbVersion version = 8; * @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 string token = 9; * @return string */ public function getToken() { return $this->token; } /** * Token. (InfluxDb v2) * * Generated from protobuf field string token = 9; * @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 string organization = 10; * @return string */ public function getOrganization() { return $this->organization; } /** * Organization. (InfluxDb v2) * * Generated from protobuf field string organization = 10; * @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 string bucket = 11; * @return string */ public function getBucket() { return $this->bucket; } /** * Bucket. (InfluxDb v2) * * Generated from protobuf field string bucket = 11; * @param string $var * @return $this */ public function setBucket($var) { GPBUtil::checkString($var, True); $this->bucket = $var; return $this; } }