• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/response.php
  • Класс: BitrixPullProtobufResponse
  • Вызов: Response::descriptor
static function descriptor()
    {
        return googleprotobufDescriptorProto::fromArray([
            'name'      => 'Response',
            'field'     => [
                googleprotobufFieldDescriptorProto::fromArray([
                    'number' => 1,
                    'name' => 'outgoingMessages',
                    'type' => googleprotobufFieldDescriptorProtoType::TYPE_MESSAGE(),
                    'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL(),
                    'type_name' => '.OutgoingMessagesResponse'
                ]),
                googleprotobufFieldDescriptorProto::fromArray([
                    'number' => 2,
                    'name' => 'channelStats',
                    'type' => googleprotobufFieldDescriptorProtoType::TYPE_MESSAGE(),
                    'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL(),
                    'type_name' => '.ChannelStatsResponse'
                ]),
                googleprotobufFieldDescriptorProto::fromArray([
                    'number' => 3,
                    'name' => 'serverStats',
                    'type' => googleprotobufFieldDescriptorProtoType::TYPE_MESSAGE(),
                    'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL(),
                    'type_name' => '.JsonResponse'
                ]),
            ],
        ]);
    }