chirpstack/api/php/generated/Chirpstack/Api/GetApplicationResponse.php
2024-06-25 12:27:28 +01:00

206 lines
5.5 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.GetApplicationResponse</code>
*/
class GetApplicationResponse extends \Google\Protobuf\Internal\Message
{
/**
* Application object.
*
* Generated from protobuf field <code>.api.Application application = 1;</code>
*/
protected $application = null;
/**
* 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;
/**
* Measurement keys.
* This contains the measurement keys from all the device-profiles that
* are used by the devices under this application.
*
* Generated from protobuf field <code>repeated string measurement_keys = 4;</code>
*/
private $measurement_keys;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Application $application
* Application object.
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $measurement_keys
* Measurement keys.
* This contains the measurement keys from all the device-profiles that
* are used by the devices under this application.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application object.
*
* 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.
*
* 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;
}
/**
* 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;
}
/**
* Measurement keys.
* This contains the measurement keys from all the device-profiles that
* are used by the devices under this application.
*
* Generated from protobuf field <code>repeated string measurement_keys = 4;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMeasurementKeys()
{
return $this->measurement_keys;
}
/**
* Measurement keys.
* This contains the measurement keys from all the device-profiles that
* are used by the devices under this application.
*
* Generated from protobuf field <code>repeated string measurement_keys = 4;</code>
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMeasurementKeys($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->measurement_keys = $arr;
return $this;
}
}