Subversion Repositories SmartDukaan

Rev

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

Rev 14182 Rev 14363
Line 594... Line 594...
594
 
594
 
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
595
    public void updateHsItem(HsItem hsItem) throws org.apache.thrift.TException;
596
 
596
 
597
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;
597
    public Item getPricingForDtr(long catalogItemId) throws org.apache.thrift.TException;
598
 
598
 
-
 
599
    public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException;
-
 
600
 
599
  }
601
  }
600
 
602
 
601
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
603
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
602
 
604
 
603
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
605
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 972... Line 974...
972
 
974
 
973
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
975
    public void updateHsItem(HsItem hsItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHsItem_call> resultHandler) throws org.apache.thrift.TException;
974
 
976
 
975
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
977
    public void getPricingForDtr(long catalogItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPricingForDtr_call> resultHandler) throws org.apache.thrift.TException;
976
 
978
 
-
 
979
    public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestPricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
980
 
977
  }
981
  }
978
 
982
 
979
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
983
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
980
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
984
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
981
      public Factory() {}
985
      public Factory() {}
Line 5411... Line 5415...
5411
        return result.success;
5415
        return result.success;
5412
      }
5416
      }
5413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
5417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPricingForDtr failed: unknown result");
5414
    }
5418
    }
5415
 
5419
 
-
 
5420
    public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
-
 
5421
    {
-
 
5422
      send_getLatestPricing(skuBundleId, source_id);
-
 
5423
      return recv_getLatestPricing();
-
 
5424
    }
-
 
5425
 
-
 
5426
    public void send_getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
-
 
5427
    {
-
 
5428
      getLatestPricing_args args = new getLatestPricing_args();
-
 
5429
      args.setSkuBundleId(skuBundleId);
-
 
5430
      args.setSource_id(source_id);
-
 
5431
      sendBase("getLatestPricing", args);
-
 
5432
    }
-
 
5433
 
-
 
5434
    public List<LivePricing> recv_getLatestPricing() throws org.apache.thrift.TException
-
 
5435
    {
-
 
5436
      getLatestPricing_result result = new getLatestPricing_result();
-
 
5437
      receiveBase(result, "getLatestPricing");
-
 
5438
      if (result.isSetSuccess()) {
-
 
5439
        return result.success;
-
 
5440
      }
-
 
5441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestPricing failed: unknown result");
-
 
5442
    }
-
 
5443
 
5416
  }
5444
  }
5417
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5445
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5418
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5446
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5419
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5447
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5420
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5448
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11563... Line 11591...
11563
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11591
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11564
        return (new Client(prot)).recv_getPricingForDtr();
11592
        return (new Client(prot)).recv_getPricingForDtr();
11565
      }
11593
      }
11566
    }
11594
    }
11567
 
11595
 
-
 
11596
    public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<getLatestPricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
11597
      checkReady();
-
 
11598
      getLatestPricing_call method_call = new getLatestPricing_call(skuBundleId, source_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
11599
      this.___currentMethod = method_call;
-
 
11600
      ___manager.call(method_call);
-
 
11601
    }
-
 
11602
 
-
 
11603
    public static class getLatestPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11604
      private long skuBundleId;
-
 
11605
      private long source_id;
-
 
11606
      public getLatestPricing_call(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<getLatestPricing_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 {
-
 
11607
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11608
        this.skuBundleId = skuBundleId;
-
 
11609
        this.source_id = source_id;
-
 
11610
      }
-
 
11611
 
-
 
11612
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11613
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11614
        getLatestPricing_args args = new getLatestPricing_args();
-
 
11615
        args.setSkuBundleId(skuBundleId);
-
 
11616
        args.setSource_id(source_id);
-
 
11617
        args.write(prot);
-
 
11618
        prot.writeMessageEnd();
-
 
11619
      }
-
 
11620
 
-
 
11621
      public List<LivePricing> getResult() throws org.apache.thrift.TException {
-
 
11622
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11623
          throw new IllegalStateException("Method call not finished!");
-
 
11624
        }
-
 
11625
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11626
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11627
        return (new Client(prot)).recv_getLatestPricing();
-
 
11628
      }
-
 
11629
    }
-
 
11630
 
11568
  }
11631
  }
11569
 
