public void validate() throws org.apache.thrift.TException { // check for required fields // alas, we cannot check 'timestamp' because it's a primitive and you chose the non-beans generator. if (fields == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'fields' was not present! Struct: " + toString()); } // check for sub-struct validity }