Ydb.DecimalType
*/
class DecimalType extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field uint32 precision = 1;
*/
protected $precision = 0;
/**
* Generated from protobuf field uint32 scale = 2;
*/
protected $scale = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $precision
* @type int $scale
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbValue::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field uint32 precision = 1;
* @return int
*/
public function getPrecision()
{
return $this->precision;
}
/**
* Generated from protobuf field uint32 precision = 1;
* @param int $var
* @return $this
*/
public function setPrecision($var)
{
GPBUtil::checkUint32($var);
$this->precision = $var;
return $this;
}
/**
* Generated from protobuf field uint32 scale = 2;
* @return int
*/
public function getScale()
{
return $this->scale;
}
/**
* Generated from protobuf field uint32 scale = 2;
* @param int $var
* @return $this
*/
public function setScale($var)
{
GPBUtil::checkUint32($var);
$this->scale = $var;
return $this;
}
}