Subversion Repositories SmartDukaan

Rev

Rev 19247 | Rev 19691 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19247 Rev 19686
Line 614... Line 614...
614
 
614
 
615
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
615
    public List<Long> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
616
 
616
 
617
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;
617
    public boolean updateItemPricing(List<ItemPricing> itemPricingList) throws org.apache.thrift.TException;
618
 
618
 
-
 
619
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException;
-
 
620
 
619
  }
621
  }
620
 
622
 
621
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
623
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
622
 
624
 
623
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
625
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 1012... Line 1014...
1012
 
1014
 
1013
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
1015
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
1014
 
1016
 
1015
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1017
    public void updateItemPricing(List<ItemPricing> itemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemPricing_call> resultHandler) throws org.apache.thrift.TException;
1016
 
1018
 
-
 
1019
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException;
-
 
1020
 
1017
  }
1021
  }
1018
 
1022
 
1019
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1023
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1020
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1024
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1021
      public Factory() {}
1025
      public Factory() {}
Line 5680... Line 5684...
5680
        return result.success;
5684
        return result.success;
5681
      }
5685
      }
5682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemPricing failed: unknown result");
5686
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemPricing failed: unknown result");
5683
    }
5687
    }
5684
 
5688
 
-
 
5689
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws CatalogServiceException, org.apache.thrift.TException
-
 
5690
    {
-
 
5691
      send_bulkUpdateCatalog(bulkUploadCatalog);
-
 
5692
      recv_bulkUpdateCatalog();
-
 
5693
    }
-
 
5694
 
-
 
5695
    public void send_bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog) throws org.apache.thrift.TException
-
 
5696
    {
-
 
5697
      bulkUpdateCatalog_args args = new bulkUpdateCatalog_args();
-
 
5698
      args.setBulkUploadCatalog(bulkUploadCatalog);
-
 
5699
      sendBase("bulkUpdateCatalog", args);
-
 
5700
    }
-
 
5701
 
-
 
5702
    public void recv_bulkUpdateCatalog() throws CatalogServiceException, org.apache.thrift.TException
-
 
5703
    {
-
 
5704
      bulkUpdateCatalog_result result = new bulkUpdateCatalog_result();
-
 
5705
      receiveBase(result, "bulkUpdateCatalog");
-
 
5706
      if (result.cex != null) {
-
 
5707
        throw result.cex;
-
 
5708
      }
-
 
5709
      return;
-
 
5710
    }
-
 
5711
 
5685
  }
5712
  }
5686
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5713
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5687
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5714
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5688
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5715
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5689
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5716
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12149... Line 12176...
12149
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12176
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12150
        return (new Client(prot)).recv_updateItemPricing();
12177
        return (new Client(prot)).recv_updateItemPricing();
12151
      }
12178
      }
12152
    }
12179
    }
12153
 
12180
 
-
 
12181
    public void bulkUpdateCatalog(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<bulkUpdateCatalog_call> resultHandler) throws org.apache.thrift.TException {
-
 
12182
      checkReady();
-
 
12183
      bulkUpdateCatalog_call method_call = new bulkUpdateCatalog_call(bulkUploadCatalog, resultHandler, this, ___protocolFactory, ___transport);
-
 
12184
      this.___currentMethod = method_call;
-
 
12185
      ___manager.call(method_call);
-
 
12186
    }
-
 
12187
 
-
 
12188
    public static class bulkUpdateCatalog_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12189
      private List<BulkUploadCatalog> bulkUploadCatalog;
-
 
12190
      public bulkUpdateCatalog_call(List<BulkUploadCatalog> bulkUploadCatalog, org.apache.thrift.async.AsyncMethodCallback<bulkUpdateCatalog_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
12191
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12192
        this.bulkUploadCatalog = bulkUploadCatalog;
-
 
12193
      }
-
 
12194
 
-
 
12195
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12196
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("bulkUpdateCatalog", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12197
        bulkUpdateCatalog_args args = new bulkUpdateCatalog_args();
-
 
12198
        args.setBulkUploadCatalog(bulkUploadCatalog);
-
 
12199
        args.write(prot);
-
 
12200
        prot.writeMessageEnd();
-
 
12201
      }
