Class ExtensionCollection (3.15.8)

public sealed class ExtensionCollection : object

A collection to simplify retrieving the descriptors of extensions in a descriptor for a message

Inheritance

Object > ExtensionCollection

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Properties

UnorderedExtensions

public IList<FieldDescriptor> UnorderedExtensions { get; }

Returns a readonly list of all the extensions defined in this type in the order they were defined in the source .proto file

Property Value
TypeDescription
IList<FieldDescriptor>

Methods

GetExtensionsInDeclarationOrder(MessageDescriptor)

public IList<FieldDescriptor> GetExtensionsInDeclarationOrder(MessageDescriptor descriptor)

Returns a readonly list of all the extensions define in this type that extend the provided descriptor type in the order they were defined in the source .proto file

Parameter
NameDescription
descriptorMessageDescriptor
Returns
TypeDescription
IList<FieldDescriptor>

GetExtensionsInNumberOrder(MessageDescriptor)

public IList<FieldDescriptor> GetExtensionsInNumberOrder(MessageDescriptor descriptor)

Returns a readonly list of all the extensions define in this type that extend the provided descriptor type in accending field order

Parameter
NameDescription
descriptorMessageDescriptor
Returns
TypeDescription
IList<FieldDescriptor>