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

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