-
 
12202
 
-
 
12203
      public void getResult() throws CatalogServiceException, org.apache.thrift.TException {
-
 
12204
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12205
          throw new IllegalStateException("Method call not finished!");
-
 
12206
        }
-
 
12207
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12209
        (new Client(prot)).recv_bulkUpdateCatalog();
-
 
12210
      }
-
 
12211
    }
-
 
12212
 
12154
  }
12213
  }
12155
 
12214
 
12156
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12215
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12157
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12216
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12158
    public Processor(I iface) {
12217
    public Processor(I iface) {
Line 12359... Line 12418...
12359
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12418
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
12360
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12419
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
12361
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12420
      processMap.put("updateBulkPricesOnProduction", new updateBulkPricesOnProduction());
12362
      processMap.put("getCartByValue", new getCartByValue());
12421
      processMap.put("getCartByValue", new getCartByValue());
12363
      processMap.put("updateItemPricing", new updateItemPricing());
12422
      processMap.put("updateItemPricing", new updateItemPricing());
-
 
12423
      processMap.put("bulkUpdateCatalog", new bulkUpdateCatalog());
12364
      return processMap;
12424
      return processMap;
12365
    }
12425
    }
12366
 
12426
 
12367
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12427
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12368
      public addItem() {
12428
      public addItem() {
Line 15765... Line 15825...
15765
        result.setSuccessIsSet(true);
15825
        result.setSuccessIsSet(true);
15766
        return result;
15826
        return result;
15767
      }
15827
      }
15768
    }
15828
    }
15769
 
15829
 
-
 
15830
    private static class bulkUpdateCatalog<I extends Iface> extends org.apache.thrift.ProcessFunction<I, bulkUpdateCatalog_args> {
-
 
15831
      public bulkUpdateCatalog() {
-
 
15832
        super("bulkUpdateCatalog");
-
 
15833
      }
-
 
15834
 
-
 
15835
      protected bulkUpdateCatalog_args getEmptyArgsInstance() {
-
 
15836
        return new bulkUpdateCatalog_args();
-
 
15837
      }
-
 
15838
 
-
 
15839
      protected bulkUpdateCatalog_result getResult(I iface, bulkUpdateCatalog_args args) throws org.apache.thrift.TException {
-
 
15840
        bulkUpdateCatalog_result result = new bulkUpdateCatalog_result();
-
 
15841
        try {
-
 
15842
          iface.bulkUpdateCatalog(args.bulkUploadCatalog);
-
 
15843
        } catch (CatalogServiceException cex) {
-
 
15844
          result.cex = cex;
-
 
15845
        }
-
 
15846
        return result;
-
 
15847
      }
-
 
15848
    }
-
 
15849
 
15770
  }
15850
  }
15771
 
15851
 
15772
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15852
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15773
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15853
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15774
 
15854
 
Line 141708... Line 141788...
141708
      first = false;
141788
      first = false;
141709
      sb.append(")");
141789
      sb.append(")");
141710
      return sb.toString();
141790
      return sb.toString();
141711
    }
141791
    }
141712
 
141792
 
-
 
141793
    public void validate() throws org.apache.thrift.TException {
-
 
141794
      // check for required fields
-
 
141795
    }
-
 
141796
 
-
 
141797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
141798
      try {
-
 
141799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
141800
      } catch (org.apache.thrift.TException te) {
-
 
141801
        throw new java.io.IOException(te);
-
 
141802
      }
-
 
141803
    }
-
 
141804
 
-
 
141805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
141806
      try {
-
 
141807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
141808
      } catch (org.apache.thrift.TException te) {
-
 
141809
        throw new java.io.IOException(te);
-
 
141810
      }
-
 
141811
    }
-
 
141812
 
-
 
141813
  }
-
 
141814
 
-
 
