- Модуль: pull
- Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/channelid.php
- Класс: BitrixPullProtobufChannelId
- Вызов: ChannelId::descriptor
static function descriptor()
{
return googleprotobufDescriptorProto::fromArray([
'name' => 'ChannelId',
'field' => [
googleprotobufFieldDescriptorProto::fromArray([
'number' => 1,
'name' => 'id',
'type' => googleprotobufFieldDescriptorProtoType::TYPE_BYTES(),
'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL()
]),
googleprotobufFieldDescriptorProto::fromArray([
'number' => 2,
'name' => 'isPrivate',
'type' => googleprotobufFieldDescriptorProtoType::TYPE_BOOL(),
'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL()
]),
googleprotobufFieldDescriptorProto::fromArray([
'number' => 3,
'name' => 'signature',
'type' => googleprotobufFieldDescriptorProtoType::TYPE_BYTES(),
'label' => googleprotobufFieldDescriptorProtoLabel::LABEL_OPTIONAL()
]),
],
]);
}