/** 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 OK: return isSetOk(); case TRACE_COUNT: return isSetTraceCount(); } throw new IllegalStateException(); }
@Override public int compareTo(ValidateTraceResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetOk()).compareTo(other.isSetOk()); if (lastComparison != 0) { return lastComparison; } if (isSetOk()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ok, other.ok); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetTraceCount()).compareTo(other.isSetTraceCount()); if (lastComparison != 0) { return lastComparison; } if (isSetTraceCount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.traceCount, other.traceCount); if (lastComparison != 0) { return lastComparison; } } return 0; }
if (!struct.isSetOk()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'ok' was not found in serialized data! Struct: " + toString());