Subversion Repositories SmartDukaan

Rev

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

Rev 13146 Rev 19413
Line 148... Line 148...
148
 
148
 
149
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
149
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
150
 
150
 
151
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
151
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
152
 
152
 
-
 
153
    /**
-
 
154
     * This returns map for locations and providers corresponding their serviceability and delay
-
 
155
     * 
-
 
156
     * @param destPincode
-
 
157
     * @param price
-
 
158
     */
-
 
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
-
 
160
 
153
  }
161
  }
154
 
162
 
155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
 
164
 
157
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
165
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 200... Line 208...
200
 
208
 
201
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
209
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
202
 
210
 
203
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
211
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
204
 
212
 
-
 
213
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
-
 
214
 
205
  }
215
  }
206
 
216
 
207
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
217
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
208
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
218
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
209
      public Factory() {}
219
      public Factory() {}
Line 829... Line 839...
829
        throw result.se;
839
        throw result.se;
830
      }
840
      }
831
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
841
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
832
    }
842
    }
833
 
843
 
-
 
844
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
-
 
845
    {
-
 
846
      send_getLocationInfoMap(destPincode, price);
-
 
847
      return recv_getLocationInfoMap();
-
 
848
    }
-
 
849
 
-
 
850
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
-
 
851
    {
-
 
852
      getLocationInfoMap_args args = new getLocationInfoMap_args();
-
 
853
      args.setDestPincode(destPincode);
-
 
854
      args.setPrice(price);
-
 
855
      sendBase("getLocationInfoMap", args);
-
 
856
    }
-
 
857
 
-
 
858
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
-
 
859
    {
-
 
860
      getLocationInfoMap_result result = new getLocationInfoMap_result();
-
 
861
      receiveBase(result, "getLocationInfoMap");
-
 
862
      if (result.isSetSuccess()) {
-
 
863
        return result.success;
-
 
864
      }
-
 
865
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
-
 
866
    }
-
 
867
 
834
  }
868
  }
835
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
869
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
836
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
870
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
837
      private org.apache.thrift.async.TAsyncClientManager clientManager;
871
      private org.apache.thrift.async.TAsyncClientManager clientManager;
838
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
872
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1708... Line 1742...
1708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1709
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1743
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1710
      }
1744
      }
1711
    }
1745
    }
1712
 
1746
 
-
 
1747
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
-
 
1748
      checkReady();
-
 
1749
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
-
 
1750
      this.___currentMethod = method_call;
-
 
1751
      ___manager.call(method_call);
-
 
1752
    }
-
 
1753
 
-
 
1754
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1755
      private String destPincode;
-
 
1756
      private List<Long> price;
-
 
1757
      public getLocationInfoMap_call(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_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 {
-
 
1758
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1759
        this.destPincode = destPincode;
-
 
1760
        this.price = price;
-
 
1761
      }
-
 
1762
 
-
 
1763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1765
        getLocationInfoMap_args args = new getLocationInfoMap_args();
-
 
1766
        args.setDestPincode(destPincode);
-
 
1767
        args.setPrice(price);
-
 
1768
        args.write(prot);
-
 
1769
        prot.writeMessageEnd();
-
 
1770
      }
-
 
1771
 
-
 
1772
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
-
 
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1774
          throw new IllegalStateException("Method call not finished!");
-
 
1775
        }
-
 
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1778
        return (new Client(prot)).recv_getLocationInfoMap();
-
 
1779
      }
-
 
1780
    }
-
 
1781
 
1713
  }
1782
  }
1714
 
1783
 
1715
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1784
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1716
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1785
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1717
    public Processor(I iface) {
1786
    public Processor(I iface) {
Line 1745... Line 1814...
1745
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1814
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1746
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1815
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1747
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1816
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1748
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1817
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1749
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1818
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
-
 
1819
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
1750
      return processMap;
1820
      return processMap;
1751
    }
1821
    }
1752
 
1822
 
1753
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1823
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1754
      public getProvider() {
1824
      public getProvider() {
Line 2185... Line 2255...
2185
        }
2255
        }
2186
        return result;
2256
        return result;
2187
      }
