1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic\StreamWriteMessage\WriteResponse\WriteAck;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Topic.StreamWriteMessage.WriteResponse.WriteAck.Written</code>
- */
- class Written extends \Google\Protobuf\Internal\Message
- {
- /**
- * Assigned partition offset.
- *
- * Generated from protobuf field <code>int64 offset = 1;</code>
- */
- protected $offset = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $offset
- * Assigned partition offset.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Assigned partition offset.
- *
- * Generated from protobuf field <code>int64 offset = 1;</code>
- * @return int|string
- */
- public function getOffset()
- {
- return $this->offset;
- }
- /**
- * Assigned partition offset.
- *
- * Generated from protobuf field <code>int64 offset = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setOffset($var)
- {
- GPBUtil::checkInt64($var);
- $this->offset = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(Written::class, \Ydb\Topic\StreamWriteMessage_WriteResponse_WriteAck_Written::class);
|