internal change to extensions

PiperOrigin-RevId: 517523404
pull/12270/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 22a3404240
commit c71bf99765
  1. 11
      src/google/protobuf/descriptor.cc

@ -4118,6 +4118,14 @@ class DescriptorBuilder {
void ValidateExtensionRangeOptions(
const std::string& full_name, Descriptor::ExtensionRange* extension_range,
const DescriptorProto_ExtensionRange& proto);
void ValidateExtensionMetadata(
const std::string& full_name,
const Descriptor::ExtensionRange& extension_range,
const DescriptorProto_ExtensionRange& proto);
void ValidateExtensionDeclaration(
const std::string& full_name,
const Descriptor::ExtensionRange& extension_range,
const DescriptorProto_ExtensionRange& proto);
void ValidateServiceOptions(ServiceDescriptor* service,
const ServiceDescriptorProto& proto);
void ValidateMethodOptions(MethodDescriptor* method,
@ -5384,6 +5392,7 @@ struct IncrementWhenDestroyed {
} // namespace
void DescriptorBuilder::BuildMessage(const DescriptorProto& proto,
const Descriptor* parent,
Descriptor* result,
@ -5482,7 +5491,6 @@ void DescriptorBuilder::BuildMessage(const DescriptorProto& proto,
}
}
// Check that fields aren't using reserved names or numbers and that they
// aren't using extension numbers.
for (int i = 0; i < result->field_count(); i++) {
@ -7156,6 +7164,7 @@ void DescriptorBuilder::ValidateEnumValueOptions(
// Nothing to do so far.
}
void DescriptorBuilder::ValidateExtensionRangeOptions(
const std::string& full_name, Descriptor::ExtensionRange* extension_range,
const DescriptorProto_ExtensionRange& proto) {

Loading…
Cancel
Save