/** 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 java.lang.IllegalArgumentException(); } switch (field) { case NUM_BYTES: return isSetNumBytes(); case ALGORITHM: return isSetAlgorithm(); case HASH: return isSetHash(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetNumBytes()).compareTo(other.isSetNumBytes()); if (lastComparison != 0) { return lastComparison; if (isSetNumBytes()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBytes, other.numBytes); if (lastComparison != 0) {
if (!struct.isSetNumBytes()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numBytes' was not found in serialized data! Struct: " + toString());