11632
 
11570
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11633
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11571
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11634
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11572
    public Processor(I iface) {
11635
    public Processor(I iface) {
Line 11763... Line 11826...
11763
      processMap.put("checkServices", new checkServices());
11826
      processMap.put("checkServices", new checkServices());
11764
      processMap.put("addHsItem", new addHsItem());
11827
      processMap.put("addHsItem", new addHsItem());
11765
      processMap.put("getHsItem", new getHsItem());
11828
      processMap.put("getHsItem", new getHsItem());
11766
      processMap.put("updateHsItem", new updateHsItem());
11829
      processMap.put("updateHsItem", new updateHsItem());
11767
      processMap.put("getPricingForDtr", new getPricingForDtr());
11830
      processMap.put("getPricingForDtr", new getPricingForDtr());
-
 
11831
      processMap.put("getLatestPricing", new getLatestPricing());
11768
      return processMap;
11832
      return processMap;
11769
    }
11833
    }
11770
 
11834
 
11771
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11835
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11772
      public addItem() {
11836
      public addItem() {
Line 15005... Line 15069...
15005
        result.success = iface.getPricingForDtr(args.catalogItemId);
15069
        result.success = iface.getPricingForDtr(args.catalogItemId);
15006
        return result;
15070
        return result;
15007
      }
15071
      }
15008
    }
15072
    }
15009
 
15073
 
-
 
15074
    private static class getLatestPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestPricing_args> {
-
 
15075
      public getLatestPricing() {
-
 
15076
        super("getLatestPricing");
-
 
15077
      }
-
 
15078
 
-
 
15079
      protected getLatestPricing_args getEmptyArgsInstance() {
-
 
15080
        return new getLatestPricing_args();
-
 
15081
      }
-
 
15082
 
-
 
15083
      protected getLatestPricing_result getResult(I iface, getLatestPricing_args args) throws org.apache.thrift.TException {
-
 
15084
        getLatestPricing_result result = new getLatestPricing_result();
-
 
15085
        result.success = iface.getLatestPricing(args.skuBundleId, args.source_id);
-
 
15086
        return result;
-
 
15087
      }
-
 
15088
    }
-
 
15089
 
15010
  }
15090
  }
15011
 
15091
 
15012
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15092
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15093
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15014
 
15094
 
Line 134800... Line 134880...
134800
      boolean first = true;
134880
      boolean first = true;
134801
 
134881
 
134802
      sb.append("success:");
134882
      sb.append("success:");
134803
      if (this.success == null) {
134883
      if (this.success == null) {
134804
        sb.append("null");
134884
        sb.append("null");
-
 
134885
      } else {
-
 
134886
        sb.append(this.success);
-
 
134887
      }
-
 
134888
      first = false;
-
 
134889
      sb.append(")");
-
 
134890
      return sb.toString();
-
 
134891
    }
-
 
134892
 
-
 
134893
    public void validate() throws org.apache.thrift.TException {
-
 
134894
      // check for required fields
-
 
134895
    }
-
 
134896
 
-
 
134897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134898
      try {
-
 
134899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134900
      } catch (org.apache.thrift.TException te) {
-
 
134901
        throw new java.io.IOException(te);
-
 
134902
      }
-
 
134903
    }
-
 
134904
 
-
 
134905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134906
      try {
-
 
134907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134908
      } catch (org.apache.thrift.TException te) {
-
 
134909
        throw new java.io.IOException(te);
-
 
134910
      }
-
 
134911
    }
-
 
134912
 
-
 
134913
  }
-
 
134914
 
-
 
134915
  public static class getLatestPricing_args implements org.apache.thrift.TBase<getLatestPricing_args, getLatestPricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
134916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_args");
-
 
134917
 
-
 
134918
    private static final org.apache.thrift.protocol.TField SKU_BUNDLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("skuBundleId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
134919
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
134920
 
-
 
134921
    private long skuBundleId; // required
-
 
134922
    private long source_id; // required
-
 
134923
 
-
 
134924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134926
      SKU_BUNDLE_ID((short)1, "skuBundleId"),
-
 
134927
      SOURCE_ID((short)2, "source_id");
-
 
134928
 
-
 
134929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134930
 
-
 
134931
      static {
-
 
134932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134933
          byName.put(field.getFieldName(), field);
-
 
134934
        }
-
 
134935
      }
