/** 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_error_time_secs(); } throw new IllegalStateException(); }
public int compareTo(ErrorInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ErrorInfo typedOther = (ErrorInfo)other; lastComparison = Boolean.valueOf(is_set_error()).compareTo(typedOther.is_set_error()); if (lastComparison != 0) { return lastComparison; } if (is_set_error()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.error, typedOther.error); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_error_time_secs()).compareTo(typedOther.is_set_error_time_secs()); if (lastComparison != 0) { return lastComparison; } if (is_set_error_time_secs()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.error_time_secs, typedOther.error_time_secs); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_error()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'error' is unset! Struct:" + toString()); } if (!is_set_error_time_secs()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'error_time_secs' is unset! Struct:" + toString()); } }
/** 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_error_time_secs(); } throw new IllegalStateException(); }
public int compareTo(ErrorInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ErrorInfo typedOther = (ErrorInfo)other; lastComparison = Boolean.valueOf(is_set_error()).compareTo(typedOther.is_set_error()); if (lastComparison != 0) { return lastComparison; } if (is_set_error()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, typedOther.error); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_error_time_secs()).compareTo(typedOther.is_set_error_time_secs()); if (lastComparison != 0) { return lastComparison; } if (is_set_error_time_secs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error_time_secs, typedOther.error_time_secs); if (lastComparison != 0) { return lastComparison; } } return 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_error_time_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'error_time_secs' is unset! Struct:" + toString()); } }