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

namespace Registration\Core;

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

/**
 * Generated from protobuf message <code>registration.core.Bible</code>
 */
class Bible extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string language = 3;</code>
     */
    protected $language = '';
    /**
     * Generated from protobuf field <code>string publisher = 4;</code>
     */
    protected $publisher = '';
    /**
     * Generated from protobuf field <code>string copyright = 5;</code>
     */
    protected $copyright = '';
    /**
     * Generated from protobuf field <code>string display_abbreviation = 6;</code>
     */
    protected $display_abbreviation = '';
    /**
     * Generated from protobuf field <code>string internal_abbreviation = 7;</code>
     */
    protected $internal_abbreviation = '';
    /**
     * Generated from protobuf field <code>string version = 8;</code>
     */
    protected $version = '';
    protected $additional;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $name
     *     @type string $language
     *     @type string $publisher
     *     @type string $copyright
     *     @type string $display_abbreviation
     *     @type string $internal_abbreviation
     *     @type string $version
     *     @type \Registration\Core\SupplementalInformation $info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Registration::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string id = 1;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string name = 2;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string version = 8;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.registration.core.SupplementalInformation info = 9;</code>
     * @return \Registration\Core\SupplementalInformation|null
     */
    public function getInfo()
    {
        return $this->readOneof(9);
    }

    public function hasInfo()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.registration.core.SupplementalInformation info = 9;</code>
     * @param \Registration\Core\SupplementalInformation $var
     * @return $this
     */
    public function setInfo($var)
    {
        GPBUtil::checkMessage($var, \Registration\Core\SupplementalInformation::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getAdditional()
    {
        return $this->whichOneof("additional");
    }

}

