public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("TDDIFMEAPropagationUnion(");
            bool          __first = true;

            if (FMEAPropagation != null && __isset.FMEAPropagation)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FMEAPropagation: ");
                __sb.Append(FMEAPropagation == null ? "<null>" : FMEAPropagation.ToString());
            }
            if (DiagnosableFailurePropagation != null && __isset.DiagnosableFailurePropagation)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DiagnosableFailurePropagation: ");
                __sb.Append(DiagnosableFailurePropagation == null ? "<null>" : DiagnosableFailurePropagation.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TDDIFMEAPropagationUnion");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         if (FMEAPropagation != null && __isset.FMEAPropagation)
         {
             field.Name = "FMEAPropagation";
             field.Type = TType.Struct;
             field.ID   = 1;
             oprot.WriteFieldBegin(field);
             FMEAPropagation.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (DiagnosableFailurePropagation != null && __isset.DiagnosableFailurePropagation)
         {
             field.Name = "DiagnosableFailurePropagation";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             DiagnosableFailurePropagation.Write(oprot);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }