rv.data.API_v1_Theme_Response.GetTheme */ class GetTheme extends \Google\Protobuf\Internal\Message { protected $Value; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\API_v1_Theme $theme * @type \Rv\Data\API_v1_ThemeGroup $group * } */ public function __construct($data = NULL) { \GPBMetadata\ProApiV1Theme::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.API_v1_Theme theme = 1; * @return \Rv\Data\API_v1_Theme|null */ public function getTheme() { return $this->readOneof(1); } public function hasTheme() { return $this->hasOneof(1); } /** * Generated from protobuf field .rv.data.API_v1_Theme theme = 1; * @param \Rv\Data\API_v1_Theme $var * @return $this */ public function setTheme($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_Theme::class); $this->writeOneof(1, $var); return $this; } /** * Generated from protobuf field .rv.data.API_v1_ThemeGroup group = 2; * @return \Rv\Data\API_v1_ThemeGroup|null */ public function getGroup() { return $this->readOneof(2); } public function hasGroup() { return $this->hasOneof(2); } /** * Generated from protobuf field .rv.data.API_v1_ThemeGroup group = 2; * @param \Rv\Data\API_v1_ThemeGroup $var * @return $this */ public function setGroup($var) { GPBUtil::checkMessage($var, \Rv\Data\API_v1_ThemeGroup::class); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getValue() { return $this->whichOneof("Value"); } }