<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tulip.proto

namespace Mint\Tulip\V1;

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

/**
 * Generated from protobuf message <code>mint.tulip.v1.UpdateRequest</code>
 */
class UpdateRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 book = 1;</code>
     */
    protected $book = 0;
    /**
     * Generated from protobuf field <code>int32 paragraph = 2;</code>
     */
    protected $paragraph = 0;
    /**
     * Generated from protobuf field <code>int32 level = 3;</code>
     */
    protected $level = 0;
    /**
     * Generated from protobuf field <code>string bold1 = 4;</code>
     */
    protected $bold1 = '';
    /**
     * Generated from protobuf field <code>string bold2 = 5;</code>
     */
    protected $bold2 = '';
    /**
     * Generated from protobuf field <code>string bold3 = 6;</code>
     */
    protected $bold3 = '';
    /**
     * Generated from protobuf field <code>string content = 7;</code>
     */
    protected $content = '';
    /**
     * Generated from protobuf field <code>int32 pcd_book_id = 8;</code>
     */
    protected $pcd_book_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $book
     *     @type int $paragraph
     *     @type int $level
     *     @type string $bold1
     *     @type string $bold2
     *     @type string $bold3
     *     @type string $content
     *     @type int $pcd_book_id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Tulip::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string bold2 = 5;</code>
     * @return string
     */
    public function getBold2()
    {
        return $this->bold2;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string bold3 = 6;</code>
     * @return string
     */
    public function getBold3()
    {
        return $this->bold3;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string content = 7;</code>
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