2257
      }
2188
    }
2258
    }
2189
 
2259
 
-
 
2260
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
-
 
2261
      public getLocationInfoMap() {
-
 
2262
        super("getLocationInfoMap");
-
 
2263
      }
-
 
2264
 
-
 
2265
      protected getLocationInfoMap_args getEmptyArgsInstance() {
-
 
2266
        return new getLocationInfoMap_args();
-
 
2267
      }
-
 
2268
 
-
 
2269
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
-
 
2270
        getLocationInfoMap_result result = new getLocationInfoMap_result();
-
 
2271
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
-
 
2272
        return result;
-
 
2273
      }
-
 
2274
    }
-
 
2275
 
2190
  }
2276
  }
2191
 
2277
 
2192
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2278
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2194
 
2280
 
Line 19979... Line 20065...
19979
      }
20065
      }
19980
      first = false;
20066
      first = false;
19981
      sb.append(")");
20067
      sb.append(")");
19982
      return sb.toString();
20068
      return sb.toString();
19983
    }
20069
    }
-
 
20070
 
-
 
20071
    public void validate() throws org.apache.thrift.TException {
-
 
20072
      // check for required fields
-
 
20073
    }
-
 
20074
 
-
 
20075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20076
      try {
-
 
20077
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20078
      } catch (org.apache.thrift.TException te) {
-
 
20079
        throw new java.io.IOException(te);
-
 
20080
      }
-
 
20081
    }
-
 
20082
 
-
 
20083
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20084
      try {
-
 
20085
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20086
      } catch (org.apache.thrift.TException te) {
-
 
20087
        throw new java.io.IOException(te);
-
 
20088
      }
-
 
20089
    }
-
 
20090
 
-
 
20091
  }
-
 
20092
 
-
 
20093
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
-
 
20095
 
-
 
20096
    private static final org.apache.thrift.protocol.TField DEST_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destPincode", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
20097
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
20098
 
-
 
20099
    private String destPincode; // required
-
 
20100
    private List<Long> price; // required
-
 
20101
 
-
 
20102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20104
      DEST_PINCODE((short)1, "destPincode"),
-
 
20105
      PRICE((short)2, "price");
-
 
20106
 
-
 
20107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20108
 
-
 
20109
      static {
-
 
20110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20111
          byName.put(field.getFieldName(), field);
-
 
20112
        }
-
 
20113
      }
-
 
20114
 
-
 
20115
      /**
-
 
20116
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20117
       */
-
 
20118
      public static _Fields findByThriftId(int fieldId) {
-
 
20119
        switch(fieldId) {
-
 
20120
          case 1: // DEST_PINCODE
-
 
20121
            return DEST_PINCODE;
-
 
20122
          case 2: // PRICE
-
 
20123
            return PRICE;
-
 
20124
          default:
-
 
20125
            return null;
-
 
20126
        }
-
 
20127
      }
-
 
20128
 
-
 
20129
      /**
-
 
20130
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20131
       * if it is not found.
-
 
20132
       */
-
 
20133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20134
        _Fields fields = findByThriftId(fieldId);
-
 
20135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20136
        return fields;
-
 
20137
      }
-
 
20138
 
-
 
20139
      /**
-
 
20140
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20141
       */
-
 
20142
      public static _Fields findByName(String name) {
-
 
20143
        return byName.get(name);
-
 
20144
      }
-
 
20145
 
-
 
20146
      private final short _thriftId;
-
 
20147
      private final String _fieldName;
-
 
20148
 
-
 
20149
      _Fields(short thriftId, String fieldName) {
-
 
20150
        _thriftId = thriftId;
-
 
20151
        _fieldName = fieldName;
-
 
20152
      }
-
 
20153
 
-
 
20154
      public short getThriftFieldId() {
-
 
20155
        return _thriftId;
-
 
20156
      }
-
 
20157
 
-
 
20158
      public String getFieldName() {
-
 
20159
        return _fieldName;
-
 
20160
      }
-
 
20161
    }
-
 
20162
 
-
 
20163
    // isset id assignments
-
 
20164
 
-
 
