if (struct.isSetToken()) { oprot.writeFieldBegin(TOKEN_FIELD_DESC); oprot.writeBinary(struct.token);
if (isSetToken()) { if (!first) sb.append(", "); sb.append("token:");
/** 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(isSetToken()).compareTo(other.isSetToken()); if (lastComparison != 0) { return lastComparison; if (isSetToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token); if (lastComparison != 0) {
boolean this_present_token = true && this.isSetToken(); boolean that_present_token = true && that.isSetToken(); if (this_present_token || that_present_token) { if (!(this_present_token && that_present_token))
@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); ; } }