rv.data.ProLink.GroupDefinition
*/
class GroupDefinition extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Timestamp timestamp = 1;
*/
protected $timestamp = null;
/**
* Generated from protobuf field string secret = 2;
*/
protected $secret = '';
/**
* Generated from protobuf field string name = 3;
*/
protected $name = '';
/**
* Generated from protobuf field repeated .rv.data.ProLink.GroupDefinition.Member members = 4;
*/
private $members;
/**
* Generated from protobuf field .rv.data.UUID group_identifier = 5;
*/
protected $group_identifier = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\Timestamp $timestamp
* @type string $secret
* @type string $name
* @type array<\Rv\Data\ProLink\GroupDefinition\Member>|\Google\Protobuf\Internal\RepeatedField $members
* @type \Rv\Data\UUID $group_identifier
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.Timestamp timestamp = 1;
* @return \Rv\Data\Timestamp|null
*/
public function getTimestamp()
{
return $this->timestamp;
}
public function hasTimestamp()
{
return isset($this->timestamp);
}
public function clearTimestamp()
{
unset($this->timestamp);
}
/**
* Generated from protobuf field .rv.data.Timestamp timestamp = 1;
* @param \Rv\Data\Timestamp $var
* @return $this
*/
public function setTimestamp($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Timestamp::class);
$this->timestamp = $var;
return $this;
}
/**
* Generated from protobuf field string secret = 2;
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* Generated from protobuf field string secret = 2;
* @param string $var
* @return $this
*/
public function setSecret($var)
{
GPBUtil::checkString($var, True);
$this->secret = $var;
return $this;
}
/**
* Generated from protobuf field string name = 3;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 3;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.ProLink.GroupDefinition.Member members = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMembers()
{
return $this->members;
}
/**
* Generated from protobuf field repeated .rv.data.ProLink.GroupDefinition.Member members = 4;
* @param array<\Rv\Data\ProLink\GroupDefinition\Member>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMembers($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\ProLink\GroupDefinition\Member::class);
$this->members = $arr;
return $this;
}
/**
* Generated from protobuf field .rv.data.UUID group_identifier = 5;
* @return \Rv\Data\UUID|null
*/
public function getGroupIdentifier()
{
return $this->group_identifier;
}
public function hasGroupIdentifier()
{
return isset($this->group_identifier);
}
public function clearGroupIdentifier()
{
unset($this->group_identifier);
}
/**
* Generated from protobuf field .rv.data.UUID group_identifier = 5;
* @param \Rv\Data\UUID $var
* @return $this
*/
public function setGroupIdentifier($var)
{
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
$this->group_identifier = $var;
return $this;
}
}