/** 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
/** 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); if (lastComparison != 0) { return lastComparison; if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); if (lastComparison != 0) {
TSentryResponseStatus typedOther = (TSentryResponseStatus)other; lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; if (isSetValue()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetValue()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetValue()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'value' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }