in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/SetupMessageStruct.java [850:894]
public void read(org.apache.thrift.protocol.TProtocol prot, SetupMessageStruct struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.leafNum = iprot.readI32();
struct.setLeafNumIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list11 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.identities = new java.util.ArrayList<java.lang.String>(_list11.size);
java.lang.String _elem12;
for (int _i13 = 0; _i13 < _list11.size; ++_i13)
{
_elem12 = iprot.readString();
struct.identities.add(_elem12);
}
}
struct.setIdentitiesIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TMap _map14 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.ephemeralKeys = new java.util.HashMap<java.lang.Integer,java.lang.String>(2*_map14.size);
int _key15;
java.lang.String _val16;
for (int _i17 = 0; _i17 < _map14.size; ++_i17)
{
_key15 = iprot.readI32();
_val16 = iprot.readString();
struct.ephemeralKeys.put(_key15, _val16);
}
}
struct.setEphemeralKeysIsSet(true);
}
if (incoming.get(3)) {
struct.keyExchangeKey = iprot.readBinary();
struct.setKeyExchangeKeyIsSet(true);
}
if (incoming.get(4)) {
struct.tree = new NodeStruct();
struct.tree.read(iprot);
struct.setTreeIsSet(true);
}
}