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