141815
  public static class bulkUpdateCatalog_args implements org.apache.thrift.TBase<bulkUpdateCatalog_args, bulkUpdateCatalog_args._Fields>, java.io.Serializable, Cloneable   {
-
 
141816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("bulkUpdateCatalog_args");
-
 
141817
 
-
 
141818
    private static final org.apache.thrift.protocol.TField BULK_UPLOAD_CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkUploadCatalog", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
141819
 
-
 
141820
    private List<BulkUploadCatalog> bulkUploadCatalog; // required
-
 
141821
 
-
 
141822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
141823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
141824
      BULK_UPLOAD_CATALOG((short)1, "bulkUploadCatalog");
-
 
141825
 
-
 
141826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
141827
 
-
 
141828
      static {
-
 
141829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
141830
          byName.put(field.getFieldName(), field);
-
 
141831
        }
-
 
141832
      }
-
 
141833
 
-
 
141834
      /**
-
 
141835
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
141836
       */
-
 
141837
      public static _Fields findByThriftId(int fieldId) {
-
 
141838
        switch(fieldId) {
-
 
141839
          case 1: // BULK_UPLOAD_CATALOG
-
 
141840
            return BULK_UPLOAD_CATALOG;
-
 
141841
          default:
-
 
141842
            return null;
-
 
141843
        }
-
 
141844
      }
-
 
141845
 
-
 
141846
      /**
-
 
141847
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
141848
       * if it is not found.
-
 
141849
       */
-
 
141850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
141851
        _Fields fields = findByThriftId(fieldId);
-
 
141852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
141853
        return fields;
-
 
141854
      }
-
 
141855
 
-
 
141856
      /**
-
 
141857
       * Find the _Fields constant that matches name, or null if its not found.
-
 
141858
       */
-
 
141859
      public static _Fields findByName(String name) {
-
 
141860
        return byName.get(name);
-
 
141861
      }
-
 
141862
 
-
 
141863
      private final short _thriftId;
-
 
141864
      private final String _fieldName;
-
 
141865
 
-
 
141866
      _Fields(short thriftId, String fieldName) {
-
 
141867
        _thriftId = thriftId;
-
 
141868
        _fieldName = fieldName;
-
 
141869
      }
-
 
141870
 
-
 
141871
      public short getThriftFieldId() {
-
 
141872
        return _thriftId;
-
 
141873
      }
-
 
141874
 
-
 
141875
      public String getFieldName() {
-
 
141876
        return _fieldName;
-
 
141877
      }
-
 
141878
    }
-
 
141879
 
-
 
141880
    // isset id assignments
-
 
141881
 
-
 
141882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
141883
    static {
-
 
141884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
141885
      tmpMap.put(_Fields.BULK_UPLOAD_CATALOG, new org.apache.thrift.meta_data.FieldMetaData("bulkUploadCatalog", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
141886
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
141887
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkUploadCatalog.class))));
-
 
141888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
141889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(bulkUpdateCatalog_args.class, metaDataMap);
-
 
141890
    }
-
 
141891
 
-
 
141892
    public bulkUpdateCatalog_args() {
-
 
141893
    }
-
 
141894
 
-
 
141895
    public bulkUpdateCatalog_args(
-
 
141896
      List<BulkUploadCatalog> bulkUploadCatalog)
-
 
141897
    {
-
 
141898
      this();
-
 
141899
      this.bulkUploadCatalog = bulkUploadCatalog;
-
 
141900
    }
-
 
141901
 
-
 
141902
    /**
-
 
141903
     * Performs a deep copy on <i>other</i>.
-
 
141904
     */
-
 
141905
    public bulkUpdateCatalog_args(bulkUpdateCatalog_args other) {
-
 
141906
      if (other.isSetBulkUploadCatalog()) {
-
 
141907
        List<BulkUploadCatalog> __this__bulkUploadCatalog = new ArrayList<BulkUploadCatalog>();
-
 
141908
        for (BulkUploadCatalog other_element : other.bulkUploadCatalog) {
-
 
141909
          __this__bulkUploadCatalog.add(new BulkUploadCatalog(other_element));
-
 
141910
        }
-
 
141911
        this.bulkUploadCatalog = __this__bulkUploadCatalog;
-
 
141912
      }
-
 
141913
    }
-
 
141914
 
-
 
