api.CreateGatewayRequest */ class CreateGatewayRequest extends \Google\Protobuf\Internal\Message { /** * Gateway object. * * Generated from protobuf field .api.Gateway gateway = 1; */ protected $gateway = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Chirpstack\Api\Gateway $gateway * Gateway object. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); parent::__construct($data); } /** * Gateway object. * * Generated from protobuf field .api.Gateway gateway = 1; * @return \Chirpstack\Api\Gateway|null */ public function getGateway() { return $this->gateway; } public function hasGateway() { return isset($this->gateway); } public function clearGateway() { unset($this->gateway); } /** * Gateway object. * * Generated from protobuf field .api.Gateway gateway = 1; * @param \Chirpstack\Api\Gateway $var * @return $this */ public function setGateway($var) { GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class); $this->gateway = $var; return $this; } }