20165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20166
    static {
-
 
20167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20168
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
20170
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20171
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
20172
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
20173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
-
 
20175
    }
-
 
20176
 
-
 
20177
    public getLocationInfoMap_args() {
-
 
20178
    }
-
 
20179
 
-
 
20180
    public getLocationInfoMap_args(
-
 
20181
      String destPincode,
-
 
20182
      List<Long> price)
-
 
20183
    {
-
 
20184
      this();
-
 
20185
      this.destPincode = destPincode;
-
 
20186
      this.price = price;
-
 
20187
    }
-
 
20188
 
-
 
20189
    /**
-
 
20190
     * Performs a deep copy on <i>other</i>.
-
 
20191
     */
-
 
20192
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
-
 
20193
      if (other.isSetDestPincode()) {
-
 
20194
        this.destPincode = other.destPincode;
-
 
20195
      }
-
 
20196
      if (other.isSetPrice()) {
-
 
20197
        List<Long> __this__price = new ArrayList<Long>();
-
 
20198
        for (Long other_element : other.price) {
-
 
20199
          __this__price.add(other_element);
-
 
20200
        }
-
 
20201
        this.price = __this__price;
-
 
20202
      }
-
 
20203
    }
-
 
20204
 
-
 
20205
    public getLocationInfoMap_args deepCopy() {
-
 
20206
      return new getLocationInfoMap_args(this);
-
 
20207
    }
-
 
20208
 
-
 
20209
    @Override
-
 
20210
    public void clear() {
-
 
20211
      this.destPincode = null;
-
 
20212
      this.price = null;
-
 
20213
    }
-
 
20214
 
-
 
20215
    public String getDestPincode() {
-
 
20216
      return this.destPincode;
-
 
20217
    }
-
 
20218
 
-
 
20219
    public void setDestPincode(String destPincode) {
-
 
20220
      this.destPincode = destPincode;
-
 
20221
    }
-
 
20222
 
-
 
20223
    public void unsetDestPincode() {
-
 
20224
      this.destPincode = null;
-
 
20225
    }
-
 
20226
 
-
 
20227
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
-
 
20228
    public boolean isSetDestPincode() {
-
 
20229
      return this.destPincode != null;
-
 
20230
    }
-
 
20231
 
-
 
20232
    public void setDestPincodeIsSet(boolean value) {
-
 
20233
      if (!value) {
-
 
20234
        this.destPincode = null;
-
 
20235
      }
-
 
20236
    }
-
 
20237
 
-
 
20238
    public int getPriceSize() {
-
 
20239
      return (this.price == null) ? 0 : this.price.size();
-
 
20240
    }
-
 
20241
 
-
 
20242
    public java.util.Iterator<Long> getPriceIterator() {
-
 
20243
      return (this.price == null) ? null : this.price.iterator();
-
 
20244
    }
-
 
20245
 
-
 
20246
    public void addToPrice(long elem) {
-
 
20247
      if (this.price == null) {
-
 
20248
        this.price = new ArrayList<Long>();
-
 
20249
      }
-
 
20250
      this.price.add(elem);
-
 
20251
    }
-
 
20252
 
-
 
20253
    public List<Long> getPrice() {
-
 
20254
      return this.price;
-
 
20255
    }
-
 
20256
 
-
 
20257
    public void setPrice(List<Long> price) {
-
 
20258
      this.price = price;
-
 
20259
    }
-
 
20260
 
-
 
20261
    public void unsetPrice() {
-
 
20262
      this.price = null;
-
 
20263
    }
-
 
20264
 
-
 
20265
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
-
 
20266
    public boolean isSetPrice() {
-
 
20267
      return this.price != null;
-
 
20268
    }
-
 
20269
 
-
 
20270
    public void setPriceIsSet(boolean value) {
-
 
20271
      if (!value) {
-
 
20272
        this.price = null;
-
 
20273
      }
-
 
20274
    }
-
 
20275
 
-
 
