list.add(serviceName); boolean present_authorizablesSet = true && (isSetAuthorizablesSet()); list.add(present_authorizablesSet); if (present_authorizablesSet)
lastComparison = Boolean.valueOf(isSetAuthorizablesSet()).compareTo(other.isSetAuthorizablesSet()); if (lastComparison != 0) { return lastComparison; if (isSetAuthorizablesSet()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizablesSet, other.authorizablesSet); 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 COMPONENT: return isSetComponent(); case SERVICE_NAME: return isSetServiceName(); case AUTHORIZABLES_SET: return isSetAuthorizablesSet(); case GROUPS: return isSetGroups(); case ROLE_SET: return isSetRoleSet(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesByAuthRequest(TListSentryPrivilegesByAuthRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } if (other.isSetComponent()) { this.component = other.component; } if (other.isSetServiceName()) { this.serviceName = other.serviceName; } if (other.isSetAuthorizablesSet()) { Set<String> __this__authorizablesSet = new HashSet<String>(other.authorizablesSet); this.authorizablesSet = __this__authorizablesSet; } if (other.isSetGroups()) { Set<String> __this__groups = new HashSet<String>(other.groups); this.groups = __this__groups; } if (other.isSetRoleSet()) { this.roleSet = new TSentryActiveRoleSet(other.roleSet); } }
boolean this_present_authorizablesSet = true && this.isSetAuthorizablesSet(); boolean that_present_authorizablesSet = true && that.isSetAuthorizablesSet(); if (this_present_authorizablesSet || that_present_authorizablesSet) { if (!(this_present_authorizablesSet && that_present_authorizablesSet))
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 (!isSetComponent()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'component' is unset! Struct:" + toString()); } if (!isSetServiceName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serviceName' is unset! Struct:" + toString()); } if (!isSetAuthorizablesSet()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'authorizablesSet' is unset! Struct:" + toString()); } // check for sub-struct validity if (roleSet != null) { roleSet.validate(); } }