public void read()

in library/src/main/java/com/theguardian/bridget/thrift/Gallery.java [749:803]


      public void read(org.apache.thrift.protocol.TProtocol iprot, launchSlideshow_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: // IMAGES
              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
                {
                  org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
                  struct.images = new java.util.ArrayList<Image>(_list52.size);
                  @org.apache.thrift.annotation.Nullable Image _elem53;
                  for (int _i54 = 0; _i54 < _list52.size; ++_i54)
                  {
                    _elem53 = new Image();
                    _elem53.read(iprot);
                    struct.images.add(_elem53);
                  }
                  iprot.readListEnd();
                }
                struct.setImagesIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case 2: // SELECTED_INDEX
              if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
                struct.selectedIndex = iprot.readI32();
                struct.setSelectedIndexIsSet(true);
              } else { 
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            case 3: // ARTICLE_TITLE
              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
                struct.articleTitle = iprot.readString();
                struct.setArticleTitleIsSet(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();
      }