builder.append(privilegeScope); boolean present_serverName = true && (isSetServerName()); builder.append(present_serverName); if (present_serverName)
lastComparison = Boolean.valueOf(isSetServerName()).compareTo(typedOther.isSetServerName()); if (lastComparison != 0) { return lastComparison; if (isSetServerName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, typedOther.serverName); 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 PRIVILEGE_SCOPE: return isSetPrivilegeScope(); case SERVER_NAME: return isSetServerName(); case DB_NAME: return isSetDbName(); case TABLE_NAME: return isSetTableName(); case URI: return isSetURI(); case ACTION: return isSetAction(); case CREATE_TIME: return isSetCreateTime(); case GRANT_OPTION: return isSetGrantOption(); case COLUMN_NAME: return isSetColumnName(); } throw new IllegalStateException(); }
boolean this_present_serverName = true && this.isSetServerName(); boolean that_present_serverName = true && that.isSetServerName(); if (this_present_serverName || that_present_serverName) { if (!(this_present_serverName && that_present_serverName))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetPrivilegeScope()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'privilegeScope' is unset! Struct:" + toString()); } if (!isSetServerName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverName' is unset! Struct:" + toString()); } if (!isSetAction()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'action' is unset! Struct:" + toString()); } // check for sub-struct validity }
this.privilegeScope = other.privilegeScope; if (other.isSetServerName()) { this.serverName = other.serverName;
boolean this_present_serverName = true && tSentryPrivilege1.isSetServerName(); boolean that_present_serverName = true && tSentryPrivilege2.isSetServerName(); if (this_present_serverName || that_present_serverName) { if (!(this_present_serverName && that_present_serverName)) {