public void read(org.apache.thrift7.protocol.TProtocol iprot)
     throws org.apache.thrift7.TException {
   org.apache.thrift7.protocol.TField field;
   iprot.readStructBegin();
   while (true) {
     field = iprot.readFieldBegin();
     if (field.type == org.apache.thrift7.protocol.TType.STOP) {
       break;
     }
     switch (field.id) {
       case 1: // MSG
         if (field.type == org.apache.thrift7.protocol.TType.STRING) {
           this.msg = iprot.readString();
         } else {
           org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
         }
         break;
       default:
         org.apache.thrift7.protocol.TProtocolUtil.skip(iprot, field.type);
     }
     iprot.readFieldEnd();
   }
   iprot.readStructEnd();
   validate();
 }
  public void write(org.apache.thrift7.protocol.TProtocol oprot)
      throws org.apache.thrift7.TException {
    validate();

    oprot.writeStructBegin(STRUCT_DESC);
    if (this.msg != null) {
      oprot.writeFieldBegin(MSG_FIELD_DESC);
      oprot.writeString(this.msg);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }