• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/requestbatch.php
  • Класс: BitrixPullProtobufRequestBatch
  • Вызов: RequestBatch::descriptor
static function descriptor()
    {
        return googleprotobufDescriptorProto::fromArray([
            'name'      => 'RequestBatch',
            'field'     => [
                googleprotobufFieldDescriptorProto::fromArray([
                    'number' => 1,
                    'name' => 'requests',
                    'type' => googleprotobufFieldDescriptorProtoType::TYPE_MESSAGE(),
                    'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_REPEATED(),
                    'type_name' => '.Request'
                ]),
            ],
        ]);
    }