public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetClient_protocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'client_protocol' is unset! Struct:" + toString()); } // check for sub-struct validity }
@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(isSetClient_protocol()).compareTo(other.isSetClient_protocol()); if (lastComparison != 0) { return lastComparison; if (isSetClient_protocol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, other.client_protocol); if (lastComparison != 0) {
return false; boolean this_present_client_protocol = true && this.isSetClient_protocol(); boolean that_present_client_protocol = true && that.isSetClient_protocol(); if (this_present_client_protocol || that_present_client_protocol) { if (!(this_present_client_protocol && that_present_client_protocol))