141915
    public bulkUpdateCatalog_args deepCopy() {
-
 
141916
      return new bulkUpdateCatalog_args(this);
-
 
141917
    }
-
 
141918
 
-
 
141919
    @Override
-
 
141920
    public void clear() {
-
 
141921
      this.bulkUploadCatalog = null;
-
 
141922
    }
-
 
141923
 
-
 
141924
    public int getBulkUploadCatalogSize() {
-
 
141925
      return (this.bulkUploadCatalog == null) ? 0 : this.bulkUploadCatalog.size();
-
 
141926
    }
-
 
141927
 
-
 
141928
    public java.util.Iterator<BulkUploadCatalog> getBulkUploadCatalogIterator() {
-
 
141929
      return (this.bulkUploadCatalog == null) ? null : this.bulkUploadCatalog.iterator();
-
 
141930
    }
-
 
141931
 
-
 
141932
    public void addToBulkUploadCatalog(BulkUploadCatalog elem) {
-
 
141933
      if (this.bulkUploadCatalog == null) {
-
 
141934
        this.bulkUploadCatalog = new ArrayList<BulkUploadCatalog>();
-
 
141935
      }
-
 
141936
      this.bulkUploadCatalog.add(elem);
-
 
141937
    }
-
 
141938
 
-
 
141939
    public List<BulkUploadCatalog> getBulkUploadCatalog() {
-
 
141940
      return this.bulkUploadCatalog;
-
 
141941
    }
-
 
141942
 
-
 
141943
    public void setBulkUploadCatalog(List<BulkUploadCatalog> bulkUploadCatalog) {
-
 
141944
      this.bulkUploadCatalog = bulkUploadCatalog;
-
 
141945
    }
-
 
141946
 
-
 
141947
    public void unsetBulkUploadCatalog() {
-
 
141948
      this.bulkUploadCatalog = null;
-
 
141949
    }
-
 
141950
 
-
 
141951
    /** Returns true if field bulkUploadCatalog is set (has been assigned a value) and false otherwise */
-
 
141952
    public boolean isSetBulkUploadCatalog() {
-
 
141953
      return this.bulkUploadCatalog != null;
-
 
141954
    }
-
 
141955
 
-
 
141956
    public void setBulkUploadCatalogIsSet(boolean value) {
-
 
141957
      if (!value) {
-
 
141958
        this.bulkUploadCatalog = null;
-
 
141959
      }
-
 
141960
    }
-
 
141961
 
-
 
141962
    public void setFieldValue(_Fields field, Object value) {
-
 
141963
      switch (field) {
-
 
141964
      case BULK_UPLOAD_CATALOG:
-
 
141965
        if (value == null) {
-
 
141966
          unsetBulkUploadCatalog();
-
 
141967
        } else {
-
 
141968
          setBulkUploadCatalog((List<BulkUploadCatalog>)value);
-
 
141969
        }
-
 
141970
        break;
-
 
141971
 
-
 
141972
      }
-
 
141973
    }
-
 
141974
 
-
 
141975
    public Object getFieldValue(_Fields field) {
-
 
141976
      switch (field) {
-
 
141977
      case BULK_UPLOAD_CATALOG:
-
 
141978
        return getBulkUploadCatalog();
-
 
141979
 
-
 
141980
      }
-
 
141981
      throw new IllegalStateException();
-
 
141982
    }
-
 
141983
 
-
 
141984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
141985
    public boolean isSet(_Fields field) {
-
 
141986
      if (field == null) {
-
 
141987
        throw new IllegalArgumentException();
-
 
141988
      }
-
 
141989
 
-
 
141990
      switch (field) {
-
 
141991
      case BULK_UPLOAD_CATALOG:
-
 
141992
        return isSetBulkUploadCatalog();
-
 
141993
      }
-
 
141994
      throw new IllegalStateException();
-
 
141995
    }
-
 
141996
 
-
 
141997
    @Override
-
 
141998
    public boolean equals(Object that) {
-
 
141999
      if (that == null)
-
 
142000
        return false;
-
 
142001
      if (that instanceof bulkUpdateCatalog_args)
-
 
142002
        return this.equals((bulkUpdateCatalog_args)that);
-
 
142003
      return false;
-
 
142004
    }
