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

namespace Rv\Data\Graphics\Text\Attributes\Paragraph;

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.TextList</code>
 */
class TextList extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList.NumberType number_type = 2;</code>
     */
    protected $number_type = 0;
    /**
     * Generated from protobuf field <code>string prefix = 3;</code>
     */
    protected $prefix = '';
    /**
     * Generated from protobuf field <code>string postfix = 4;</code>
     */
    protected $postfix = '';
    /**
     * Generated from protobuf field <code>int32 starting_number = 5;</code>
     */
    protected $starting_number = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *     @type int $number_type
     *     @type string $prefix
     *     @type string $postfix
     *     @type int $starting_number
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->is_enabled = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList.NumberType number_type = 2;</code>
     * @return int
     */
    public function getNumberType()
    {
        return $this->number_type;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Paragraph.TextList.NumberType number_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setNumberType($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Paragraph\TextList\NumberType::class);
        $this->number_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string prefix = 3;</code>
     * @return string
     */
    public function getPrefix()
    {
        return $this->prefix;
    }

    /**
     * Generated from protobuf field <code>string prefix = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPrefix($var)
    {
        GPBUtil::checkString($var, True);
        $this->prefix = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string postfix = 4;</code>
     * @return string
     */
    public function getPostfix()
    {
        return $this->postfix;
    }

    /**
     * Generated from protobuf field <code>string postfix = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setPostfix($var)
    {
        GPBUtil::checkString($var, True);
        $this->postfix = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 starting_number = 5;</code>
     * @return int
     */
    public function getStartingNumber()
    {
        return $this->starting_number;
    }

    /**
     * Generated from protobuf field <code>int32 starting_number = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setStartingNumber($var)
    {
        GPBUtil::checkInt32($var);
        $this->starting_number = $var;

        return $this;
    }

}

