rv.data.NetworkAPI.GroupChange
*/
class GroupChange extends \Google\Protobuf\Internal\Message
{
protected $Change;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\NetworkAPI\GroupInvite $invite
* @type \Rv\Data\NetworkAPI\GroupJoin $join
* @type \Rv\Data\NetworkAPI\GroupKick $kick
* @type \Rv\Data\NetworkAPI\GroupStatus $status
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupInvite invite = 1;
* @return \Rv\Data\NetworkAPI\GroupInvite|null
*/
public function getInvite()
{
return $this->readOneof(1);
}
public function hasInvite()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupInvite invite = 1;
* @param \Rv\Data\NetworkAPI\GroupInvite $var
* @return $this
*/
public function setInvite($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\GroupInvite::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupJoin join = 2;
* @return \Rv\Data\NetworkAPI\GroupJoin|null
*/
public function getJoin()
{
return $this->readOneof(2);
}
public function hasJoin()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupJoin join = 2;
* @param \Rv\Data\NetworkAPI\GroupJoin $var
* @return $this
*/
public function setJoin($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\GroupJoin::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupKick kick = 3;
* @return \Rv\Data\NetworkAPI\GroupKick|null
*/
public function getKick()
{
return $this->readOneof(3);
}
public function hasKick()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupKick kick = 3;
* @param \Rv\Data\NetworkAPI\GroupKick $var
* @return $this
*/
public function setKick($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\GroupKick::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupStatus status = 4;
* @return \Rv\Data\NetworkAPI\GroupStatus|null
*/
public function getStatus()
{
return $this->readOneof(4);
}
public function hasStatus()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.GroupStatus status = 4;
* @param \Rv\Data\NetworkAPI\GroupStatus $var
* @return $this
*/
public function setStatus($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\GroupStatus::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* @return string
*/
public function getChange()
{
return $this->whichOneof("Change");
}
}