-
 
142005
 
-
 
142006
    public boolean equals(bulkUpdateCatalog_args that) {
-
 
142007
      if (that == null)
-
 
142008
        return false;
-
 
142009
 
-
 
142010
      boolean this_present_bulkUploadCatalog = true && this.isSetBulkUploadCatalog();
-
 
142011
      boolean that_present_bulkUploadCatalog = true && that.isSetBulkUploadCatalog();
-
 
142012
      if (this_present_bulkUploadCatalog || that_present_bulkUploadCatalog) {
-
 
142013
        if (!(this_present_bulkUploadCatalog && that_present_bulkUploadCatalog))
-
 
142014
          return false;
-
 
142015
        if (!this.bulkUploadCatalog.equals(that.bulkUploadCatalog))
-
 
142016
          return false;
-
 
142017
      }
-
 
142018
 
-
 
142019
      return true;
-
 
142020
    }
-
 
142021
 
-
 
142022
    @Override
-
 
142023
    public int hashCode() {
-
 
142024
      return 0;
-
 
142025
    }
-
 
142026
 
-
 
142027
    public int compareTo(bulkUpdateCatalog_args other) {
-
 
142028
      if (!getClass().equals(other.getClass())) {
-
 
142029
        return getClass().getName().compareTo(other.getClass().getName());
-
 
142030
      }
-
 
142031
 
-
 
142032
      int lastComparison = 0;
-
 
142033
      bulkUpdateCatalog_args typedOther = (bulkUpdateCatalog_args)other;
-
 
142034
 
-
 
142035
      lastComparison = Boolean.valueOf(isSetBulkUploadCatalog()).compareTo(typedOther.isSetBulkUploadCatalog());
-
 
142036
      if (lastComparison != 0) {
-
 
142037
        return lastComparison;
-
 
142038
      }
-
 
142039
      if (isSetBulkUploadCatalog()) {
-
 
142040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkUploadCatalog, typedOther.bulkUploadCatalog);
-
 
142041
        if (lastComparison != 0) {
-
 
142042
          return lastComparison;
-
 
142043
        }
-
 
142044
      }
-
 
142045
      return 0;
-
 
142046
    }
-
 
142047
 
-
 
142048
    public _Fields fieldForId(int fieldId) {
-
 
142049
      return _Fields.findByThriftId(fieldId);
-
 
142050
    }
-
 
142051
 
-
 
142052
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
142053
      org.apache.thrift.protocol.TField field;
-
 
142054
      iprot.readStructBegin();
-
 
142055
      while (true)
-
 
142056
      {
-
 
142057
        field = iprot.readFieldBegin();
-
 
142058
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
142059
          break;
-
 
142060
        }
-
 
142061
        switch (field.id) {
-
 
142062
          case 1: // BULK_UPLOAD_CATALOG
-
 
142063
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
142064
              {
-
 
142065
                org.apache.thrift.protocol.TList _list530 = iprot.readListBegin();
-
 
142066
                this.bulkUploadCatalog = new ArrayList<BulkUploadCatalog>(_list530.size);
-
 
142067
                for (int _i531 = 0; _i531 < _list530.size; ++_i531)
-
 
142068
                {
-
 
142069
                  BulkUploadCatalog _elem532; // required
-
 
142070
                  _elem532 = new BulkUploadCatalog();
-
 
142071
                  _elem532.read(iprot);
-
 
142072
                  this.bulkUploadCatalog.add(_elem532);
-
 
142073
                }
-
 
142074
                iprot.readListEnd();
-
 
142075
              }
-
 
142076
            } else { 
-
 
142077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142078
            }
-
 
142079
            break;
-
 
142080
          default:
-
 
142081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142082
        }
-
 
142083
        iprot.readFieldEnd();
-
 
142084
      }
-
 
142085
      iprot.readStructEnd();
-
 
142086
      validate();
-
 
142087
    }
-
 
142088
 
-
 
142089
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
142090
      validate();
-
 
142091
 
-
 
142092
      oprot.writeStructBegin(STRUCT_DESC);
-
 