-
 
134936
 
-
 
134937
      /**
-
 
134938
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134939
       */
-
 
134940
      public static _Fields findByThriftId(int fieldId) {
-
 
134941
        switch(fieldId) {
-
 
134942
          case 1: // SKU_BUNDLE_ID
-
 
134943
            return SKU_BUNDLE_ID;
-
 
134944
          case 2: // SOURCE_ID
-
 
134945
            return SOURCE_ID;
-
 
134946
          default:
-
 
134947
            return null;
-
 
134948
        }
-
 
134949
      }
-
 
134950
 
-
 
134951
      /**
-
 
134952
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134953
       * if it is not found.
-
 
134954
       */
-
 
134955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134956
        _Fields fields = findByThriftId(fieldId);
-
 
134957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134958
        return fields;
-
 
134959
      }
-
 
134960
 
-
 
134961
      /**
-
 
134962
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134963
       */
-
 
134964
      public static _Fields findByName(String name) {
-
 
134965
        return byName.get(name);
-
 
134966
      }
-
 
134967
 
-
 
134968
      private final short _thriftId;
-
 
134969
      private final String _fieldName;
-
 
134970
 
-
 
134971
      _Fields(short thriftId, String fieldName) {
-
 
134972
        _thriftId = thriftId;
-
 
134973
        _fieldName = fieldName;
-
 
134974
      }
-
 
134975
 
-
 
134976
      public short getThriftFieldId() {
-
 
134977
        return _thriftId;
-
 
134978
      }
-
 
134979
 
-
 
134980
      public String getFieldName() {
-
 
134981
        return _fieldName;
-
 
134982
      }
-
 
134983
    }
-
 
134984
 
-
 
134985
    // isset id assignments
-
 
134986
    private static final int __SKUBUNDLEID_ISSET_ID = 0;
-
 
134987
    private static final int __SOURCE_ID_ISSET_ID = 1;
-
 
134988
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
134989
 
-
 