20276
    public void setFieldValue(_Fields field, Object value) {
-
 
20277
      switch (field) {
-
 
20278
      case DEST_PINCODE:
-
 
20279
        if (value == null) {
-
 
20280
          unsetDestPincode();
-
 
20281
        } else {
-
 
20282
          setDestPincode((String)value);
-
 
20283
        }
-
 
20284
        break;
-
 
20285
 
-
 
20286
      case PRICE:
-
 
20287
        if (value == null) {
-
 
20288
          unsetPrice();
-
 
20289
        } else {
-
 
20290
          setPrice((List<Long>)value);
-
 
20291
        }
-
 
20292
        break;
-
 
20293
 
-
 
20294
      }
-
 
20295
    }
-
 
20296
 
-
 
20297
    public Object getFieldValue(_Fields field) {
-
 
20298
      switch (field) {
-
 
20299
      case DEST_PINCODE:
-
 
20300
        return getDestPincode();
-
 
20301
 
-
 
20302
      case PRICE:
-
 
20303
        return getPrice();
-
 
20304
 
-
 
20305
      }
-
 
20306
      throw new IllegalStateException();
-
 
20307
    }
-
 
20308
 
-
 
20309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20310
    public boolean isSet(_Fields field) {
-
 
20311
      if (field == null) {
-
 
20312
        throw new IllegalArgumentException();
-
 
20313
      }
-
 
20314
 
-
 
20315
      switch (field) {
-
 
20316
      case DEST_PINCODE:
-
 
20317
        return isSetDestPincode();
-
 
20318
      case PRICE:
-
 
20319
        return isSetPrice();
-
 
20320
      }
-
 
20321
      throw new IllegalStateException();
-
 
20322
    }
-
 
20323
 
-
 
20324
    @Override
-
 
20325
    public boolean equals(Object that) {
-
 
20326
      if (that == null)
-
 
20327
        return false;
-
 
20328
      if (that instanceof getLocationInfoMap_args)
-
 
20329
        return this.equals((getLocationInfoMap_args)that);
-
 
20330
      return false;
-
 
20331
    }
-
 
20332
 
-
 
20333
    public boolean equals(getLocationInfoMap_args that) {
-
 
20334
      if (that == null)
-
 
20335
        return false;
-
 
20336
 
-
 
20337
      boolean this_present_destPincode = true && this.isSetDestPincode();
-
 
20338
      boolean that_present_destPincode = true && that.isSetDestPincode();
-
 
20339
      if (this_present_destPincode || that_present_destPincode) {
-
 
20340
        if (!(this_present_destPincode && that_present_destPincode))
-
 
20341
          return false;
-
 
20342
        if (!this.destPincode.equals(that.destPincode))
-
 
20343
          return false;
-
 
20344
      }
-
 
20345
 
-
 
20346
      boolean this_present_price = true && this.isSetPrice();
-
 
20347
      boolean that_present_price = true && that.isSetPrice();
-
 
20348
      if (this_present_price || that_present_price) {
-
 
20349
        if (!(this_present_price && that_present_price))
-
 
20350
          return false;
-
 
20351
        if (!this.price.equals(that.price))
-
 
20352
          return false;
-
 
20353
      }
-
 
20354
 
-
 
20355
      return true;
-
 
20356
    }
-
 
20357
 
-
 
20358
    @Override
-
 
20359
    public int hashCode() {
-
 
20360
      return 0;
-
 
20361
    }
-
 
20362
 
-
 
20363
    public int compareTo(getLocationInfoMap_args other) {
-
 
20364
      if (!getClass().equals(other.getClass())) {
-
 
20365
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20366
      }
-
 
20367
 
-
 
20368
      int lastComparison = 0;
-
 
20369
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
-
 
20370
 
-
 
20371
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
-
 
20372
      if (lastComparison != 0) {
-
 
20373
        return lastComparison;
-
 
20374
      }
-
 
20375
      if (isSetDestPincode()) {
-
 
20376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
-
 
20377
        if (lastComparison != 0) {
-
 
20378
          return lastComparison;
-
 
20379
        }
-
 
20380
      }
-
 
20381
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
-
 
20382
      if (lastComparison != 0) {
-
 
20383
        return lastComparison;
-
 
20384
      }
-
 
20385
      if (isSetPrice()) {
-
 
20386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
-
 
20387
        if (lastComparison != 0) {
-
 
20388
          return lastComparison;
-
 
20389
        }
-
 
20390
      }
-
 
20391
      return 0;
-
 
20392
    }
