Ydb.StructMember
*/
class StructMember extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string name = 1;
*/
protected $name = '';
/**
* Generated from protobuf field .Ydb.Type type = 2;
*/
protected $type = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* @type \Ydb\Type $type
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbValue::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Type type = 2;
* @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 = 2;
* @param \Ydb\Type $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkMessage($var, \Ydb\Type::class);
$this->type = $var;
return $this;
}
}