public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIBaseElementUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (DesignArtifact != null && __isset.DesignArtifact)
         {
             field.Name = "DesignArtifact";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             DesignArtifact.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ODEPackage != null && __isset.ODEPackage)
         {
             field.Name = "ODEPackage";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             ODEPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (FailureAnalysisArtifact != null && __isset.FailureAnalysisArtifact)
         {
             field.Name = "FailureAnalysisArtifact";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             FailureAnalysisArtifact.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DependabilityArtifact != null && __isset.DependabilityArtifact)
         {
             field.Name = "DependabilityArtifact";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             DependabilityArtifact.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Example #2
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIODEPackageUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (ODEPackage != null && __isset.ODEPackage)
         {
             field.Name = "ODEPackage";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             ODEPackage.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ODEPackageInterface != null && __isset.ODEPackageInterface)
         {
             field.Name = "ODEPackageInterface";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             ODEPackageInterface.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ODEPackageBinding != null && __isset.ODEPackageBinding)
         {
             field.Name = "ODEPackageBinding";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             ODEPackageBinding.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }