function DescriptorPool::addDescriptor
1 call to DescriptorPool::addDescriptor()
- DescriptorPool::internalAddGeneratedFile in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorPool.php
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ DescriptorPool.php, line 70
Class
Namespace
Google\Protobuf\InternalCode
public function addDescriptor($descriptor) {
$this->proto_to_class[$descriptor->getFullName()] = $descriptor->getClass();
$this->class_to_desc[$descriptor->getClass()] = $descriptor;
$this->class_to_desc[$descriptor->getLegacyClass()] = $descriptor;
$this->class_to_desc[$descriptor->getPreviouslyUnreservedClass()] = $descriptor;
foreach ($descriptor->getNestedType() as $nested_type) {
$this->addDescriptor($nested_type);
}
foreach ($descriptor->getEnumType() as $enum_type) {
$this->addEnumDescriptor($enum_type);
}
}