-
 
20393
 
-
 
20394
    public _Fields fieldForId(int fieldId) {
-
 
20395
      return _Fields.findByThriftId(fieldId);
-
 
20396
    }
-
 
20397
 
-
 
20398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20399
      org.apache.thrift.protocol.TField field;
-
 
20400
      iprot.readStructBegin();
-
 
20401
      while (true)
-
 
20402
      {
-
 
20403
        field = iprot.readFieldBegin();
-
 
20404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20405
          break;
-
 
20406
        }
-
 
20407
        switch (field.id) {
-
 
20408
          case 1: // DEST_PINCODE
-
 
20409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
20410
              this.destPincode = iprot.readString();
-
 
20411
            } else { 
-
 
20412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20413
            }
-
 
20414
            break;
-
 
20415
          case 2: // PRICE
-
 
20416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
20417
              {
-
 
20418
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
-
 
20419
                this.price = new ArrayList<Long>(_list37.size);
-
 
20420
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
-
 
20421
                {
-
 
20422
                  long _elem39; // required
-
 
20423
                  _elem39 = iprot.readI64();
-
 
20424
                  this.price.add(_elem39);
-
 
20425
                }
-
 
20426
                iprot.readListEnd();
-
 
20427
              }
-
 
20428
            } else { 
-
 
20429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20430
            }
-
 
20431
            break;
-
 
20432
          default:
-
 
20433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20434
        }
-
 
20435
        iprot.readFieldEnd();
-
 
20436
      }
-
 
20437
      iprot.readStructEnd();
-
 
20438
      validate();
-
 
20439
    }
-
 
20440
 
-
 
20441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20442
      validate();
-
 
20443
 
-
 
20444
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20445
      if (this.destPincode != null) {
-
 
20446
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
-
 
20447
        oprot.writeString(this.destPincode);
-
 
20448
        oprot.writeFieldEnd();
-
 
20449
      }
-
 
20450
      if (this.price != null) {
-
 
20451
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
-
 
20452
        {
-
 
20453
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
-
 
20454
          for (long _iter40 : this.price)
-
 
20455
          {
-
 
20456
            oprot.writeI64(_iter40);
-
 
20457
          }
-
 
20458
          oprot.writeListEnd();
-
 
20459
        }
-
 
20460
        oprot.writeFieldEnd();
-
 
20461
      }
-
 
20462
      oprot.writeFieldStop();
-
 
20463
      oprot.writeStructEnd();
-
 
20464
    }
-
 
20465
 
-
 
20466
    @Override
-
 
20467
    public String toString() {
-
 
20468
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
-
 
20469
      boolean first = true;
-
 
20470
 
-
 
20471
      sb.append("destPincode:");
-
 
20472
      if (this.destPincode == null) {
-
 
20473
        sb.append("null");
-
 
20474
      } else {
-
 
20475
        sb.append(this.destPincode);
-
 
20476
      }
-
 
20477
      first = false;
-
 
20478
      if (!first) sb.append(", ");
-
 
20479
      sb.append("price:");
-
 
20480
      if (this.price == null) {
-
 
20481
        sb.append("null");
-
 
20482
      } else {
-
 
20483
        sb.append(this.price);
-
 
20484
      }
-
 
20485
      first = false;
-
 
20486
      sb.append(")");
-
 
20487
      return sb.toString();
-
 
20488
    }
-
 
20489
 
-
 
20490
    public void validate() throws org.apache.thrift.TException {
-
 
20491
      // check for required fields
-
 
20492
    }
-
 
20493
 
-
 
20494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20495
      try {
-
 
20496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20497
      } catch (org.apache.thrift.TException te) {
-
 
20498
        throw new java.io.IOException(te);
-
 
20499
      }
-
 
20500
    }
-
 
20501
 
-
 
20502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20503
      try {
-
 
20504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20505
      } catch (org.apache.thrift.TException te) {
-
 
20506
        throw new java.io.IOException(te);
-
 
20507
      }
