Google.Protobuf.Reflection.FieldDescriptor
Descriptor for a field or extension within a message in a .proto file.
namespace Google.Protobuf.Reflection
{
public sealed class FieldDescriptor : DescriptorBase, IComparable<FieldDescriptor>
{
public MessageDescriptor ContainingType { get; }
public OneofDescriptor ContainingOneof { get; }
public OneofDescriptor RealContainingOneof { get; }
public string JsonName { get; }
public string PropertyName { get; }
public bool HasPresence { get; }
public Extension Extension { get; }
public IFieldAccessor Accessor { get; }
public bool IsRepeated { get; }
public bool IsRequired { get; }
public bool IsMap { get; }
public bool IsPacked { get; }
public bool IsExtension { get; }
public FieldType FieldType { get; }
public int FieldNumber { get; }
public EnumDescriptor EnumType { get; }
public MessageDescriptor MessageType { get; }
public MessageDescriptor ExtendeeType { get; }
public CustomOptions CustomOptions { get; }
public FieldDescriptorProto ToProto();
public int CompareTo(FieldDescriptor other);
public FieldOptions GetOptions();
public T GetOption<T>(Extension<FieldOptions, T> extension);
public RepeatedField<T> GetOption<T>(RepeatedExtension<FieldOptions, T> extension);
}
}