IDescriptor.cs 712 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Google.ProtocolBuffers.Descriptors {
  5. /// <summary>
  6. /// The non-generic form of the IDescriptor interface. Useful for describing a general
  7. /// descriptor.
  8. /// </summary>
  9. public interface IDescriptor {
  10. string Name { get; }
  11. string FullName { get; }
  12. FileDescriptor File { get; }
  13. IMessage Proto { get; }
  14. }
  15. /// <summary>
  16. /// Strongly-typed form of the IDescriptor interface.
  17. /// </summary>
  18. /// <typeparam name="TProto">Protocol buffer type underlying this descriptor type</typeparam>
  19. public interface IDescriptor<TProto> : IDescriptor where TProto : IMessage {
  20. new TProto Proto { get; }
  21. }
  22. }