-
 
20508
    }
-
 
20509
 
-
 
20510
  }
-
 
20511
 
-
 
20512
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
-
 
20513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
-
 
20514
 
-
 
20515
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
20516
 
-
 
20517
    private Map<Long,Map<Long,LocationInfo>> success; // required
-
 
20518
 
-
 
20519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
20521
      SUCCESS((short)0, "success");
-
 
20522
 
-
 
20523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
20524
 
-
 
20525
      static {
-
 
20526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
20527
          byName.put(field.getFieldName(), field);
-
 
20528
        }
-
 
20529
      }
-
 
20530
 
-
 
20531
      /**
-
 
20532
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
20533
       */
-
 
20534
      public static _Fields findByThriftId(int fieldId) {
-
 
20535
        switch(fieldId) {
-
 
20536
          case 0: // SUCCESS
-
 
20537
            return SUCCESS;
-
 
20538
          default:
-
 
20539
            return null;
-
 
20540
        }
-
 
20541
      }
-
 
20542
 
-
 
20543
      /**
-
 
20544
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
20545
       * if it is not found.
-
 
20546
       */
-
 
20547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
20548
        _Fields fields = findByThriftId(fieldId);
-
 
20549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
20550
        return fields;
-
 
20551
      }
-
 
20552
 
-
 
20553
      /**
-
 
20554
       * Find the _Fields constant that matches name, or null if its not found.
-
 
20555
       */
-
 
20556
      public static _Fields findByName(String name) {
-
 
20557
        return byName.get(name);
-
 
20558
      }
-
 
20559
 
-
 
20560
      private final short _thriftId;
-
 
20561
      private final String _fieldName;
-
 
20562
 
-
 
20563
      _Fields(short thriftId, String fieldName) {
-
 
20564
        _thriftId = thriftId;
-
 
20565
        _fieldName = fieldName;
-
 
20566
      }
-
 
20567
 
-
 
20568
      public short getThriftFieldId() {
-
 
20569
        return _thriftId;
-
 
20570
      }
-
 
20571
 
-
 
20572
      public String getFieldName() {
-
 
20573
        return _fieldName;
-
 
20574
      }
-
 
20575
    }
-
 
20576
 
-
 
20577
    // isset id assignments
-
 
20578
 
-
 
20579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
20580
    static {
-
 
20581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
20582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
20583
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
20584
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
20585
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
20586
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
20587
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
-
 
20588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
20589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
-
 
20590
    }
-
 
20591
 
-
 
20592
    public getLocationInfoMap_result() {
-
 
20593
    }
-
 
20594
 
-
 
20595
    public getLocationInfoMap_result(
-
 
20596
      Map<Long,Map<Long,LocationInfo>> success)
-
 
20597
    {
-
 
20598
      this();
-
 
20599
      this.success = success;
-
 
20600
    }
-
 
20601
 
-
 
20602
    /**
-
 
20603
     * Performs a deep copy on <i>other</i>.
-
 
20604
     */
-
 
20605
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
-
 
20606
      if (other.isSetSuccess()) {
-
 
20607
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
-
 
20608
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
-
 
20609
 
-
 
20610
          Long other_element_key = other_element.getKey();
-
 
20611
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
-
 
20612
 
-
 
20613
          Long __this__success_copy_key = other_element_key;
-
 
20614
 
-
 
20615
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
-
 
20616
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
-
 
20617
 
-
 
20618
            Long other_element_value_element_key = other_element_value_element.getKey();
-
 
20619
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
-
 
20620
 
-
 
20621
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
-
 
20622
 
-
 
20623
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
-
 
20624
 
-
 
20625
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
-
 
20626
          }
-
 
20627
 
-
 
20628
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
20629
        }
-
 
20630
        this.success = __this__success;
-
 
20631
      }
-
 
20632
    }
-
 
20633
 
-
 
20634
    public getLocationInfoMap_result deepCopy() {
-
 
20635
      return new getLocationInfoMap_result(this);
-
 
20636
    }
-
 
20637
 
-
 
20638
    @Override
