using Google.ProtocolBuffers.Descriptors;
namespace Google.ProtocolBuffers
{
public sealed class ExtensionInfo {
///
/// The extension's descriptor
///
public FieldDescriptor Descriptor { get; private set; }
///
/// A default instance of the extensions's type, if it has a message type,
/// or null otherwise.
///
public IMessage DefaultInstance { get; private set; }
internal ExtensionInfo(FieldDescriptor descriptor) : this(descriptor, null) {
}
internal ExtensionInfo(FieldDescriptor descriptor, IMessage defaultInstance) {
Descriptor = descriptor;
DefaultInstance = defaultInstance;
}
}
}