in AsynchronousRatchetingTree/src/main/java/com/facebook/research/asynchronousratchetingtree/art/message/thrift/UpdateMessageStruct.java [388:433]
public void read(org.apache.thrift.protocol.TProtocol iprot, UpdateMessageStruct 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: // LEAF_NUM
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.leafNum = iprot.readI32();
struct.setLeafNumIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list18 = iprot.readListBegin();
struct.path = new java.util.ArrayList<java.lang.String>(_list18.size);
java.lang.String _elem19;
for (int _i20 = 0; _i20 < _list18.size; ++_i20)
{
_elem19 = iprot.readString();
struct.path.add(_elem19);
}
iprot.readListEnd();
}
struct.setPathIsSet(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();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}