list.add(buildTs); boolean present_port = true && (is_set_port()); list.add(present_port); if (present_port)
if (is_set_port()) { if (!first) sb.append(", "); sb.append("port:");
if (struct.is_set_port()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port);
lastComparison = Boolean.valueOf(is_set_port()).compareTo(other.is_set_port()); if (lastComparison != 0) { return lastComparison; if (is_set_port()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) {
boolean this_present_port = true && this.is_set_port(); boolean that_present_port = true && that.is_set_port(); if (this_present_port || that_present_port) { if (!(this_present_port && that_present_port))
optionals.set(1); if (struct.is_set_port()) { optionals.set(2); oprot.writeString(struct.buildTs); if (struct.is_set_port()) { oprot.writeI32(struct.port);
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); case ERROR_MESSAGE: return is_set_errorMessage(); } throw new IllegalStateException(); }
list.add(buildTs); boolean present_port = true && (is_set_port()); list.add(present_port); if (present_port)
if (is_set_port()) { if (!first) sb.append(", "); sb.append("port:");
boolean this_present_port = true && this.is_set_port(); boolean that_present_port = true && that.is_set_port(); if (this_present_port || that_present_port) { if (!(this_present_port && that_present_port))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SupervisorSummary struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.host); oprot.writeString(struct.supervisorId); oprot.writeI32(struct.uptimeSecs); oprot.writeI32(struct.numWorkers); oprot.writeI32(struct.numUsedWorkers); BitSet optionals = new BitSet(); if (struct.is_set_version()) { optionals.set(0); } if (struct.is_set_buildTs()) { optionals.set(1); } if (struct.is_set_port()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.is_set_version()) { oprot.writeString(struct.version); } if (struct.is_set_buildTs()) { oprot.writeString(struct.buildTs); } if (struct.is_set_port()) { oprot.writeI32(struct.port); } }
lastComparison = Boolean.valueOf(is_set_port()).compareTo(other.is_set_port()); if (lastComparison != 0) { return lastComparison; if (is_set_port()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port); if (lastComparison != 0) {
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); } throw new IllegalStateException(); }
if (struct.is_set_port()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port);