first = false; if (isSetConfiguration()) { if (!first) sb.append(", "); sb.append("configuration:");
@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(isSetConfiguration()).compareTo(other.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; if (isSetConfiguration()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); if (lastComparison != 0) {
if (struct.isSetConfiguration()) { oprot.writeFieldBegin(CONFIGURATION_FIELD_DESC);
boolean this_present_configuration = true && this.isSetConfiguration(); boolean that_present_configuration = true && that.isSetConfiguration(); if (this_present_configuration || that_present_configuration) { if (!(this_present_configuration && that_present_configuration))
optionals.set(1); if (struct.isSetConfiguration()) { optionals.set(2); oprot.writeString(struct.password); if (struct.isSetConfiguration()) {