Subversion Repositories SmartDukaan

Rev

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

Rev 19413 Rev 19416
Line 389... Line 389...
389
 
389
 
390
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException;
390
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException;
391
 
391
 
392
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException;
392
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException;
393
 
393
 
394
    public String getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException;
394
    public String getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode) throws org.apache.thrift.TException;
395
 
395
 
396
  }
396
  }
397
 
397
 
398
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
398
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
399
 
399
 
Line 565... Line 565...
565
 
565
 
566
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
566
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
567
 
567
 
568
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException;
568
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException;
569
 
569
 
570
    public void getItemPincodeAvailability(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException;
570
    public void getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException;
571
 
571
 
572
  }
572
  }
573
 
573
 
574
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
574
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
575
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
575
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 2593... Line 2593...
2593
        return result.success;
2593
        return result.success;
2594
      }
2594
      }
2595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
2595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
2596
    }
2596
    }
2597
 
2597
 
2598
    public String getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException
2598
    public String getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode) throws org.apache.thrift.TException
2599
    {
2599
    {
2600
      send_getItemPincodeAvailability(itemIds, pincode);
2600
      send_getItemPincodeAvailability(itempricing, pincode);
2601
      return recv_getItemPincodeAvailability();
2601
      return recv_getItemPincodeAvailability();
2602
    }
2602
    }
2603
 
2603
 
2604
    public void send_getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException
2604
    public void send_getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode) throws org.apache.thrift.TException
2605
    {
2605
    {
2606
      getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
2606
      getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
2607
      args.setItemIds(itemIds);
2607
      args.setItempricing(itempricing);
2608
      args.setPincode(pincode);
2608
      args.setPincode(pincode);
2609
      sendBase("getItemPincodeAvailability", args);
2609
      sendBase("getItemPincodeAvailability", args);
2610
    }
2610
    }
2611
 
2611
 
2612
    public String recv_getItemPincodeAvailability() throws org.apache.thrift.TException
2612
    public String recv_getItemPincodeAvailability() throws org.apache.thrift.TException
Line 5502... Line 5502...
5502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5503
        return (new Client(prot)).recv_getItemLocationAvailabilityCacheByItemId();
5503
        return (new Client(prot)).recv_getItemLocationAvailabilityCacheByItemId();
5504
      }
5504
      }
5505
    }
5505
    }
5506
 
5506
 
5507
    public void getItemPincodeAvailability(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException {
5507
    public void getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException {
5508
      checkReady();
5508
      checkReady();
5509
      getItemPincodeAvailability_call method_call = new getItemPincodeAvailability_call(itemIds, pincode, resultHandler, this, ___protocolFactory, ___transport);
5509
      getItemPincodeAvailability_call method_call = new getItemPincodeAvailability_call(itempricing, pincode, resultHandler, this, ___protocolFactory, ___transport);
5510
      this.___currentMethod = method_call;
5510
      this.___currentMethod = method_call;
5511
      ___manager.call(method_call);
5511
      ___manager.call(method_call);
5512
    }
5512
    }
5513
 
5513
 
5514
    public static class getItemPincodeAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
5514
    public static class getItemPincodeAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
5515
      private List<Long> itemIds;
5515
      private Map<Long,Long> itempricing;
5516
      private String pincode;
5516
      private String pincode;
5517
      public getItemPincodeAvailability_call(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_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 {
5517
      public getItemPincodeAvailability_call(Map<Long,Long> itempricing, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_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 {
5518
        super(client, protocolFactory, transport, resultHandler, false);
5518
        super(client, protocolFactory, transport, resultHandler, false);
5519
        this.itemIds = itemIds;
5519
        this.itempricing = itempricing;
5520
        this.pincode = pincode;
5520
        this.pincode = pincode;
5521
      }
5521
      }
5522
 
5522
 
5523
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5523
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5524
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPincodeAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
5524
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPincodeAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
5525
        getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
5525
        getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
5526
        args.setItemIds(itemIds);
5526
        args.setItempricing(itempricing);
5527
        args.setPincode(pincode);
5527
        args.setPincode(pincode);
5528
        args.write(prot);
5528
        args.write(prot);
5529
        prot.writeMessageEnd();
5529
        prot.writeMessageEnd();
5530
      }
5530
      }
5531
 
5531
 
Line 7125... Line 7125...
7125
        return new getItemPincodeAvailability_args();
7125
        return new getItemPincodeAvailability_args();
7126
      }
