Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck
*/
class WriteAck extends \Google\Protobuf\Internal\Message
{
/**
* Sequence number as in WriteRequest.
*
* Generated from protobuf field int64 seq_no = 1;
*/
protected $seq_no = 0;
protected $message_write_status;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $seq_no
* Sequence number as in WriteRequest.
* @type \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Written $written
* @type \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped $skipped
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTopic::initOnce();
parent::__construct($data);
}
/**
* Sequence number as in WriteRequest.
*
* Generated from protobuf field int64 seq_no = 1;
* @return int|string
*/
public function getSeqNo()
{
return $this->seq_no;
}
/**
* Sequence number as in WriteRequest.
*
* Generated from protobuf field int64 seq_no = 1;
* @param int|string $var
* @return $this
*/
public function setSeqNo($var)
{
GPBUtil::checkInt64($var);
$this->seq_no = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2;
* @return \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Written|null
*/
public function getWritten()
{
return $this->readOneof(2);
}
public function hasWritten()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written written = 2;
* @param \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Written $var
* @return $this
*/
public function setWritten($var)
{
GPBUtil::checkMessage($var, \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Written::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3;
* @return \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped|null
*/
public function getSkipped()
{
return $this->readOneof(3);
}
public function hasSkipped()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Skipped skipped = 3;
* @param \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped $var
* @return $this
*/
public function setSkipped($var)
{
GPBUtil::checkMessage($var, \Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck\Skipped::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* @return string
*/
public function getMessageWriteStatus()
{
return $this->whichOneof("message_write_status");
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WriteAck::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck::class);