if (isSetAuthorizables()) { if (!first) sb.append(", "); sb.append("authorizables:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_protocol_version = true; list.add(present_protocol_version); if (present_protocol_version) list.add(protocol_version); boolean present_component = true && (isSetComponent()); list.add(present_component); if (present_component) list.add(component); boolean present_serviceName = true && (isSetServiceName()); list.add(present_serviceName); if (present_serviceName) list.add(serviceName); boolean present_groups = true && (isSetGroups()); list.add(present_groups); if (present_groups) list.add(groups); boolean present_roleSet = true && (isSetRoleSet()); list.add(present_roleSet); if (present_roleSet) list.add(roleSet); boolean present_authorizables = true && (isSetAuthorizables()); list.add(present_authorizables); if (present_authorizables) list.add(authorizables); return list.hashCode(); }
if (struct.isSetAuthorizables()) { oprot.writeFieldBegin(AUTHORIZABLES_FIELD_DESC);
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesForProviderRequest(TListSentryPrivilegesForProviderRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetComponent()) { this.component = other.component; } if (other.isSetServiceName()) { this.serviceName = other.serviceName; } 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); } if (other.isSetAuthorizables()) { List<TAuthorizable> __this__authorizables = new ArrayList<TAuthorizable>(other.authorizables.size()); for (TAuthorizable other_element : other.authorizables) { __this__authorizables.add(new TAuthorizable(other_element)); } this.authorizables = __this__authorizables; } }
lastComparison = Boolean.valueOf(isSetAuthorizables()).compareTo(other.isSetAuthorizables()); if (lastComparison != 0) { return lastComparison; if (isSetAuthorizables()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorizables, other.authorizables); 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 COMPONENT: return isSetComponent(); case SERVICE_NAME: return isSetServiceName(); case GROUPS: return isSetGroups(); case ROLE_SET: return isSetRoleSet(); case AUTHORIZABLES: return isSetAuthorizables(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesForProviderRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.protocol_version); oprot.writeString(struct.component); oprot.writeString(struct.serviceName); { oprot.writeI32(struct.groups.size()); for (String _iter88 : struct.groups) { oprot.writeString(_iter88); } } struct.roleSet.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetAuthorizables()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAuthorizables()) { { oprot.writeI32(struct.authorizables.size()); for (TAuthorizable _iter89 : struct.authorizables) { _iter89.write(oprot); } } } }
boolean this_present_authorizables = true && this.isSetAuthorizables(); boolean that_present_authorizables = true && that.isSetAuthorizables(); if (this_present_authorizables || that_present_authorizables) { if (!(this_present_authorizables && that_present_authorizables))