134990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134991
    static {
-
 
134992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134993
      tmpMap.put(_Fields.SKU_BUNDLE_ID, new org.apache.thrift.meta_data.FieldMetaData("skuBundleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134995
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134997
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134998
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_args.class, metaDataMap);
-
 
134999
    }
-
 
135000
 
-
 
135001
    public getLatestPricing_args() {
-
 
135002
    }
-
 
135003
 
-
 
135004
    public getLatestPricing_args(
-
 
135005
      long skuBundleId,
-
 
135006
      long source_id)
-
 
135007
    {
-
 
135008
      this();
-
 
135009
      this.skuBundleId = skuBundleId;
-
 
135010
      setSkuBundleIdIsSet(true);
-
 
135011
      this.source_id = source_id;
-
 
135012
      setSource_idIsSet(true);
-
 
135013
    }
-
 
135014
 
-
 
135015
    /**
-
 
135016
     * Performs a deep copy on <i>other</i>.
-
 
135017
     */
-
 
135018
    public getLatestPricing_args(getLatestPricing_args other) {
-
 
135019
      __isset_bit_vector.clear();
-
 
135020
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
135021
      this.skuBundleId = other.skuBundleId;
-
 
135022
      this.source_id = other.source_id;
-
 
135023
    }
-
 
135024
 
-
 
135025
    public getLatestPricing_args deepCopy() {
-
 
135026
      return new getLatestPricing_args(this);
-
 
135027
    }
-
 
135028
 
-
 
135029
    @Override
-
 
135030
    public void clear() {
-
 
135031
      setSkuBundleIdIsSet(false);
-
 
135032
      this.skuBundleId = 0;
-
 
135033
      setSource_idIsSet(false);
-
 
135034
      this.source_id = 0;
-
 
135035
    }
-
 
135036
 
-
 
135037
    public long getSkuBundleId() {
-
 
135038
      return this.skuBundleId;
-
 
135039
    }
-
 
135040
 
-
 
135041
    public void setSkuBundleId(long skuBundleId) {
-
 
135042
      this.skuBundleId = skuBundleId;
-
 
135043
      setSkuBundleIdIsSet(true);
-
 
135044
    }
-
 
135045
 
-
 
135046
    public void unsetSkuBundleId() {
-
 
135047
      __isset_bit_vector.clear(__SKUBUNDLEID_ISSET_ID);
-
 
135048
    }
-
 
135049
 
-
 
135050
    /** Returns true if field skuBundleId is set (has been assigned a value) and false otherwise */
-
 
135051
    public boolean isSetSkuBundleId() {
-
 
135052
      return __isset_bit_vector.get(__SKUBUNDLEID_ISSET_ID);
-
 
135053
    }
-
 
135054
 
-
 
135055
    public void setSkuBundleIdIsSet(boolean value) {
-
 
135056
      __isset_bit_vector.set(__SKUBUNDLEID_ISSET_ID, value);
-
 
135057
    }
-
 
135058
 
-
 
135059
    public long getSource_id() {
-
 
135060
      return this.source_id;
-
 
135061
    }
-
 
135062
 
-
 
135063
    public void setSource_id(long source_id) {
-
 
135064
      this.source_id = source_id;
-
 
135065
      setSource_idIsSet(true);
-
 
135066
    }
-
 
135067
 
-
 
135068
    public void unsetSource_id() {
-
 
135069
      __isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
-
 
135070
    }
-
 
135071
 
-
 
135072
    /** Returns true if field source_id is set (has been assigned a value) and false otherwise */
-
 
135073
    public boolean isSetSource_id() {
-
 
135074
      return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
-
 
135075
    }
-
 
135076
 
-
 
135077
    public void setSource_idIsSet(boolean value) {
-
 
135078
      __isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
-
 
135079
    }
-
 
135080
 
-
 
135081
    public void setFieldValue(_Fields field, Object value) {
-
 
135082
      switch (field) {
-
 
135083
      case SKU_BUNDLE_ID:
-
 
135084
        if (value == null) {
-
 
135085
          unsetSkuBundleId();
-
 
135086
        } else {
-
 
135087
          setSkuBundleId((Long)value);
-
 
135088
        }
-
 
135089
        break;
-
 
135090
 
-
 
135091
      case SOURCE_ID:
-
 
135092
        if (value == null) {
-
 
135093
          unsetSource_id();
-
 
135094
        } else {
-
 
135095
          setSource_id((Long)value);
-
 
135096
        }
-
 
135097
        break;
-
 
135098
 
-
 
135099
      }
-
 
135100
    }
-
 
135101
 
-
 
135102
    public Object getFieldValue(_Fields field) {
-
 
135103
      switch (field) {
-
 
135104
      case SKU_BUNDLE_ID:
-
 
135105
        return Long.valueOf(getSkuBundleId());
-
 
135106
 
-
 
135107
      case SOURCE_ID:
-
 
135108
        return Long.valueOf(getSource_id());
-
 
135109
 
-
 
135110
      }
-
 
135111
      throw new IllegalStateException();
-
 
135112
    }
-
 
135113
 
-
 
135114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135115
    public boolean isSet(_Fields field) {
-
 
135116
      if (field == null) {
-
 
135117
        throw new IllegalArgumentException();
-
 
135118
      }
-
 
135119
 
-
 
135120
      switch (field) {
-
 
135121
      case SKU_BUNDLE_ID:
-
 
135122
        return isSetSkuBundleId();
-
 
135123
      case SOURCE_ID:
-
 
135124
        return isSetSource_id();
-
 
135125
      }
-
 
135126
      throw new IllegalStateException();
-
 
135127
    }
-
 
135128
 
-
 
135129
    @Override
-
 
135130
    public boolean equals(Object that) {
-
 
135131
      if (that == null)
-
 
135132
        return false;
-
 
135133
      if (that instanceof getLatestPricing_args)
-
 
135134
        return this.equals((getLatestPricing_args)that);
-
 
135135
      return false;
-
 
135136
    }
-
 
135137
 
-
 
135138
    public boolean equals(getLatestPricing_args that) {
-
 
135139
      if (that == null)
-
 
135140
        return false;
-
 
135141
 
-
 
135142
      boolean this_present_skuBundleId = true;
-
 
135143
      boolean that_present_skuBundleId = true;
-
 
135144
      if (this_present_skuBundleId || that_present_skuBundleId) {
-
 
135145
        if (!(this_present_skuBundleId && that_present_skuBundleId))
-
 
135146
          return false;
-
 
135147
        if (this.skuBundleId != that.skuBundleId)
-
 
135148
          return false;
-
 
135149
      }
-
 
135150
 
-
 
135151
      boolean this_present_source_id = true;
-
 
135152
      boolean that_present_source_id = true;
-
 
135153
      if (this_present_source_id || that_present_source_id) {
-
 
135154
        if (!(this_present_source_id && that_present_source_id))
-
 
135155
          return false;
-
 
135156
        if (this.source_id != that.source_id)
-
 
135157
          return false;
-
 
135158
      }
-
 
135159
 
-
 
135160
      return true;
-
 
135161
    }
-
 
135162
 
-
 
135163
    @Override
-
 
135164
    public int hashCode() {
-
 
135165
      return 0;
-
 
135166
    }
-
 
135167
 
-
 
135168
    public int compareTo(getLatestPricing_args other) {
-
 
135169
      if (!getClass().equals(other.getClass())) {
-
 
135170
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135171
      }
-
 
135172
 
-
 
135173
      int lastComparison = 0;
-
 
135174
      getLatestPricing_args typedOther = (getLatestPricing_args)other;
-
 
135175
 
-
 
135176
      lastComparison = Boolean.valueOf(isSetSkuBundleId()).compareTo(typedOther.isSetSkuBundleId());
-
 
135177
      if (lastComparison != 0) {
-
 
135178
        return lastComparison;
-
 
135179
      }
-
 
135180
      if (isSetSkuBundleId()) {
-
 
135181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuBundleId, typedOther.skuBundleId);
-
 
135182
        if (lastComparison != 0) {
-
 
135183
          return lastComparison;
-
 
135184
        }
-
 
135185
      }
-
 
135186
      lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
-
 
135187
      if (lastComparison != 0) {
-
 
135188
        return lastComparison;
-
 
135189
      }
-
 
135190
      if (isSetSource_id()) {
-
 
135191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
-
 
135192
        if (lastComparison != 0) {
-
 
135193
          return lastComparison;
-
 
135194
        }
-
 
135195
      }
-
 
135196
      return 0;
-
 
135197
    }
