public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 0:
                            if (field.Type == TType.Struct)
                            {
                                Success = new TDDIAbstractODEPackage();
                                Success.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        case 1:
                            if (field.Type == TType.Struct)
                            {
                                ValidationFailedException = new TDDIValidationFailedException();
                                ValidationFailedException.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 1:
                            if (field.Type == TType.String)
                            {
                                Path = iprot.ReadString();
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        case 2:
                            if (field.Type == TType.Struct)
                            {
                                ODEPackage = new TDDIAbstractODEPackage();
                                ODEPackage.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
        public void Read(TProtocol iprot)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                TField field;
                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.I64)
                        {
                            Id = iprot.ReadI64();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 2:
                        if (field.Type == TType.String)
                        {
                            Name = iprot.ReadString();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 3:
                        if (field.Type == TType.String)
                        {
                            Description = iprot.ReadString();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 4:
                        if (field.Type == TType.Bool)
                        {
                            IsCitation = iprot.ReadBool();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 5:
                        if (field.Type == TType.Bool)
                        {
                            IsAbstract = iprot.ReadBool();
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 6:
                        if (field.Type == TType.List)
                        {
                            {
                                KeyValueMaps = new List <TDDIKeyValueMapRef>();
                                TList _list760 = iprot.ReadListBegin();
                                for (int _i761 = 0; _i761 < _list760.Count; ++_i761)
                                {
                                    TDDIKeyValueMapRef _elem762;
                                    _elem762 = new TDDIKeyValueMapRef();
                                    _elem762.Read(iprot);
                                    KeyValueMaps.Add(_elem762);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 7:
                        if (field.Type == TType.Struct)
                        {
                            CitedElement = new TDDIAbstractBaseElement();
                            CitedElement.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 8:
                        if (field.Type == TType.List)
                        {
                            {
                                ODEPackages = new List <TDDIAbstractODEPackageRef>();
                                TList _list763 = iprot.ReadListBegin();
                                for (int _i764 = 0; _i764 < _list763.Count; ++_i764)
                                {
                                    TDDIAbstractODEPackageRef _elem765;
                                    _elem765 = new TDDIAbstractODEPackageRef();
                                    _elem765.Read(iprot);
                                    ODEPackages.Add(_elem765);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 9:
                        if (field.Type == TType.List)
                        {
                            {
                                ArchitecturePackages = new List <TDDIAbstractArchitecturePackageRef>();
                                TList _list766 = iprot.ReadListBegin();
                                for (int _i767 = 0; _i767 < _list766.Count; ++_i767)
                                {
                                    TDDIAbstractArchitecturePackageRef _elem768;
                                    _elem768 = new TDDIAbstractArchitecturePackageRef();
                                    _elem768.Read(iprot);
                                    ArchitecturePackages.Add(_elem768);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 10:
                        if (field.Type == TType.List)
                        {
                            {
                                DependabilityPackages = new List <TDDIAbstractDependabilityPackageRef>();
                                TList _list769 = iprot.ReadListBegin();
                                for (int _i770 = 0; _i770 < _list769.Count; ++_i770)
                                {
                                    TDDIAbstractDependabilityPackageRef _elem771;
                                    _elem771 = new TDDIAbstractDependabilityPackageRef();
                                    _elem771.Read(iprot);
                                    DependabilityPackages.Add(_elem771);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 11:
                        if (field.Type == TType.List)
                        {
                            {
                                FailureLogicPackages = new List <TDDIAbstractFailureLogicPackageRef>();
                                TList _list772 = iprot.ReadListBegin();
                                for (int _i773 = 0; _i773 < _list772.Count; ++_i773)
                                {
                                    TDDIAbstractFailureLogicPackageRef _elem774;
                                    _elem774 = new TDDIAbstractFailureLogicPackageRef();
                                    _elem774.Read(iprot);
                                    FailureLogicPackages.Add(_elem774);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 12:
                        if (field.Type == TType.List)
                        {
                            {
                                AssuranceCasePackages = new List <TDDIAbstractAssuranceCasePackageRef>();
                                TList _list775 = iprot.ReadListBegin();
                                for (int _i776 = 0; _i776 < _list775.Count; ++_i776)
                                {
                                    TDDIAbstractAssuranceCasePackageRef _elem777;
                                    _elem777 = new TDDIAbstractAssuranceCasePackageRef();
                                    _elem777.Read(iprot);
                                    AssuranceCasePackages.Add(_elem777);
                                }
                                iprot.ReadListEnd();
                            }
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 13:
                        if (field.Type == TType.Struct)
                        {
                            Implements = new TDDIAbstractODEPackage();
                            Implements.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
        public void Read(TProtocol iprot)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                TField field;
                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.Struct)
                        {
                            DesignArtifact = new TDDIAbstractDesignArtifact();
                            DesignArtifact.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 2:
                        if (field.Type == TType.Struct)
                        {
                            ODEPackage = new TDDIAbstractODEPackage();
                            ODEPackage.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 3:
                        if (field.Type == TType.Struct)
                        {
                            FailureAnalysisArtifact = new TDDIAbstractFailureAnalysisArtifact();
                            FailureAnalysisArtifact.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    case 4:
                        if (field.Type == TType.Struct)
                        {
                            DependabilityArtifact = new TDDIAbstractDependabilityArtifact();
                            DependabilityArtifact.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }