- 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
195 lines
4.1 KiB
PHP
195 lines
4.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: font.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Font</code>
|
|
*/
|
|
class Font extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>double size = 2;</code>
|
|
*/
|
|
protected $size = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>bool italic = 4;</code>
|
|
*/
|
|
protected $italic = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool bold = 8;</code>
|
|
*/
|
|
protected $bold = false;
|
|
/**
|
|
* Generated from protobuf field <code>string family = 9;</code>
|
|
*/
|
|
protected $family = '';
|
|
/**
|
|
* Generated from protobuf field <code>string face = 10;</code>
|
|
*/
|
|
protected $face = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $name
|
|
* @type float $size
|
|
* @type bool $italic
|
|
* @type bool $bold
|
|
* @type string $family
|
|
* @type string $face
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Font::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double size = 2;</code>
|
|
* @return float
|
|
*/
|
|
public function getSize()
|
|
{
|
|
return $this->size;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double size = 2;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setSize($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->size = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool italic = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getItalic()
|
|
{
|
|
return $this->italic;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool italic = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setItalic($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->italic = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool bold = 8;</code>
|
|
* @return bool
|
|
*/
|
|
public function getBold()
|
|
{
|
|
return $this->bold;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool bold = 8;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setBold($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->bold = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string family = 9;</code>
|
|
* @return string
|
|
*/
|
|
public function getFamily()
|
|
{
|
|
return $this->family;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string family = 9;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setFamily($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->family = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string face = 10;</code>
|
|
* @return string
|
|
*/
|
|
public function getFace()
|
|
{
|
|
return $this->face;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string face = 10;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setFace($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->face = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|