%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.17.187.119 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/pull/vendor/Google/Protobuf/ |
Upload File : |
<?php /** * Generated by Protobuf protoc plugin. * * File descriptor : descriptor.proto */ namespace google\protobuf; /** * Protobuf message : google.protobuf.MessageOptions */ class MessageOptions extends \Protobuf\AbstractMessage { /** * @var \Protobuf\UnknownFieldSet */ protected $unknownFieldSet = null; /** * @var \Protobuf\Extension\ExtensionFieldMap */ protected $extensions = null; /** * message_set_wire_format optional bool = 1 * * @var bool */ protected $message_set_wire_format = null; /** * no_standard_descriptor_accessor optional bool = 2 * * @var bool */ protected $no_standard_descriptor_accessor = null; /** * deprecated optional bool = 3 * * @var bool */ protected $deprecated = null; /** * map_entry optional bool = 7 * * @var bool */ protected $map_entry = null; /** * uninterpreted_option repeated message = 999 * * @var \Protobuf\Collection<\google\protobuf\UninterpretedOption> */ protected $uninterpreted_option = null; /** * {@inheritdoc} */ public function __construct($stream = null, \Protobuf\Configuration $configuration = null) { $this->message_set_wire_format = false; $this->no_standard_descriptor_accessor = false; $this->deprecated = false; parent::__construct($stream, $configuration); } /** * Check if 'message_set_wire_format' has a value * * @return bool */ public function hasMessageSetWireFormat() { return $this->message_set_wire_format !== null; } /** * Get 'message_set_wire_format' value * * @return bool */ public function getMessageSetWireFormat() { return $this->message_set_wire_format; } /** * Set 'message_set_wire_format' value * * @param bool $value */ public function setMessageSetWireFormat($value = null) { $this->message_set_wire_format = $value; } /** * Check if 'no_standard_descriptor_accessor' has a value * * @return bool */ public function hasNoStandardDescriptorAccessor() { return $this->no_standard_descriptor_accessor !== null; } /** * Get 'no_standard_descriptor_accessor' value * * @return bool */ public function getNoStandardDescriptorAccessor() { return $this->no_standard_descriptor_accessor; } /** * Set 'no_standard_descriptor_accessor' value * * @param bool $value */ public function setNoStandardDescriptorAccessor($value = null) { $this->no_standard_descriptor_accessor = $value; } /** * Check if 'deprecated' has a value * * @return bool */ public function hasDeprecated() { return $this->deprecated !== null; } /** * Get 'deprecated' value * * @return bool */ public function getDeprecated() { return $this->deprecated; } /** * Set 'deprecated' value * * @param bool $value */ public function setDeprecated($value = null) { $this->deprecated = $value; } /** * Check if 'map_entry' has a value * * @return bool */ public function hasMapEntry() { return $this->map_entry !== null; } /** * Get 'map_entry' value * * @return bool */ public function getMapEntry() { return $this->map_entry; } /** * Set 'map_entry' value * * @param bool $value */ public function setMapEntry($value = null) { $this->map_entry = $value; } /** * Check if 'uninterpreted_option' has a value * * @return bool */ public function hasUninterpretedOptionList() { return $this->uninterpreted_option !== null; } /** * Get 'uninterpreted_option' value * * @return \Protobuf\Collection<\google\protobuf\UninterpretedOption> */ public function getUninterpretedOptionList() { return $this->uninterpreted_option; } /** * Set 'uninterpreted_option' value * * @param \Protobuf\Collection<\google\protobuf\UninterpretedOption> $value */ public function setUninterpretedOptionList(\Protobuf\Collection $value = null) { $this->uninterpreted_option = $value; } /** * Add a new element to 'uninterpreted_option' * * @param \google\protobuf\UninterpretedOption $value */ public function addUninterpretedOption(\google\protobuf\UninterpretedOption $value) { if ($this->uninterpreted_option === null) { $this->uninterpreted_option = new \Protobuf\MessageCollection(); } $this->uninterpreted_option->add($value); } /** * {@inheritdoc} */ public function extensions() { if ( $this->extensions !== null) { return $this->extensions; } return $this->extensions = new \Protobuf\Extension\ExtensionFieldMap(__CLASS__); } /** * {@inheritdoc} */ public function unknownFieldSet() { return $this->unknownFieldSet; } /** * {@inheritdoc} */ public static function fromStream($stream, \Protobuf\Configuration $configuration = null) { return new self($stream, $configuration); } /** * {@inheritdoc} */ public static function fromArray(array $values) { $message = new self(); $values = array_merge([ 'message_set_wire_format' => false, 'no_standard_descriptor_accessor' => false, 'deprecated' => false, 'map_entry' => null, 'uninterpreted_option' => [] ], $values); $message->setMessageSetWireFormat($values['message_set_wire_format']); $message->setNoStandardDescriptorAccessor($values['no_standard_descriptor_accessor']); $message->setDeprecated($values['deprecated']); $message->setMapEntry($values['map_entry']); foreach ($values['uninterpreted_option'] as $item) { $message->addUninterpretedOption($item); } return $message; } /** * {@inheritdoc} */ public static function descriptor() { return \google\protobuf\DescriptorProto::fromArray([ 'name' => 'MessageOptions', 'field' => [ \google\protobuf\FieldDescriptorProto::fromArray([ 'number' => 1, 'name' => 'message_set_wire_format', 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BOOL(), 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(), 'default_value' => false ]), \google\protobuf\FieldDescriptorProto::fromArray([ 'number' => 2, 'name' => 'no_standard_descriptor_accessor', 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BOOL(), 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(), 'default_value' => false ]), \google\protobuf\FieldDescriptorProto::fromArray([ 'number' => 3, 'name' => 'deprecated', 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BOOL(), 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL(), 'default_value' => false ]), \google\protobuf\FieldDescriptorProto::fromArray([ 'number' => 7, 'name' => 'map_entry', 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_BOOL(), 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_OPTIONAL() ]), \google\protobuf\FieldDescriptorProto::fromArray([ 'number' => 999, 'name' => 'uninterpreted_option', 'type' => \google\protobuf\FieldDescriptorProto\Type::TYPE_MESSAGE(), 'label' => \google\protobuf\FieldDescriptorProto\Label::LABEL_REPEATED(), 'type_name' => '.google.protobuf.UninterpretedOption' ]), ], ]); } /** * {@inheritdoc} */ public function toStream(\Protobuf\Configuration $configuration = null) { $config = $configuration ?: \Protobuf\Configuration::getInstance(); $context = $config->createWriteContext(); $stream = $context->getStream(); $this->writeTo($context); $stream->seek(0); return $stream; } /** * {@inheritdoc} */ public function writeTo(\Protobuf\WriteContext $context) { $stream = $context->getStream(); $writer = $context->getWriter(); $sizeContext = $context->getComputeSizeContext(); if ($this->message_set_wire_format !== null) { $writer->writeVarint($stream, 8); $writer->writeBool($stream, $this->message_set_wire_format); } if ($this->no_standard_descriptor_accessor !== null) { $writer->writeVarint($stream, 16); $writer->writeBool($stream, $this->no_standard_descriptor_accessor); } if ($this->deprecated !== null) { $writer->writeVarint($stream, 24); $writer->writeBool($stream, $this->deprecated); } if ($this->map_entry !== null) { $writer->writeVarint($stream, 56); $writer->writeBool($stream, $this->map_entry); } if ($this->uninterpreted_option !== null) { foreach ($this->uninterpreted_option as $val) { $writer->writeVarint($stream, 7994); $writer->writeVarint($stream, $val->serializedSize($sizeContext)); $val->writeTo($context); } } if ($this->extensions !== null) { $this->extensions->writeTo($context); } return $stream; } /** * {@inheritdoc} */ public function readFrom(\Protobuf\ReadContext $context) { $reader = $context->getReader(); $length = $context->getLength(); $stream = $context->getStream(); $limit = ($length !== null) ? ($stream->tell() + $length) : null; while ($limit === null || $stream->tell() < $limit) { if ($stream->eof()) { break; } $key = $reader->readVarint($stream); $wire = \Protobuf\WireFormat::getTagWireType($key); $tag = \Protobuf\WireFormat::getTagFieldNumber($key); if ($stream->eof()) { break; } if ($tag === 1) { \Protobuf\WireFormat::assertWireType($wire, 8); $this->message_set_wire_format = $reader->readBool($stream); continue; } if ($tag === 2) { \Protobuf\WireFormat::assertWireType($wire, 8); $this->no_standard_descriptor_accessor = $reader->readBool($stream); continue; } if ($tag === 3) { \Protobuf\WireFormat::assertWireType($wire, 8); $this->deprecated = $reader->readBool($stream); continue; } if ($tag === 7) { \Protobuf\WireFormat::assertWireType($wire, 8); $this->map_entry = $reader->readBool($stream); continue; } if ($tag === 999) { \Protobuf\WireFormat::assertWireType($wire, 11); $innerSize = $reader->readVarint($stream); $innerMessage = new \google\protobuf\UninterpretedOption(); if ($this->uninterpreted_option === null) { $this->uninterpreted_option = new \Protobuf\MessageCollection(); } $this->uninterpreted_option->add($innerMessage); $context->setLength($innerSize); $innerMessage->readFrom($context); $context->setLength($length); continue; } $extensions = $context->getExtensionRegistry(); $extension = $extensions ? $extensions->findByNumber(__CLASS__, $tag) : null; if ($extension !== null) { $this->extensions()->add($extension, $extension->readFrom($context, $wire)); continue; } if ($this->unknownFieldSet === null) { $this->unknownFieldSet = new \Protobuf\UnknownFieldSet(); } $data = $reader->readUnknown($stream, $wire); $unknown = new \Protobuf\Unknown($tag, $wire, $data); $this->unknownFieldSet->add($unknown); } } /** * {@inheritdoc} */ public function serializedSize(\Protobuf\ComputeSizeContext $context) { $calculator = $context->getSizeCalculator(); $size = 0; if ($this->message_set_wire_format !== null) { $size += 1; $size += 1; } if ($this->no_standard_descriptor_accessor !== null) { $size += 1; $size += 1; } if ($this->deprecated !== null) { $size += 1; $size += 1; } if ($this->map_entry !== null) { $size += 1; $size += 1; } if ($this->uninterpreted_option !== null) { foreach ($this->uninterpreted_option as $val) { $innerSize = $val->serializedSize($context); $size += 2; $size += $innerSize; $size += $calculator->computeVarintSize($innerSize); } } if ($this->extensions !== null) { $size += $this->extensions->serializedSize($context); } return $size; } /** * {@inheritdoc} */ public function clear() { $this->message_set_wire_format = false; $this->no_standard_descriptor_accessor = false; $this->deprecated = false; $this->map_entry = null; $this->uninterpreted_option = null; } /** * {@inheritdoc} */ public function merge(\Protobuf\Message $message) { if ( ! $message instanceof \google\protobuf\MessageOptions) { throw new \InvalidArgumentException(sprintf('Argument 1 passed to %s must be a %s, %s given', __METHOD__, __CLASS__, get_class($message))); } $this->message_set_wire_format = ($message->message_set_wire_format !== null) ? $message->message_set_wire_format : $this->message_set_wire_format; $this->no_standard_descriptor_accessor = ($message->no_standard_descriptor_accessor !== null) ? $message->no_standard_descriptor_accessor : $this->no_standard_descriptor_accessor; $this->deprecated = ($message->deprecated !== null) ? $message->deprecated : $this->deprecated; $this->map_entry = ($message->map_entry !== null) ? $message->map_entry : $this->map_entry; $this->uninterpreted_option = ($message->uninterpreted_option !== null) ? $message->uninterpreted_option : $this->uninterpreted_option; } }