public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISecurityRequirement"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 4; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMap _iter698 in KeyValueMaps) { _iter698.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (DecompositionArgument != null && __isset.DecompositionArgument) { field.Name = "DecompositionArgument"; field.Type = TType.String; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteString(DecompositionArgument); oprot.WriteFieldEnd(); } if (RefinedRequirements != null && __isset.RefinedRequirements) { field.Name = "RefinedRequirements"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RefinedRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter699 in RefinedRequirements) { _iter699.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (RequirementSource != null && __isset.RequirementSource) { field.Name = "RequirementSource"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); RequirementSource.Write(oprot); oprot.WriteFieldEnd(); } if (Measures != null && __isset.Measures) { field.Name = "Measures"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Measures.Count)); foreach (TDDIAbstractMeasureRef _iter700 in Measures) { _iter700.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Failures != null && __isset.Failures) { field.Name = "Failures"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Failures.Count)); foreach (TDDIAbstractFailureRef _iter701 in Failures) { _iter701.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { field.Name = "MaintenanceProcedures"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, MaintenanceProcedures.Count)); foreach (TDDIMaintenanceProcedureRef _iter702 in MaintenanceProcedures) { _iter702.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (SecurityCapabilities != null && __isset.SecurityCapabilities) { field.Name = "SecurityCapabilities"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SecurityCapabilities.Count)); foreach (TDDISecurityCapabilityRef _iter703 in SecurityCapabilities) { _iter703.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDILifecycleCondition"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter233 in KeyValueMaps) { _iter233.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter234 in DependabilityRequirements) { _iter234.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (Value != null && __isset.@Value) { field.Name = "Value"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(Value); oprot.WriteFieldEnd(); } if (Conditions != null && __isset.Conditions) { field.Name = "Conditions"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Conditions.Count)); foreach (TDDILifecycleConditionRef _iter235 in Conditions) { _iter235.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIFunction"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 4; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMap _iter105 in KeyValueMaps) { _iter105.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 5; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter106 in DependabilityRequirements) { _iter106.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 6; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (SubFunctions != null && __isset.SubFunctions) { field.Name = "SubFunctions"; field.Type = TType.List; field.ID = 7; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SubFunctions.Count)); foreach (TDDIAbstractFunctionRef _iter107 in SubFunctions) { _iter107.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Ports != null && __isset.Ports) { field.Name = "Ports"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Ports.Count)); foreach (TDDIPort _iter108 in Ports) { _iter108.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Signals != null && __isset.Signals) { field.Name = "Signals"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Signals.Count)); foreach (TDDISignal _iter109 in Signals) { _iter109.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (FailureModels != null && __isset.FailureModels) { field.Name = "FailureModels"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModels.Count)); foreach (TDDIAbstractFailureModelRef _iter110 in FailureModels) { _iter110.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Malfunctions != null && __isset.Malfunctions) { field.Name = "Malfunctions"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Malfunctions.Count)); foreach (TDDIMalfunctionRef _iter111 in Malfunctions) { _iter111.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AsAsset != null && __isset.AsAsset) { field.Name = "AsAsset"; field.Type = TType.Struct; field.ID = 13; oprot.WriteFieldBegin(field); AsAsset.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIPort"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter60 in KeyValueMaps) { _iter60.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter61 in DependabilityRequirements) { _iter61.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (FlowType != null && __isset.FlowType) { field.Name = "FlowType"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(FlowType); oprot.WriteFieldEnd(); } if (__isset.Direction) { field.Name = "Direction"; field.Type = TType.I32; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteI32((int)Direction); oprot.WriteFieldEnd(); } if (RefinedPorts != null && __isset.RefinedPorts) { field.Name = "RefinedPorts"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RefinedPorts.Count)); foreach (TDDIPortRef _iter62 in RefinedPorts) { _iter62.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (InterfaceFailures != null && __isset.InterfaceFailures) { field.Name = "InterfaceFailures"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, InterfaceFailures.Count)); foreach (TDDIAbstractInterfaceFailureRef _iter63 in InterfaceFailures) { _iter63.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISecurityControl"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 4; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMap _iter1410 in KeyValueMaps) { _iter1410.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (IntrinsicSafety != null && __isset.IntrinsicSafety) { field.Name = "IntrinsicSafety"; field.Type = TType.String; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteString(IntrinsicSafety); oprot.WriteFieldEnd(); } if (SafeGuard != null && __isset.SafeGuard) { field.Name = "SafeGuard"; field.Type = TType.String; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteString(SafeGuard); oprot.WriteFieldEnd(); } if (ApplierInformation != null && __isset.ApplierInformation) { field.Name = "ApplierInformation"; field.Type = TType.String; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteString(ApplierInformation); oprot.WriteFieldEnd(); } if (__isset.RiskAcceptability) { field.Name = "RiskAcceptability"; field.Type = TType.Bool; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteBool(RiskAcceptability); oprot.WriteFieldEnd(); } if (FurtherAction != null && __isset.FurtherAction) { field.Name = "FurtherAction"; field.Type = TType.String; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteString(FurtherAction); oprot.WriteFieldEnd(); } if (Source != null && __isset.Source) { field.Name = "Source"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(Source); oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 11; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MeasureType != null && __isset.MeasureType) { field.Name = "MeasureType"; field.Type = TType.Struct; field.ID = 12; oprot.WriteFieldBegin(field); MeasureType.Write(oprot); oprot.WriteFieldEnd(); } if (Category != null && __isset.Category) { field.Name = "Category"; field.Type = TType.String; field.ID = 13; oprot.WriteFieldBegin(field); oprot.WriteString(Category); oprot.WriteFieldEnd(); } if (__isset.Type) { field.Name = "Type"; field.Type = TType.I32; field.ID = 14; oprot.WriteFieldBegin(field); oprot.WriteI32((int)Type); oprot.WriteFieldEnd(); } if (Vulnerabilities != null && __isset.Vulnerabilities) { field.Name = "Vulnerabilities"; field.Type = TType.List; field.ID = 15; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Vulnerabilities.Count)); foreach (TDDIVulnerabilityRef _iter1411 in Vulnerabilities) { _iter1411.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISafetyRequirement"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter930 in KeyValueMaps) { _iter930.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DecompositionArgument != null && __isset.DecompositionArgument) { field.Name = "DecompositionArgument"; field.Type = TType.String; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteString(DecompositionArgument); oprot.WriteFieldEnd(); } if (RefinedRequirements != null && __isset.RefinedRequirements) { field.Name = "RefinedRequirements"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RefinedRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter931 in RefinedRequirements) { _iter931.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (RequirementSource != null && __isset.RequirementSource) { field.Name = "RequirementSource"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); RequirementSource.Write(oprot); oprot.WriteFieldEnd(); } if (Measures != null && __isset.Measures) { field.Name = "Measures"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Measures.Count)); foreach (TDDIAbstractMeasureRef _iter932 in Measures) { _iter932.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (FailureModes != null && __isset.FailureModes) { field.Name = "FailureModes"; field.Type = TType.List; field.ID = 12; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModes.Count)); foreach (TDDIAbstractFailureRef _iter933 in FailureModes) { _iter933.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 13; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MaintenanceProcedures != null && __isset.MaintenanceProcedures) { field.Name = "MaintenanceProcedures"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, MaintenanceProcedures.Count)); foreach (TDDIMaintenanceProcedureRef _iter934 in MaintenanceProcedures) { _iter934.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Hazards != null && __isset.Hazards) { field.Name = "Hazards"; field.Type = TType.List; field.ID = 15; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Hazards.Count)); foreach (TDDIHazardRef _iter935 in Hazards) { _iter935.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (__isset.FailureReactionTime) { field.Name = "FailureReactionTime"; field.Type = TType.Double; field.ID = 16; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureReactionTime); oprot.WriteFieldEnd(); } if (__isset.FailureDetectionTime) { field.Name = "FailureDetectionTime"; field.Type = TType.Double; field.ID = 17; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureDetectionTime); oprot.WriteFieldEnd(); } if (__isset.FailureLatencyTime) { field.Name = "FailureLatencyTime"; field.Type = TType.Double; field.ID = 18; oprot.WriteFieldBegin(field); oprot.WriteDouble(FailureLatencyTime); oprot.WriteFieldEnd(); } if (__isset.IsSafetyGoal) { field.Name = "IsSafetyGoal"; field.Type = TType.Bool; field.ID = 19; oprot.WriteFieldBegin(field); oprot.WriteBool(IsSafetyGoal); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISystem"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter134 in KeyValueMaps) { _iter134.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter135 in DependabilityRequirements) { _iter135.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (SubSystems != null && __isset.SubSystems) { field.Name = "SubSystems"; field.Type = TType.List; field.ID = 10; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SubSystems.Count)); foreach (TDDIAbstractSystemRef _iter136 in SubSystems) { _iter136.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (__isset.OverallLifetime) { field.Name = "OverallLifetime"; field.Type = TType.Double; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteDouble(OverallLifetime); oprot.WriteFieldEnd(); } if (__isset.OverallLifetimeTimeUnit) { field.Name = "OverallLifetimeTimeUnit"; field.Type = TType.I32; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteI32((int)OverallLifetimeTimeUnit); oprot.WriteFieldEnd(); } if (RealisedFunctions != null && __isset.RealisedFunctions) { field.Name = "RealisedFunctions"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, RealisedFunctions.Count)); foreach (TDDIAbstractFunctionRef _iter137 in RealisedFunctions) { _iter137.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Configurations != null && __isset.Configurations) { field.Name = "Configurations"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Configurations.Count)); foreach (TDDIConfiguration _iter138 in Configurations) { _iter138.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Contexts != null && __isset.Contexts) { field.Name = "Contexts"; field.Type = TType.List; field.ID = 15; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Contexts.Count)); foreach (TDDIContext _iter139 in Contexts) { _iter139.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (SystemBoundaries != null && __isset.SystemBoundaries) { field.Name = "SystemBoundaries"; field.Type = TType.List; field.ID = 16; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SystemBoundaries.Count)); foreach (TDDISystemBoundary _iter140 in SystemBoundaries) { _iter140.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AppliedStandards != null && __isset.AppliedStandards) { field.Name = "AppliedStandards"; field.Type = TType.List; field.ID = 17; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, AppliedStandards.Count)); foreach (TDDIAbstractStandardRef _iter141 in AppliedStandards) { _iter141.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (FailureModels != null && __isset.FailureModels) { field.Name = "FailureModels"; field.Type = TType.List; field.ID = 18; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModels.Count)); foreach (TDDIAbstractFailureLogicPackageRef _iter142 in FailureModels) { _iter142.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Ports != null && __isset.Ports) { field.Name = "Ports"; field.Type = TType.List; field.ID = 19; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Ports.Count)); foreach (TDDIPortRef _iter143 in Ports) { _iter143.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISignal"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter70 in KeyValueMaps) { _iter70.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter71 in DependabilityRequirements) { _iter71.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (FromPort == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field FromPort not set"); } field.Name = "FromPort"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); FromPort.Write(oprot); oprot.WriteFieldEnd(); if (ToPort == null) { throw new TProtocolException(TProtocolException.INVALID_DATA, "required field ToPort not set"); } field.Name = "ToPort"; field.Type = TType.Struct; field.ID = 11; oprot.WriteFieldBegin(field); ToPort.Write(oprot); oprot.WriteFieldEnd(); oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIContext"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter90 in KeyValueMaps) { _iter90.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter91 in DependabilityRequirements) { _iter91.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (UsageHistory != null && __isset.UsageHistory) { field.Name = "UsageHistory"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(UsageHistory); oprot.WriteFieldEnd(); } if (__isset.MissionTime) { field.Name = "MissionTime"; field.Type = TType.Double; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteDouble(MissionTime); oprot.WriteFieldEnd(); } if (__isset.MissionTimeTimeUnit) { field.Name = "MissionTimeTimeUnit"; field.Type = TType.I32; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteI32((int)MissionTimeTimeUnit); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIArchitecturePackageBinding"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter36 in KeyValueMaps) { _iter36.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter37 in DependabilityRequirements) { _iter37.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (DesignArtifacts != null && __isset.DesignArtifacts) { field.Name = "DesignArtifacts"; field.Type = TType.List; field.ID = 10; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DesignArtifacts.Count)); foreach (TDDIAbstractDesignArtifactRef _iter38 in DesignArtifacts) { _iter38.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (ParticipantPackages != null && __isset.ParticipantPackages) { field.Name = "ParticipantPackages"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, ParticipantPackages.Count)); foreach (TDDIAbstractArchitecturePackageRef _iter39 in ParticipantPackages) { _iter39.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIFaultToleranceMeasure"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter375 in KeyValueMaps) { _iter375.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (IntrinsicSafety != null && __isset.IntrinsicSafety) { field.Name = "IntrinsicSafety"; field.Type = TType.String; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteString(IntrinsicSafety); oprot.WriteFieldEnd(); } if (SafeGuard != null && __isset.SafeGuard) { field.Name = "SafeGuard"; field.Type = TType.String; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteString(SafeGuard); oprot.WriteFieldEnd(); } if (ApplierInformation != null && __isset.ApplierInformation) { field.Name = "ApplierInformation"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(ApplierInformation); oprot.WriteFieldEnd(); } if (__isset.RiskAcceptability) { field.Name = "RiskAcceptability"; field.Type = TType.Bool; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBool(RiskAcceptability); oprot.WriteFieldEnd(); } if (FurtherAction != null && __isset.FurtherAction) { field.Name = "FurtherAction"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(FurtherAction); oprot.WriteFieldEnd(); } if (Source != null && __isset.Source) { field.Name = "Source"; field.Type = TType.String; field.ID = 13; oprot.WriteFieldBegin(field); oprot.WriteString(Source); oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 14; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (MeasureType != null && __isset.MeasureType) { field.Name = "MeasureType"; field.Type = TType.Struct; field.ID = 15; oprot.WriteFieldBegin(field); MeasureType.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDISafetyFunction"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.Id) { field.Name = "Id"; field.Type = TType.I64; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI64(Id); oprot.WriteFieldEnd(); } if (Name != null && __isset.Name) { field.Name = "Name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (Description != null && __isset.Description) { field.Name = "Description"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(Description); oprot.WriteFieldEnd(); } if (__isset.IsCitation) { field.Name = "IsCitation"; field.Type = TType.Bool; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteBool(IsCitation); oprot.WriteFieldEnd(); } if (__isset.IsAbstract) { field.Name = "IsAbstract"; field.Type = TType.Bool; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteBool(IsAbstract); oprot.WriteFieldEnd(); } if (KeyValueMaps != null && __isset.KeyValueMaps) { field.Name = "KeyValueMaps"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, KeyValueMaps.Count)); foreach (TDDIKeyValueMapRef _iter326 in KeyValueMaps) { _iter326.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (CitedElement != null && __isset.CitedElement) { field.Name = "CitedElement"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); CitedElement.Write(oprot); oprot.WriteFieldEnd(); } if (DependabilityRequirements != null && __isset.DependabilityRequirements) { field.Name = "DependabilityRequirements"; field.Type = TType.List; field.ID = 8; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DependabilityRequirements.Count)); foreach (TDDIAbstractDependabilityRequirementRef _iter327 in DependabilityRequirements) { _iter327.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (AssuranceLevel != null && __isset.AssuranceLevel) { field.Name = "AssuranceLevel"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); AssuranceLevel.Write(oprot); oprot.WriteFieldEnd(); } if (SubFunctions != null && __isset.SubFunctions) { field.Name = "SubFunctions"; field.Type = TType.List; field.ID = 10; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SubFunctions.Count)); foreach (TDDIAbstractFunctionRef _iter328 in SubFunctions) { _iter328.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Ports != null && __isset.Ports) { field.Name = "Ports"; field.Type = TType.List; field.ID = 11; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Ports.Count)); foreach (TDDIPortRef _iter329 in Ports) { _iter329.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 12; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (FailureModels != null && __isset.FailureModels) { field.Name = "FailureModels"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, FailureModels.Count)); foreach (TDDIAbstractFailureLogicPackageRef _iter330 in FailureModels) { _iter330.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Malfunctions != null && __isset.Malfunctions) { field.Name = "Malfunctions"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Malfunctions.Count)); foreach (TDDIMalFunctionRef _iter331 in Malfunctions) { _iter331.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (Object != null && __isset.@Object) { field.Name = "Object"; field.Type = TType.String; field.ID = 15; oprot.WriteFieldBegin(field); oprot.WriteString(Object); oprot.WriteFieldEnd(); } if (Behavior != null && __isset.Behavior) { field.Name = "Behavior"; field.Type = TType.String; field.ID = 16; oprot.WriteFieldBegin(field); oprot.WriteString(Behavior); oprot.WriteFieldEnd(); } if (SafeState != null && __isset.SafeState) { field.Name = "SafeState"; field.Type = TType.String; field.ID = 17; oprot.WriteFieldBegin(field); oprot.WriteString(SafeState); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }