Ydb.TypedValue
*/
class TypedValue extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Type type = 1;
*/
protected $type = null;
/**
* Generated from protobuf field .Ydb.Value value = 2;
*/
protected $value = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Ydb\Type $type
* @type \Ydb\Value $value
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbValue::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .Ydb.Type type = 1;
* @return \Ydb\Type|null
*/
public function getType()
{
return $this->type;
}
public function hasType()
{
return isset($this->type);
}
public function clearType()
{
unset($this->type);
}
/**
* Generated from protobuf field .Ydb.Type type = 1;
* @param \Ydb\Type $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkMessage($var, \Ydb\Type::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Value value = 2;
* @return \Ydb\Value|null
*/
public function getValue()
{
return $this->value;
}
public function hasValue()
{
return isset($this->value);
}
public function clearValue()
{
unset($this->value);
}
/**
* Generated from protobuf field .Ydb.Value value = 2;
* @param \Ydb\Value $var
* @return $this
*/
public function setValue($var)
{
GPBUtil::checkMessage($var, \Ydb\Value::class);
$this->value = $var;
return $this;
}
}