#import <GPBExtensionRegistry.h>

Instance Methods | |
| (void) | - addExtension: |
| (void) | - addExtensions: |
| (nullable GPBExtensionDescriptor *) | - extensionForDescriptor:fieldNumber: |
A table of known extensions, searchable by name or field number. When parsing a protocol message that might have extensions, you must provide a GPBExtensionRegistry in which you have registered any extensions that you want to be able to parse. Otherwise, those extensions will just be treated like unknown fields.
The Root classes provide +extensionRegistry for the extensions defined in a given file *and all files it imports. You can also create a GPBExtensionRegistry, and merge those registries to handle parsing extensions defined from non overlapping files.
Definition at line 57 of file GPBExtensionRegistry.h.
| - (void) addExtension: | (GPBExtensionDescriptor *) | extension |
Adds the given GPBExtensionDescriptor to this registry.
| extension | The extension description to add. |
| - (void) addExtensions: | (GPBExtensionRegistry *) | registry |
Adds all the extensions from another registry to this registry.
| registry | The registry to merge into this registry. |
| - (nullable GPBExtensionDescriptor *) extensionForDescriptor: | (GPBDescriptor *) | descriptor | |
| fieldNumber: | (NSInteger) | fieldNumber | |
Looks for the extension registered for the given field number on a given GPBDescriptor.
| descriptor | The descriptor to look for a registered extension on. |
| fieldNumber | The field number of the extension to look for. |