public void write(org.apache.thrift.protocol.TProtocol oprot, TPrioritizeLoadRequest struct)
        throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.protocol_version != null) {
        oprot.writeFieldBegin(PROTOCOL_VERSION_FIELD_DESC);
        oprot.writeI32(struct.protocol_version.getValue());
        oprot.writeFieldEnd();
      }
      if (struct.header != null) {
        if (struct.isSetHeader()) {
          oprot.writeFieldBegin(HEADER_FIELD_DESC);
          struct.header.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.object_descs != null) {
        oprot.writeFieldBegin(OBJECT_DESCS_FIELD_DESC);
        {
          oprot.writeListBegin(
              new org.apache.thrift.protocol.TList(
                  org.apache.thrift.protocol.TType.STRUCT, struct.object_descs.size()));
          for (com.cloudera.impala.thrift.TCatalogObject _iter19 : struct.object_descs) {
            _iter19.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
    public void write(
        org.apache.thrift.protocol.TProtocol oprot, TGetAllCatalogObjectsResponse struct)
        throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(MAX_CATALOG_VERSION_FIELD_DESC);
      oprot.writeI64(struct.max_catalog_version);
      oprot.writeFieldEnd();
      if (struct.objects != null) {
        oprot.writeFieldBegin(OBJECTS_FIELD_DESC);
        {
          oprot.writeListBegin(
              new org.apache.thrift.protocol.TList(
                  org.apache.thrift.protocol.TType.STRUCT, struct.objects.size()));
          for (com.cloudera.impala.thrift.TCatalogObject _iter3 : struct.objects) {
            _iter3.write(oprot);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }
 @Override
 public void write(
     org.apache.thrift.protocol.TProtocol prot, TGetAllCatalogObjectsResponse struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   oprot.writeI64(struct.max_catalog_version);
   {
     oprot.writeI32(struct.objects.size());
     for (com.cloudera.impala.thrift.TCatalogObject _iter4 : struct.objects) {
       _iter4.write(oprot);
     }
   }
 }
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, TPrioritizeLoadRequest struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   oprot.writeI32(struct.protocol_version.getValue());
   {
     oprot.writeI32(struct.object_descs.size());
     for (com.cloudera.impala.thrift.TCatalogObject _iter20 : struct.object_descs) {
       _iter20.write(oprot);
     }
   }
   BitSet optionals = new BitSet();
   if (struct.isSetHeader()) {
     optionals.set(0);
   }
   oprot.writeBitSet(optionals, 1);
   if (struct.isSetHeader()) {
     struct.header.write(oprot);
   }
 }