rv.data.Color */ class Color extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field float red = 1; */ protected $red = 0.0; /** * Generated from protobuf field float green = 2; */ protected $green = 0.0; /** * Generated from protobuf field float blue = 3; */ protected $blue = 0.0; /** * Generated from protobuf field float alpha = 4; */ protected $alpha = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $red * @type float $green * @type float $blue * @type float $alpha * } */ public function __construct($data = NULL) { \GPBMetadata\Color::initOnce(); parent::__construct($data); } /** * Generated from protobuf field float red = 1; * @return float */ public function getRed() { return $this->red; } /** * Generated from protobuf field float red = 1; * @param float $var * @return $this */ public function setRed($var) { GPBUtil::checkFloat($var); $this->red = $var; return $this; } /** * Generated from protobuf field float green = 2; * @return float */ public function getGreen() { return $this->green; } /** * Generated from protobuf field float green = 2; * @param float $var * @return $this */ public function setGreen($var) { GPBUtil::checkFloat($var); $this->green = $var; return $this; } /** * Generated from protobuf field float blue = 3; * @return float */ public function getBlue() { return $this->blue; } /** * Generated from protobuf field float blue = 3; * @param float $var * @return $this */ public function setBlue($var) { GPBUtil::checkFloat($var); $this->blue = $var; return $this; } /** * Generated from protobuf field float alpha = 4; * @return float */ public function getAlpha() { return $this->alpha; } /** * Generated from protobuf field float alpha = 4; * @param float $var * @return $this */ public function setAlpha($var) { GPBUtil::checkFloat($var); $this->alpha = $var; return $this; } }