-
 
135198
 
-
 
135199
    public _Fields fieldForId(int fieldId) {
-
 
135200
      return _Fields.findByThriftId(fieldId);
-
 
135201
    }
-
 
135202
 
-
 
135203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135204
      org.apache.thrift.protocol.TField field;
-
 
135205
      iprot.readStructBegin();
-
 
135206
      while (true)
-
 
135207
      {
-
 
135208
        field = iprot.readFieldBegin();
-
 
135209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135210
          break;
-
 
135211
        }
-
 
135212
        switch (field.id) {
-
 
135213
          case 1: // SKU_BUNDLE_ID
-
 
135214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
135215
              this.skuBundleId = iprot.readI64();
-
 
135216
              setSkuBundleIdIsSet(true);
-
 
135217
            } else { 
-
 
135218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135219
            }
-
 
135220
            break;
-
 
135221
          case 2: // SOURCE_ID
-
 
135222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
135223
              this.source_id = iprot.readI64();
-
 
135224
              setSource_idIsSet(true);
-
 
135225
            } else { 
-
 
135226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135227
            }
-
 
135228
            break;
-
 
135229
          default:
-
 
135230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135231
        }
-
 
135232
        iprot.readFieldEnd();
-
 
135233
      }
-
 
135234
      iprot.readStructEnd();
-
 
135235
      validate();
-
 
135236
    }
-
 
135237
 
-
 
135238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135239
      validate();
-
 
135240
 
-
 
135241
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135242
      oprot.writeFieldBegin(SKU_BUNDLE_ID_FIELD_DESC);
-
 
135243
      oprot.writeI64(this.skuBundleId);
-
 
135244
      oprot.writeFieldEnd();
-
 
135245
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
135246
      oprot.writeI64(this.source_id);
-
 
135247
      oprot.writeFieldEnd();
-
 
135248
      oprot.writeFieldStop();
-
 
135249
      oprot.writeStructEnd();
-
 
135250
    }
-
 
135251
 
-
 
135252
    @Override
-
 
