api.MulticastGroupListItem */ class MulticastGroupListItem extends \Google\Protobuf\Internal\Message { /** * ID. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * 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; /** * Name. * * Generated from protobuf field string name = 4; */ protected $name = ''; /** * Region. * * Generated from protobuf field .common.Region region = 5; */ protected $region = 0; /** * Multicast group type. * * Generated from protobuf field .api.MulticastGroupType group_type = 6; */ protected $group_type = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID. * @type \Google\Protobuf\Timestamp $created_at * Created at timestamp. * @type \Google\Protobuf\Timestamp $updated_at * Last update timestamp. * @type string $name * Name. * @type int $region * Region. * @type int $group_type * Multicast group type. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); parent::__construct($data); } /** * ID. * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * ID. * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $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; } /** * Name. * * Generated from protobuf field string name = 4; * @return string */ public function getName() { return $this->name; } /** * Name. * * Generated from protobuf field string name = 4; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Region. * * Generated from protobuf field .common.Region region = 5; * @return int */ public function getRegion() { return $this->region; } /** * Region. * * Generated from protobuf field .common.Region region = 5; * @param int $var * @return $this */ public function setRegion($var) { GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); $this->region = $var; return $this; } /** * Multicast group type. * * Generated from protobuf field .api.MulticastGroupType group_type = 6; * @return int */ public function getGroupType() { return $this->group_type; } /** * Multicast group type. * * Generated from protobuf field .api.MulticastGroupType group_type = 6; * @param int $var * @return $this */ public function setGroupType($var) { GPBUtil::checkEnum($var, \Chirpstack\Api\MulticastGroupType::class); $this->group_type = $var; return $this; } }