Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/pull/vendor/Google/Protobuf/php/ |
Upload File : |
<?php /** * Generated by Protobuf protoc plugin. * * File descriptor : php.proto */ namespace google\protobuf\php; /** * Protobuf extension : php.Extension */ class Extension implements \Protobuf\Extension { /** * Extension field : package optional string = 50002 * * @var \Protobuf\Extension */ protected static $package = null; /** * Extension field : generic_services optional bool = 50003 * * @var \Protobuf\Extension */ protected static $generic_services = null; /** * Register all extensions * * @param \Protobuf\Extension\ExtensionRegistry */ public static function registerAllExtensions(\Protobuf\Extension\ExtensionRegistry $registry) { $registry->add(self::package()); $registry->add(self::genericServices()); } /** * Extension field : package * * @return \Protobuf\Extension */ public static function package() { if (self::$package !== null) { return self::$package; } $readCallback = function (\Protobuf\ReadContext $context, $wire) { $reader = $context->getReader(); $length = $context->getLength(); $stream = $context->getStream(); \Protobuf\WireFormat::assertWireType($wire, 9); $value = $reader->readString($stream); return $value; }; $writeCallback = function (\Protobuf\WriteContext $context, $value) { $stream = $context->getStream(); $writer = $context->getWriter(); $sizeContext = $context->getComputeSizeContext(); $writer->writeVarint($stream, 400018); $writer->writeString($stream, $value); }; $sizeCallback = function (\Protobuf\ComputeSizeContext $context, $value) { $calculator = $context->getSizeCalculator(); $size = 0; $size += 3; $size += $calculator->computeStringSize($value); return $size; }; return self::$package = new \Protobuf\Extension\ExtensionField('\\google\\protobuf\\FileOptions', 'package', 50002, $readCallback, $writeCallback, $sizeCallback, __METHOD__); } /** * Extension field : generic_services * * @return \Protobuf\Extension */ public static function genericServices() { if (self::$generic_services !== null) { return self::$generic_services; } $readCallback = function (\Protobuf\ReadContext $context, $wire) { $reader = $context->getReader(); $length = $context->getLength(); $stream = $context->getStream(); \Protobuf\WireFormat::assertWireType($wire, 8); $value = $reader->readBool($stream); return $value; }; $writeCallback = function (\Protobuf\WriteContext $context, $value) { $stream = $context->getStream(); $writer = $context->getWriter(); $sizeContext = $context->getComputeSizeContext(); $writer->writeVarint($stream, 400024); $writer->writeBool($stream, $value); }; $sizeCallback = function (\Protobuf\ComputeSizeContext $context, $value) { $calculator = $context->getSizeCalculator(); $size = 0; $size += 3; $size += 1; return $size; }; return self::$generic_services = new \Protobuf\Extension\ExtensionField('\\google\\protobuf\\FileOptions', 'generic_services', 50003, $readCallback, $writeCallback, $sizeCallback, __METHOD__); } }