-
 
20639
    public void clear() {
-
 
20640
      this.success = null;
-
 
20641
    }
-
 
20642
 
-
 
20643
    public int getSuccessSize() {
-
 
20644
      return (this.success == null) ? 0 : this.success.size();
-
 
20645
    }
-
 
20646
 
-
 
20647
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
-
 
20648
      if (this.success == null) {
-
 
20649
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
-
 
20650
      }
-
 
20651
      this.success.put(key, val);
-
 
20652
    }
-
 
20653
 
-
 
20654
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
-
 
20655
      return this.success;
-
 
20656
    }
-
 
20657
 
-
 
20658
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
-
 
20659
      this.success = success;
-
 
20660
    }
-
 
20661
 
-
 
20662
    public void unsetSuccess() {
-
 
20663
      this.success = null;
-
 
20664
    }
-
 
20665
 
-
 
20666
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
20667
    public boolean isSetSuccess() {
-
 
20668
      return this.success != null;
-
 
20669
    }
-
 
20670
 
-
 
20671
    public void setSuccessIsSet(boolean value) {
-
 
20672
      if (!value) {
-
 
20673
        this.success = null;
-
 
20674
      }
-
 
20675
    }
-
 
20676
 
-
 
20677
    public void setFieldValue(_Fields field, Object value) {
-
 
20678
      switch (field) {
-
 
20679
      case SUCCESS:
-
 
20680
        if (value == null) {
-
 
20681
          unsetSuccess();
-
 
20682
        } else {
-
 
20683
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
-
 
20684
        }
-
 
20685
        break;
-
 
20686
 
-
 
20687
      }
-
 
20688
    }
-
 
20689
 
-
 
20690
    public Object getFieldValue(_Fields field) {
-
 
20691
      switch (field) {
-
 
20692
      case SUCCESS:
-
 
20693
        return getSuccess();
-
 
20694
 
-
 
20695
      }
-
 
20696
      throw new IllegalStateException();
-
 
20697
    }
-
 
20698
 
-
 
20699
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
20700
    public boolean isSet(_Fields field) {
-
 
20701
      if (field == null) {
-
 
20702
        throw new IllegalArgumentException();
-
 
20703
      }
-
 
20704
 
-
 
20705
      switch (field) {
-
 
20706
      case SUCCESS:
-
 
20707
        return isSetSuccess();
-
 
20708
      }
-
 
20709
      throw new IllegalStateException();
-
 
20710
    }
-
 
20711
 
-
 
20712
    @Override
-
 
20713
    public boolean equals(Object that) {
-
 
20714
      if (that == null)
-
 
20715
        return false;
-
 
20716
      if (that instanceof getLocationInfoMap_result)
-
 
20717
        return this.equals((getLocationInfoMap_result)that);
-
 
20718
      return false;
-
 
20719
    }
-
 
20720
 
-
 
20721
    public boolean equals(getLocationInfoMap_result that) {
-
 
20722
      if (that == null)
-
 
20723
        return false;
-
 
20724
 
-
 
20725
      boolean this_present_success = true && this.isSetSuccess();
-
 
20726
      boolean that_present_success = true && that.isSetSuccess();
-
 
20727
      if (this_present_success || that_present_success) {
-
 
20728
        if (!(this_present_success && that_present_success))
-
 
20729
          return false;
-
 
20730
        if (!this.success.equals(that.success))
-
 
20731
          return false;
-
 
20732
      }
-
 
20733
 
-
 
20734
      return true;
-
 
20735
    }
-
 
20736
 
-
 
20737
    @Override
-
 
20738
    public int hashCode() {
-
 
20739
      return 0;
-
 
20740
    }
-
 
20741
 
-
 
20742
    public int compareTo(getLocationInfoMap_result other) {
-
 
20743
      if (!getClass().equals(other.getClass())) {
-
 
20744
        return getClass().getName().compareTo(other.getClass().getName());
-
 
20745
      }
-
 
20746
 
-
 
20747
      int lastComparison = 0;
-
 
20748
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
-
 
20749
 
-
 
20750
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
20751
      if (lastComparison != 0) {
-
 
20752
        return lastComparison;
-
 
20753
      }
-
 
20754
      if (isSetSuccess()) {
-
 
20755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
20756
        if (lastComparison != 0) {
-
 
20757
          return lastComparison;
-
 
20758
        }
-
 
20759
      }
-
 
20760
      return 0;
-
 
20761
    }
