- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
269 lines
6.7 KiB
PHP
269 lines
6.7 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: presentation.proto
|
|
|
|
namespace Rv\Data\Presentation;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Presentation.BibleReference</code>
|
|
*/
|
|
class BibleReference extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>uint32 book_index = 1;</code>
|
|
*/
|
|
protected $book_index = 0;
|
|
/**
|
|
* Generated from protobuf field <code>string book_name = 2;</code>
|
|
*/
|
|
protected $book_name = '';
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange chapter_range = 3;</code>
|
|
*/
|
|
protected $chapter_range = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange verse_range = 4;</code>
|
|
*/
|
|
protected $verse_range = null;
|
|
/**
|
|
* Generated from protobuf field <code>string translation_name = 5;</code>
|
|
*/
|
|
protected $translation_name = '';
|
|
/**
|
|
* Generated from protobuf field <code>string translation_display_abbreviation = 6;</code>
|
|
*/
|
|
protected $translation_display_abbreviation = '';
|
|
/**
|
|
* Generated from protobuf field <code>string translation_internal_abbreviation = 7;</code>
|
|
*/
|
|
protected $translation_internal_abbreviation = '';
|
|
/**
|
|
* Generated from protobuf field <code>string book_key = 8;</code>
|
|
*/
|
|
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 <code>uint32 book_index = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getBookIndex()
|
|
{
|
|
return $this->book_index;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 book_index = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setBookIndex($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->book_index = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string book_name = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getBookName()
|
|
{
|
|
return $this->book_name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string book_name = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setBookName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->book_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.IntRange chapter_range = 3;</code>
|
|
* @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 <code>.rv.data.IntRange chapter_range = 3;</code>
|
|
* @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 <code>.rv.data.IntRange verse_range = 4;</code>
|
|
* @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 <code>.rv.data.IntRange verse_range = 4;</code>
|
|
* @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 <code>string translation_name = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getTranslationName()
|
|
{
|
|
return $this->translation_name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string translation_name = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTranslationName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->translation_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string translation_display_abbreviation = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getTranslationDisplayAbbreviation()
|
|
{
|
|
return $this->translation_display_abbreviation;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string translation_display_abbreviation = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTranslationDisplayAbbreviation($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->translation_display_abbreviation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string translation_internal_abbreviation = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getTranslationInternalAbbreviation()
|
|
{
|
|
return $this->translation_internal_abbreviation;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string translation_internal_abbreviation = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTranslationInternalAbbreviation($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->translation_internal_abbreviation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string book_key = 8;</code>
|
|
* @return string
|
|
*/
|
|
public function getBookKey()
|
|
{
|
|
return $this->book_key;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string book_key = 8;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setBookKey($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->book_key = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|