@Override public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.events = new ArrayList<NotificationEvent>(_list555.size); NotificationEvent _elem556; for (int _i557 = 0; _i557 < _list555.size; ++_i557) { _elem556 = new NotificationEvent(); _elem556.read(iprot); struct.events.add(_elem556); } } struct.setEventsIsSet(true); }
public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventResponse struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); struct.events = new ArrayList<NotificationEvent>(_list550.size); NotificationEvent _elem551; for (int _i552 = 0; _i552 < _list550.size; ++_i552) { _elem551 = new NotificationEvent(); _elem551.read(iprot); struct.events.add(_elem551); } iprot.readListEnd(); } struct.setEventsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); struct.validate(); }