rv.data.CopyrightLayout.Token */ class Token extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.CopyrightLayout.TokenType token_type = 1; */ protected $token_type = 0; /** * Generated from protobuf field string text = 2; */ protected $text = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $token_type * @type string $text * } */ public function __construct($data = NULL) { \GPBMetadata\Ccli::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.CopyrightLayout.TokenType token_type = 1; * @return int */ public function getTokenType() { return $this->token_type; } /** * Generated from protobuf field .rv.data.CopyrightLayout.TokenType token_type = 1; * @param int $var * @return $this */ public function setTokenType($var) { GPBUtil::checkEnum($var, \Rv\Data\CopyrightLayout\TokenType::class); $this->token_type = $var; return $this; } /** * Generated from protobuf field string text = 2; * @return string */ public function getText() { return $this->text; } /** * Generated from protobuf field string text = 2; * @param string $var * @return $this */ public function setText($var) { GPBUtil::checkString($var, True); $this->text = $var; return $this; } }