api.CreateDeviceProfileRequest */ class CreateDeviceProfileRequest extends \Google\Protobuf\Internal\Message { /** * Object to create. * * Generated from protobuf field .api.DeviceProfile device_profile = 1; */ 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 .api.DeviceProfile device_profile = 1; * @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 .api.DeviceProfile device_profile = 1; * @param \Chirpstack\Api\DeviceProfile $var * @return $this */ public function setDeviceProfile($var) { GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfile::class); $this->device_profile = $var; return $this; } }