rv.data.Presentation.BibleReference
*/
class BibleReference extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field uint32 book_index = 1;
*/
protected $book_index = 0;
/**
* Generated from protobuf field string book_name = 2;
*/
protected $book_name = '';
/**
* Generated from protobuf field .rv.data.IntRange chapter_range = 3;
*/
protected $chapter_range = null;
/**
* Generated from protobuf field .rv.data.IntRange verse_range = 4;
*/
protected $verse_range = null;
/**
* Generated from protobuf field string translation_name = 5;
*/
protected $translation_name = '';
/**
* Generated from protobuf field string translation_display_abbreviation = 6;
*/
protected $translation_display_abbreviation = '';
/**
* Generated from protobuf field string translation_internal_abbreviation = 7;
*/
protected $translation_internal_abbreviation = '';
/**
* Generated from protobuf field string book_key = 8;
*/
protected $book_key = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $book_index
* @type string $book_name
* @type \Rv\Data\IntRange $chapter_range
* @type \Rv\Data\IntRange $verse_range
* @type string $translation_name
* @type string $translation_display_abbreviation
* @type string $translation_internal_abbreviation
* @type string $book_key
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Presentation::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field uint32 book_index = 1;
* @return int
*/
public function getBookIndex()
{
return $this->book_index;
}
/**
* Generated from protobuf field uint32 book_index = 1;
* @param int $var
* @return $this
*/
public function setBookIndex($var)
{
GPBUtil::checkUint32($var);
$this->book_index = $var;
return $this;
}
/**
* Generated from protobuf field string book_name = 2;
* @return string
*/
public function getBookName()
{
return $this->book_name;
}
/**
* Generated from protobuf field string book_name = 2;
* @param string $var
* @return $this
*/
public function setBookName($var)
{
GPBUtil::checkString($var, True);
$this->book_name = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.IntRange chapter_range = 3;
* @return \Rv\Data\IntRange|null
*/
public function getChapterRange()
{
return $this->chapter_range;
}
public function hasChapterRange()
{
return isset($this->chapter_range);
}
public function clearChapterRange()
{
unset($this->chapter_range);
}
/**
* Generated from protobuf field .rv.data.IntRange chapter_range = 3;
* @param \Rv\Data\IntRange $var
* @return $this
*/
public function setChapterRange($var)
{
GPBUtil::checkMessage($var, \Rv\Data\IntRange::class);
$this->chapter_range = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.IntRange verse_range = 4;
* @return \Rv\Data\IntRange|null
*/
public function getVerseRange()
{
return $this->verse_range;
}
public function hasVerseRange()
{
return isset($this->verse_range);
}
public function clearVerseRange()
{
unset($this->verse_range);
}
/**
* Generated from protobuf field .rv.data.IntRange verse_range = 4;
* @param \Rv\Data\IntRange $var
* @return $this
*/
public function setVerseRange($var)
{
GPBUtil::checkMessage($var, \Rv\Data\IntRange::class);
$this->verse_range = $var;
return $this;
}
/**
* Generated from protobuf field string translation_name = 5;
* @return string
*/
public function getTranslationName()
{
return $this->translation_name;
}
/**
* Generated from protobuf field string translation_name = 5;
* @param string $var
* @return $this
*/
public function setTranslationName($var)
{
GPBUtil::checkString($var, True);
$this->translation_name = $var;
return $this;
}
/**
* Generated from protobuf field string translation_display_abbreviation = 6;
* @return string
*/
public function getTranslationDisplayAbbreviation()
{
return $this->translation_display_abbreviation;
}
/**
* Generated from protobuf field string translation_display_abbreviation = 6;
* @param string $var
* @return $this
*/
public function setTranslationDisplayAbbreviation($var)
{
GPBUtil::checkString($var, True);
$this->translation_display_abbreviation = $var;
return $this;
}
/**
* Generated from protobuf field string translation_internal_abbreviation = 7;
* @return string
*/
public function getTranslationInternalAbbreviation()
{
return $this->translation_internal_abbreviation;
}
/**
* Generated from protobuf field string translation_internal_abbreviation = 7;
* @param string $var
* @return $this
*/
public function setTranslationInternalAbbreviation($var)
{
GPBUtil::checkString($var, True);
$this->translation_internal_abbreviation = $var;
return $this;
}
/**
* Generated from protobuf field string book_key = 8;
* @return string
*/
public function getBookKey()
{
return $this->book_key;
}
/**
* Generated from protobuf field string book_key = 8;
* @param string $var
* @return $this
*/
public function setBookKey($var)
{
GPBUtil::checkString($var, True);
$this->book_key = $var;
return $this;
}
}