@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_authzPathUpdate = true && (isSetAuthzPathUpdate()); builder.append(present_authzPathUpdate); if (present_authzPathUpdate) builder.append(authzPathUpdate); boolean present_authzPermUpdate = true && (isSetAuthzPermUpdate()); builder.append(present_authzPermUpdate); if (present_authzPermUpdate) builder.append(authzPermUpdate); return builder.toHashCode(); }
/** 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 AUTHZ_PATH_UPDATE: return isSetAuthzPathUpdate(); case AUTHZ_PERM_UPDATE: return isSetAuthzPermUpdate(); } throw new IllegalStateException(); }
public boolean equals(TAuthzUpdateResponse that) { if (that == null) return false; boolean this_present_authzPathUpdate = true && this.isSetAuthzPathUpdate(); boolean that_present_authzPathUpdate = true && that.isSetAuthzPathUpdate(); if (this_present_authzPathUpdate || that_present_authzPathUpdate) { if (!(this_present_authzPathUpdate && that_present_authzPathUpdate)) return false; if (!this.authzPathUpdate.equals(that.authzPathUpdate)) return false; } boolean this_present_authzPermUpdate = true && this.isSetAuthzPermUpdate(); boolean that_present_authzPermUpdate = true && that.isSetAuthzPermUpdate(); if (this_present_authzPermUpdate || that_present_authzPermUpdate) { if (!(this_present_authzPermUpdate && that_present_authzPermUpdate)) return false; if (!this.authzPermUpdate.equals(that.authzPermUpdate)) return false; } return true; }
@Override public String toString() { StringBuilder sb = new StringBuilder("TAuthzUpdateResponse("); boolean first = true; if (isSetAuthzPathUpdate()) { sb.append("authzPathUpdate:"); if (this.authzPathUpdate == null) { sb.append("null"); } else { sb.append(this.authzPathUpdate); } first = false; } if (isSetAuthzPermUpdate()) { if (!first) sb.append(", "); sb.append("authzPermUpdate:"); if (this.authzPermUpdate == null) { sb.append("null"); } else { sb.append(this.authzPermUpdate); } first = false; } sb.append(")"); return sb.toString(); }
public int compareTo(TAuthzUpdateResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; TAuthzUpdateResponse typedOther = (TAuthzUpdateResponse)other; lastComparison = Boolean.valueOf(isSetAuthzPathUpdate()).compareTo(typedOther.isSetAuthzPathUpdate()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthzPathUpdate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPathUpdate, typedOther.authzPathUpdate); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetAuthzPermUpdate()).compareTo(typedOther.isSetAuthzPermUpdate()); if (lastComparison != 0) { return lastComparison; } if (isSetAuthzPermUpdate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzPermUpdate, typedOther.authzPermUpdate); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public TAuthzUpdateResponse(TAuthzUpdateResponse other) { if (other.isSetAuthzPathUpdate()) { List<TPathsUpdate> __this__authzPathUpdate = new ArrayList<TPathsUpdate>(); for (TPathsUpdate other_element : other.authzPathUpdate) { __this__authzPathUpdate.add(new TPathsUpdate(other_element)); } this.authzPathUpdate = __this__authzPathUpdate; } if (other.isSetAuthzPermUpdate()) { List<TPermissionsUpdate> __this__authzPermUpdate = new ArrayList<TPermissionsUpdate>(); for (TPermissionsUpdate other_element : other.authzPermUpdate) { __this__authzPermUpdate.add(new TPermissionsUpdate(other_element)); } this.authzPermUpdate = __this__authzPermUpdate; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAuthzUpdateResponse struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthzPathUpdate()) { optionals.set(0); } if (struct.isSetAuthzPermUpdate()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetAuthzPathUpdate()) { { oprot.writeI32(struct.authzPathUpdate.size()); for (TPathsUpdate _iter130 : struct.authzPathUpdate) { _iter130.write(oprot); } } } if (struct.isSetAuthzPermUpdate()) { { oprot.writeI32(struct.authzPermUpdate.size()); for (TPermissionsUpdate _iter131 : struct.authzPermUpdate) { _iter131.write(oprot); } } } }
if (struct.isSetAuthzPathUpdate()) { oprot.writeFieldBegin(AUTHZ_PATH_UPDATE_FIELD_DESC);