public void read()

in library/src/main/java/com/theguardian/bridget/thrift/Videos.java [1797:1835]


      public void read(org.apache.thrift.protocol.TProtocol iprot, updateVideos_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 _list68 = iprot.readListBegin();
                  struct.videoSlots = new java.util.ArrayList<VideoSlot>(_list68.size);
                  @org.apache.thrift.annotation.Nullable VideoSlot _elem69;
                  for (int _i70 = 0; _i70 < _list68.size; ++_i70)
                  {
                    _elem69 = new VideoSlot();
                    _elem69.read(iprot);
                    struct.videoSlots.add(_elem69);
                  }
                  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();
      }