@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_requestorUserName = true && (isSetRequestorUserName()); list.add(present_requestorUserName); if (present_requestorUserName) list.add(requestorUserName); boolean present_roleName = true && (isSetRoleName()); list.add(present_roleName); if (present_roleName) list.add(roleName); boolean present_authorizableHierarchy = true && (isSetAuthorizableHierarchy()); list.add(present_authorizableHierarchy); if (present_authorizableHierarchy) list.add(authorizableHierarchy); boolean present_principalName = true && (isSetPrincipalName()); list.add(present_principalName); if (present_principalName) list.add(principalName); return list.hashCode(); }
if (isSetPrincipalName()) { if (!first) sb.append(", "); sb.append("principalName:");
if (struct.isSetPrincipalName()) { oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); oprot.writeString(struct.principalName);
/** 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 ROLE_NAME: return isSetRoleName(); case AUTHORIZABLE_HIERARCHY: return isSetAuthorizableHierarchy(); case PRINCIPAL_NAME: return isSetPrincipalName(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; if (isSetPrincipalName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TListSentryPrivilegesRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.protocol_version); oprot.writeString(struct.requestorUserName); oprot.writeString(struct.roleName); BitSet optionals = new BitSet(); if (struct.isSetAuthorizableHierarchy()) { optionals.set(0); } if (struct.isSetPrincipalName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetAuthorizableHierarchy()) { struct.authorizableHierarchy.write(oprot); } if (struct.isSetPrincipalName()) { oprot.writeString(struct.principalName); } }
boolean this_present_principalName = true && this.isSetPrincipalName(); boolean that_present_principalName = true && that.isSetPrincipalName(); if (this_present_principalName || that_present_principalName) { if (!(this_present_principalName && that_present_principalName))
/** * Performs a deep copy on <i>other</i>. */ public TListSentryPrivilegesRequest(TListSentryPrivilegesRequest other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } if (other.isSetRoleName()) { this.roleName = other.roleName; } if (other.isSetAuthorizableHierarchy()) { this.authorizableHierarchy = new TSentryAuthorizable(other.authorizableHierarchy); } if (other.isSetPrincipalName()) { this.principalName = other.principalName; } }