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