propresenter-php/php/generated/Rv/Data/NetworkAPI/GroupChange.php
2026-03-01 16:12:17 +01:00

154 lines
3.7 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApi.proto
namespace Rv\Data\NetworkAPI;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.NetworkAPI.GroupChange</code>
*/
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 <code>.rv.data.NetworkAPI.GroupInvite invite = 1;</code>
* @return \Rv\Data\NetworkAPI\GroupInvite|null
*/
public function getInvite()
{
return $this->readOneof(1);
}
public function hasInvite()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI.GroupInvite invite = 1;</code>
* @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 <code>.rv.data.NetworkAPI.GroupJoin join = 2;</code>
* @return \Rv\Data\NetworkAPI\GroupJoin|null
*/
public function getJoin()
{
return $this->readOneof(2);
}
public function hasJoin()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI.GroupJoin join = 2;</code>
* @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 <code>.rv.data.NetworkAPI.GroupKick kick = 3;</code>
* @return \Rv\Data\NetworkAPI\GroupKick|null
*/
public function getKick()
{
return $this->readOneof(3);
}
public function hasKick()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI.GroupKick kick = 3;</code>
* @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 <code>.rv.data.NetworkAPI.GroupStatus status = 4;</code>
* @return \Rv\Data\NetworkAPI\GroupStatus|null
*/
public function getStatus()
{
return $this->readOneof(4);
}
public function hasStatus()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.NetworkAPI.GroupStatus status = 4;</code>
* @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");
}
}