public override string ToString() { StringBuilder __sb = new StringBuilder("FaceInfo("); bool __first = true; if (RcFace != null && __isset.rcFace) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RcFace: "); __sb.Append(RcFace == null ? "<null>" : RcFace.ToString()); } if (PtLeftEye != null && __isset.ptLeftEye) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PtLeftEye: "); __sb.Append(PtLeftEye == null ? "<null>" : PtLeftEye.ToString()); } if (PtRightEye != null && __isset.ptRightEye) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PtRightEye: "); __sb.Append(PtRightEye == null ? "<null>" : PtRightEye.ToString()); } if (PtMouth != null && __isset.ptMouth) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PtMouth: "); __sb.Append(PtMouth == null ? "<null>" : PtMouth.ToString()); } if (PtNose != null && __isset.ptNose) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("PtNose: "); __sb.Append(PtNose == null ? "<null>" : PtNose.ToString()); } if (__isset.nYaw) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NYaw: "); __sb.Append(NYaw); } if (__isset.nPitch) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NPitch: "); __sb.Append(NPitch); } if (__isset.nRoll) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NRoll: "); __sb.Append(NRoll); } if (__isset.nQuality) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NQuality: "); __sb.Append(NQuality); } if (__isset.nGender) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NGender: "); __sb.Append(NGender); } if (__isset.nAge) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("NAge: "); __sb.Append(NAge); } if (__isset.dTm) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DTm: "); __sb.Append(DTm); } if (TcSdkVer != null && __isset.tcSdkVer) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("TcSdkVer: "); __sb.Append(TcSdkVer); } if (Fea != null && __isset.Fea) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Fea: "); __sb.Append(Fea); } if (Img != null && __isset.Img) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Img: "); __sb.Append(Img); } if (ChannelID != null && __isset.channelID) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ChannelID: "); __sb.Append(ChannelID); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("FaceInfo"); oprot.WriteStructBegin(struc); TField field = new TField(); if (RcFace != null && __isset.rcFace) { field.Name = "rcFace"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); RcFace.Write(oprot); oprot.WriteFieldEnd(); } if (PtLeftEye != null && __isset.ptLeftEye) { field.Name = "ptLeftEye"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); PtLeftEye.Write(oprot); oprot.WriteFieldEnd(); } if (PtRightEye != null && __isset.ptRightEye) { field.Name = "ptRightEye"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); PtRightEye.Write(oprot); oprot.WriteFieldEnd(); } if (PtMouth != null && __isset.ptMouth) { field.Name = "ptMouth"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); PtMouth.Write(oprot); oprot.WriteFieldEnd(); } if (PtNose != null && __isset.ptNose) { field.Name = "ptNose"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); PtNose.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.nYaw) { field.Name = "nYaw"; field.Type = TType.I32; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteI32(NYaw); oprot.WriteFieldEnd(); } if (__isset.nPitch) { field.Name = "nPitch"; field.Type = TType.I32; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI32(NPitch); oprot.WriteFieldEnd(); } if (__isset.nRoll) { field.Name = "nRoll"; field.Type = TType.I32; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteI32(NRoll); oprot.WriteFieldEnd(); } if (__isset.nQuality) { field.Name = "nQuality"; field.Type = TType.I32; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteI32(NQuality); oprot.WriteFieldEnd(); } if (__isset.nGender) { field.Name = "nGender"; field.Type = TType.I32; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteI32(NGender); oprot.WriteFieldEnd(); } if (__isset.nAge) { field.Name = "nAge"; field.Type = TType.I32; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteI32(NAge); oprot.WriteFieldEnd(); } if (__isset.dTm) { field.Name = "dTm"; field.Type = TType.I64; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteI64(DTm); oprot.WriteFieldEnd(); } if (TcSdkVer != null && __isset.tcSdkVer) { field.Name = "tcSdkVer"; field.Type = TType.String; field.ID = 13; oprot.WriteFieldBegin(field); oprot.WriteString(TcSdkVer); oprot.WriteFieldEnd(); } if (Fea != null && __isset.Fea) { field.Name = "Fea"; field.Type = TType.String; field.ID = 14; oprot.WriteFieldBegin(field); oprot.WriteBinary(Fea); oprot.WriteFieldEnd(); } if (Img != null && __isset.Img) { field.Name = "Img"; field.Type = TType.String; field.ID = 15; oprot.WriteFieldBegin(field); oprot.WriteBinary(Img); oprot.WriteFieldEnd(); } if (ChannelID != null && __isset.channelID) { field.Name = "channelID"; field.Type = TType.String; field.ID = 16; oprot.WriteFieldBegin(field); oprot.WriteString(ChannelID); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }