api.GetDeviceProfileTemplateResponse */ class GetDeviceProfileTemplateResponse extends \Google\Protobuf\Internal\Message { /** * Device-profile template object. * * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; */ protected $device_profile_template = null; /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; */ protected $created_at = null; /** * Last update timestamp. * * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; */ protected $updated_at = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Chirpstack\Api\DeviceProfileTemplate $device_profile_template * Device-profile template object. * @type \Google\Protobuf\Timestamp $created_at * Created at timestamp. * @type \Google\Protobuf\Timestamp $updated_at * Last update timestamp. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); parent::__construct($data); } /** * Device-profile template object. * * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; * @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); } /** * Device-profile template object. * * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; * @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; } /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp updated_at = 3; * @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 .google.protobuf.Timestamp updated_at = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setUpdatedAt($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->updated_at = $var; return $this; } }