if (struct.isSetUserName()) { oprot.writeFieldBegin(USER_NAME_FIELD_DESC); oprot.writeString(struct.userName);
if (isSetUserName()) { if (!first) sb.append(", "); sb.append("userName:");
/** 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 CONN_ID: return isSetConnId(); case CLIENT_HOST_NAME: return isSetClientHostName(); case CLIENT_ID: return isSetClientID(); case USER_NAME: return isSetUserName(); case TOKEN: return isSetToken(); } throw new IllegalStateException(); }
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) {
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))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ConnectionProperties struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.connId); oprot.writeString(struct.clientHostName); oprot.writeString(struct.clientID); BitSet optionals = new BitSet(); if (struct.isSetUserName()) { optionals.set(0); } if (struct.isSetToken()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserName()) { oprot.writeString(struct.userName); } if (struct.isSetToken()) { oprot.writeBinary(struct.token); } }
/** * Performs a deep copy on <i>other</i>. */ public ConnectionProperties(ConnectionProperties other) { __isset_bitfield = other.__isset_bitfield; this.connId = other.connId; if (other.isSetClientHostName()) { this.clientHostName = other.clientHostName; } if (other.isSetClientID()) { this.clientID = other.clientID; } if (other.isSetUserName()) { this.userName = other.userName; } if (other.isSetToken()) { this.token = org.apache.thrift.TBaseHelper.copyBinary(other.token); ; } }