129 return \google\protobuf\DescriptorProto::fromArray([
130 'name' =>
'ChannelStatsResponse',
132 \google\protobuf\FieldDescriptorProto::fromArray([
134 'name' =>
'channels',
135 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_MESSAGE(),
136 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_REPEATED(),
137 'type_name' =>
'.ChannelStats'
191 $limit = ($length !==
null)
192 ? ($stream->tell() + $length)
195 while ($limit ===
null || $stream->tell() < $limit) {
197 if ($stream->eof()) {
201 $key = $reader->readVarint($stream);
202 $wire = \Protobuf\WireFormat::getTagWireType(
$key);
203 $tag = \Protobuf\WireFormat::getTagFieldNumber(
$key);
205 if ($stream->eof()) {
210 \Protobuf\WireFormat::assertWireType($wire, 11);
212 $innerSize = $reader->readVarint($stream);
213 $innerMessage = new \Bitrix\Pull\Protobuf\ChannelStats();
215 if ($this->channels ===
null) {
216 $this->channels = new \Protobuf\MessageCollection();
219 $this->channels->add($innerMessage);
231 if ($extension !==
null) {
241 $data = $reader->readUnknown($stream, $wire);
242 $unknown = new \Protobuf\Unknown($tag, $wire,
$data);