142093
      if (this.bulkUploadCatalog != null) {
-
 
142094
        oprot.writeFieldBegin(BULK_UPLOAD_CATALOG_FIELD_DESC);
-
 
142095
        {
-
 
142096
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkUploadCatalog.size()));
-
 
142097
          for (BulkUploadCatalog _iter533 : this.bulkUploadCatalog)
-
 
142098
          {
-
 
142099
            _iter533.write(oprot);
-
 
142100
          }
-
 
142101
          oprot.writeListEnd();
-
 
142102
        }
-
 
142103
        oprot.writeFieldEnd();
-
 
142104
      }
-
 
142105
      oprot.writeFieldStop();
-
 
142106
      oprot.writeStructEnd();
-
 
142107
    }
-
 
142108
 
-
 
142109
    @Override
-
 
142110
    public String toString() {
-
 
142111
      StringBuilder sb = new StringBuilder("bulkUpdateCatalog_args(");
-
 
142112
      boolean first = true;
-
 
142113
 
-
 
142114
      sb.append("bulkUploadCatalog:");
-
 
142115
      if (this.bulkUploadCatalog == null) {
-
 
142116
        sb.append("null");
-
 
142117
      } else {
-
 
142118
        sb.append(this.bulkUploadCatalog);
-
 
142119
      }
-
 
142120
      first = false;
-
 
142121
      sb.append(")");
-
 
142122
      return sb.toString();
-
 
142123
    }
-
 
142124
 
-
 
142125
    public void validate() throws org.apache.thrift.TException {
-
 
142126
      // check for required fields
-
 
142127
    }
-
 
142128
 
-
 
142129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
142130
      try {
-
 
142131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
142132
      } catch (org.apache.thrift.TException te) {
-
 
142133
        throw new java.io.IOException(te);
-
 
142134
      }
-
 
142135
    }
-
 
142136
 
-
 
142137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
142138
      try {
-
 
142139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
142140
      } catch (org.apache.thrift.TException te) {
-
 
142141
        throw new java.io.IOException(te);
-
 
142142
      }
-
 
142143
    }
-
 
142144
 
-
 
142145
  }
-
 
142146
 
-
 
142147
  public static class bulkUpdateCatalog_result implements org.apache.thrift.TBase<bulkUpdateCatalog_result, bulkUpdateCatalog_result._Fields>, java.io.Serializable, Cloneable   {
-
 
142148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("bulkUpdateCatalog_result");
-
 
142149
 
-
 
142150
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
142151
 
-
 
142152
    private CatalogServiceException cex; // required
-
 
142153
 
-
 
142154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
142155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
142156
      CEX((short)1, "cex");
-
 
142157
 
-
 
142158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
142159
 
-
 
142160
      static {
-
 
142161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
142162
          byName.put(field.getFieldName(), field);
-
 
142163
        }
-
 
142164
      }
-
 
142165
 
-
 
142166
      /**
-
 
142167
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
142168
       */
-
 
142169
      public static _Fields findByThriftId(int fieldId) {
-
 
142170
        switch(fieldId) {
-
 
142171
          case 1: // CEX
-
 
142172
            return CEX;
-
 
142173
          default:
-
 
142174
            return null;
-
 
142175
        }
-
 
142176
      }
-
 
142177
 
-
 
142178
      /**
-
 
142179
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
142180
       * if it is not found.
-
 
142181
       */
-
 
142182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
142183
        _Fields fields = findByThriftId(fieldId);
-
 
142184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
142185
        return fields;
-
 
142186
      }
-
 
142187
 
-
 
142188
      /**
-
 
142189
       * Find the _Fields constant that matches name, or null if its not found.
-
 
142190
       */
-
 
142191
      public static _Fields findByName(String name) {
-
 
142192
        return byName.get(name);
-
 
142193
      }
-
 
142194
 
-
 
142195
      private final short _thriftId;
-
 
142196
      private final String _fieldName;
-
 
142197
 
-
 
142198
      _Fields(short thriftId, String fieldName) {
-
 
142199
        _thriftId = thriftId;
-
 
142200
        _fieldName = fieldName;
-
 
142201
      }
-
 
142202
 
