list.add(eventType); boolean present_authorizable = true && (isSetAuthorizable()); list.add(present_authorizable); if (present_authorizable)
lastComparison = Boolean.valueOf(isSetAuthorizable()).compareTo(other.isSetAuthorizable()); if (lastComparison != 0) { return lastComparison; if (isSetAuthorizable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizable, other.authorizable); if (lastComparison != 0) {
/** 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 PROTOCOL_VERSION: return isSetProtocol_version(); case REQUESTOR_USER_NAME: return isSetRequestorUserName(); case ID: return isSetId(); case EVENT_TYPE: return isSetEventType(); case AUTHORIZABLE: return isSetAuthorizable(); case OWNER_TYPE: return isSetOwnerType(); case OWNER_NAME: return isSetOwnerName(); } throw new IllegalStateException(); }
boolean this_present_authorizable = true && this.isSetAuthorizable(); boolean that_present_authorizable = true && that.isSetAuthorizable(); if (this_present_authorizable || that_present_authorizable) { if (!(this_present_authorizable && that_present_authorizable))
/** * Performs a deep copy on <i>other</i>. */ public TSentryHmsEventNotification(TSentryHmsEventNotification other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } this.id = other.id; if (other.isSetEventType()) { this.eventType = other.eventType; } if (other.isSetAuthorizable()) { this.authorizable = new TSentryAuthorizable(other.authorizable); } if (other.isSetOwnerType()) { this.ownerType = other.ownerType; } if (other.isSetOwnerName()) { this.ownerName = other.ownerName; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetProtocol_version()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'protocol_version' is unset! Struct:" + toString()); } if (!isSetRequestorUserName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString()); } if (!isSetId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetAuthorizable()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'authorizable' is unset! Struct:" + toString()); } // check for sub-struct validity if (authorizable != null) { authorizable.validate(); } }