@Override public void read(libthrift091.protocol.TProtocol prot, ListQueueResponse struct) throws libthrift091.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { libthrift091.protocol.TList _list15 = new libthrift091.protocol.TList(libthrift091.protocol.TType.STRING, iprot.readI32()); struct.queueName = new ArrayList<String>(_list15.size); String _elem16; for (int _i17 = 0; _i17 < _list15.size; ++_i17) { _elem16 = iprot.readString(); struct.queueName.add(_elem16); } } struct.setQueueNameIsSet(true); }
@Override public int compareTo(ListQueueResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetQueueName()).compareTo(other.isSetQueueName()); if (lastComparison != 0) { return lastComparison; } if (isSetQueueName()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.queueName, other.queueName); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(ListQueueResponse that) { if (that == null) return false; boolean this_present_queueName = true && this.isSetQueueName(); boolean that_present_queueName = true && that.isSetQueueName(); if (this_present_queueName || that_present_queueName) { if (!(this_present_queueName && that_present_queueName)) return false; if (!this.queueName.equals(that.queueName)) return false; } return true; }
public void read(libthrift091.protocol.TProtocol iprot, ListQueueResponse struct) throws libthrift091.TException { libthrift091.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == libthrift091.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // QUEUE_NAME if (schemeField.type == libthrift091.protocol.TType.LIST) { { libthrift091.protocol.TList _list10 = iprot.readListBegin(); struct.queueName = new ArrayList<String>(_list10.size); String _elem11; for (int _i12 = 0; _i12 < _list10.size; ++_i12) { _elem11 = iprot.readString(); struct.queueName.add(_elem11); } iprot.readListEnd(); } struct.setQueueNameIsSet(true); } else { libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: libthrift091.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
public void write(libthrift091.protocol.TProtocol oprot, ListQueueResponse struct) throws libthrift091.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.queueName != null) { oprot.writeFieldBegin(QUEUE_NAME_FIELD_DESC); { oprot.writeListBegin( new libthrift091.protocol.TList( libthrift091.protocol.TType.STRING, struct.queueName.size())); for (String _iter13 : struct.queueName) { oprot.writeString(_iter13); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** Performs a deep copy on <i>other</i>. */ public ListQueueResponse(ListQueueResponse other) { if (other.isSetQueueName()) { List<String> __this__queueName = new ArrayList<String>(other.queueName); this.queueName = __this__queueName; } }