Google.Protobuf.Reflection.MessageDescriptor
Describes a message type.
namespace Google.Protobuf.Reflection
{
public sealed class MessageDescriptor : DescriptorBase
{
public sealed class FieldCollection
{
public FieldDescriptor this[int number] { get; }
public FieldDescriptor this[string name] { get; }
public IList<FieldDescriptor> InDeclarationOrder();
public IList<FieldDescriptor> InFieldNumberOrder();
}
public Type ClrType { get; }
public MessageParser Parser { get; }
public bool IsMapEntry { get; }
public MessageDescriptor ContainingType { get; }
public FieldCollection Fields { get; }
public ExtensionCollection Extensions { get; }
public IList<MessageDescriptor> NestedTypes { get; }
public IList<EnumDescriptor> EnumTypes { get; }
public IList<OneofDescriptor> Oneofs { get; }
public int RealOneofCount { get; }
public CustomOptions CustomOptions { get; }
public DescriptorProto ToProto();
public FieldDescriptor FindFieldByName(string name);
public FieldDescriptor FindFieldByNumber(int number);
public T FindDescriptor<T>(string name) where T : class, IDescriptor;
public MessageOptions GetOptions();
public T GetOption<T>(Extension<MessageOptions, T> extension);
public RepeatedField<T> GetOption<T>(RepeatedExtension<MessageOptions, T> extension);
}
}