/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ERROR: return is_set_error(); case ERROR_TIME_SECS: return is_set_errorTimeSecs(); case ERROR_LEVEL: return is_set_errorLevel(); case ERROR_CODE: return is_set_errorCode(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_errorCode()).compareTo(other.is_set_errorCode()); if (lastComparison != 0) { return lastComparison; if (is_set_errorCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_errorTimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorTimeSecs' is unset! Struct:" + toString()); } if (!is_set_errorLevel()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorLevel' is unset! Struct:" + toString()); } if (!is_set_errorCode()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorCode' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case ERROR: return is_set_error(); case ERROR_TIME_SECS: return is_set_errorTimeSecs(); case ERROR_LEVEL: return is_set_errorLevel(); case ERROR_CODE: return is_set_errorCode(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_errorCode()).compareTo(other.is_set_errorCode()); if (lastComparison != 0) { return lastComparison; if (is_set_errorCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_errorTimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorTimeSecs' is unset! Struct:" + toString()); } if (!is_set_errorLevel()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorLevel' is unset! Struct:" + toString()); } if (!is_set_errorCode()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errorCode' is unset! Struct:" + toString()); } // check for sub-struct validity }