-
 
142203
      public short getThriftFieldId() {
-
 
142204
        return _thriftId;
-
 
142205
      }
-
 
142206
 
-
 
142207
      public String getFieldName() {
-
 
142208
        return _fieldName;
-
 
142209
      }
-
 
142210
    }
-
 
142211
 
-
 
142212
    // isset id assignments
-
 
142213
 
-
 
142214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
142215
    static {
-
 
142216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
142217
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
142219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
142220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(bulkUpdateCatalog_result.class, metaDataMap);
-
 
142221
    }
-
 
142222
 
-
 
142223
    public bulkUpdateCatalog_result() {
-
 
142224
    }
-
 
142225
 
-
 
142226
    public bulkUpdateCatalog_result(
-
 
142227
      CatalogServiceException cex)
-
 
142228
    {
-
 
142229
      this();
-
 
142230
      this.cex = cex;
-
 
142231
    }
-
 
142232
 
-
 
142233
    /**
-
 
142234
     * Performs a deep copy on <i>other</i>.
-
 
142235
     */
-
 
142236
    public bulkUpdateCatalog_result(bulkUpdateCatalog_result other) {
-
 
142237
      if (other.isSetCex()) {
-
 
142238
        this.cex = new CatalogServiceException(other.cex);
-
 
142239
      }
-
 
142240
    }
-
 
142241
 
-
 
142242
    public bulkUpdateCatalog_result deepCopy() {
-
 
142243
      return new bulkUpdateCatalog_result(this);
-
 
142244
    }
-
 
142245
 
-
 
142246
    @Override
-
 
142247
    public void clear() {
-
 
142248
      this.cex = null;
-
 
142249
    }
-
 
142250
 
-
 
142251
    public CatalogServiceException getCex() {
-
 
142252
      return this.cex;
-
 
142253
    }
-
 
142254
 
-
 
142255
    public void setCex(CatalogServiceException cex) {
-
 
142256
      this.cex = cex;
-
 
142257
    }
-
 
142258
 
-
 
142259
    public void unsetCex() {
-
 
142260
      this.cex = null;
-
 
142261
    }
-
 
142262
 
-
 
142263
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
142264
    public boolean isSetCex() {
-
 
142265
      return this.cex != null;
-
 
142266
    }
-
 
142267
 
-
 
142268
    public void setCexIsSet(boolean value) {
-
 
142269
      if (!value) {
-
 
142270
        this.cex = null;
-
 
142271
      }
-
 
142272
    }
-
 
142273
 
-
 
142274
    public void setFieldValue(_Fields field, Object value) {
-
 
142275
      switch (field) {
-
 
142276
      case CEX:
-
 
142277
        if (value == null) {
-
 
142278
          unsetCex();
-
 
142279
        } else {
-
 
142280
          setCex((CatalogServiceException)value);
-
 
142281
        }
-
 
142282
        break;
-
 
142283
 
-
 
142284
      }
-
 
142285
    }
-
 
142286
 
-
 
142287
    public Object getFieldValue(_Fields field) {
-
 
142288
      switch (field) {
-
 
142289
      case CEX:
-
 
142290
        return getCex();
-
 
142291
 
-
 
142292
      }
-
 
142293
      throw new IllegalStateException();
-
 
142294
    }
-
 
142295
 
-
 
142296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
142297
    public boolean isSet(_Fields field) {
-
 
142298
      if (field == null) {
-
 
142299
        throw new IllegalArgumentException();
-
 
142300
      }
-
 
142301
 
-
 
142302
      switch (field) {
-
 
142303
      case CEX:
-
 
142304
        return isSetCex();
-
 
142305
      }
-
 
142306
      throw new IllegalStateException();
-
 
142307
    }
-
 
142308
 
-
 
142309
    @Override
-
 
142310
    public boolean equals(Object that) {
-
 
142311
      if (that == null)
-
 
142312
        return false;
-
 
142313
      if (that instanceof bulkUpdateCatalog_result)
-
 
142314
        return this.equals((bulkUpdateCatalog_result)that);
-
 
142315
      return false;
-
 
142316
    }
-
 
142317
 
-
 
