if (isSetPassword()) { if (!first) sb.append(", "); sb.append("password:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_client_protocol = true && (isSetClient_protocol()); list.add(present_client_protocol); if (present_client_protocol) list.add(client_protocol.getValue()); boolean present_username = true && (isSetUsername()); list.add(present_username); if (present_username) list.add(username); boolean present_password = true && (isSetPassword()); list.add(present_password); if (present_password) list.add(password); boolean present_configuration = true && (isSetConfiguration()); list.add(present_configuration); if (present_configuration) list.add(configuration); return list.hashCode(); }
/** 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 CLIENT_PROTOCOL: return isSetClient_protocol(); case USERNAME: return isSetUsername(); case PASSWORD: return isSetPassword(); case CONFIGURATION: return isSetConfiguration(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TOpenSessionReq(TOpenSessionReq other) { if (other.isSetClient_protocol()) { this.client_protocol = other.client_protocol; } if (other.isSetUsername()) { this.username = other.username; } if (other.isSetPassword()) { this.password = other.password; } if (other.isSetConfiguration()) { Map<String,String> __this__configuration = new HashMap<String,String>(other.configuration); this.configuration = __this__configuration; } }
lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); if (lastComparison != 0) { return lastComparison; if (isSetPassword()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); if (lastComparison != 0) {
if (struct.isSetPassword()) { oprot.writeFieldBegin(PASSWORD_FIELD_DESC); oprot.writeString(struct.password);
boolean this_present_password = true && this.isSetPassword(); boolean that_present_password = true && that.isSetPassword(); if (this_present_password || that_present_password) { if (!(this_present_password && that_present_password))
optionals.set(0); if (struct.isSetPassword()) { optionals.set(1); oprot.writeString(struct.username); if (struct.isSetPassword()) { oprot.writeString(struct.password);