191 return \google\protobuf\DescriptorProto::fromArray([
192 'name' =>
'Response',
194 \google\protobuf\FieldDescriptorProto::fromArray([
196 'name' =>
'outgoingMessages',
197 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_MESSAGE(),
198 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(),
199 'type_name' =>
'.OutgoingMessagesResponse'
201 \google\protobuf\FieldDescriptorProto::fromArray([
203 'name' =>
'channelStats',
204 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_MESSAGE(),
205 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(),
206 'type_name' =>
'.ChannelStatsResponse'
208 \google\protobuf\FieldDescriptorProto::fromArray([
210 'name' =>
'serverStats',
211 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_MESSAGE(),
212 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(),
213 'type_name' =>
'.JsonResponse'
241 $sizeContext =
$context->getComputeSizeContext();
243 if ($this->outgoingMessages !==
null) {
244 $writer->writeVarint($stream, 10);
245 $writer->writeVarint($stream, $this->outgoingMessages->serializedSize($sizeContext));
246 $this->outgoingMessages->writeTo(
$context);
249 if ($this->channelStats !==
null) {
250 $writer->writeVarint($stream, 18);
251 $writer->writeVarint($stream, $this->channelStats->serializedSize($sizeContext));
252 $this->channelStats->writeTo(
$context);
255 if ($this->serverStats !==
null) {
256 $writer->writeVarint($stream, 26);
257 $writer->writeVarint($stream, $this->serverStats->serializedSize($sizeContext));
258 $this->serverStats->writeTo(
$context);
277 $limit = ($length !==
null)
278 ? ($stream->tell() + $length)
281 while ($limit ===
null || $stream->tell() < $limit) {
283 if ($stream->eof()) {
287 $key = $reader->readVarint($stream);
288 $wire = \Protobuf\WireFormat::getTagWireType(
$key);
289 $tag = \Protobuf\WireFormat::getTagFieldNumber(
$key);
291 if ($stream->eof()) {
296 \Protobuf\WireFormat::assertWireType($wire, 11);
298 $innerSize = $reader->readVarint($stream);
299 $innerMessage = new \Bitrix\Pull\Protobuf\OutgoingMessagesResponse();
301 $this->outgoingMessages = $innerMessage;
311 \Protobuf\WireFormat::assertWireType($wire, 11);
313 $innerSize = $reader->readVarint($stream);
314 $innerMessage = new \Bitrix\Pull\Protobuf\ChannelStatsResponse();
316 $this->channelStats = $innerMessage;
326 \Protobuf\WireFormat::assertWireType($wire, 11);
328 $innerSize = $reader->readVarint($stream);
329 $innerMessage = new \Bitrix\Pull\Protobuf\JsonResponse();
331 $this->serverStats = $innerMessage;
343 if ($extension !==
null) {
353 $data = $reader->readUnknown($stream, $wire);
354 $unknown = new \Protobuf\Unknown($tag, $wire,
$data);
366 $calculator =
$context->getSizeCalculator();
369 if ($this->outgoingMessages !==
null) {
370 $innerSize = $this->outgoingMessages->serializedSize(
$context);
374 $size += $calculator->computeVarintSize($innerSize);
377 if ($this->channelStats !==
null) {
378 $innerSize = $this->channelStats->serializedSize(
$context);
382 $size += $calculator->computeVarintSize($innerSize);
385 if ($this->serverStats !==
null) {
386 $innerSize = $this->serverStats->serializedSize(
$context);
390 $size += $calculator->computeVarintSize($innerSize);