if (isSetUsername()) { if (!first) sb.append(", "); sb.append("username:");
@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(isSetUsername()).compareTo(other.isSetUsername()); if (lastComparison != 0) { return lastComparison; if (isSetUsername()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); if (lastComparison != 0) {
if (struct.isSetUsername()) { oprot.writeFieldBegin(USERNAME_FIELD_DESC); oprot.writeString(struct.username);
boolean this_present_username = true && this.isSetUsername(); boolean that_present_username = true && that.isSetUsername(); if (this_present_username || that_present_username) { if (!(this_present_username && that_present_username))
oprot.writeI32(struct.client_protocol.getValue()); BitSet optionals = new BitSet(); if (struct.isSetUsername()) { optionals.set(0); if (struct.isSetUsername()) { oprot.writeString(struct.username);