/** 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 CHUNK: return isSetChunk(); case LAST: return isSetLast(); case LOB_ID: return isSetLobId(); case OFFSET: return isSetOffset(); case TOTAL_LENGTH: return isSetTotalLength(); } throw new IllegalStateException(); }
if (!struct.isSetLast()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'last' was not found in serialized data! Struct: " + toString());