135253
    public String toString() {
-
 
135254
      StringBuilder sb = new StringBuilder("getLatestPricing_args(");
-
 
135255
      boolean first = true;
-
 
135256
 
-
 
135257
      sb.append("skuBundleId:");
-
 
135258
      sb.append(this.skuBundleId);
-
 
135259
      first = false;
-
 
135260
      if (!first) sb.append(", ");
-
 
135261
      sb.append("source_id:");
-
 
135262
      sb.append(this.source_id);
-
 
135263
      first = false;
-
 
135264
      sb.append(")");
-
 
135265
      return sb.toString();
-
 
135266
    }
-
 
135267
 
-
 
135268
    public void validate() throws org.apache.thrift.TException {
-
 
135269
      // check for required fields
-
 
135270
    }
-
 
135271
 
-
 
135272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135273
      try {
-
 
135274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135275
      } catch (org.apache.thrift.TException te) {
-
 
135276
        throw new java.io.IOException(te);
-
 
135277
      }
-
 
135278
    }
-
 
135279
 
-
 
135280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135281
      try {
-
 
135282
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
135283
        __isset_bit_vector = new BitSet(1);
-
 
135284
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135285
      } catch (org.apache.thrift.TException te) {
-
 
135286
        throw new java.io.IOException(te);
-
 
135287
      }
-
 
135288
    }
-
 
135289
 
-
 
135290
  }
-
 
135291
 
-
 
135292
  public static class getLatestPricing_result implements org.apache.thrift.TBase<getLatestPricing_result, getLatestPricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
135293
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_result");
-
 
135294
 
-
 
135295
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
135296
 
-
 
135297
    private List<LivePricing> success; // required
-
 
135298
 
-
 
135299
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135300
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135301
      SUCCESS((short)0, "success");
-
 
135302
 
-
 
135303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135304
 
-
 
135305
      static {
-
 
135306
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135307
          byName.put(field.getFieldName(), field);
-
 
135308
        }
-
 
135309
      }
-
 
135310
 
-
 
135311
      /**
-
 
135312
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135313
       */
-
 
135314
      public static _Fields findByThriftId(int fieldId) {
-
 
135315
        switch(fieldId) {
-
 
135316
          case 0: // SUCCESS
-
 
135317
            return SUCCESS;
-
 
135318
          default:
-
 
135319
            return null;
-
 
135320
        }
-
 
135321
      }
-
 
135322
 
-
 
135323
      /**
-
 
135324
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135325
       * if it is not found.
-
 
135326
       */
-
 
135327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
135328
        _Fields fields = findByThriftId(fieldId);
-
 
135329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
135330
        return fields;
-
 
135331
      }
-
 
135332
 
-
 
135333
      /**
-
 
135334
       * Find the _Fields constant that matches name, or null if its not found.
-
 
135335
       */
-
 
135336
      public static _Fields findByName(String name) {
-
 
135337
        return byName.get(name);
-
 
135338
      }
-
 
135339
 
-
 
135340
      private final short _thriftId;
-
 
135341
      private final String _fieldName;
-
 
135342
 
-
 
135343
      _Fields(short thriftId, String fieldName) {
-
 
135344
        _thriftId = thriftId;
-
 
135345
        _fieldName = fieldName;
-
 
135346
      }
-
 
135347
 
-
 
135348
      public short getThriftFieldId() {
-
 
135349
        return _thriftId;
-
 
135350
      }
-
 
135351
 
-
 
135352
      public String getFieldName() {
-
 
135353
        return _fieldName;
-
 
135354
      }
-
 
135355
    }
-
 
135356
 
-
 
135357
    // isset id assignments
-
 
135358
 
-
 
135359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
135360
    static {
-
 
135361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
135362
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135363
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
135364
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LivePricing.class))));
-
 
135365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
135366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_result.class, metaDataMap);
-
 
135367
    }
-
 
135368
 
-
 
135369
    public getLatestPricing_result() {
-
 
135370
    }
-
 
135371
 
-
 
135372
    public getLatestPricing_result(
-
 
135373
      List<LivePricing> success)
-
 
135374
    {
-
 
135375
      this();
-
 
135376
      this.success = success;
-
 
135377
    }
-
 
135378
 
-
 
