rv.data.Font */ class Font extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field double size = 2; */ protected $size = 0.0; /** * Generated from protobuf field bool italic = 4; */ protected $italic = false; /** * Generated from protobuf field bool bold = 8; */ protected $bold = false; /** * Generated from protobuf field string family = 9; */ protected $family = ''; /** * Generated from protobuf field string face = 10; */ protected $face = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * @type float $size * @type bool $italic * @type bool $bold * @type string $family * @type string $face * } */ public function __construct($data = NULL) { \GPBMetadata\Font::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field double size = 2; * @return float */ public function getSize() { return $this->size; } /** * Generated from protobuf field double size = 2; * @param float $var * @return $this */ public function setSize($var) { GPBUtil::checkDouble($var); $this->size = $var; return $this; } /** * Generated from protobuf field bool italic = 4; * @return bool */ public function getItalic() { return $this->italic; } /** * Generated from protobuf field bool italic = 4; * @param bool $var * @return $this */ public function setItalic($var) { GPBUtil::checkBool($var); $this->italic = $var; return $this; } /** * Generated from protobuf field bool bold = 8; * @return bool */ public function getBold() { return $this->bold; } /** * Generated from protobuf field bool bold = 8; * @param bool $var * @return $this */ public function setBold($var) { GPBUtil::checkBool($var); $this->bold = $var; return $this; } /** * Generated from protobuf field string family = 9; * @return string */ public function getFamily() { return $this->family; } /** * Generated from protobuf field string family = 9; * @param string $var * @return $this */ public function setFamily($var) { GPBUtil::checkString($var, True); $this->family = $var; return $this; } /** * Generated from protobuf field string face = 10; * @return string */ public function getFace() { return $this->face; } /** * Generated from protobuf field string face = 10; * @param string $var * @return $this */ public function setFace($var) { GPBUtil::checkString($var, True); $this->face = $var; return $this; } }