Ydb.Topic.StreamReadMessage.CommitOffsetResponse.PartitionCommittedOffset */ class PartitionCommittedOffset extends \Google\Protobuf\Internal\Message { /** * Partition session identifier. * * Generated from protobuf field int64 partition_session_id = 1; */ protected $partition_session_id = 0; /** * Upper bound for committed offsets. * * Generated from protobuf field int64 committed_offset = 2; */ protected $committed_offset = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $partition_session_id * Partition session identifier. * @type int|string $committed_offset * Upper bound for committed offsets. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Partition session identifier. * * Generated from protobuf field int64 partition_session_id = 1; * @return int|string */ public function getPartitionSessionId() { return $this->partition_session_id; } /** * Partition session identifier. * * Generated from protobuf field int64 partition_session_id = 1; * @param int|string $var * @return $this */ public function setPartitionSessionId($var) { GPBUtil::checkInt64($var); $this->partition_session_id = $var; return $this; } /** * Upper bound for committed offsets. * * Generated from protobuf field int64 committed_offset = 2; * @return int|string */ public function getCommittedOffset() { return $this->committed_offset; } /** * Upper bound for committed offsets. * * Generated from protobuf field int64 committed_offset = 2; * @param int|string $var * @return $this */ public function setCommittedOffset($var) { GPBUtil::checkInt64($var); $this->committed_offset = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PartitionCommittedOffset::class, \Ydb\Topic\StreamReadMessage_CommitOffsetResponse_PartitionCommittedOffset::class);