<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto

namespace Rv\Data\Graphics\Text\Attributes;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.data.Graphics.Text.Attributes.Paragraph</code>
 */
class Paragraph extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Alignment alignment = 1;</code>
     */
    protected $alignment = 0;
    /**
     * Generated from protobuf field <code>double first_line_head_indent = 2;</code>
     */
    protected $first_line_head_indent = 0.0;
    /**
     * Generated from protobuf field <code>double head_indent = 3;</code>
     */
    protected $head_indent = 0.0;
    /**
     * Generated from protobuf field <code>double tail_indent = 4;</code>
     */
    protected $tail_indent = 0.0;
    /**
     * Generated from protobuf field <code>double line_height_multiple = 5;</code>
     */
    protected $line_height_multiple = 0.0;
    /**
     * Generated from protobuf field <code>double maximum_line_height = 6;</code>
     */
    protected $maximum_line_height = 0.0;
    /**
     * Generated from protobuf field <code>double minimum_line_height = 7;</code>
     */
    protected $minimum_line_height = 0.0;
    /**
     * Generated from protobuf field <code>double line_spacing = 8;</code>
     */
    protected $line_spacing = 0.0;
    /**
     * Generated from protobuf field <code>double paragraph_spacing = 9;</code>
     */
    protected $paragraph_spacing = 0.0;
    /**
     * Generated from protobuf field <code>double paragraph_spacing_before = 10;</code>
     */
    protected $paragraph_spacing_before = 0.0;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TabStop tab_stops = 11;</code>
     */
    private $tab_stops;
    /**
     * Generated from protobuf field <code>double default_tab_interval = 12;</code>
     */
    protected $default_tab_interval = 0.0;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList text_list = 13;</code>
     */
    protected $text_list = null;
    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TextList text_lists = 14;</code>
     */
    private $text_lists;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $alignment
     *     @type float $first_line_head_indent
     *     @type float $head_indent
     *     @type float $tail_indent
     *     @type float $line_height_multiple
     *     @type float $maximum_line_height
     *     @type float $minimum_line_height
     *     @type float $line_spacing
     *     @type float $paragraph_spacing
     *     @type float $paragraph_spacing_before
     *     @type array<\Rv\Data\Graphics\Text\Attributes\Paragraph\TabStop>|\Google\Protobuf\Internal\RepeatedField $tab_stops
     *     @type float $default_tab_interval
     *     @type \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList $text_list
     *     @type array<\Rv\Data\Graphics\Text\Attributes\Paragraph\TextList>|\Google\Protobuf\Internal\RepeatedField $text_lists
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Alignment alignment = 1;</code>
     * @return int
     */
    public function getAlignment()
    {
        return $this->alignment;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Alignment alignment = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAlignment($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Alignment::class);
        $this->alignment = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double first_line_head_indent = 2;</code>
     * @return float
     */
    public function getFirstLineHeadIndent()
    {
        return $this->first_line_head_indent;
    }

    /**
     * Generated from protobuf field <code>double first_line_head_indent = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setFirstLineHeadIndent($var)
    {
        GPBUtil::checkDouble($var);
        $this->first_line_head_indent = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double head_indent = 3;</code>
     * @return float
     */
    public function getHeadIndent()
    {
        return $this->head_indent;
    }

    /**
     * Generated from protobuf field <code>double head_indent = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setHeadIndent($var)
    {
        GPBUtil::checkDouble($var);
        $this->head_indent = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double tail_indent = 4;</code>
     * @return float
     */
    public function getTailIndent()
    {
        return $this->tail_indent;
    }

    /**
     * Generated from protobuf field <code>double tail_indent = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setTailIndent($var)
    {
        GPBUtil::checkDouble($var);
        $this->tail_indent = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double line_height_multiple = 5;</code>
     * @return float
     */
    public function getLineHeightMultiple()
    {
        return $this->line_height_multiple;
    }

    /**
     * Generated from protobuf field <code>double line_height_multiple = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setLineHeightMultiple($var)
    {
        GPBUtil::checkDouble($var);
        $this->line_height_multiple = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double maximum_line_height = 6;</code>
     * @return float
     */
    public function getMaximumLineHeight()
    {
        return $this->maximum_line_height;
    }

    /**
     * Generated from protobuf field <code>double maximum_line_height = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setMaximumLineHeight($var)
    {
        GPBUtil::checkDouble($var);
        $this->maximum_line_height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double minimum_line_height = 7;</code>
     * @return float
     */
    public function getMinimumLineHeight()
    {
        return $this->minimum_line_height;
    }

    /**
     * Generated from protobuf field <code>double minimum_line_height = 7;</code>
     * @param float $var
     * @return $this
     */
    public function setMinimumLineHeight($var)
    {
        GPBUtil::checkDouble($var);
        $this->minimum_line_height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double line_spacing = 8;</code>
     * @return float
     */
    public function getLineSpacing()
    {
        return $this->line_spacing;
    }

    /**
     * Generated from protobuf field <code>double line_spacing = 8;</code>
     * @param float $var
     * @return $this
     */
    public function setLineSpacing($var)
    {
        GPBUtil::checkDouble($var);
        $this->line_spacing = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double paragraph_spacing = 9;</code>
     * @return float
     */
    public function getParagraphSpacing()
    {
        return $this->paragraph_spacing;
    }

    /**
     * Generated from protobuf field <code>double paragraph_spacing = 9;</code>
     * @param float $var
     * @return $this
     */
    public function setParagraphSpacing($var)
    {
        GPBUtil::checkDouble($var);
        $this->paragraph_spacing = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double paragraph_spacing_before = 10;</code>
     * @return float
     */
    public function getParagraphSpacingBefore()
    {
        return $this->paragraph_spacing_before;
    }

    /**
     * Generated from protobuf field <code>double paragraph_spacing_before = 10;</code>
     * @param float $var
     * @return $this
     */
    public function setParagraphSpacingBefore($var)
    {
        GPBUtil::checkDouble($var);
        $this->paragraph_spacing_before = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TabStop tab_stops = 11;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTabStops()
    {
        return $this->tab_stops;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TabStop tab_stops = 11;</code>
     * @param array<\Rv\Data\Graphics\Text\Attributes\Paragraph\TabStop>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTabStops($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Graphics\Text\Attributes\Paragraph\TabStop::class);
        $this->tab_stops = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>double default_tab_interval = 12;</code>
     * @return float
     */
    public function getDefaultTabInterval()
    {
        return $this->default_tab_interval;
    }

    /**
     * Generated from protobuf field <code>double default_tab_interval = 12;</code>
     * @param float $var
     * @return $this
     */
    public function setDefaultTabInterval($var)
    {
        GPBUtil::checkDouble($var);
        $this->default_tab_interval = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList text_list = 13;</code>
     * @return \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList|null
     */
    public function getTextList()
    {
        return $this->text_list;
    }

    public function hasTextList()
    {
        return isset($this->text_list);
    }

    public function clearTextList()
    {
        unset($this->text_list);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList text_list = 13;</code>
     * @param \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList $var
     * @return $this
     */
    public function setTextList($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList::class);
        $this->text_list = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TextList text_lists = 14;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTextLists()
    {
        return $this->text_lists;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.Graphics.Text.Attributes.Paragraph.TextList text_lists = 14;</code>
     * @param array<\Rv\Data\Graphics\Text\Attributes\Paragraph\TextList>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTextLists($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList::class);
        $this->text_lists = $arr;

        return $this;
    }

}

