public void Write(TProtocol oprot) { TStruct struc = new TStruct("HBMessageData"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Path != null && __isset.path) { field.Name = "path"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Path); oprot.WriteFieldEnd(); } if (Pulse != null && __isset.pulse) { field.Name = "pulse"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Pulse.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.boolval) { field.Name = "boolval"; field.Type = TType.Bool; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteBool(Boolval); oprot.WriteFieldEnd(); } if (Records != null && __isset.records) { field.Name = "records"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); Records.Write(oprot); oprot.WriteFieldEnd(); } if (Nodes != null && __isset.nodes) { field.Name = "nodes"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); Nodes.Write(oprot); oprot.WriteFieldEnd(); } if (Message_blob != null && __isset.message_blob) { field.Name = "message_blob"; field.Type = TType.String; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteBinary(Message_blob); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }