/** 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 HAS_FULL_IMAGE: return isSetHasFullImage(); case PATHS_DUMP: return isSetPathsDump(); case SEQ_NUM: return isSetSeqNum(); case PATH_CHANGES: return isSetPathChanges(); } throw new IllegalStateException(); }
TPathsUpdate typedOther = (TPathsUpdate)other; lastComparison = Boolean.valueOf(isSetHasFullImage()).compareTo(typedOther.isSetHasFullImage()); if (lastComparison != 0) { return lastComparison; if (isSetHasFullImage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasFullImage, typedOther.hasFullImage); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetHasFullImage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'hasFullImage' is unset! Struct:" + toString()); } if (!isSetSeqNum()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'seqNum' is unset! Struct:" + toString()); } if (!isSetPathChanges()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathChanges' is unset! Struct:" + toString()); } // check for sub-struct validity if (pathsDump != null) { pathsDump.validate(); } }