in library/src/main/java/com/theguardian/bridget/thrift/Videos.java [1098:1136]
public void read(org.apache.thrift.protocol.TProtocol iprot, insertVideos_args 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: // VIDEO_SLOTS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
struct.videoSlots = new java.util.ArrayList<VideoSlot>(_list60.size);
@org.apache.thrift.annotation.Nullable VideoSlot _elem61;
for (int _i62 = 0; _i62 < _list60.size; ++_i62)
{
_elem61 = new VideoSlot();
_elem61.read(iprot);
struct.videoSlots.add(_elem61);
}
iprot.readListEnd();
}
struct.setVideoSlotsIsSet(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();
}