7126
      }
7127
 
7127
 
7128
      protected getItemPincodeAvailability_result getResult(I iface, getItemPincodeAvailability_args args) throws org.apache.thrift.TException {
7128
      protected getItemPincodeAvailability_result getResult(I iface, getItemPincodeAvailability_args args) throws org.apache.thrift.TException {
7129
        getItemPincodeAvailability_result result = new getItemPincodeAvailability_result();
7129
        getItemPincodeAvailability_result result = new getItemPincodeAvailability_result();
7130
        result.success = iface.getItemPincodeAvailability(args.itemIds, args.pincode);
7130
        result.success = iface.getItemPincodeAvailability(args.itempricing, args.pincode);
7131
        return result;
7131
        return result;
7132
      }
7132
      }
7133
    }
7133
    }
7134
 
7134
 
7135
  }
7135
  }
Line 12868... Line 12868...
12868
      }
12868
      }
12869
    }
12869
    }
12870
 
12870
 
12871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12872
      try {
12872
      try {
-
 
12873
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
12874
        __isset_bit_vector = new BitSet(1);
12873
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12875
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12874
      } catch (org.apache.thrift.TException te) {
12876
      } catch (org.apache.thrift.TException te) {
12875
        throw new java.io.IOException(te);
12877
        throw new java.io.IOException(te);
12876
      }
12878
      }
12877
    }
12879
    }
Line 62919... Line 62921...
62919
  }
62921
  }
62920
 
62922
 
