/// <summary> /// Create FileInfo from FileDescriptor. /// It includes information for each message and enum in FileDescriptor. /// </summary> /// <param name="fileDescriptor">FileDescriptor to parse messages and enums from</param> public FileInfo(FileDescriptor fileDescriptor) { EnumInfoHelper enumHelper = new EnumInfoHelper(fileDescriptor); AddEnums(enumHelper.CreateInfoList()); foreach (var messageType in fileDescriptor.MessageTypes) { AddMessage(new MessageInfo(messageType)); } }