-
 
20762
 
-
 
20763
    public _Fields fieldForId(int fieldId) {
-
 
20764
      return _Fields.findByThriftId(fieldId);
-
 
20765
    }
-
 
20766
 
-
 
20767
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
20768
      org.apache.thrift.protocol.TField field;
-
 
20769
      iprot.readStructBegin();
-
 
20770
      while (true)
-
 
20771
      {
-
 
20772
        field = iprot.readFieldBegin();
-
 
20773
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
20774
          break;
-
 
20775
        }
-
 
20776
        switch (field.id) {
-
 
20777
          case 0: // SUCCESS
-
 
20778
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
20779
              {
-
 
20780
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
-
 
20781
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
-
 
20782
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
-
 
20783
                {
-
 
20784
                  long _key43; // required
-
 
20785
                  Map<Long,LocationInfo> _val44; // required
-
 
20786
                  _key43 = iprot.readI64();
-
 
20787
                  {
-
 
20788
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
-
 
20789
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
-
 
20790
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
-
 
20791
                    {
-
 
20792
                      long _key47; // required
-
 
20793
                      LocationInfo _val48; // required
-
 
20794
                      _key47 = iprot.readI64();
-
 
20795
                      _val48 = new LocationInfo();
-
 
20796
                      _val48.read(iprot);
-
 
20797
                      _val44.put(_key47, _val48);
-
 
20798
                    }
-
 
20799
                    iprot.readMapEnd();
-
 
20800
                  }
-
 
20801
                  this.success.put(_key43, _val44);
-
 
20802
                }
-
 
20803
                iprot.readMapEnd();
-
 
20804
              }
-
 
20805
            } else { 
-
 
20806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20807
            }
-
 
20808
            break;
-
 
20809
          default:
-
 
20810
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
20811
        }
-
 
20812
        iprot.readFieldEnd();
-
 
20813
      }
-
 
20814
      iprot.readStructEnd();
-
 
20815
      validate();
-
 
20816
    }
-
 
20817
 
-
 
20818
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
20819
      oprot.writeStructBegin(STRUCT_DESC);
-
 
20820
 
-
 
20821
      if (this.isSetSuccess()) {
-
 
20822
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
20823
        {
-
 
20824
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
-
 
20825
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
-
 
20826
          {
-
 
20827
            oprot.writeI64(_iter49.getKey());
-
 
20828
            {
-
 
20829
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
-
 
20830
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
-
 
20831
              {
-
 
20832
                oprot.writeI64(_iter50.getKey());
-
 
20833
                _iter50.getValue().write(oprot);
-
 
20834
              }
-
 
20835
              oprot.writeMapEnd();
-
 
20836
            }
-
 
20837
          }
-
 
20838
          oprot.writeMapEnd();
-
 
20839
        }
-
 
20840
        oprot.writeFieldEnd();
-
 
20841
      }
-
 
20842
      oprot.writeFieldStop();
-
 
20843
      oprot.writeStructEnd();
-
 
20844
    }
-
 
20845
 
-
 
20846
    @Override
-
 
20847
    public String toString() {
-
 
20848
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
-
 
20849
      boolean first = true;
-
 
20850
 
-
 
20851
      sb.append("success:");
-
 
20852
      if (this.success == null) {
-
 
20853
        sb.append("null");
-
 
20854
      } else {
-
 
20855
        sb.append(this.success);
-
 
20856
      }
-
 
20857
      first = false;
-
 
20858
      sb.append(")");
-
 
20859
      return sb.toString();
-
 
20860
    }
19984
 
20861
 
19985
    public void validate() throws org.apache.thrift.TException {
20862
    public void validate() throws org.apache.thrift.TException {
19986
      // check for required fields
20863
      // check for required fields
19987
    }
20864
    }
19988
 
20865