135379
    /**
-
 
135380
     * Performs a deep copy on <i>other</i>.
-
 
135381
     */
-
 
135382
    public getLatestPricing_result(getLatestPricing_result other) {
-
 
135383
      if (other.isSetSuccess()) {
-
 
135384
        List<LivePricing> __this__success = new ArrayList<LivePricing>();
-
 
135385
        for (LivePricing other_element : other.success) {
-
 
135386
          __this__success.add(new LivePricing(other_element));
-
 
135387
        }
-
 
135388
        this.success = __this__success;
-
 
135389
      }
-
 
135390
    }
-
 
135391
 
-
 
135392
    public getLatestPricing_result deepCopy() {
-
 
135393
      return new getLatestPricing_result(this);
-
 
135394
    }
-
 
135395
 
-
 
135396
    @Override
-
 
135397
    public void clear() {
-
 
135398
      this.success = null;
-
 
135399
    }
-
 
135400
 
-
 
135401
    public int getSuccessSize() {
-
 
135402
      return (this.success == null) ? 0 : this.success.size();
-
 
135403
    }
-
 
135404
 
-
 
135405
    public java.util.Iterator<LivePricing> getSuccessIterator() {
-
 
135406
      return (this.success == null) ? null : this.success.iterator();
-
 
135407
    }
-
 
135408
 
-
 
135409
    public void addToSuccess(LivePricing elem) {
-
 
135410
      if (this.success == null) {
-
 
135411
        this.success = new ArrayList<LivePricing>();
-
 
135412
      }
-
 
135413
      this.success.add(elem);
-
 
135414
    }
-
 
135415
 
-
 
135416
    public List<LivePricing> getSuccess() {
-
 
135417
      return this.success;
-
 
135418
    }
-
 
135419
 
-
 
135420
    public void setSuccess(List<LivePricing> success) {
-
 
135421
      this.success = success;
-
 
135422
    }
-
 
135423
 
-
 
135424
    public void unsetSuccess() {
-
 
135425
      this.success = null;
-
 
135426
    }
-
 
135427
 
-
 
135428
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
135429
    public boolean isSetSuccess() {
-
 
135430
      return this.success != null;
-
 
135431
    }
-
 
135432
 
-
 
135433
    public void setSuccessIsSet(boolean value) {
-
 
135434
      if (!value) {
-
 
135435
        this.success = null;
-
 
135436
      }
-
 
135437
    }
-
 
135438
 
-
 
135439
    public void setFieldValue(_Fields field, Object value) {
-
 
135440
      switch (field) {
-
 
135441
      case SUCCESS:
-
 
135442
        if (value == null) {
-
 
135443
          unsetSuccess();
-
 
135444
        } else {
-
 
135445
          setSuccess((List<LivePricing>)value);
-
 
135446
        }
-
 
135447
        break;
-
 
135448
 
-
 
135449
      }
-
 
135450
    }
-
 
135451
 
-
 
135452
    public Object getFieldValue(_Fields field) {
-
 
135453
      switch (field) {
-
 
135454
      case SUCCESS:
-
 
135455
        return getSuccess();
-
 
135456
 
-
 
135457
      }
-
 
135458
      throw new IllegalStateException();
-
 
135459
    }
-
 
135460
 
-
 
135461
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135462
    public boolean isSet(_Fields field) {
-
 
135463
      if (field == null) {
-
 
135464
        throw new IllegalArgumentException();
-
 
135465
      }
-
 
135466
 
-
 
135467
      switch (field) {
-
 
135468
      case SUCCESS:
-
 
135469
        return isSetSuccess();
-
 
135470
      }
-
 
135471
      throw new IllegalStateException();
-
 
135472
    }
-
 
135473
 
-
 
135474
    @Override
-
 
135475
    public boolean equals(Object that) {
-
 
135476
      if (that == null)
-
 
135477
        return false;
-
 
135478
      if (that instanceof getLatestPricing_result)
-
 
135479
        return this.equals((getLatestPricing_result)that);
-
 
135480
      return false;
-
 
135481
    }
-
 
135482
 
-
 
