rv.data.API_v1_Message_Request.TriggerMessage
*/
class TriggerMessage extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string id = 1;
*/
protected $id = '';
/**
* Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 2;
*/
private $tokens;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* @type array<\Rv\Data\API_v1_Message\API_v1_MessageToken>|\Google\Protobuf\Internal\RepeatedField $tokens
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Message::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string id = 1;
* @return string
*/
public function getId()
{
return $this->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;
}
/**
* Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTokens()
{
return $this->tokens;
}
/**
* Generated from protobuf field repeated .rv.data.API_v1_Message.API_v1_MessageToken tokens = 2;
* @param array<\Rv\Data\API_v1_Message\API_v1_MessageToken>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTokens($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\API_v1_Message\API_v1_MessageToken::class);
$this->tokens = $arr;
return $this;
}
}