public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // check for sub-struct validity
    if (headers != null) {
      headers.validate();
    }
    if (data != null) {
      data.validate();
    }
  }
public void validate()