135483
    public boolean equals(getLatestPricing_result that) {
-
 
135484
      if (that == null)
-
 
135485
        return false;
-
 
135486
 
-
 
135487
      boolean this_present_success = true && this.isSetSuccess();
-
 
135488
      boolean that_present_success = true && that.isSetSuccess();
-
 
135489
      if (this_present_success || that_present_success) {
-
 
135490
        if (!(this_present_success && that_present_success))
-
 
135491
          return false;
-
 
135492
        if (!this.success.equals(that.success))
-
 
135493
          return false;
-
 
135494
      }
-
 
135495
 
-
 
135496
      return true;
-
 
135497
    }
-
 
135498
 
-
 
135499
    @Override
-
 
135500
    public int hashCode() {
-
 
135501
      return 0;
-
 
135502
    }
-
 
135503
 
-
 
135504
    public int compareTo(getLatestPricing_result other) {
-
 
135505
      if (!getClass().equals(other.getClass())) {
-
 
135506
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135507
      }
-
 
135508
 
-
 
135509
      int lastComparison = 0;
-
 
135510
      getLatestPricing_result typedOther = (getLatestPricing_result)other;
-
 
135511
 
-
 
135512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
135513
      if (lastComparison != 0) {
-
 
135514
        return lastComparison;
-
 
135515
      }
-
 
135516
      if (isSetSuccess()) {
-
 
135517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
135518
        if (lastComparison != 0) {
-
 
135519
          return lastComparison;
-
 
135520
        }
-
 
135521
      }
-
 
135522
      return 0;
-
 
135523
    }
-
 
135524
 
-
 
135525
    public _Fields fieldForId(int fieldId) {
-
 
135526
      return _Fields.findByThriftId(fieldId);
-
 
135527
    }
-
 
135528
 
-
 
135529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135530
      org.apache.thrift.protocol.TField field;
-
 
135531
      iprot.readStructBegin();
-
 
135532
      while (true)
-
 
135533
      {
-
 
135534
        field = iprot.readFieldBegin();
-
 
135535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135536
          break;
-
 
135537
        }
-
 
135538
        switch (field.id) {
-
 
135539
          case 0: // SUCCESS
-
 
135540
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
135541
              {
-
 
135542
                org.apache.thrift.protocol.TList _list484 = iprot.readListBegin();
-
 
135543
                this.success = new ArrayList<LivePricing>(_list484.size);
-
 
135544
                for (int _i485 = 0; _i485 < _list484.size; ++_i485)
-
 
135545
                {
-
 
135546
                  LivePricing _elem486; // required
-
 
135547
                  _elem486 = new LivePricing();
-
 
135548
                  _elem486.read(iprot);
-
 
135549
                  this.success.add(_elem486);
-
 
135550
                }
-
 
135551
                iprot.readListEnd();
-
 
135552
              }
-
 
135553
            } else { 
-
 
135554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135555
            }
-
 
135556
            break;
-
 
135557
          default:
-
 
135558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135559
        }
-
 
135560
        iprot.readFieldEnd();
-
 
135561
      }
-
 
135562
      iprot.readStructEnd();
-
 
135563
      validate();
-
 
135564
    }
-
 
135565
 
-
 
135566
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135567
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135568
 
-
 
135569
      if (this.isSetSuccess()) {
-
 
135570
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
135571
        {
-
 
135572
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
135573
          for (LivePricing _iter487 : this.success)
-
 
135574
          {
-
 
135575
            _iter487.write(oprot);
-
 
135576
          }
-
 
135577
          oprot.writeListEnd();
-
 
135578
        }
-
 
135579
        oprot.writeFieldEnd();
-
 
135580
      }
-
 
135581
      oprot.writeFieldStop();
-
 
135582
      oprot.writeStructEnd();
-
 
135583
    }
-
 
135584
 
-
 
135585
    @Override
-
 
135586
    public String toString() {
-
 
135587
      StringBuilder sb = new StringBuilder("getLatestPricing_result(");
-
 
135588
      boolean first = true;
-
 
135589
 
-
 
135590
      sb.append("success:");
-
 
135591
      if (this.success == null) {
-
 
135592
        sb.append("null");
134805
      } else {
135593
      } else {
134806
        sb.append(this.success);
135594
        sb.append(this.success);
134807
      }
135595
      }
134808
      first = false;
135596
      first = false;
134809
      sb.append(")");
135597
      sb.append(")");