public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIDesignArtifactUnion"); oprot.WriteStructBegin(struc); TField field = new TField(); if (System != null && __isset.System) { field.Name = "System"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); System.Write(oprot); oprot.WriteFieldEnd(); } if (Function != null && __isset.Function) { field.Name = "Function"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Function.Write(oprot); oprot.WriteFieldEnd(); } if (Configuration != null && __isset.Configuration) { field.Name = "Configuration"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); Configuration.Write(oprot); oprot.WriteFieldEnd(); } if (Signal != null && __isset.Signal) { field.Name = "Signal"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); Signal.Write(oprot); oprot.WriteFieldEnd(); } if (SystemBoundary != null && __isset.SystemBoundary) { field.Name = "SystemBoundary"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); SystemBoundary.Write(oprot); oprot.WriteFieldEnd(); } if (Context != null && __isset.Context) { field.Name = "Context"; field.Type = TType.Struct; field.ID = 6; oprot.WriteFieldBegin(field); Context.Write(oprot); oprot.WriteFieldEnd(); } if (LifecycleCondition != null && __isset.LifecycleCondition) { field.Name = "LifecycleCondition"; field.Type = TType.Struct; field.ID = 7; oprot.WriteFieldBegin(field); LifecycleCondition.Write(oprot); oprot.WriteFieldEnd(); } if (Port != null && __isset.Port) { field.Name = "Port"; field.Type = TType.Struct; field.ID = 8; oprot.WriteFieldBegin(field); Port.Write(oprot); oprot.WriteFieldEnd(); } if (PerfChars != null && __isset.PerfChars) { field.Name = "PerfChars"; field.Type = TType.Struct; field.ID = 9; oprot.WriteFieldBegin(field); PerfChars.Write(oprot); oprot.WriteFieldEnd(); } if (ArchitecturePackage != null && __isset.ArchitecturePackage) { field.Name = "ArchitecturePackage"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); ArchitecturePackage.Write(oprot); 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("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(); } }