mint.tulip.v1.SearchResponse.Item
*/
class Item extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field float rank = 1;
*/
protected $rank = 0.0;
/**
* Generated from protobuf field string highlight = 2;
*/
protected $highlight = '';
/**
* Generated from protobuf field int32 book = 3;
*/
protected $book = 0;
/**
* Generated from protobuf field int32 paragraph = 4;
*/
protected $paragraph = 0;
/**
* Generated from protobuf field string content = 5;
*/
protected $content = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type float $rank
* @type string $highlight
* @type int $book
* @type int $paragraph
* @type string $content
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Tulip::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field float rank = 1;
* @return float
*/
public function getRank()
{
return $this->rank;
}
/**
* Generated from protobuf field float rank = 1;
* @param float $var
* @return $this
*/
public function setRank($var)
{
GPBUtil::checkFloat($var);
$this->rank = $var;
return $this;
}
/**
* Generated from protobuf field string highlight = 2;
* @return string
*/
public function getHighlight()
{
return $this->highlight;
}
/**
* Generated from protobuf field string highlight = 2;
* @param string $var
* @return $this
*/
public function setHighlight($var)
{
GPBUtil::checkString($var, True);
$this->highlight = $var;
return $this;
}
/**
* Generated from protobuf field int32 book = 3;
* @return int
*/
public function getBook()
{
return $this->book;
}
/**
* Generated from protobuf field int32 book = 3;
* @param int $var
* @return $this
*/
public function setBook($var)
{
GPBUtil::checkInt32($var);
$this->book = $var;
return $this;
}
/**
* Generated from protobuf field int32 paragraph = 4;
* @return int
*/
public function getParagraph()
{
return $this->paragraph;
}
/**
* Generated from protobuf field int32 paragraph = 4;
* @param int $var
* @return $this
*/
public function setParagraph($var)
{
GPBUtil::checkInt32($var);
$this->paragraph = $var;
return $this;
}
/**
* Generated from protobuf field string content = 5;
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Generated from protobuf field string content = 5;
* @param string $var
* @return $this
*/
public function setContent($var)
{
GPBUtil::checkString($var, True);
$this->content = $var;
return $this;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Item::class, \Mint\Tulip\V1\SearchResponse_Item::class);