rv.data.Graphics.Text.Attributes.Underline */ class Underline extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Style style = 1; */ protected $style = 0; /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Pattern pattern = 2; */ protected $pattern = 0; /** * Generated from protobuf field bool by_word = 3; */ protected $by_word = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $style * @type int $pattern * @type bool $by_word * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Style style = 1; * @return int */ public function getStyle() { return $this->style; } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Style style = 1; * @param int $var * @return $this */ public function setStyle($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Underline\Style::class); $this->style = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Pattern pattern = 2; * @return int */ public function getPattern() { return $this->pattern; } /** * Generated from protobuf field .rv.data.Graphics.Text.Attributes.Underline.Pattern pattern = 2; * @param int $var * @return $this */ public function setPattern($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Underline\Pattern::class); $this->pattern = $var; return $this; } /** * Generated from protobuf field bool by_word = 3; * @return bool */ public function getByWord() { return $this->by_word; } /** * Generated from protobuf field bool by_word = 3; * @param bool $var * @return $this */ public function setByWord($var) { GPBUtil::checkBool($var); $this->by_word = $var; return $this; } }