api.GetRelayGatewayResponse */ class GetRelayGatewayResponse extends \Google\Protobuf\Internal\Message { /** * Relay Gateway object. * * Generated from protobuf field .api.RelayGateway relay_gateway = 1; */ protected $relay_gateway = 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; /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; */ protected $last_seen_at = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Chirpstack\Api\RelayGateway $relay_gateway * Relay Gateway object. * @type \Google\Protobuf\Timestamp $created_at * Created at timestamp. * @type \Google\Protobuf\Timestamp $updated_at * Last update timestamp. * @type \Google\Protobuf\Timestamp $last_seen_at * Last seen at timestamp. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); parent::__construct($data); } /** * Relay Gateway object. * * Generated from protobuf field .api.RelayGateway relay_gateway = 1; * @return \Chirpstack\Api\RelayGateway|null */ public function getRelayGateway() { return $this->relay_gateway; } public function hasRelayGateway() { return isset($this->relay_gateway); } public function clearRelayGateway() { unset($this->relay_gateway); } /** * Relay Gateway object. * * Generated from protobuf field .api.RelayGateway relay_gateway = 1; * @param \Chirpstack\Api\RelayGateway $var * @return $this */ public function setRelayGateway($var) { GPBUtil::checkMessage($var, \Chirpstack\Api\RelayGateway::class); $this->relay_gateway = $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; } /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; * @return \Google\Protobuf\Timestamp|null */ public function getLastSeenAt() { return $this->last_seen_at; } public function hasLastSeenAt() { return isset($this->last_seen_at); } public function clearLastSeenAt() { unset($this->last_seen_at); } /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setLastSeenAt($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->last_seen_at = $var; return $this; } }