private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.endpointEvent = new EndpointEvent(); struct.endpointEvent.read(iprot); struct.setEndpointEventIsSet(true); } else {
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Event struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.userId = iprot.readString(); struct.setUserIdIsSet(true); } if (incoming.get(1)) { struct.tenantId = iprot.readString(); struct.setTenantIdIsSet(true); } if (incoming.get(2)) { struct.endpointEvent = new EndpointEvent(); struct.endpointEvent.read(iprot); struct.setEndpointEventIsSet(true); } if (incoming.get(3)) { struct.routeAddress = new RouteAddress(); struct.routeAddress.read(iprot); struct.setRouteAddressIsSet(true); } } }