123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic\StreamWriteMessage;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Represents portion of client messages.
- *
- * Generated from protobuf message <code>Ydb.Topic.StreamWriteMessage.WriteRequest</code>
- */
- class WriteRequest extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1;</code>
- */
- private $messages;
- /**
- * Codec that is used for data compression.
- * See enum Codec above for values.
- *
- * Generated from protobuf field <code>int32 codec = 2;</code>
- */
- protected $codec = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\Topic\StreamWriteMessage\WriteRequest\MessageData>|\Google\Protobuf\Internal\RepeatedField $messages
- * @type int $codec
- * Codec that is used for data compression.
- * See enum Codec above for values.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMessages()
- {
- return $this->messages;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Topic.StreamWriteMessage.WriteRequest.MessageData messages = 1;</code>
- * @param array<\Ydb\Topic\StreamWriteMessage\WriteRequest\MessageData>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Topic\StreamWriteMessage\WriteRequest\MessageData::class);
- $this->messages = $arr;
- return $this;
- }
- /**
- * Codec that is used for data compression.
- * See enum Codec above for values.
- *
- * Generated from protobuf field <code>int32 codec = 2;</code>
- * @return int
- */
- public function getCodec()
- {
- return $this->codec;
- }
- /**
- * Codec that is used for data compression.
- * See enum Codec above for values.
- *
- * Generated from protobuf field <code>int32 codec = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setCodec($var)
- {
- GPBUtil::checkInt32($var);
- $this->codec = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(WriteRequest::class, \Ydb\Topic\StreamWriteMessage_WriteRequest::class);
|