62921
  public static class getItemPincodeAvailability_args implements org.apache.thrift.TBase<getItemPincodeAvailability_args, getItemPincodeAvailability_args._Fields>, java.io.Serializable, Cloneable   {
62923
  public static class getItemPincodeAvailability_args implements org.apache.thrift.TBase<getItemPincodeAvailability_args, getItemPincodeAvailability_args._Fields>, java.io.Serializable, Cloneable   {
62922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPincodeAvailability_args");
62924
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPincodeAvailability_args");
62923
 
62925
 
62924
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
62926
    private static final org.apache.thrift.protocol.TField ITEMPRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("itempricing", org.apache.thrift.protocol.TType.MAP, (short)1);
62925
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
62927
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
62926
 
62928
 
62927
    private List<Long> itemIds; // required
62929
    private Map<Long,Long> itempricing; // required
62928
    private String pincode; // required
62930
    private String pincode; // required
62929
 
62931
 
62930
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62932
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62931
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62933
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62932
      ITEM_IDS((short)1, "itemIds"),
62934
      ITEMPRICING((short)1, "itempricing"),
62933
      PINCODE((short)2, "pincode");
62935
      PINCODE((short)2, "pincode");
62934
 
62936
 
62935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62937
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62936
 
62938
 
62937
      static {
62939
      static {
Line 62943... Line 62945...
62943
      /**
62945
      /**
62944
       * Find the _Fields constant that matches fieldId, or null if its not found.
62946
       * Find the _Fields constant that matches fieldId, or null if its not found.
62945
       */
62947
       */
62946
      public static _Fields findByThriftId(int fieldId) {
62948
      public static _Fields findByThriftId(int fieldId) {
62947
        switch(fieldId) {
62949
        switch(fieldId) {
62948
          case 1: // ITEM_IDS
62950
          case 1: // ITEMPRICING
62949
            return ITEM_IDS;
62951
            return ITEMPRICING;
62950
          case 2: // PINCODE
62952
          case 2: // PINCODE
62951
            return PINCODE;
62953
            return PINCODE;
62952
          default:
62954
          default:
62953
            return null;
62955
            return null;
62954
        }
62956
        }
Line 62991... Line 62993...
62991
    // isset id assignments
62993
    // isset id assignments
62992
 
62994
 
62993
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
62995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
62994
    static {
62996
    static {
62995
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
62997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
62996
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
62998
      tmpMap.put(_Fields.ITEMPRICING, new org.apache.thrift.meta_data.FieldMetaData("itempricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
62997
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
62999
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
63000
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
62998
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
63001
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
62999
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
63002
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
63000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
63003
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
63001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
63004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
63002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPincodeAvailability_args.class, metaDataMap);
63005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPincodeAvailability_args.class, metaDataMap);
Line 63004... Line 63007...
63004
 
63007
 
63005
    public getItemPincodeAvailability_args() {
63008
    public getItemPincodeAvailability_args() {
63006
    }
63009
    }
63007
 
63010
 
63008
    public getItemPincodeAvailability_args(
63011
    public getItemPincodeAvailability_args(
63009
      List<Long> itemIds,
63012
      Map<Long,Long> itempricing,
63010
      String pincode)
63013
      String pincode)
63011
    {
63014
    {
63012
      this();
63015
      this();
63013
      this.itemIds = itemIds;
63016
      this.itempricing = itempricing;
63014
      this.pincode = pincode;
63017
      this.pincode = pincode;
63015
    }
63018
    }
63016
 
63019
 
63017
    /**
63020
    /**
63018
     * Performs a deep copy on <i>other</i>.
63021
     * Performs a deep copy on <i>other</i>.
63019
     */
63022
     */
63020
    public getItemPincodeAvailability_args(getItemPincodeAvailability_args other) {
63023
    public getItemPincodeAvailability_args(getItemPincodeAvailability_args other) {
63021
      if (other.isSetItemIds()) {
63024
      if (other.isSetItempricing()) {
63022
        List<Long> __this__itemIds = new ArrayList<Long>();
63025
        Map<Long,Long> __this__itempricing = new HashMap<Long,Long>();
-
 
63026
        for (Map.Entry<Long, Long> other_element : other.itempricing.entrySet()) {
-
 
63027
 
63023
        for (Long other_element : other.itemIds) {
63028
          Long other_element_key = other_element.getKey();
-
 
63029
          Long other_element_value = other_element.getValue();
-
 
63030
 
63024
          __this__itemIds.add(other_element);
63031
          Long __this__itempricing_copy_key = other_element_key;
-
 
63032
 
-
 
63033
          Long __this__itempricing_copy_value = other_element_value;
-
 
63034
 
-
 
63035
          __this__itempricing.put(__this__itempricing_copy_key, __this__itempricing_copy_value);
63025
        }
63036
        }
63026
        this.itemIds = __this__itemIds;
63037
        this.itempricing = __this__itempricing;
63027
      }
63038
      }
63028
      if (other.isSetPincode()) {
63039
      if (other.isSetPincode()) {
63029
        this.pincode = other.pincode;
63040
        this.pincode = other.pincode;
63030
      }
63041
      }
63031
    }
63042
    }
Line 63034... Line 63045...
63034
      return new getItemPincodeAvailability_args(this);
63045
      return new getItemPincodeAvailability_args(this);
63035
    }
63046
    }
63036
 
63047
 
63037
    @Override
63048
    @Override
63038
    public void clear() {
63049
    public void clear() {
63039
      this.itemIds = null;
63050
      this.itempricing = null;
63040
      this.pincode = null;
63051
      this.pincode = null;
63041
    }
63052
    }
63042
 
63053
 
63043
    public int getItemIdsSize() {
63054
    public int getItempricingSize() {
63044
      return (this.itemIds == null) ? 0 : this.itemIds.size();
63055
      return (this.itempricing == null) ? 0 : this.itempricing.size();
63045
    }
63056
    }
63046
 
63057
 
63047
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
63048
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
63049
    }
-
 
63050
 
-
 
63051
    public void addToItemIds(long elem) {
63058
    public void putToItempricing(long key, long val) {
63052
      if (this.itemIds == null) {
63059
      if (this.itempricing == null) {
63053
        this.itemIds = new ArrayList<Long>();
63060
        this.itempricing = new HashMap<Long,Long>();
63054
      }
63061
      }
63055
      this.itemIds.add(elem);
63062
      this.itempricing.put(key, val);
63056
    }
63063
    }
63057
 
63064
 
63058
    public List<Long> getItemIds() {
63065
    public Map<Long,Long> getItempricing() {
63059
      return this.itemIds;
63066
      return this.itempricing;
63060
    }
63067
    }
63061
 
63068
 
63062
    public void setItemIds(List<Long> itemIds) {
63069
    public void setItempricing(Map<Long,Long> itempricing) {
63063
      this.itemIds = itemIds;
63070
      this.itempricing = itempricing;
63064
    }
63071
    }
63065
 
63072
 
63066
    public void unsetItemIds() {
63073
    public void unsetItempricing() {
63067
      this.itemIds = null;
63074
      this.itempricing = null;
63068
    }
63075
    }
63069
 
63076
 
63070
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
63077
    /** Returns true if field itempricing is set (has been assigned a value) and false otherwise */
63071
    public boolean isSetItemIds() {
63078
    public boolean isSetItempricing() {
63072
      return this.itemIds != null;
63079
      return this.itempricing != null;
63073
    }
63080
    }
63074
 
63081
 
63075
    public void setItemIdsIsSet(boolean value) {
63082
    public void setItempricingIsSet(boolean value) {
63076
      if (!value) {
63083
      if (!value) {
63077
        this.itemIds = null;
63084
        this.itempricing = null;
63078
      }
63085
      }
63079
    }
63086
    }
63080
 
63087
 
63081
    public String getPincode() {
63088
    public String getPincode() {
63082
      return this.pincode;
63089
      return this.pincode;
Line 63101... Line 63108...
63101
      }
63108
      }
63102
    }
63109
    }
63103
 
63110
 
63104
    public void setFieldValue(_Fields field, Object value) {
63111
    public void setFieldValue(_Fields field, Object value) {
63105
      switch (field) {
63112
      switch (field) {
63106
      case ITEM_IDS:
63113
      case ITEMPRICING:
63107
        if (value == null) {
63114
        if (value == null) {
63108
          unsetItemIds();
63115
          unsetItempricing();
63109
        } else {
63116
        } else {
63110
          setItemIds((List<Long>)value);
63117
          setItempricing((Map<Long,Long>)value);
63111
        }
63118
        }
63112
        break;
63119
        break;
63113
 
63120
 
63114
      case PINCODE:
63121
      case PINCODE:
63115
        if (value == null) {
63122
        if (value == null) {
Line 63122... Line 63129...
63122
      }
63129
      }
63123
    }
63130
    }
63124
 
63131
 
63125
    public Object getFieldValue(_Fields field) {
63132
    public Object getFieldValue(_Fields field) {
63126
      switch (field) {
63133
      switch (field) {
63127
      case ITEM_IDS:
63134
      case ITEMPRICING:
63128
        return getItemIds();
63135
        return getItempricing();
63129
 
63136
 
63130
      case PINCODE:
63137
      case PINCODE:
63131
        return getPincode();
63138
        return getPincode();
63132
 
63139
 
63133
      }
63140
      }
Line 63139... Line 63146...
63139
      if (field == null) {
63146
      if (field == null) {
63140
        throw new IllegalArgumentException();
63147
        throw new IllegalArgumentException();
63141
      }
63148
      }
63142
 
63149
 
63143
      switch (field) {
63150
      switch (field) {
63144
      case ITEM_IDS:
63151
      case ITEMPRICING:
63145
        return isSetItemIds();
63152
        return isSetItempricing();
63146
      case PINCODE:
63153
      case PINCODE:
63147
        return isSetPincode();
63154
        return isSetPincode();
63148
      }
63155
      }
63149
      throw new IllegalStateException();
63156
      throw new IllegalStateException();
63150
    }
63157
    }
Line 63160... Line 63167...
63160
 
63167
 
63161
    public boolean equals(getItemPincodeAvailability_args that) {
63168
    public boolean equals(getItemPincodeAvailability_args that) {
63162
      if (that == null)
63169
      if (that == null)
63163
        return false;
63170
        return false;
63164
 
63171
 
63165
      boolean this_present_itemIds = true && this.isSetItemIds();
63172
      boolean this_present_itempricing = true && this.isSetItempricing();
63166
      boolean that_present_itemIds = true && that.isSetItemIds();
63173
      boolean that_present_itempricing = true && that.isSetItempricing();
63167
      if (this_present_itemIds || that_present_itemIds) {
63174
      if (this_present_itempricing || that_present_itempricing) {
63168
        if (!(this_present_itemIds && that_present_itemIds))
63175
        if (!(this_present_itempricing && that_present_itempricing))
63169
          return false;
63176
          return false;
63170
        if (!this.itemIds.equals(that.itemIds))
63177
        if (!this.itempricing.equals(that.itempricing))
63171
          return false;
63178
          return false;
63172
      }
63179
      }
63173
 
63180
 
63174
      boolean this_present_pincode = true && this.isSetPincode();
63181
      boolean this_present_pincode = true && this.isSetPincode();
63175
      boolean that_present_pincode = true && that.isSetPincode();
63182
      boolean that_present_pincode = true && that.isSetPincode();
Line 63194... Line 63201...
63194
      }
63201
      }
63195
 
63202
 
63196
      int lastComparison = 0;
63203
      int lastComparison = 0;
63197
      getItemPincodeAvailability_args typedOther = (getItemPincodeAvailability_args)other;
63204
      getItemPincodeAvailability_args typedOther = (getItemPincodeAvailability_args)other;
63198
 
63205
 
63199
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
63206
      lastComparison = Boolean.valueOf(isSetItempricing()).compareTo(typedOther.isSetItempricing());
63200
      if (lastComparison != 0) {
63207
      if (lastComparison != 0) {
63201
        return lastComparison;
63208
        return lastComparison;
63202
      }
63209
      }
63203
      if (isSetItemIds()) {
63210
      if (isSetItempricing()) {
63204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
63211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itempricing, typedOther.itempricing);
63205
        if (lastComparison != 0) {
63212
        if (lastComparison != 0) {
63206
          return lastComparison;
63213
          return lastComparison;
63207
        }
63214
        }
63208
      }
63215
      }
63209
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
63216
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
Line 63231... Line 63238...
63231
        field = iprot.readFieldBegin();
63238
        field = iprot.readFieldBegin();
63232
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
63239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
63233
          break;
63240
          break;
63234
        }
63241
        }
63235
        switch (field.id) {
63242
        switch (field.id) {
63236
          case 1: // ITEM_IDS
63243
          case 1: // ITEMPRICING
63237
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
63244
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
63238
              {
63245
              {
63239
                org.apache.thrift.protocol.TList _list228 = iprot.readListBegin();
63246
                org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin();
63240
                this.itemIds = new ArrayList<Long>(_list228.size);
63247
                this.itempricing = new HashMap<Long,Long>(2*_map228.size);
63241
                for (int _i229 = 0; _i229 < _list228.size; ++_i229)
63248
                for (int _i229 = 0; _i229 < _map228.size; ++_i229)
63242
                {
63249
                {
63243
                  long _elem230; // required
63250
                  long _key230; // required
-
 
63251
                  long _val231; // required
63244
                  _elem230 = iprot.readI64();
63252
                  _key230 = iprot.readI64();
-
 
63253
                  _val231 = iprot.readI64();
63245
                  this.itemIds.add(_elem230);
63254
                  this.itempricing.put(_key230, _val231);
63246
                }
63255
                }
63247
                iprot.readListEnd();
63256
                iprot.readMapEnd();
63248
              }
63257
              }
63249
            } else { 
63258
            } else { 
63250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
63259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
63251
            }
63260
            }
63252
            break;
63261
            break;
Line 63268... Line 63277...
63268
 
63277
 
63269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
63278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
63270
      validate();
63279
      validate();
63271
 
63280
 
63272
      oprot.writeStructBegin(STRUCT_DESC);
63281
      oprot.writeStructBegin(STRUCT_DESC);
63273
      if (this.itemIds != null) {
63282
      if (this.itempricing != null) {
63274
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
63283
        oprot.writeFieldBegin(ITEMPRICING_FIELD_DESC);
63275
        {
63284
        {
63276
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
63285
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itempricing.size()));
63277
          for (long _iter231 : this.itemIds)
63286
          for (Map.Entry<Long, Long> _iter232 : this.itempricing.entrySet())
63278
          {
63287
          {
63279
            oprot.writeI64(_iter231);
63288
            oprot.writeI64(_iter232.getKey());
-
 
63289
            oprot.writeI64(_iter232.getValue());
63280
          }
63290
          }
63281
          oprot.writeListEnd();
63291
          oprot.writeMapEnd();
63282
        }
63292
        }
63283
        oprot.writeFieldEnd();
63293
        oprot.writeFieldEnd();
63284
      }
63294
      }
63285
      if (this.pincode != null) {
63295
      if (this.pincode != null) {
63286
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
63296
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
Line 63294... Line 63304...
63294
    @Override
63304
    @Override
63295
    public String toString() {
63305
    public String toString() {
63296
      StringBuilder sb = new StringBuilder("getItemPincodeAvailability_args(");
63306
      StringBuilder sb = new StringBuilder("getItemPincodeAvailability_args(");
63297
      boolean first = true;
63307
      boolean first = true;
63298
 
63308
 
63299
      sb.append("itemIds:");
63309
      sb.append("itempricing:");
63300
      if (this.itemIds == null) {
63310
      if (this.itempricing == null) {
63301
        sb.append("null");
63311
        sb.append("null");
63302
      } else {
63312
      } else {
63303
        sb.append(this.itemIds);
63313
        sb.append(this.itempricing);
63304
      }
63314
      }
63305
      first = false;
63315
      first = false;
63306
      if (!first) sb.append(", ");
63316
      if (!first) sb.append(", ");
63307
      sb.append("pincode:");
63317
      sb.append("pincode:");
63308
      if (this.pincode == null) {
63318
      if (this.pincode == null) {