public void write()

in library/src/main/java/com/theguardian/bridget/thrift/Gallery.java [846:874]


      public void write(org.apache.thrift.protocol.TProtocol prot, launchSlideshow_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetImages()) {
          optionals.set(0);
        }
        if (struct.isSetSelectedIndex()) {
          optionals.set(1);
        }
        if (struct.isSetArticleTitle()) {
          optionals.set(2);
        }
        oprot.writeBitSet(optionals, 3);
        if (struct.isSetImages()) {
          {
            oprot.writeI32(struct.images.size());
            for (Image _iter56 : struct.images)
            {
              _iter56.write(oprot);
            }
          }
        }
        if (struct.isSetSelectedIndex()) {
          oprot.writeI32(struct.selectedIndex);
        }
        if (struct.isSetArticleTitle()) {
          oprot.writeString(struct.articleTitle);
        }
      }