<PackageReference Include="Google.Protobuf" Version="3.34.2" />

Google.Protobuf.Reflection.FieldDescriptorProto

Describes a field within a message.
namespace Google.Protobuf.Reflection { public sealed class FieldDescriptorProto : IMessage<FieldDescriptorProto>, IMessage, IEquatable<FieldDescriptorProto>, IDeepCloneable<FieldDescriptorProto>, IBufferMessage { public static class Types { public enum Type { [OriginalName("TYPE_DOUBLE")] Double = 1, [OriginalName("TYPE_FLOAT")] Float, [OriginalName("TYPE_INT64")] Int64, [OriginalName("TYPE_UINT64")] Uint64, [OriginalName("TYPE_INT32")] Int32, [OriginalName("TYPE_FIXED64")] Fixed64, [OriginalName("TYPE_FIXED32")] Fixed32, [OriginalName("TYPE_BOOL")] Bool, [OriginalName("TYPE_STRING")] String, [OriginalName("TYPE_GROUP")] Group, [OriginalName("TYPE_MESSAGE")] Message, [OriginalName("TYPE_BYTES")] Bytes, [OriginalName("TYPE_UINT32")] Uint32, [OriginalName("TYPE_ENUM")] Enum, [OriginalName("TYPE_SFIXED32")] Sfixed32, [OriginalName("TYPE_SFIXED64")] Sfixed64, [OriginalName("TYPE_SINT32")] Sint32, [OriginalName("TYPE_SINT64")] Sint64 } public enum Label { [OriginalName("LABEL_OPTIONAL")] Optional = 1, [OriginalName("LABEL_REPEATED")] Repeated = 3, [OriginalName("LABEL_REQUIRED")] Required = 2 } } public const int NameFieldNumber = 1; public const int NumberFieldNumber = 3; public const int LabelFieldNumber = 4; public const int TypeFieldNumber = 5; public const int TypeNameFieldNumber = 6; public const int ExtendeeFieldNumber = 2; public const int DefaultValueFieldNumber = 7; public const int OneofIndexFieldNumber = 9; public const int JsonNameFieldNumber = 10; public const int OptionsFieldNumber = 8; public const int Proto3OptionalFieldNumber = 17; public static MessageParser<FieldDescriptorProto> Parser { get; } public static MessageDescriptor Descriptor { get; } public string Name { get; set; } public bool HasName { get; } public int Number { get; set; } public bool HasNumber { get; } public Types.Label Label { get; set; } public bool HasLabel { get; } public Types.Type Type { get; set; } public bool HasType { get; } public string TypeName { get; set; } public bool HasTypeName { get; } public string Extendee { get; set; } public bool HasExtendee { get; } public string DefaultValue { get; set; } public bool HasDefaultValue { get; } public int OneofIndex { get; set; } public bool HasOneofIndex { get; } public string JsonName { get; set; } public bool HasJsonName { get; } public FieldOptions Options { get; set; } public bool Proto3Optional { get; set; } public bool HasProto3Optional { get; } public FieldDescriptorProto(); public FieldDescriptorProto(FieldDescriptorProto other); public FieldDescriptorProto Clone(); public void ClearName(); public void ClearNumber(); public void ClearLabel(); public void ClearType(); public void ClearTypeName(); public void ClearExtendee(); public void ClearDefaultValue(); public void ClearOneofIndex(); public void ClearJsonName(); public void ClearProto3Optional(); public bool Equals(FieldDescriptorProto other); public void WriteTo(CodedOutputStream output); public int CalculateSize(); public void MergeFrom(FieldDescriptorProto other); public void MergeFrom(CodedInputStream input); } }