142318
    public boolean equals(bulkUpdateCatalog_result that) {
-
 
142319
      if (that == null)
-
 
142320
        return false;
-
 
142321
 
-
 
142322
      boolean this_present_cex = true && this.isSetCex();
-
 
142323
      boolean that_present_cex = true && that.isSetCex();
-
 
142324
      if (this_present_cex || that_present_cex) {
-
 
142325
        if (!(this_present_cex && that_present_cex))
-
 
142326
          return false;
-
 
142327
        if (!this.cex.equals(that.cex))
-
 
142328
          return false;
-
 
142329
      }
-
 
142330
 
-
 
142331
      return true;
-
 
142332
    }
-
 
142333
 
-
 
142334
    @Override
-
 
142335
    public int hashCode() {
-
 
142336
      return 0;
-
 
142337
    }
-
 
142338
 
-
 
142339
    public int compareTo(bulkUpdateCatalog_result other) {
-
 
142340
      if (!getClass().equals(other.getClass())) {
-
 
142341
        return getClass().getName().compareTo(other.getClass().getName());
-
 
142342
      }
-
 
142343
 
-
 
142344
      int lastComparison = 0;
-
 
142345
      bulkUpdateCatalog_result typedOther = (bulkUpdateCatalog_result)other;
-
 
142346
 
-
 
142347
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
142348
      if (lastComparison != 0) {
-
 
142349
        return lastComparison;
-
 
142350
      }
-
 
142351
      if (isSetCex()) {
-
 
142352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
142353
        if (lastComparison != 0) {
-
 
142354
          return lastComparison;
-
 
142355
        }
-
 
142356
      }
-
 
142357
      return 0;
-
 
142358
    }
-
 
142359
 
-
 
142360
    public _Fields fieldForId(int fieldId) {
-
 
142361
      return _Fields.findByThriftId(fieldId);
-
 
142362
    }
-
 
142363
 
-
 
142364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
142365
      org.apache.thrift.protocol.TField field;
-
 
142366
      iprot.readStructBegin();
-
 
142367
      while (true)
-
 
142368
      {
-
 
142369
        field = iprot.readFieldBegin();
-
 
142370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
142371
          break;
-
 
142372
        }
-
 
142373
        switch (field.id) {
-
 
142374
          case 1: // CEX
-
 
142375
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
142376
              this.cex = new CatalogServiceException();
-
 
142377
              this.cex.read(iprot);
-
 
142378
            } else { 
-
 
142379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142380
            }
-
 
142381
            break;
-
 
142382
          default:
-
 
142383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
142384
        }
-
 
142385
        iprot.readFieldEnd();
-
 
142386
      }
-
 
142387
      iprot.readStructEnd();
-
 
142388
      validate();
-
 
142389
    }
-
 
142390
 
-
 
142391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
142392
      oprot.writeStructBegin(STRUCT_DESC);
-
 
142393
 
-
 
142394
      if (this.isSetCex()) {
-
 
142395
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
142396
        this.cex.write(oprot);
-
 
142397
        oprot.writeFieldEnd();
-
 
142398
      }
-
 
142399
      oprot.writeFieldStop();
-
 
142400
      oprot.writeStructEnd();
-
 
142401
    }
-
 
142402
 
-
 
142403
    @Override
-
 
142404
    public String toString() {
-
 
142405
      StringBuilder sb = new StringBuilder("bulkUpdateCatalog_result(");
-
 
142406
      boolean first = true;
-
 
142407
 
-
 
142408
      sb.append("cex:");
-
 
142409
      if (this.cex == null) {
-
 
142410
        sb.append("null");
-
 
142411
      } else {
-
 
142412
        sb.append(this.cex);
-
 
142413
      }
-
 
142414
      first = false;
-
 
142415
      sb.append(")");
-
 
142416
      return sb.toString();
-
 
142417
    }
-
 
142418
 
141713
    public void validate() throws org.apache.thrift.TException {
142419
    public void validate() throws org.apache.thrift.TException {
141714
      // check for required fields
142420
      // check for required fields
141715
    }
142421
    }
141716
 
142422
 
141717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
142423
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {